[GCC, DOCS, AArch64] Add missing documenation for mbranch-protection
[official-gcc.git] / libphobos / configure
blobd86934b59a5d77528a450fd1e72ed07064151429
1 #! /bin/sh
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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 :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
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
265 exit 255
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."
274 else
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."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
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 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
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
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
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 :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
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
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
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).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
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
530 as_ln_s='ln -s'
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 ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
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"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
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
568 exec 6>&1
570 # Name of the host.
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`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
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'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 GDCFLAGSX
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 gdc_include_dir
640 libphobos_toolexeclibdir
641 libphobos_toolexecdir
642 gcc_version
643 DRUNTIME_ZLIB_SYSTEM_FALSE
644 DRUNTIME_ZLIB_SYSTEM_TRUE
645 BACKTRACE_SUPPORTS_THREADS
646 BACKTRACE_USES_MALLOC
647 BACKTRACE_SUPPORTED
648 LIBBACKTRACE
649 LIBATOMIC
650 DCFG_HAVE_LIBATOMIC
651 DCFG_HAVE_64BIT_ATOMICS
652 DCFG_HAVE_ATOMIC_BUILTINS
653 DCFG_HAVE_QSORT_R
654 DRUNTIME_OS_MINFO_BRACKETING_FALSE
655 DRUNTIME_OS_MINFO_BRACKETING_TRUE
656 DCFG_MINFO_BRACKETING
657 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
658 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
659 DCFG_ARM_EABI_UNWINDER
660 DCFG_THREAD_MODEL
661 DRUNTIME_OS_SOLARIS_FALSE
662 DRUNTIME_OS_SOLARIS_TRUE
663 DRUNTIME_OS_MINGW_FALSE
664 DRUNTIME_OS_MINGW_TRUE
665 DRUNTIME_OS_LINUX_FALSE
666 DRUNTIME_OS_LINUX_TRUE
667 DRUNTIME_OS_OPENBSD_FALSE
668 DRUNTIME_OS_OPENBSD_TRUE
669 DRUNTIME_OS_NETBSD_FALSE
670 DRUNTIME_OS_NETBSD_TRUE
671 DRUNTIME_OS_FREEBSD_FALSE
672 DRUNTIME_OS_FREEBSD_TRUE
673 DRUNTIME_OS_DRAGONFLYBSD_FALSE
674 DRUNTIME_OS_DRAGONFLYBSD_TRUE
675 DRUNTIME_OS_DARWIN_FALSE
676 DRUNTIME_OS_DARWIN_TRUE
677 DRUNTIME_OS_ANDROID_FALSE
678 DRUNTIME_OS_ANDROID_TRUE
679 DRUNTIME_OS_AIX_FALSE
680 DRUNTIME_OS_AIX_TRUE
681 DRUNTIME_OS_UNIX_FALSE
682 DRUNTIME_OS_UNIX_TRUE
683 DRUNTIME_GC_ENABLE_FALSE
684 DRUNTIME_GC_ENABLE_TRUE
685 libphobos_srcdir
686 libphobos_builddir
687 get_gcc_base_ver
688 phobos_compiler_shared_flag
689 phobos_compiler_pic_flag
690 ENABLE_STATIC_FALSE
691 ENABLE_STATIC_TRUE
692 ENABLE_SHARED_FALSE
693 ENABLE_SHARED_TRUE
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 OBJDUMP
701 LN_S
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
707 EGREP
708 GREP
710 LIBTOOL
711 CFLAGS_FOR_BUILD
712 CC_FOR_BUILD
714 RANLIB
715 MAINT
716 MAINTAINER_MODE_FALSE
717 MAINTAINER_MODE_TRUE
718 GDCFLAGS
720 CCASFLAGS
721 CCAS
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_os
757 target_vendor
758 target_cpu
759 target
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 multi_basedir
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files='DRTSTUFF_SPEC'
808 ac_user_opts='
809 enable_option_checking
810 enable_multilib
811 enable_silent_rules
812 enable_maintainer_mode
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_gnu_ld
818 enable_libtool_lock
819 with_gcc_major_version_only
820 enable_werror
821 enable_druntime_gc
822 enable_unix
823 enable_thread_lib
824 with_libatomic
825 with_libbacktrace
826 with_target_system_zlib
827 with_cross_host
828 enable_version_specific_runtime_libs
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
834 CPPFLAGS'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 esac
1243 done
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1327 /^X\(\/\/\)$/{
1328 s//\1/
1331 /^X\(\/\).*/{
1332 s//\1/
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1340 else
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1430 cat <<\_ACEOF
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of package-unused version-unused:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-multilib build many library versions (default)
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
1457 --enable-maintainer-mode
1458 enable make rules and dependencies not useful (and
1459 sometimes confusing) to the casual installer
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-static[=PKGS] build static libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --enable-werror turns on -Werror [default=no]
1466 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1467 --enable-unix enables Unix runtime (default: yes, for Unix
1468 targets)
1469 --enable-thread-lib=<arg>
1470 specify linker option for the system thread library
1471 (default: autodetect)
1472 --enable-version-specific-runtime-libs
1473 Specify that runtime libraries should be installed
1474 in a compiler-specific directory
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-gcc-major-version-only
1483 use only GCC major number in filesystem paths
1484 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1485 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1486 auto)
1487 --with-target-system-zlib
1488 use installed libz (default: no)
1489 --with-cross-host=HOST configuring with a cross compiler
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CCAS assembler compiler command (defaults to CC)
1500 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1501 GDC D compiler command
1502 GDCFLAGS D compiler flags
1503 CPP C preprocessor
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1508 Report bugs to the package provider.
1509 _ACEOF
1510 ac_status=$?
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 package-unused configure version-unused
1572 generated by GNU Autoconf 2.69
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=1
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_compile
1623 # ac_fn_d_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_d_try_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_d_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1654 ac_retval=1
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_d_try_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 ac_retval=1
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725 eval "$3=yes"
1726 else
1727 eval "$3=no"
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 } # ac_fn_c_check_header_compile
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } > conftest.i && {
1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=1
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_c_try_cpp
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: program exited with status $ac_status" >&5
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=$ac_status
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1815 } # ac_fn_c_try_run
1817 # ac_fn_c_check_func LINENO FUNC VAR
1818 # ----------------------------------
1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1820 ac_fn_c_check_func ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832 #define $2 innocuous_$2
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (); below.
1836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837 <limits.h> exists even on freestanding compilers. */
1839 #ifdef __STDC__
1840 # include <limits.h>
1841 #else
1842 # include <assert.h>
1843 #endif
1845 #undef $2
1847 /* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 ();
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1862 main ()
1864 return $2 ();
1866 return 0;
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"; then :
1870 eval "$3=yes"
1871 else
1872 eval "$3=no"
1874 rm -f core conftest.err conftest.$ac_objext \
1875 conftest$ac_exeext conftest.$ac_ext
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_func
1884 # ac_fn_d_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_d_try_link ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_d_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_d_try_link
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=\$ac_header_compiler"
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_header_mongrel
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2020 It was created by package-unused $as_me version-unused, which was
2021 generated by GNU Autoconf 2.69. Invocation command line was
2023 $ $0 $@
2025 _ACEOF
2026 exec 5>>config.log
2028 cat <<_ASUNAME
2029 ## --------- ##
2030 ## Platform. ##
2031 ## --------- ##
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050 _ASUNAME
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 $as_echo "PATH: $as_dir"
2058 done
2059 IFS=$as_save_IFS
2061 } >&5
2063 cat >&5 <<_ACEOF
2066 ## ----------- ##
2067 ## Core tests. ##
2068 ## ----------- ##
2070 _ACEOF
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2078 ac_configure_args=
2079 ac_configure_args0=
2080 ac_configure_args1=
2081 ac_must_keep_next=false
2082 for ac_pass in 1 2
2084 for ac_arg
2086 case $ac_arg in
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2090 continue ;;
2091 *\'*)
2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093 esac
2094 case $ac_pass in
2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 as_fn_append ac_configure_args1 " '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2100 else
2101 case $ac_arg in
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108 esac
2110 -* ) ac_must_keep_next=true ;;
2111 esac
2113 as_fn_append ac_configure_args " '$ac_arg'"
2115 esac
2116 done
2117 done
2118 { ac_configure_args0=; unset ac_configure_args0;}
2119 { ac_configure_args1=; unset ac_configure_args1;}
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2129 echo
2131 $as_echo "## ---------------- ##
2132 ## Cache variables. ##
2133 ## ---------------- ##"
2134 echo
2135 # The following way of writing the cache mishandles newlines in values,
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
2152 (set) 2>&1 |
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2155 sed -n \
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 esac |
2163 sort
2165 echo
2167 $as_echo "## ----------------- ##
2168 ## Output variables. ##
2169 ## ----------------- ##"
2170 echo
2171 for ac_var in $ac_subst_vars
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2181 if test -n "$ac_subst_files"; then
2182 $as_echo "## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##"
2185 echo
2186 for ac_var in $ac_subst_files
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2197 if test -s confdefs.h; then
2198 $as_echo "## ----------- ##
2199 ## confdefs.h. ##
2200 ## ----------- ##"
2201 echo
2202 cat confdefs.h
2203 echo
2205 test "$ac_signal" != 0 &&
2206 $as_echo "$as_me: caught signal $ac_signal"
2207 $as_echo "$as_me: exit $exit_status"
2208 } >&5
2209 rm -f core *.core core.conftest.* &&
2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2211 exit $exit_status
2213 for ac_signal in 1 2 13 15; do
2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215 done
2216 ac_signal=0
2218 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2219 rm -f -r conftest* confdefs.h
2221 $as_echo "/* confdefs.h */" > confdefs.h
2223 # Predefined preprocessor variables.
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_NAME "$PACKAGE_NAME"
2227 _ACEOF
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2231 _ACEOF
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2235 _ACEOF
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2239 _ACEOF
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243 _ACEOF
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_URL "$PACKAGE_URL"
2247 _ACEOF
2250 # Let the site file select an alternate cache file if it wants to.
2251 # Prefer an explicitly selected file to automatically selected ones.
2252 ac_site_file1=NONE
2253 ac_site_file2=NONE
2254 if test -n "$CONFIG_SITE"; then
2255 # We do not want a PATH search for config.site.
2256 case $CONFIG_SITE in #((
2257 -*) ac_site_file1=./$CONFIG_SITE;;
2258 */*) ac_site_file1=$CONFIG_SITE;;
2259 *) ac_site_file1=./$CONFIG_SITE;;
2260 esac
2261 elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2264 else
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
2268 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270 test "x$ac_site_file" = xNONE && continue
2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2275 . "$ac_site_file" \
2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 as_fn_error $? "failed to load site script $ac_site_file
2279 See \`config.log' for more details" "$LINENO" 5; }
2281 done
2283 if test -r "$cache_file"; then
2284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 $as_echo "$as_me: loading cache $cache_file" >&6;}
2289 case $cache_file in
2290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
2292 esac
2294 else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 $as_echo "$as_me: creating cache $cache_file" >&6;}
2297 >$cache_file
2300 # Check that the precious variables saved in the cache have kept the same
2301 # value.
2302 ac_cache_corrupted=false
2303 for ac_var in $ac_precious_vars; do
2304 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305 eval ac_new_set=\$ac_env_${ac_var}_set
2306 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307 eval ac_new_val=\$ac_env_${ac_var}_value
2308 case $ac_old_set,$ac_new_set in
2309 set,)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,set)
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2317 ,);;
2319 if test "x$ac_old_val" != "x$ac_new_val"; then
2320 # differences in whitespace do not lead to failure.
2321 ac_old_val_w=`echo x $ac_old_val`
2322 ac_new_val_w=`echo x $ac_new_val`
2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2325 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2326 ac_cache_corrupted=:
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2329 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2330 eval $ac_var=\$ac_old_val
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2333 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2335 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2336 fi;;
2337 esac
2338 # Pass precious variables to config.status.
2339 if test "$ac_new_set" = set; then
2340 case $ac_new_val in
2341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 *) ac_arg=$ac_var=$ac_new_val ;;
2343 esac
2344 case " $ac_configure_args " in
2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2346 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2347 esac
2349 done
2350 if $ac_cache_corrupted; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2354 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2357 ## -------------------- ##
2358 ## Main body of script. ##
2359 ## -------------------- ##
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 ac_config_headers="$ac_config_headers config.h"
2375 # Default to --enable-multilib
2376 # Check whether --enable-multilib was given.
2377 if test "${enable_multilib+set}" = set; then :
2378 enableval=$enable_multilib; case "$enableval" in
2379 yes) multilib=yes ;;
2380 no) multilib=no ;;
2381 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2382 esac
2383 else
2384 multilib=yes
2388 # We may get other options which we leave undocumented:
2389 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2390 # See config-ml.in if you want the gory details.
2392 if test "$srcdir" = "."; then
2393 if test "$with_target_subdir" != "."; then
2394 multi_basedir="$srcdir/$with_multisrctop../.."
2395 else
2396 multi_basedir="$srcdir/$with_multisrctop.."
2398 else
2399 multi_basedir="$srcdir/.."
2403 # Even if the default multilib is not a cross compilation,
2404 # it may be that some of the other multilibs are.
2405 if test $cross_compiling = no && test $multilib = yes \
2406 && test "x${with_multisubdir}" != x ; then
2407 cross_compiling=maybe
2410 ac_config_commands="$ac_config_commands default-1"
2412 ac_aux_dir=
2413 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2414 if test -f "$ac_dir/install-sh"; then
2415 ac_aux_dir=$ac_dir
2416 ac_install_sh="$ac_aux_dir/install-sh -c"
2417 break
2418 elif test -f "$ac_dir/install.sh"; then
2419 ac_aux_dir=$ac_dir
2420 ac_install_sh="$ac_aux_dir/install.sh -c"
2421 break
2422 elif test -f "$ac_dir/shtool"; then
2423 ac_aux_dir=$ac_dir
2424 ac_install_sh="$ac_aux_dir/shtool install -c"
2425 break
2427 done
2428 if test -z "$ac_aux_dir"; then
2429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2441 # Make sure we can run config.sub.
2442 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2443 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2446 $as_echo_n "checking build system type... " >&6; }
2447 if ${ac_cv_build+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 ac_build_alias=$build_alias
2451 test "x$ac_build_alias" = x &&
2452 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2453 test "x$ac_build_alias" = x &&
2454 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2460 $as_echo "$ac_cv_build" >&6; }
2461 case $ac_cv_build in
2462 *-*-*) ;;
2463 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2464 esac
2465 build=$ac_cv_build
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_build
2468 shift
2469 build_cpu=$1
2470 build_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 build_os=$*
2475 IFS=$ac_save_IFS
2476 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2480 $as_echo_n "checking host system type... " >&6; }
2481 if ${ac_cv_host+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test "x$host_alias" = x; then
2485 ac_cv_host=$ac_cv_build
2486 else
2487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2488 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2493 $as_echo "$ac_cv_host" >&6; }
2494 case $ac_cv_host in
2495 *-*-*) ;;
2496 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2497 esac
2498 host=$ac_cv_host
2499 ac_save_IFS=$IFS; IFS='-'
2500 set x $ac_cv_host
2501 shift
2502 host_cpu=$1
2503 host_vendor=$2
2504 shift; shift
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2507 host_os=$*
2508 IFS=$ac_save_IFS
2509 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2513 $as_echo_n "checking target system type... " >&6; }
2514 if ${ac_cv_target+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test "x$target_alias" = x; then
2518 ac_cv_target=$ac_cv_host
2519 else
2520 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2521 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2526 $as_echo "$ac_cv_target" >&6; }
2527 case $ac_cv_target in
2528 *-*-*) ;;
2529 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2530 esac
2531 target=$ac_cv_target
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_target
2534 shift
2535 target_cpu=$1
2536 target_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 target_os=$*
2541 IFS=$ac_save_IFS
2542 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2545 # The aliases save the names the user supplied, while $host etc.
2546 # will get canonicalized.
2547 test -n "$target_alias" &&
2548 test "$program_prefix$program_suffix$program_transform_name" = \
2549 NONENONEs,x,x, &&
2550 program_prefix=${target_alias}-
2553 target_alias=${target_alias-$target}
2556 # 1.11.1: Require that version of automake.
2557 # foreign: Don't require README, INSTALL, NEWS, etc.
2558 # no-define: Don't define PACKAGE and VERSION.
2559 # no-dependencies: Don't generate automatic dependencies.
2560 # (because it breaks when using bootstrap-lean, since some of the
2561 # headers are gone at "make install" time).
2562 # -Wall: Issue all automake warnings.
2563 # -Wno-portability: Don't warn about constructs supported by GNU make.
2564 # (because GCC requires GNU make anyhow).
2565 # -Wno-override: Overrides used in testsuite.
2566 am__api_version='1.15'
2568 # Find a good install program. We prefer a C program (faster),
2569 # so one script is as good as another. But avoid the broken or
2570 # incompatible versions:
2571 # SysV /etc/install, /usr/sbin/install
2572 # SunOS /usr/etc/install
2573 # IRIX /sbin/install
2574 # AIX /bin/install
2575 # AmigaOS /C/install, which installs bootblocks on floppy discs
2576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2579 # OS/2's system install, which has a completely different semantic
2580 # ./install, which can be erroneously created by make from ./install.sh.
2581 # Reject install programs that cannot install multiple files.
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2584 if test -z "$INSTALL"; then
2585 if ${ac_cv_path_install+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 # Account for people who put trailing slashes in PATH elements.
2594 case $as_dir/ in #((
2595 ./ | .// | /[cC]/* | \
2596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598 /usr/ucb/* ) ;;
2600 # OSF1 and SCO ODT 3.0 have their own names for install.
2601 # Don't use installbsd from OSF since it installs stuff as root
2602 # by default.
2603 for ac_prog in ginstall scoinst install; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2606 if test $ac_prog = install &&
2607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # AIX install. It has an incompatible calling convention.
2610 elif test $ac_prog = install &&
2611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # program-specific install script used by HP pwplus--don't use.
2614 else
2615 rm -rf conftest.one conftest.two conftest.dir
2616 echo one > conftest.one
2617 echo two > conftest.two
2618 mkdir conftest.dir
2619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2620 test -s conftest.one && test -s conftest.two &&
2621 test -s conftest.dir/conftest.one &&
2622 test -s conftest.dir/conftest.two
2623 then
2624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2625 break 3
2629 done
2630 done
2632 esac
2634 done
2635 IFS=$as_save_IFS
2637 rm -rf conftest.one conftest.two conftest.dir
2640 if test "${ac_cv_path_install+set}" = set; then
2641 INSTALL=$ac_cv_path_install
2642 else
2643 # As a last resort, use the slow shell script. Don't cache a
2644 # value for INSTALL within a source directory, because that will
2645 # break other packages using the cache if that directory is
2646 # removed, or if the value is a relative name.
2647 INSTALL=$ac_install_sh
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2651 $as_echo "$INSTALL" >&6; }
2653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2654 # It thinks the first close brace ends the variable substitution.
2655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2662 $as_echo_n "checking whether build environment is sane... " >&6; }
2663 # Reject unsafe characters in $srcdir or the absolute working directory
2664 # name. Accept space and tab only in the latter.
2665 am_lf='
2667 case `pwd` in
2668 *[\\\"\#\$\&\'\`$am_lf]*)
2669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2670 esac
2671 case $srcdir in
2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2673 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2674 esac
2676 # Do 'set' in a subshell so we don't clobber the current shell's
2677 # arguments. Must try -L first in case configure is actually a
2678 # symlink; some systems play weird games with the mod time of symlinks
2679 # (eg FreeBSD returns the mod time of the symlink's containing
2680 # directory).
2681 if (
2682 am_has_slept=no
2683 for am_try in 1 2; do
2684 echo "timestamp, slept: $am_has_slept" > conftest.file
2685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2686 if test "$*" = "X"; then
2687 # -L didn't work.
2688 set X `ls -t "$srcdir/configure" conftest.file`
2690 if test "$*" != "X $srcdir/configure conftest.file" \
2691 && test "$*" != "X conftest.file $srcdir/configure"; then
2693 # If neither matched, then we have a broken ls. This can happen
2694 # if, for instance, CONFIG_SHELL is bash and it inherits a
2695 # broken ls alias from the environment. This has actually
2696 # happened. Such a system could not be considered "sane".
2697 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2698 alias in your environment" "$LINENO" 5
2700 if test "$2" = conftest.file || test $am_try -eq 2; then
2701 break
2703 # Just in case.
2704 sleep 1
2705 am_has_slept=yes
2706 done
2707 test "$2" = conftest.file
2709 then
2710 # Ok.
2712 else
2713 as_fn_error $? "newly created file is older than distributed files!
2714 Check your system clock" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717 $as_echo "yes" >&6; }
2718 # If we didn't sleep, we still need to ensure time stamps of config.status and
2719 # generated files are strictly newer.
2720 am_sleep_pid=
2721 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2722 ( sleep 1 ) &
2723 am_sleep_pid=$!
2726 rm -f conftest.file
2728 test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730 # Use a double $ so make ignores it.
2731 test "$program_suffix" != NONE &&
2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2733 # Double any \ or $.
2734 # By default was `s,x,x', remove it if useless.
2735 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738 # Expand $ac_aux_dir to an absolute path.
2739 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2741 if test x"${MISSING+set}" != xset; then
2742 case $am_aux_dir in
2743 *\ * | *\ *)
2744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2747 esac
2749 # Use eval to expand $SHELL
2750 if eval "$MISSING --is-lightweight"; then
2751 am_missing_run="$MISSING "
2752 else
2753 am_missing_run=
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2755 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2758 if test x"${install_sh+set}" != xset; then
2759 case $am_aux_dir in
2760 *\ * | *\ *)
2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 install_sh="\${SHELL} $am_aux_dir/install-sh"
2764 esac
2767 # Installed binaries are usually stripped using 'strip' when the user
2768 # run "make install-strip". However 'strip' might not be the right
2769 # tool to use in cross-compilation environments, therefore Automake
2770 # will honor the 'STRIP' environment variable to overrule this program.
2771 if test "$cross_compiling" != no; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}strip; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_STRIP+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 STRIP=$ac_cv_prog_STRIP
2801 if test -n "$STRIP"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2803 $as_echo "$STRIP" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2811 if test -z "$ac_cv_prog_STRIP"; then
2812 ac_ct_STRIP=$STRIP
2813 # Extract the first word of "strip", so it can be a program name with args.
2814 set dummy strip; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_STRIP="strip"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2834 done
2835 done
2836 IFS=$as_save_IFS
2840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2841 if test -n "$ac_ct_STRIP"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2843 $as_echo "$ac_ct_STRIP" >&6; }
2844 else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2849 if test "x$ac_ct_STRIP" = x; then
2850 STRIP=":"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 STRIP=$ac_ct_STRIP
2860 else
2861 STRIP="$ac_cv_prog_STRIP"
2865 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2868 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869 if test -z "$MKDIR_P"; then
2870 if ${ac_cv_path_mkdir+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_prog in mkdir gmkdir; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2882 'mkdir (GNU coreutils) '* | \
2883 'mkdir (coreutils) '* | \
2884 'mkdir (fileutils) '4.1*)
2885 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2886 break 3;;
2887 esac
2888 done
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 test -d ./--version && rmdir ./--version
2896 if test "${ac_cv_path_mkdir+set}" = set; then
2897 MKDIR_P="$ac_cv_path_mkdir -p"
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for MKDIR_P within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 MKDIR_P="$ac_install_sh -d"
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2907 $as_echo "$MKDIR_P" >&6; }
2909 for ac_prog in gawk mawk nawk awk
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_AWK+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$AWK"; then
2919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_AWK="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2934 IFS=$as_save_IFS
2938 AWK=$ac_cv_prog_AWK
2939 if test -n "$AWK"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2941 $as_echo "$AWK" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2948 test -n "$AWK" && break
2949 done
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2952 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2953 set x ${MAKE-make}
2954 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2955 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 cat >conftest.make <<\_ACEOF
2959 SHELL = /bin/sh
2960 all:
2961 @echo '@@@%%%=$(MAKE)=@@@%%%'
2962 _ACEOF
2963 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2965 *@@@%%%=?*=@@@%%%*)
2966 eval ac_cv_prog_make_${ac_make}_set=yes;;
2968 eval ac_cv_prog_make_${ac_make}_set=no;;
2969 esac
2970 rm -f conftest.make
2972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 $as_echo "yes" >&6; }
2975 SET_MAKE=
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 SET_MAKE="MAKE=${MAKE-make}"
2982 rm -rf .tst 2>/dev/null
2983 mkdir .tst 2>/dev/null
2984 if test -d .tst; then
2985 am__leading_dot=.
2986 else
2987 am__leading_dot=_
2989 rmdir .tst 2>/dev/null
2991 # Check whether --enable-silent-rules was given.
2992 if test "${enable_silent_rules+set}" = set; then :
2993 enableval=$enable_silent_rules;
2996 case $enable_silent_rules in # (((
2997 yes) AM_DEFAULT_VERBOSITY=0;;
2998 no) AM_DEFAULT_VERBOSITY=1;;
2999 *) AM_DEFAULT_VERBOSITY=1;;
3000 esac
3001 am_make=${MAKE-make}
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3003 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3004 if ${am_cv_make_support_nested_variables+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if $as_echo 'TRUE=$(BAR$(V))
3008 BAR0=false
3009 BAR1=true
3011 am__doit:
3012 @$(TRUE)
3013 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3014 am_cv_make_support_nested_variables=yes
3015 else
3016 am_cv_make_support_nested_variables=no
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3020 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3021 if test $am_cv_make_support_nested_variables = yes; then
3022 AM_V='$(V)'
3023 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3024 else
3025 AM_V=$AM_DEFAULT_VERBOSITY
3026 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3028 AM_BACKSLASH='\'
3030 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3031 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3032 # is not polluted with repeated "-I."
3033 am__isrc=' -I$(srcdir)'
3034 # test to see if srcdir already configured
3035 if test -f $srcdir/config.status; then
3036 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3040 # test whether we have cygpath
3041 if test -z "$CYGPATH_W"; then
3042 if (cygpath --version) >/dev/null 2>/dev/null; then
3043 CYGPATH_W='cygpath -w'
3044 else
3045 CYGPATH_W=echo
3050 # Define the identity of the package.
3051 PACKAGE='libphobos'
3052 VERSION='version-unused'
3055 # Some tools Automake needs.
3057 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071 # For better backward compatibility. To be removed once Automake 1.9.x
3072 # dies out for good. For more background, see:
3073 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075 mkdir_p='$(MKDIR_P)'
3077 # We need awk for the "check" target (and possibly the TAP driver). The
3078 # system "awk" is bad on some platforms.
3079 # Always define AMTAR for backward compatibility. Yes, it's still used
3080 # in the wild :-( We should find a proper way to deprecate it ...
3081 AMTAR='$${TAR-tar}'
3084 # We'll loop over all known methods to create a tar archive until one works.
3085 _am_tools='gnutar pax cpio none'
3087 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3094 # POSIX will say in a future version that running "rm -f" with no argument
3095 # is OK; and we want to be able to make that assumption in our Makefile
3096 # recipes. So use an aggressive probe to check that the usage we want is
3097 # actually supported "in the wild" to an acceptable degree.
3098 # See automake bug#10828.
3099 # To make any issue more visible, cause the running configure to be aborted
3100 # by default if the 'rm' program in use doesn't match our expectations; the
3101 # user can still override this though.
3102 if rm -f && rm -fr && rm -rf; then : OK; else
3103 cat >&2 <<'END'
3104 Oops!
3106 Your 'rm' program seems unable to run without file operands specified
3107 on the command line, even when the '-f' option is present. This is contrary
3108 to the behaviour of most rm programs out there, and not conforming with
3109 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3111 Please tell bug-automake@gnu.org about your system, including the value
3112 of your $PATH and any error possibly output before this message. This
3113 can help us improve future automake versions.
3116 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117 echo 'Configuration will proceed anyway, since you have set the' >&2
3118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119 echo >&2
3120 else
3121 cat >&2 <<'END'
3122 Aborting the configuration process, to ensure you take notice of the issue.
3124 You can download and install GNU coreutils to get an 'rm' implementation
3125 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3127 If you want to complete the configuration process using your problematic
3128 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129 to "yes", and re-run configure.
3132 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3183 if test -z "$ac_cv_prog_CC"; then
3184 ac_ct_CC=$CC
3185 # Extract the first word of "gcc", so it can be a program name with args.
3186 set dummy gcc; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_ac_ct_CC="gcc"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3206 done
3207 done
3208 IFS=$as_save_IFS
3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3221 if test "x$ac_ct_CC" = x; then
3222 CC=""
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230 CC=$ac_ct_CC
3232 else
3233 CC="$ac_cv_prog_CC"
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3239 set dummy ${ac_tool_prefix}cc; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_CC="${ac_tool_prefix}cc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3261 IFS=$as_save_IFS
3265 CC=$ac_cv_prog_CC
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3277 if test -z "$CC"; then
3278 # Extract the first word of "cc", so it can be a program name with args.
3279 set dummy cc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 ac_prog_rejected=no
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3297 ac_prog_rejected=yes
3298 continue
3300 ac_cv_prog_CC="cc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3304 done
3305 done
3306 IFS=$as_save_IFS
3308 if test $ac_prog_rejected = yes; then
3309 # We found a bogon in the path, so make sure we never use it.
3310 set dummy $ac_cv_prog_CC
3311 shift
3312 if test $# != 0; then
3313 # We chose a different compiler from the bogus one.
3314 # However, it has the same basename, so the bogon will be chosen
3315 # first if we set CC to just the basename; use the full file name.
3316 shift
3317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322 CC=$ac_cv_prog_CC
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 for ac_prog in cl.exe
3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_CC+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3360 IFS=$as_save_IFS
3364 CC=$ac_cv_prog_CC
3365 if test -n "$CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$CC" && break
3375 done
3377 if test -z "$CC"; then
3378 ac_ct_CC=$CC
3379 for ac_prog in cl.exe
3381 # Extract the first word of "$ac_prog", so it can be a program name with args.
3382 set dummy $ac_prog; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$ac_ct_CC"; then
3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398 ac_cv_prog_ac_ct_CC="$ac_prog"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3404 IFS=$as_save_IFS
3408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3409 if test -n "$ac_ct_CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3411 $as_echo "$ac_ct_CC" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3418 test -n "$ac_ct_CC" && break
3419 done
3421 if test "x$ac_ct_CC" = x; then
3422 CC=""
3423 else
3424 case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430 CC=$ac_ct_CC
3437 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "no acceptable C compiler found in \$PATH
3440 See \`config.log' for more details" "$LINENO" 5; }
3442 # Provide some information about the compiler.
3443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3444 set X $ac_compile
3445 ac_compiler=$2
3446 for ac_option in --version -v -V -qversion; do
3447 { { ac_try="$ac_compiler $ac_option >&5"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3455 ac_status=$?
3456 if test -s conftest.err; then
3457 sed '10a\
3458 ... rest of stderr output deleted ...
3459 10q' conftest.err >conftest.er1
3460 cat conftest.er1 >&5
3462 rm -f conftest.er1 conftest.err
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3465 done
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3471 main ()
3475 return 0;
3477 _ACEOF
3478 ac_clean_files_save=$ac_clean_files
3479 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3480 # Try to create an executable without -o first, disregard a.out.
3481 # It will help us diagnose broken compilers, and finding out an intuition
3482 # of exeext.
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3484 $as_echo_n "checking whether the C compiler works... " >&6; }
3485 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487 # The possible output files:
3488 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490 ac_rmfiles=
3491 for ac_file in $ac_files
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3495 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3496 esac
3497 done
3498 rm -f $ac_rmfiles
3500 if { { ac_try="$ac_link_default"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link_default") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3512 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3513 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3514 # so that the user can short-circuit this test for compilers unknown to
3515 # Autoconf.
3516 for ac_file in $ac_files ''
3518 test -f "$ac_file" || continue
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522 [ab].out )
3523 # We found the default executable, but exeext='' is most
3524 # certainly right.
3525 break;;
3526 *.* )
3527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3528 then :; else
3529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 # We set ac_cv_exeext here because the later test for it is not
3532 # safe: cross compilers may not add the suffix if given an `-o'
3533 # argument, so we may need to know it at that point already.
3534 # Even if this section looks crufty: it has the advantage of
3535 # actually working.
3536 break;;
3538 break;;
3539 esac
3540 done
3541 test "$ac_cv_exeext" = no && ac_cv_exeext=
3543 else
3544 ac_file=''
3546 if test -z "$ac_file"; then :
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error 77 "C compiler cannot create executables
3555 See \`config.log' for more details" "$LINENO" 5; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 $as_echo "yes" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3561 $as_echo_n "checking for C compiler default output file name... " >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3563 $as_echo "$ac_file" >&6; }
3564 ac_exeext=$ac_cv_exeext
3566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3567 ac_clean_files=$ac_clean_files_save
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3569 $as_echo_n "checking for suffix of executables... " >&6; }
3570 if { { ac_try="$ac_link"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3583 # work properly (i.e., refer to `conftest.exe'), while it won't with
3584 # `rm'.
3585 for ac_file in conftest.exe conftest conftest.*; do
3586 test -f "$ac_file" || continue
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590 break;;
3591 * ) break;;
3592 esac
3593 done
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3598 See \`config.log' for more details" "$LINENO" 5; }
3600 rm -f conftest conftest$ac_cv_exeext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3602 $as_echo "$ac_cv_exeext" >&6; }
3604 rm -f conftest.$ac_ext
3605 EXEEXT=$ac_cv_exeext
3606 ac_exeext=$EXEEXT
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <stdio.h>
3611 main ()
3613 FILE *f = fopen ("conftest.out", "w");
3614 return ferror (f) || fclose (f) != 0;
3617 return 0;
3619 _ACEOF
3620 ac_clean_files="$ac_clean_files conftest.out"
3621 # Check that the compiler produces executables we can run. If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 if test "$cross_compiling" != yes; then
3626 { { ac_try="$ac_link"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3634 ac_status=$?
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }
3637 if { ac_try='./conftest$ac_cv_exeext'
3638 { { case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_try") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; }; then
3648 cross_compiling=no
3649 else
3650 if test "$cross_compiling" = maybe; then
3651 cross_compiling=yes
3652 else
3653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 as_fn_error $? "cannot run C compiled programs.
3656 If you meant to cross compile, use \`--host'.
3657 See \`config.log' for more details" "$LINENO" 5; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3662 $as_echo "$cross_compiling" >&6; }
3664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3665 ac_clean_files=$ac_clean_files_save
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3667 $as_echo_n "checking for suffix of object files... " >&6; }
3668 if ${ac_cv_objext+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.o conftest.obj
3683 if { { ac_try="$ac_compile"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_compile") 2>&5
3691 ac_status=$?
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 for ac_file in conftest.o conftest.obj conftest.*; do
3695 test -f "$ac_file" || continue;
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699 break;;
3700 esac
3701 done
3702 else
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details" "$LINENO" 5; }
3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3714 $as_echo "$ac_cv_objext" >&6; }
3715 OBJEXT=$ac_cv_objext
3716 ac_objext=$OBJEXT
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3719 if ${ac_cv_c_compiler_gnu+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3726 main ()
3728 #ifndef __GNUC__
3729 choke me
3730 #endif
3733 return 0;
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_compiler_gnu=yes
3738 else
3739 ac_compiler_gnu=no
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3748 GCC=yes
3749 else
3750 GCC=
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if ${ac_cv_prog_cc_g+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 ac_save_c_werror_flag=$ac_c_werror_flag
3760 ac_c_werror_flag=yes
3761 ac_cv_prog_cc_g=no
3762 CFLAGS="-g"
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_g=yes
3776 else
3777 CFLAGS=""
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3791 else
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3793 CFLAGS="-g"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3798 main ()
3802 return 0;
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818 CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820 if test "$GCC" = yes; then
3821 CFLAGS="-g -O2"
3822 else
3823 CFLAGS="-g"
3825 else
3826 if test "$GCC" = yes; then
3827 CFLAGS="-O2"
3828 else
3829 CFLAGS=
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if ${ac_cv_prog_cc_c89+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_cv_prog_cc_c89=no
3838 ac_save_CC=$CC
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdio.h>
3843 struct stat;
3844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3845 struct buf { int x; };
3846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3847 static char *e (p, i)
3848 char **p;
3849 int i;
3851 return p[i];
3853 static char *f (char * (*g) (char **, int), char **p, ...)
3855 char *s;
3856 va_list v;
3857 va_start (v,p);
3858 s = g (p, va_arg (v,int));
3859 va_end (v);
3860 return s;
3863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3864 function prototypes and stuff, but not '\xHH' hex character constants.
3865 These don't provoke an error unfortunately, instead are silently treated
3866 as 'x'. The following induces an error, until -std is added to get
3867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3868 array size at least. It's necessary to write '\x00'==0 to get something
3869 that's true only with -std. */
3870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3873 inside strings and character constants. */
3874 #define FOO(x) 'x'
3875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877 int test (int i, double x);
3878 struct s1 {int (*f) (int a);};
3879 struct s2 {int (*f) (double a);};
3880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3881 int argc;
3882 char **argv;
3884 main ()
3886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3888 return 0;
3890 _ACEOF
3891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 CC="$ac_save_CC $ac_arg"
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_prog_cc_c89=$ac_arg
3898 rm -f core conftest.err conftest.$ac_objext
3899 test "x$ac_cv_prog_cc_c89" != "xno" && break
3900 done
3901 rm -f conftest.$ac_ext
3902 CC=$ac_save_CC
3905 # AC_CACHE_VAL
3906 case "x$ac_cv_prog_cc_c89" in
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3909 $as_echo "none needed" >&6; } ;;
3910 xno)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3912 $as_echo "unsupported" >&6; } ;;
3914 CC="$CC $ac_cv_prog_cc_c89"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3917 esac
3918 if test "x$ac_cv_prog_cc_c89" != xno; then :
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3934 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3935 if ${am_cv_prog_cc_c_o+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3942 main ()
3946 return 0;
3948 _ACEOF
3949 # Make sure it works both with $CC and with simple cc.
3950 # Following AC_PROG_CC_C_O, we do the test twice because some
3951 # compilers refuse to overwrite an existing .o file with -o,
3952 # though they will create one.
3953 am_cv_prog_cc_c_o=yes
3954 for am_i in 1 2; do
3955 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3956 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } \
3960 && test -f conftest2.$ac_objext; then
3961 : OK
3962 else
3963 am_cv_prog_cc_c_o=no
3964 break
3966 done
3967 rm -f core conftest*
3968 unset am_i
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3971 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3972 if test "$am_cv_prog_cc_c_o" != yes; then
3973 # Losing compiler, so override with the script.
3974 # FIXME: It is wrong to rewrite CC.
3975 # But if we don't then we get into trouble of one sort or another.
3976 # A longer-term fix would be to have automake use am__CC in this case,
3977 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3978 CC="$am_aux_dir/compile $CC"
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 # By default we simply use the C compiler to build assembly code.
3989 test "${CCAS+set}" = set || CCAS=$CC
3990 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if ${ac_cv_prog_CC+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -n "$CC"; then
4008 ac_cv_prog_CC="$CC" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4021 done
4022 done
4023 IFS=$as_save_IFS
4027 CC=$ac_cv_prog_CC
4028 if test -n "$CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4030 $as_echo "$CC" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4038 if test -z "$ac_cv_prog_CC"; then
4039 ac_ct_CC=$CC
4040 # Extract the first word of "gcc", so it can be a program name with args.
4041 set dummy gcc; ac_word=$2
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043 $as_echo_n "checking for $ac_word... " >&6; }
4044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -n "$ac_ct_CC"; then
4048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_ac_ct_CC="gcc"
4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4061 done
4062 done
4063 IFS=$as_save_IFS
4067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4068 if test -n "$ac_ct_CC"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4070 $as_echo "$ac_ct_CC" >&6; }
4071 else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 $as_echo "no" >&6; }
4076 if test "x$ac_ct_CC" = x; then
4077 CC=""
4078 else
4079 case $cross_compiling:$ac_tool_warned in
4080 yes:)
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4083 ac_tool_warned=yes ;;
4084 esac
4085 CC=$ac_ct_CC
4087 else
4088 CC="$ac_cv_prog_CC"
4091 if test -z "$CC"; then
4092 if test -n "$ac_tool_prefix"; then
4093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4094 set dummy ${ac_tool_prefix}cc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CC+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_CC="${ac_tool_prefix}cc"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4114 done
4115 done
4116 IFS=$as_save_IFS
4120 CC=$ac_cv_prog_CC
4121 if test -n "$CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 $as_echo "$CC" >&6; }
4124 else
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4132 if test -z "$CC"; then
4133 # Extract the first word of "cc", so it can be a program name with args.
4134 set dummy cc; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_prog_CC+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 ac_prog_rejected=no
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4152 ac_prog_rejected=yes
4153 continue
4155 ac_cv_prog_CC="cc"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4159 done
4160 done
4161 IFS=$as_save_IFS
4163 if test $ac_prog_rejected = yes; then
4164 # We found a bogon in the path, so make sure we never use it.
4165 set dummy $ac_cv_prog_CC
4166 shift
4167 if test $# != 0; then
4168 # We chose a different compiler from the bogus one.
4169 # However, it has the same basename, so the bogon will be chosen
4170 # first if we set CC to just the basename; use the full file name.
4171 shift
4172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4177 CC=$ac_cv_prog_CC
4178 if test -n "$CC"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180 $as_echo "$CC" >&6; }
4181 else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4188 if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 for ac_prog in cl.exe
4192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_prog_CC+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4213 done
4214 done
4215 IFS=$as_save_IFS
4219 CC=$ac_cv_prog_CC
4220 if test -n "$CC"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222 $as_echo "$CC" >&6; }
4223 else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4229 test -n "$CC" && break
4230 done
4232 if test -z "$CC"; then
4233 ac_ct_CC=$CC
4234 for ac_prog in cl.exe
4236 # Extract the first word of "$ac_prog", so it can be a program name with args.
4237 set dummy $ac_prog; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$ac_ct_CC"; then
4244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_ac_ct_CC="$ac_prog"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4257 done
4258 done
4259 IFS=$as_save_IFS
4263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4264 if test -n "$ac_ct_CC"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4266 $as_echo "$ac_ct_CC" >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4273 test -n "$ac_ct_CC" && break
4274 done
4276 if test "x$ac_ct_CC" = x; then
4277 CC=""
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280 yes:)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285 CC=$ac_ct_CC
4292 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error $? "no acceptable C compiler found in \$PATH
4295 See \`config.log' for more details" "$LINENO" 5; }
4297 # Provide some information about the compiler.
4298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4299 set X $ac_compile
4300 ac_compiler=$2
4301 for ac_option in --version -v -V -qversion; do
4302 { { ac_try="$ac_compiler $ac_option >&5"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4310 ac_status=$?
4311 if test -s conftest.err; then
4312 sed '10a\
4313 ... rest of stderr output deleted ...
4314 10q' conftest.err >conftest.er1
4315 cat conftest.er1 >&5
4317 rm -f conftest.er1 conftest.err
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320 done
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4324 if ${ac_cv_c_compiler_gnu+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4331 main ()
4333 #ifndef __GNUC__
4334 choke me
4335 #endif
4338 return 0;
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 ac_compiler_gnu=yes
4343 else
4344 ac_compiler_gnu=no
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4352 if test $ac_compiler_gnu = yes; then
4353 GCC=yes
4354 else
4355 GCC=
4357 ac_test_CFLAGS=${CFLAGS+set}
4358 ac_save_CFLAGS=$CFLAGS
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4361 if ${ac_cv_prog_cc_g+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 ac_save_c_werror_flag=$ac_c_werror_flag
4365 ac_c_werror_flag=yes
4366 ac_cv_prog_cc_g=no
4367 CFLAGS="-g"
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4372 main ()
4376 return 0;
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_prog_cc_g=yes
4381 else
4382 CFLAGS=""
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4387 main ()
4391 return 0;
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4396 else
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4398 CFLAGS="-g"
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_cv_prog_cc_g=yes
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4421 $as_echo "$ac_cv_prog_cc_g" >&6; }
4422 if test "$ac_test_CFLAGS" = set; then
4423 CFLAGS=$ac_save_CFLAGS
4424 elif test $ac_cv_prog_cc_g = yes; then
4425 if test "$GCC" = yes; then
4426 CFLAGS="-g -O2"
4427 else
4428 CFLAGS="-g"
4430 else
4431 if test "$GCC" = yes; then
4432 CFLAGS="-O2"
4433 else
4434 CFLAGS=
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4439 if ${ac_cv_prog_cc_c89+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 ac_cv_prog_cc_c89=no
4443 ac_save_CC=$CC
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdarg.h>
4447 #include <stdio.h>
4448 struct stat;
4449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4450 struct buf { int x; };
4451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4452 static char *e (p, i)
4453 char **p;
4454 int i;
4456 return p[i];
4458 static char *f (char * (*g) (char **, int), char **p, ...)
4460 char *s;
4461 va_list v;
4462 va_start (v,p);
4463 s = g (p, va_arg (v,int));
4464 va_end (v);
4465 return s;
4468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4469 function prototypes and stuff, but not '\xHH' hex character constants.
4470 These don't provoke an error unfortunately, instead are silently treated
4471 as 'x'. The following induces an error, until -std is added to get
4472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4473 array size at least. It's necessary to write '\x00'==0 to get something
4474 that's true only with -std. */
4475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4478 inside strings and character constants. */
4479 #define FOO(x) 'x'
4480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4482 int test (int i, double x);
4483 struct s1 {int (*f) (int a);};
4484 struct s2 {int (*f) (double a);};
4485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4486 int argc;
4487 char **argv;
4489 main ()
4491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4493 return 0;
4495 _ACEOF
4496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4499 CC="$ac_save_CC $ac_arg"
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_prog_cc_c89=$ac_arg
4503 rm -f core conftest.err conftest.$ac_objext
4504 test "x$ac_cv_prog_cc_c89" != "xno" && break
4505 done
4506 rm -f conftest.$ac_ext
4507 CC=$ac_save_CC
4510 # AC_CACHE_VAL
4511 case "x$ac_cv_prog_cc_c89" in
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4514 $as_echo "none needed" >&6; } ;;
4515 xno)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4517 $as_echo "unsupported" >&6; } ;;
4519 CC="$CC $ac_cv_prog_cc_c89"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4522 esac
4523 if test "x$ac_cv_prog_cc_c89" != xno; then :
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4539 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4540 if ${am_cv_prog_cc_c_o+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4551 return 0;
4553 _ACEOF
4554 # Make sure it works both with $CC and with simple cc.
4555 # Following AC_PROG_CC_C_O, we do the test twice because some
4556 # compilers refuse to overwrite an existing .o file with -o,
4557 # though they will create one.
4558 am_cv_prog_cc_c_o=yes
4559 for am_i in 1 2; do
4560 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4561 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } \
4565 && test -f conftest2.$ac_objext; then
4566 : OK
4567 else
4568 am_cv_prog_cc_c_o=no
4569 break
4571 done
4572 rm -f core conftest*
4573 unset am_i
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4576 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4577 if test "$am_cv_prog_cc_c_o" != yes; then
4578 # Losing compiler, so override with the script.
4579 # FIXME: It is wrong to rewrite CC.
4580 # But if we don't then we get into trouble of one sort or another.
4581 # A longer-term fix would be to have automake use am__CC in this case,
4582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4583 CC="$am_aux_dir/compile $CC"
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 ac_ext=d
4593 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4594 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=yes
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_GDC+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$GDC"; then
4605 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 GDC=$ac_cv_prog_GDC
4625 if test -n "$GDC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4627 $as_echo "$GDC" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$ac_cv_prog_GDC"; then
4636 ac_ct_GDC=$GDC
4637 # Extract the first word of "gdc", so it can be a program name with args.
4638 set dummy gdc; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_GDC"; then
4645 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_GDC="gdc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4665 if test -n "$ac_ct_GDC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4667 $as_echo "$ac_ct_GDC" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4673 if test "x$ac_ct_GDC" = x; then
4674 GDC=""
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 GDC=$ac_ct_GDC
4684 else
4685 GDC="$ac_cv_prog_GDC"
4688 if test -z "$GDC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_GDC+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$GDC"; then
4698 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4711 done
4712 done
4713 IFS=$as_save_IFS
4717 GDC=$ac_cv_prog_GDC
4718 if test -n "$GDC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4720 $as_echo "$GDC" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4729 if test -z "$GDC"; then
4730 # Extract the first word of "gdc", so it can be a program name with args.
4731 set dummy gdc; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_GDC+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$GDC"; then
4738 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4739 else
4740 ac_prog_rejected=no
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4749 ac_prog_rejected=yes
4750 continue
4752 ac_cv_prog_GDC="gdc"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4760 if test $ac_prog_rejected = yes; then
4761 # We found a bogon in the path, so make sure we never use it.
4762 set dummy $ac_cv_prog_GDC
4763 shift
4764 if test $# != 0; then
4765 # We chose a different compiler from the bogus one.
4766 # However, it has the same basename, so the bogon will be chosen
4767 # first if we set GDC to just the basename; use the full file name.
4768 shift
4769 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4774 GDC=$ac_cv_prog_GDC
4775 if test -n "$GDC"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4777 $as_echo "$GDC" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4787 # Provide some information about the compiler.
4788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4789 set X $ac_compile
4790 ac_compiler=$2
4791 { { ac_try="$ac_compiler --version >&5"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797 $as_echo "$ac_try_echo"; } >&5
4798 (eval "$ac_compiler --version >&5") 2>conftest.err
4799 ac_status=$?
4800 if test -s conftest.err; then
4801 sed '10a\
4802 ... rest of stderr output deleted ...
4803 10q' conftest.err >conftest.er1
4804 cat conftest.er1 >&5
4806 rm -f conftest.er1 conftest.err
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4817 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4818 if ${phobos_cv_abs_srcdir+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4824 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4825 if test -d "$phobos_cv_abs_srcdir"; then :
4827 else
4828 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
4834 gdc_save_DFLAGS=$GDCFLAGS
4835 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4837 ac_ext=d
4838 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4839 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=yes
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4843 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4844 cat > conftest.$ac_ext <<_ACEOF
4845 module mod;
4848 extern(C) int main() {
4849 return 0;
4851 _ACEOF
4852 if ac_fn_d_try_compile "$LINENO"; then :
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 $as_echo "yes" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 as_fn_error $? "can't compile D sources!" "$LINENO" 5
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868 GDCFLAGS=$gdc_save_DFLAGS
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4876 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4877 # Check whether --enable-maintainer-mode was given.
4878 if test "${enable_maintainer_mode+set}" = set; then :
4879 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4880 else
4881 USE_MAINTAINER_MODE=no
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4885 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4886 if test $USE_MAINTAINER_MODE = yes; then
4887 MAINTAINER_MODE_TRUE=
4888 MAINTAINER_MODE_FALSE='#'
4889 else
4890 MAINTAINER_MODE_TRUE='#'
4891 MAINTAINER_MODE_FALSE=
4894 MAINT=$MAINTAINER_MODE_TRUE
4897 if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_RANLIB+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -n "$RANLIB"; then
4906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4919 done
4920 done
4921 IFS=$as_save_IFS
4925 RANLIB=$ac_cv_prog_RANLIB
4926 if test -n "$RANLIB"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4928 $as_echo "$RANLIB" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4936 if test -z "$ac_cv_prog_RANLIB"; then
4937 ac_ct_RANLIB=$RANLIB
4938 # Extract the first word of "ranlib", so it can be a program name with args.
4939 set dummy ranlib; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 if test -n "$ac_ct_RANLIB"; then
4946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_prog_ac_ct_RANLIB="ranlib"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4959 done
4960 done
4961 IFS=$as_save_IFS
4965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966 if test -n "$ac_ct_RANLIB"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4968 $as_echo "$ac_ct_RANLIB" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4974 if test "x$ac_ct_RANLIB" = x; then
4975 RANLIB=":"
4976 else
4977 case $cross_compiling:$ac_tool_warned in
4978 yes:)
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981 ac_tool_warned=yes ;;
4982 esac
4983 RANLIB=$ac_ct_RANLIB
4985 else
4986 RANLIB="$ac_cv_prog_RANLIB"
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4991 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4992 set x ${MAKE-make}
4993 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4994 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat >conftest.make <<\_ACEOF
4998 SHELL = /bin/sh
4999 all:
5000 @echo '@@@%%%=$(MAKE)=@@@%%%'
5001 _ACEOF
5002 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5004 *@@@%%%=?*=@@@%%%*)
5005 eval ac_cv_prog_make_${ac_make}_set=yes;;
5007 eval ac_cv_prog_make_${ac_make}_set=no;;
5008 esac
5009 rm -f conftest.make
5011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5013 $as_echo "yes" >&6; }
5014 SET_MAKE=
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 SET_MAKE="MAKE=${MAKE-make}"
5022 # This should be inherited in the recursive make, but ensure it is defined.
5023 test "$AR" || AR=ar
5026 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5030 # Enable libtool
5031 case `pwd` in
5032 *\ * | *\ *)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5034 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5035 esac
5039 macro_version='2.2.7a'
5040 macro_revision='1.3134'
5054 ltmain="$ac_aux_dir/ltmain.sh"
5056 # Backslashify metacharacters that are still active within
5057 # double-quoted strings.
5058 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5060 # Same as above, but do not quote variable references.
5061 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5063 # Sed substitution to delay expansion of an escaped shell variable in a
5064 # double_quote_subst'ed string.
5065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5067 # Sed substitution to delay expansion of an escaped single quote.
5068 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5070 # Sed substitution to avoid accidental globbing in evaled expressions
5071 no_glob_subst='s/\*/\\\*/g'
5073 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5078 $as_echo_n "checking how to print strings... " >&6; }
5079 # Test print first, because it will be a builtin if present.
5080 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5081 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5082 ECHO='print -r --'
5083 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5084 ECHO='printf %s\n'
5085 else
5086 # Use this function as a fallback that always works.
5087 func_fallback_echo ()
5089 eval 'cat <<_LTECHO_EOF
5091 _LTECHO_EOF'
5093 ECHO='func_fallback_echo'
5096 # func_echo_all arg...
5097 # Invoke $ECHO with all args, space-separated.
5098 func_echo_all ()
5100 $ECHO ""
5103 case "$ECHO" in
5104 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5105 $as_echo "printf" >&6; } ;;
5106 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5107 $as_echo "print -r" >&6; } ;;
5108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5109 $as_echo "cat" >&6; } ;;
5110 esac
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5127 if ${ac_cv_path_SED+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5131 for ac_i in 1 2 3 4 5 6 7; do
5132 ac_script="$ac_script$as_nl$ac_script"
5133 done
5134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5135 { ac_script=; unset ac_script;}
5136 if test -z "$SED"; then
5137 ac_path_SED_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in sed gsed; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_SED" || continue
5148 # Check for GNU ac_path_SED and select it if it is found.
5149 # Check for GNU $ac_path_SED
5150 case `"$ac_path_SED" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo '' >> "conftest.nl"
5162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_SED_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_SED="$ac_path_SED"
5168 ac_path_SED_max=$ac_count
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5176 $ac_path_SED_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_SED"; then
5182 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5184 else
5185 ac_cv_path_SED=$SED
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5190 $as_echo "$ac_cv_path_SED" >&6; }
5191 SED="$ac_cv_path_SED"
5192 rm -f conftest.sed
5194 test -z "$SED" && SED=sed
5195 Xsed="$SED -e 1s/^X//"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5209 if ${ac_cv_path_GREP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -z "$GREP"; then
5213 ac_path_GREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in grep ggrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5223 as_fn_executable_p "$ac_path_GREP" || continue
5224 # Check for GNU ac_path_GREP and select it if it is found.
5225 # Check for GNU $ac_path_GREP
5226 case `"$ac_path_GREP" --version 2>&1` in
5227 *GNU*)
5228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5230 ac_count=0
5231 $as_echo_n 0123456789 >"conftest.in"
5232 while :
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 $as_echo 'GREP' >> "conftest.nl"
5238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_GREP="$ac_path_GREP"
5244 ac_path_GREP_max=$ac_count
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5252 $ac_path_GREP_found && break 3
5253 done
5254 done
5255 done
5256 IFS=$as_save_IFS
5257 if test -z "$ac_cv_path_GREP"; then
5258 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260 else
5261 ac_cv_path_GREP=$GREP
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5266 $as_echo "$ac_cv_path_GREP" >&6; }
5267 GREP="$ac_cv_path_GREP"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5271 $as_echo_n "checking for egrep... " >&6; }
5272 if ${ac_cv_path_EGREP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5276 then ac_cv_path_EGREP="$GREP -E"
5277 else
5278 if test -z "$EGREP"; then
5279 ac_path_EGREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in egrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_EGREP" || continue
5290 # Check for GNU ac_path_EGREP and select it if it is found.
5291 # Check for GNU $ac_path_EGREP
5292 case `"$ac_path_EGREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'EGREP' >> "conftest.nl"
5304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_EGREP="$ac_path_EGREP"
5310 ac_path_EGREP_max=$ac_count
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5318 $ac_path_EGREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_EGREP"; then
5324 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 else
5327 ac_cv_path_EGREP=$EGREP
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5333 $as_echo "$ac_cv_path_EGREP" >&6; }
5334 EGREP="$ac_cv_path_EGREP"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5338 $as_echo_n "checking for fgrep... " >&6; }
5339 if ${ac_cv_path_FGREP+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5343 then ac_cv_path_FGREP="$GREP -F"
5344 else
5345 if test -z "$FGREP"; then
5346 ac_path_FGREP_found=false
5347 # Loop through the user's path and test for each of PROGNAME-LIST
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_prog in fgrep; do
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5356 as_fn_executable_p "$ac_path_FGREP" || continue
5357 # Check for GNU ac_path_FGREP and select it if it is found.
5358 # Check for GNU $ac_path_FGREP
5359 case `"$ac_path_FGREP" --version 2>&1` in
5360 *GNU*)
5361 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5363 ac_count=0
5364 $as_echo_n 0123456789 >"conftest.in"
5365 while :
5367 cat "conftest.in" "conftest.in" >"conftest.tmp"
5368 mv "conftest.tmp" "conftest.in"
5369 cp "conftest.in" "conftest.nl"
5370 $as_echo 'FGREP' >> "conftest.nl"
5371 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5373 as_fn_arith $ac_count + 1 && ac_count=$as_val
5374 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5375 # Best one so far, save it but keep looking for a better one
5376 ac_cv_path_FGREP="$ac_path_FGREP"
5377 ac_path_FGREP_max=$ac_count
5379 # 10*(2^10) chars as input seems more than enough
5380 test $ac_count -gt 10 && break
5381 done
5382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5383 esac
5385 $ac_path_FGREP_found && break 3
5386 done
5387 done
5388 done
5389 IFS=$as_save_IFS
5390 if test -z "$ac_cv_path_FGREP"; then
5391 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5393 else
5394 ac_cv_path_FGREP=$FGREP
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5400 $as_echo "$ac_cv_path_FGREP" >&6; }
5401 FGREP="$ac_cv_path_FGREP"
5404 test -z "$GREP" && GREP=grep
5424 # Check whether --with-gnu-ld was given.
5425 if test "${with_gnu_ld+set}" = set; then :
5426 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5427 else
5428 with_gnu_ld=no
5431 ac_prog=ld
5432 if test "$GCC" = yes; then
5433 # Check if gcc -print-prog-name=ld gives a path.
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5435 $as_echo_n "checking for ld used by $CC... " >&6; }
5436 case $host in
5437 *-*-mingw*)
5438 # gcc leaves a trailing carriage return which upsets mingw
5439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5442 esac
5443 case $ac_prog in
5444 # Accept absolute paths.
5445 [\\/]* | ?:[\\/]*)
5446 re_direlt='/[^/][^/]*/\.\./'
5447 # Canonicalize the pathname of ld
5448 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5449 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5450 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5451 done
5452 test -z "$LD" && LD="$ac_prog"
5455 # If it fails, then pretend we aren't using GCC.
5456 ac_prog=ld
5459 # If it is relative, then search for the first ld in PATH.
5460 with_gnu_ld=unknown
5462 esac
5463 elif test "$with_gnu_ld" = yes; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5465 $as_echo_n "checking for GNU ld... " >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5468 $as_echo_n "checking for non-GNU ld... " >&6; }
5470 if ${lt_cv_path_LD+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -z "$LD"; then
5474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH; do
5476 IFS="$lt_save_ifs"
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5479 lt_cv_path_LD="$ac_dir/$ac_prog"
5480 # Check to see if the program is GNU ld. I'd rather use --version,
5481 # but apparently some variants of GNU ld only accept -v.
5482 # Break only if it was the GNU/non-GNU ld that we prefer.
5483 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5484 *GNU* | *'with BFD'*)
5485 test "$with_gnu_ld" != no && break
5488 test "$with_gnu_ld" != yes && break
5490 esac
5492 done
5493 IFS="$lt_save_ifs"
5494 else
5495 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5499 LD="$lt_cv_path_LD"
5500 if test -n "$LD"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5502 $as_echo "$LD" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5507 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5509 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5510 if ${lt_cv_prog_gnu_ld+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5514 case `$LD -v 2>&1 </dev/null` in
5515 *GNU* | *'with BFD'*)
5516 lt_cv_prog_gnu_ld=yes
5519 lt_cv_prog_gnu_ld=no
5521 esac
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5524 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5525 with_gnu_ld=$lt_cv_prog_gnu_ld
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5536 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5537 if ${lt_cv_path_NM+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$NM"; then
5541 # Let the user override the test.
5542 lt_cv_path_NM="$NM"
5543 else
5544 lt_nm_to_check="${ac_tool_prefix}nm"
5545 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5546 lt_nm_to_check="$lt_nm_to_check nm"
5548 for lt_tmp_nm in $lt_nm_to_check; do
5549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5550 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5551 IFS="$lt_save_ifs"
5552 test -z "$ac_dir" && ac_dir=.
5553 tmp_nm="$ac_dir/$lt_tmp_nm"
5554 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5555 # Check to see if the nm accepts a BSD-compat flag.
5556 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5557 # nm: unknown option "B" ignored
5558 # Tru64's nm complains that /dev/null is an invalid object file
5559 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5560 */dev/null* | *'Invalid file or object type'*)
5561 lt_cv_path_NM="$tmp_nm -B"
5562 break
5565 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5566 */dev/null*)
5567 lt_cv_path_NM="$tmp_nm -p"
5568 break
5571 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5572 continue # so that we can try to find one that supports BSD flags
5574 esac
5576 esac
5578 done
5579 IFS="$lt_save_ifs"
5580 done
5581 : ${lt_cv_path_NM=no}
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5585 $as_echo "$lt_cv_path_NM" >&6; }
5586 if test "$lt_cv_path_NM" != "no"; then
5587 NM="$lt_cv_path_NM"
5588 else
5589 # Didn't find any BSD compatible name lister, look for dumpbin.
5590 if test -n "$DUMPBIN"; then :
5591 # Let the user override the test.
5592 else
5593 if test -n "$ac_tool_prefix"; then
5594 for ac_prog in dumpbin "link -dump"
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_DUMPBIN+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$DUMPBIN"; then
5604 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5619 IFS=$as_save_IFS
5623 DUMPBIN=$ac_cv_prog_DUMPBIN
5624 if test -n "$DUMPBIN"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5626 $as_echo "$DUMPBIN" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5633 test -n "$DUMPBIN" && break
5634 done
5636 if test -z "$DUMPBIN"; then
5637 ac_ct_DUMPBIN=$DUMPBIN
5638 for ac_prog in dumpbin "link -dump"
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641 set dummy $ac_prog; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$ac_ct_DUMPBIN"; then
5648 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5661 done
5662 done
5663 IFS=$as_save_IFS
5667 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5668 if test -n "$ac_ct_DUMPBIN"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5670 $as_echo "$ac_ct_DUMPBIN" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5677 test -n "$ac_ct_DUMPBIN" && break
5678 done
5680 if test "x$ac_ct_DUMPBIN" = x; then
5681 DUMPBIN=":"
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689 DUMPBIN=$ac_ct_DUMPBIN
5693 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5694 *COFF*)
5695 DUMPBIN="$DUMPBIN -symbols"
5698 DUMPBIN=:
5700 esac
5703 if test "$DUMPBIN" != ":"; then
5704 NM="$DUMPBIN"
5707 test -z "$NM" && NM=nm
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5715 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5716 if ${lt_cv_nm_interface+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 lt_cv_nm_interface="BSD nm"
5720 echo "int some_variable = 0;" > conftest.$ac_ext
5721 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5722 (eval "$ac_compile" 2>conftest.err)
5723 cat conftest.err >&5
5724 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5725 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5726 cat conftest.err >&5
5727 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5728 cat conftest.out >&5
5729 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5730 lt_cv_nm_interface="MS dumpbin"
5732 rm -f conftest*
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5735 $as_echo "$lt_cv_nm_interface" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5738 $as_echo_n "checking whether ln -s works... " >&6; }
5739 LN_S=$as_ln_s
5740 if test "$LN_S" = "ln -s"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5745 $as_echo "no, using $LN_S" >&6; }
5748 # find the maximum length of command line arguments
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5750 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5751 if ${lt_cv_sys_max_cmd_len+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5755 teststring="ABCD"
5757 case $build_os in
5758 msdosdjgpp*)
5759 # On DJGPP, this test can blow up pretty badly due to problems in libc
5760 # (any single argument exceeding 2000 bytes causes a buffer overrun
5761 # during glob expansion). Even if it were fixed, the result of this
5762 # check would be larger than it should be.
5763 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5766 gnu*)
5767 # Under GNU Hurd, this test is not required because there is
5768 # no limit to the length of command line arguments.
5769 # Libtool will interpret -1 as no limit whatsoever
5770 lt_cv_sys_max_cmd_len=-1;
5773 cygwin* | mingw* | cegcc*)
5774 # On Win9x/ME, this test blows up -- it succeeds, but takes
5775 # about 5 minutes as the teststring grows exponentially.
5776 # Worse, since 9x/ME are not pre-emptively multitasking,
5777 # you end up with a "frozen" computer, even though with patience
5778 # the test eventually succeeds (with a max line length of 256k).
5779 # Instead, let's just punt: use the minimum linelength reported by
5780 # all of the supported platforms: 8192 (on NT/2K/XP).
5781 lt_cv_sys_max_cmd_len=8192;
5784 mint*)
5785 # On MiNT this can take a long time and run out of memory.
5786 lt_cv_sys_max_cmd_len=8192;
5789 amigaos*)
5790 # On AmigaOS with pdksh, this test takes hours, literally.
5791 # So we just punt and use a minimum line length of 8192.
5792 lt_cv_sys_max_cmd_len=8192;
5795 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5796 # This has been around since 386BSD, at least. Likely further.
5797 if test -x /sbin/sysctl; then
5798 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5799 elif test -x /usr/sbin/sysctl; then
5800 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5801 else
5802 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5804 # And add a safety zone
5805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5809 interix*)
5810 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5811 lt_cv_sys_max_cmd_len=196608
5814 osf*)
5815 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5816 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5817 # nice to cause kernel panics so lets avoid the loop below.
5818 # First set a reasonable default.
5819 lt_cv_sys_max_cmd_len=16384
5821 if test -x /sbin/sysconfig; then
5822 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5823 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5824 esac
5827 sco3.2v5*)
5828 lt_cv_sys_max_cmd_len=102400
5830 sysv5* | sco5v6* | sysv4.2uw2*)
5831 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5832 if test -n "$kargmax"; then
5833 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5834 else
5835 lt_cv_sys_max_cmd_len=32768
5839 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5840 if test -n "$lt_cv_sys_max_cmd_len"; then
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5843 else
5844 # Make teststring a little bigger before we do anything with it.
5845 # a 1K string should be a reasonable start.
5846 for i in 1 2 3 4 5 6 7 8 ; do
5847 teststring=$teststring$teststring
5848 done
5849 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5850 # If test is not a shell built-in, we'll probably end up computing a
5851 # maximum length that is only half of the actual maximum length, but
5852 # we can't tell.
5853 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5854 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5855 test $i != 17 # 1/2 MB should be enough
5857 i=`expr $i + 1`
5858 teststring=$teststring$teststring
5859 done
5860 # Only check the string length outside the loop.
5861 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5862 teststring=
5863 # Add a significant safety factor because C++ compilers can tack on
5864 # massive amounts of additional arguments before passing them to the
5865 # linker. It appears as though 1/2 is a usable value.
5866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5869 esac
5873 if test -n $lt_cv_sys_max_cmd_len ; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5875 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5878 $as_echo "none" >&6; }
5880 max_cmd_len=$lt_cv_sys_max_cmd_len
5887 : ${CP="cp -f"}
5888 : ${MV="mv -f"}
5889 : ${RM="rm -f"}
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5892 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5893 # Try some XSI features
5894 xsi_shell=no
5895 ( _lt_dummy="a/b/c"
5896 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5897 = c,a/b,, \
5898 && eval 'test $(( 1 + 1 )) -eq 2 \
5899 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5900 && xsi_shell=yes
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5902 $as_echo "$xsi_shell" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5906 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5907 lt_shell_append=no
5908 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5909 >/dev/null 2>&1 \
5910 && lt_shell_append=yes
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5912 $as_echo "$lt_shell_append" >&6; }
5915 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5916 lt_unset=unset
5917 else
5918 lt_unset=false
5925 # test EBCDIC or ASCII
5926 case `echo X|tr X '\101'` in
5927 A) # ASCII based system
5928 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5929 lt_SP2NL='tr \040 \012'
5930 lt_NL2SP='tr \015\012 \040\040'
5932 *) # EBCDIC based system
5933 lt_SP2NL='tr \100 \n'
5934 lt_NL2SP='tr \r\n \100\100'
5936 esac
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5947 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5948 if ${lt_cv_ld_reload_flag+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 lt_cv_ld_reload_flag='-r'
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5954 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5955 reload_flag=$lt_cv_ld_reload_flag
5956 case $reload_flag in
5957 "" | " "*) ;;
5958 *) reload_flag=" $reload_flag" ;;
5959 esac
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 case $host_os in
5962 darwin*)
5963 if test "$GCC" = yes; then
5964 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5965 else
5966 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5969 esac
5979 if test -n "$ac_tool_prefix"; then
5980 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_prog_OBJDUMP+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 if test -n "$OBJDUMP"; then
5988 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6001 done
6002 done
6003 IFS=$as_save_IFS
6007 OBJDUMP=$ac_cv_prog_OBJDUMP
6008 if test -n "$OBJDUMP"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6010 $as_echo "$OBJDUMP" >&6; }
6011 else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 $as_echo "no" >&6; }
6018 if test -z "$ac_cv_prog_OBJDUMP"; then
6019 ac_ct_OBJDUMP=$OBJDUMP
6020 # Extract the first word of "objdump", so it can be a program name with args.
6021 set dummy objdump; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$ac_ct_OBJDUMP"; then
6028 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6041 done
6042 done
6043 IFS=$as_save_IFS
6047 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6048 if test -n "$ac_ct_OBJDUMP"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6050 $as_echo "$ac_ct_OBJDUMP" >&6; }
6051 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6056 if test "x$ac_ct_OBJDUMP" = x; then
6057 OBJDUMP="false"
6058 else
6059 case $cross_compiling:$ac_tool_warned in
6060 yes:)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063 ac_tool_warned=yes ;;
6064 esac
6065 OBJDUMP=$ac_ct_OBJDUMP
6067 else
6068 OBJDUMP="$ac_cv_prog_OBJDUMP"
6071 test -z "$OBJDUMP" && OBJDUMP=objdump
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6082 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6083 if ${lt_cv_deplibs_check_method+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 lt_cv_file_magic_cmd='$MAGIC_CMD'
6087 lt_cv_file_magic_test_file=
6088 lt_cv_deplibs_check_method='unknown'
6089 # Need to set the preceding variable on all platforms that support
6090 # interlibrary dependencies.
6091 # 'none' -- dependencies not supported.
6092 # `unknown' -- same as none, but documents that we really don't know.
6093 # 'pass_all' -- all dependencies passed with no checks.
6094 # 'test_compile' -- check by making test program.
6095 # 'file_magic [[regex]]' -- check by looking for files in library path
6096 # which responds to the $file_magic_cmd with a given extended regex.
6097 # If you have `file' or equivalent on your system and you're not sure
6098 # whether `pass_all' will *always* work, you probably want this one.
6100 case $host_os in
6101 aix[4-9]*)
6102 lt_cv_deplibs_check_method=pass_all
6105 beos*)
6106 lt_cv_deplibs_check_method=pass_all
6109 bsdi[45]*)
6110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6111 lt_cv_file_magic_cmd='/usr/bin/file -L'
6112 lt_cv_file_magic_test_file=/shlib/libc.so
6115 cygwin*)
6116 # func_win32_libid is a shell function defined in ltmain.sh
6117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118 lt_cv_file_magic_cmd='func_win32_libid'
6121 mingw* | pw32*)
6122 # Base MSYS/MinGW do not provide the 'file' command needed by
6123 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6124 # unless we find 'file', for example because we are cross-compiling.
6125 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6126 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6128 lt_cv_file_magic_cmd='func_win32_libid'
6129 else
6130 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6131 lt_cv_file_magic_cmd='$OBJDUMP -f'
6135 cegcc*)
6136 # use the weaker test based on 'objdump'. See mingw*.
6137 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6138 lt_cv_file_magic_cmd='$OBJDUMP -f'
6141 darwin* | rhapsody*)
6142 lt_cv_deplibs_check_method=pass_all
6145 freebsd* | dragonfly*)
6146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6147 case $host_cpu in
6148 i*86 )
6149 # Not sure whether the presence of OpenBSD here was a mistake.
6150 # Let's accept both of them until this is cleared up.
6151 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6152 lt_cv_file_magic_cmd=/usr/bin/file
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6155 esac
6156 else
6157 lt_cv_deplibs_check_method=pass_all
6161 gnu*)
6162 lt_cv_deplibs_check_method=pass_all
6165 haiku*)
6166 lt_cv_deplibs_check_method=pass_all
6169 hpux10.20* | hpux11*)
6170 lt_cv_file_magic_cmd=/usr/bin/file
6171 case $host_cpu in
6172 ia64*)
6173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6176 hppa*64*)
6177 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]'
6178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6182 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6184 esac
6187 interix[3-9]*)
6188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6192 irix5* | irix6* | nonstopux*)
6193 case $LD in
6194 *-32|*"-32 ") libmagic=32-bit;;
6195 *-n32|*"-n32 ") libmagic=N32;;
6196 *-64|*"-64 ") libmagic=64-bit;;
6197 *) libmagic=never-match;;
6198 esac
6199 lt_cv_deplibs_check_method=pass_all
6202 # This must be Linux ELF.
6203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6204 lt_cv_deplibs_check_method=pass_all
6207 netbsd*)
6208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6210 else
6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6215 newos6*)
6216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6217 lt_cv_file_magic_cmd=/usr/bin/file
6218 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6221 *nto* | *qnx*)
6222 lt_cv_deplibs_check_method=pass_all
6225 openbsd*)
6226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6228 else
6229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6233 osf3* | osf4* | osf5*)
6234 lt_cv_deplibs_check_method=pass_all
6237 rdos*)
6238 lt_cv_deplibs_check_method=pass_all
6241 solaris*)
6242 lt_cv_deplibs_check_method=pass_all
6245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6246 lt_cv_deplibs_check_method=pass_all
6249 sysv4 | sysv4.3*)
6250 case $host_vendor in
6251 motorola)
6252 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]'
6253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6255 ncr)
6256 lt_cv_deplibs_check_method=pass_all
6258 sequent)
6259 lt_cv_file_magic_cmd='/bin/file'
6260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6262 sni)
6263 lt_cv_file_magic_cmd='/bin/file'
6264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6265 lt_cv_file_magic_test_file=/lib/libc.so
6267 siemens)
6268 lt_cv_deplibs_check_method=pass_all
6271 lt_cv_deplibs_check_method=pass_all
6273 esac
6276 tpf*)
6277 lt_cv_deplibs_check_method=pass_all
6279 esac
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6283 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6284 file_magic_cmd=$lt_cv_file_magic_cmd
6285 deplibs_check_method=$lt_cv_deplibs_check_method
6286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}ar; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_AR+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$AR"; then
6308 ac_cv_prog_AR="$AR" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_AR="${ac_tool_prefix}ar"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6321 done
6322 done
6323 IFS=$as_save_IFS
6327 AR=$ac_cv_prog_AR
6328 if test -n "$AR"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6330 $as_echo "$AR" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_AR"; then
6339 ac_ct_AR=$AR
6340 # Extract the first word of "ar", so it can be a program name with args.
6341 set dummy ar; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_AR"; then
6348 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_AR="ar"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6363 IFS=$as_save_IFS
6367 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6368 if test -n "$ac_ct_AR"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6370 $as_echo "$ac_ct_AR" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_AR" = x; then
6377 AR="false"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 AR=$ac_ct_AR
6387 else
6388 AR="$ac_cv_prog_AR"
6391 test -z "$AR" && AR=ar
6392 test -z "$AR_FLAGS" && AR_FLAGS=cru
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}strip; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_STRIP+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$STRIP"; then
6413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6426 done
6427 done
6428 IFS=$as_save_IFS
6432 STRIP=$ac_cv_prog_STRIP
6433 if test -n "$STRIP"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6435 $as_echo "$STRIP" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6443 if test -z "$ac_cv_prog_STRIP"; then
6444 ac_ct_STRIP=$STRIP
6445 # Extract the first word of "strip", so it can be a program name with args.
6446 set dummy strip; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$ac_ct_STRIP"; then
6453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_STRIP="strip"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6473 if test -n "$ac_ct_STRIP"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6475 $as_echo "$ac_ct_STRIP" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6481 if test "x$ac_ct_STRIP" = x; then
6482 STRIP=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 STRIP=$ac_ct_STRIP
6492 else
6493 STRIP="$ac_cv_prog_STRIP"
6496 test -z "$STRIP" && STRIP=:
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_RANLIB+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -n "$RANLIB"; then
6512 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6531 RANLIB=$ac_cv_prog_RANLIB
6532 if test -n "$RANLIB"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6534 $as_echo "$RANLIB" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6542 if test -z "$ac_cv_prog_RANLIB"; then
6543 ac_ct_RANLIB=$RANLIB
6544 # Extract the first word of "ranlib", so it can be a program name with args.
6545 set dummy ranlib; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$ac_ct_RANLIB"; then
6552 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_RANLIB="ranlib"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6572 if test -n "$ac_ct_RANLIB"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6574 $as_echo "$ac_ct_RANLIB" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6580 if test "x$ac_ct_RANLIB" = x; then
6581 RANLIB=":"
6582 else
6583 case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589 RANLIB=$ac_ct_RANLIB
6591 else
6592 RANLIB="$ac_cv_prog_RANLIB"
6595 test -z "$RANLIB" && RANLIB=:
6602 # Determine commands to create old-style static archives.
6603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6604 old_postinstall_cmds='chmod 644 $oldlib'
6605 old_postuninstall_cmds=
6607 if test -n "$RANLIB"; then
6608 case $host_os in
6609 openbsd*)
6610 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6613 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6615 esac
6616 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6619 case $host_os in
6620 darwin*)
6621 lock_old_archive_extraction=yes ;;
6623 lock_old_archive_extraction=no ;;
6624 esac
6664 # If no C compiler was specified, use CC.
6665 LTCC=${LTCC-"$CC"}
6667 # If no C compiler flags were specified, use CFLAGS.
6668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6670 # Allow CC to be a program name with arguments.
6671 compiler=$CC
6674 # Check for command to grab the raw symbol name followed by C symbol from nm.
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6676 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6677 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6681 # These are sane defaults that work on at least a few old systems.
6682 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6684 # Character class describing NM global symbol codes.
6685 symcode='[BCDEGRST]'
6687 # Regexp to match symbols that can be accessed directly from C.
6688 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6690 # Define system-specific variables.
6691 case $host_os in
6692 aix*)
6693 symcode='[BCDT]'
6695 cygwin* | mingw* | pw32* | cegcc*)
6696 symcode='[ABCDGISTW]'
6698 hpux*)
6699 if test "$host_cpu" = ia64; then
6700 symcode='[ABCDEGRST]'
6703 irix* | nonstopux*)
6704 symcode='[BCDEGRST]'
6706 osf*)
6707 symcode='[BCDEGQRST]'
6709 solaris*)
6710 symcode='[BDRT]'
6712 sco3.2v5*)
6713 symcode='[DT]'
6715 sysv4.2uw2*)
6716 symcode='[DT]'
6718 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6719 symcode='[ABDT]'
6721 sysv4)
6722 symcode='[DFNSTU]'
6724 esac
6726 # If we're using GNU nm, then use its standard symbol codes.
6727 case `$NM -V 2>&1` in
6728 *GNU* | *'with BFD'*)
6729 symcode='[ABCDGIRSTW]' ;;
6730 esac
6732 # Transform an extracted symbol line into a proper C declaration.
6733 # Some systems (esp. on ia64) link data and code symbols differently,
6734 # so use this general approach.
6735 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6737 # Transform an extracted symbol line into symbol name and symbol address
6738 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6739 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'"
6741 # Handle CRLF in mingw tool chain
6742 opt_cr=
6743 case $build_os in
6744 mingw*)
6745 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6747 esac
6749 # Try without a prefix underscore, then with it.
6750 for ac_symprfx in "" "_"; do
6752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6753 symxfrm="\\1 $ac_symprfx\\2 \\2"
6755 # Write the raw and C identifiers.
6756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6757 # Fake it for dumpbin and say T for any non-static function
6758 # and D for any global variable.
6759 # Also find C++ and __fastcall symbols from MSVC++,
6760 # which start with @ or ?.
6761 lt_cv_sys_global_symbol_pipe="$AWK '"\
6762 " {last_section=section; section=\$ 3};"\
6763 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6764 " \$ 0!~/External *\|/{next};"\
6765 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6766 " {if(hide[section]) next};"\
6767 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6768 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6769 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6770 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6771 " ' prfx=^$ac_symprfx"
6772 else
6773 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6776 # Check to see that the pipe works correctly.
6777 pipe_works=no
6779 rm -f conftest*
6780 cat > conftest.$ac_ext <<_LT_EOF
6781 #ifdef __cplusplus
6782 extern "C" {
6783 #endif
6784 char nm_test_var;
6785 void nm_test_func(void);
6786 void nm_test_func(void){}
6787 #ifdef __cplusplus
6789 #endif
6790 int main(){nm_test_var='a';nm_test_func();return(0);}
6791 _LT_EOF
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794 (eval $ac_compile) 2>&5
6795 ac_status=$?
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }; then
6798 # Now try to grab the symbols.
6799 nlist=conftest.nm
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6801 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s "$nlist"; then
6805 # Try sorting and uniquifying the output.
6806 if sort "$nlist" | uniq > "$nlist"T; then
6807 mv -f "$nlist"T "$nlist"
6808 else
6809 rm -f "$nlist"T
6812 # Make sure that we snagged all the symbols we need.
6813 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6814 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6815 cat <<_LT_EOF > conftest.$ac_ext
6816 #ifdef __cplusplus
6817 extern "C" {
6818 #endif
6820 _LT_EOF
6821 # Now generate the symbol file.
6822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6824 cat <<_LT_EOF >> conftest.$ac_ext
6826 /* The mapping between symbol names and symbols. */
6827 const struct {
6828 const char *name;
6829 void *address;
6831 lt__PROGRAM__LTX_preloaded_symbols[] =
6833 { "@PROGRAM@", (void *) 0 },
6834 _LT_EOF
6835 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6836 cat <<\_LT_EOF >> conftest.$ac_ext
6837 {0, (void *) 0}
6840 /* This works around a problem in FreeBSD linker */
6841 #ifdef FREEBSD_WORKAROUND
6842 static const void *lt_preloaded_setup() {
6843 return lt__PROGRAM__LTX_preloaded_symbols;
6845 #endif
6847 #ifdef __cplusplus
6849 #endif
6850 _LT_EOF
6851 # Now try linking the two files.
6852 mv conftest.$ac_objext conftstm.$ac_objext
6853 lt_save_LIBS="$LIBS"
6854 lt_save_CFLAGS="$CFLAGS"
6855 LIBS="conftstm.$ac_objext"
6856 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6858 (eval $ac_link) 2>&5
6859 ac_status=$?
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6862 pipe_works=yes
6864 LIBS="$lt_save_LIBS"
6865 CFLAGS="$lt_save_CFLAGS"
6866 else
6867 echo "cannot find nm_test_func in $nlist" >&5
6869 else
6870 echo "cannot find nm_test_var in $nlist" >&5
6872 else
6873 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6875 else
6876 echo "$progname: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 rm -rf conftest* conftst*
6881 # Do not use the global_symbol_pipe unless it works.
6882 if test "$pipe_works" = yes; then
6883 break
6884 else
6885 lt_cv_sys_global_symbol_pipe=
6887 done
6891 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6892 lt_cv_sys_global_symbol_to_cdecl=
6894 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6896 $as_echo "failed" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6899 $as_echo "ok" >&6; }
6924 # Check whether --enable-libtool-lock was given.
6925 if test "${enable_libtool_lock+set}" = set; then :
6926 enableval=$enable_libtool_lock;
6929 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6931 # Some flags need to be propagated to the compiler or linker for good
6932 # libtool support.
6933 case $host in
6934 ia64-*-hpux*)
6935 # Find out which ABI we are using.
6936 echo 'int i;' > conftest.$ac_ext
6937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938 (eval $ac_compile) 2>&5
6939 ac_status=$?
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 case `/usr/bin/file conftest.$ac_objext` in
6943 *ELF-32*)
6944 HPUX_IA64_MODE="32"
6946 *ELF-64*)
6947 HPUX_IA64_MODE="64"
6949 esac
6951 rm -rf conftest*
6953 *-*-irix6*)
6954 # Find out which ABI we are using.
6955 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957 (eval $ac_compile) 2>&5
6958 ac_status=$?
6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960 test $ac_status = 0; }; then
6961 if test "$lt_cv_prog_gnu_ld" = yes; then
6962 case `/usr/bin/file conftest.$ac_objext` in
6963 *32-bit*)
6964 LD="${LD-ld} -melf32bsmip"
6966 *N32*)
6967 LD="${LD-ld} -melf32bmipn32"
6969 *64-bit*)
6970 LD="${LD-ld} -melf64bmip"
6972 esac
6973 else
6974 case `/usr/bin/file conftest.$ac_objext` in
6975 *32-bit*)
6976 LD="${LD-ld} -32"
6978 *N32*)
6979 LD="${LD-ld} -n32"
6981 *64-bit*)
6982 LD="${LD-ld} -64"
6984 esac
6987 rm -rf conftest*
6990 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6991 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6992 # Find out which ABI we are using.
6993 echo 'int i;' > conftest.$ac_ext
6994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995 (eval $ac_compile) 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 test $ac_status = 0; }; then
6999 case `/usr/bin/file conftest.o` in
7000 *32-bit*)
7001 case $host in
7002 x86_64-*kfreebsd*-gnu)
7003 LD="${LD-ld} -m elf_i386_fbsd"
7005 x86_64-*linux*)
7006 case `/usr/bin/file conftest.o` in
7007 *x86-64*)
7008 LD="${LD-ld} -m elf32_x86_64"
7011 LD="${LD-ld} -m elf_i386"
7013 esac
7015 powerpc64le-*linux*)
7016 LD="${LD-ld} -m elf32lppclinux"
7018 powerpc64-*linux*)
7019 LD="${LD-ld} -m elf32ppclinux"
7021 s390x-*linux*)
7022 LD="${LD-ld} -m elf_s390"
7024 sparc64-*linux*)
7025 LD="${LD-ld} -m elf32_sparc"
7027 esac
7029 *64-bit*)
7030 case $host in
7031 x86_64-*kfreebsd*-gnu)
7032 LD="${LD-ld} -m elf_x86_64_fbsd"
7034 x86_64-*linux*)
7035 LD="${LD-ld} -m elf_x86_64"
7037 powerpcle-*linux*)
7038 LD="${LD-ld} -m elf64lppc"
7040 powerpc-*linux*)
7041 LD="${LD-ld} -m elf64ppc"
7043 s390*-*linux*|s390*-*tpf*)
7044 LD="${LD-ld} -m elf64_s390"
7046 sparc*-*linux*)
7047 LD="${LD-ld} -m elf64_sparc"
7049 esac
7051 esac
7053 rm -rf conftest*
7056 *-*-sco3.2v5*)
7057 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7058 SAVE_CFLAGS="$CFLAGS"
7059 CFLAGS="$CFLAGS -belf"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7061 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7062 if ${lt_cv_cc_needs_belf+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 ac_ext=c
7066 ac_cpp='$CPP $CPPFLAGS'
7067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7075 main ()
7079 return 0;
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 lt_cv_cc_needs_belf=yes
7084 else
7085 lt_cv_cc_needs_belf=no
7087 rm -f core conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 ac_ext=c
7090 ac_cpp='$CPP $CPPFLAGS'
7091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7097 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7098 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7099 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7100 CFLAGS="$SAVE_CFLAGS"
7103 sparc*-*solaris*)
7104 # Find out which ABI we are using.
7105 echo 'int i;' > conftest.$ac_ext
7106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107 (eval $ac_compile) 2>&5
7108 ac_status=$?
7109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110 test $ac_status = 0; }; then
7111 case `/usr/bin/file conftest.o` in
7112 *64-bit*)
7113 case $lt_cv_prog_gnu_ld in
7114 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7116 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7117 LD="${LD-ld} -64"
7120 esac
7122 esac
7124 rm -rf conftest*
7126 esac
7128 need_locks="$enable_libtool_lock"
7131 case $host_os in
7132 rhapsody* | darwin*)
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$DSYMUTIL"; then
7142 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7162 if test -n "$DSYMUTIL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7164 $as_echo "$DSYMUTIL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7172 if test -z "$ac_cv_prog_DSYMUTIL"; then
7173 ac_ct_DSYMUTIL=$DSYMUTIL
7174 # Extract the first word of "dsymutil", so it can be a program name with args.
7175 set dummy dsymutil; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test -n "$ac_ct_DSYMUTIL"; then
7182 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7195 done
7196 done
7197 IFS=$as_save_IFS
7201 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7202 if test -n "$ac_ct_DSYMUTIL"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7204 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7210 if test "x$ac_ct_DSYMUTIL" = x; then
7211 DSYMUTIL=":"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 DSYMUTIL=$ac_ct_DSYMUTIL
7221 else
7222 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_NMEDIT+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$NMEDIT"; then
7234 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7253 NMEDIT=$ac_cv_prog_NMEDIT
7254 if test -n "$NMEDIT"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7256 $as_echo "$NMEDIT" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7264 if test -z "$ac_cv_prog_NMEDIT"; then
7265 ac_ct_NMEDIT=$NMEDIT
7266 # Extract the first word of "nmedit", so it can be a program name with args.
7267 set dummy nmedit; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 if test -n "$ac_ct_NMEDIT"; then
7274 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7287 done
7288 done
7289 IFS=$as_save_IFS
7293 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7294 if test -n "$ac_ct_NMEDIT"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7296 $as_echo "$ac_ct_NMEDIT" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7302 if test "x$ac_ct_NMEDIT" = x; then
7303 NMEDIT=":"
7304 else
7305 case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311 NMEDIT=$ac_ct_NMEDIT
7313 else
7314 NMEDIT="$ac_cv_prog_NMEDIT"
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_LIPO+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$LIPO"; then
7326 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7345 LIPO=$ac_cv_prog_LIPO
7346 if test -n "$LIPO"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7348 $as_echo "$LIPO" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7356 if test -z "$ac_cv_prog_LIPO"; then
7357 ac_ct_LIPO=$LIPO
7358 # Extract the first word of "lipo", so it can be a program name with args.
7359 set dummy lipo; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 if test -n "$ac_ct_LIPO"; then
7366 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_ac_ct_LIPO="lipo"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7379 done
7380 done
7381 IFS=$as_save_IFS
7385 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7386 if test -n "$ac_ct_LIPO"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7388 $as_echo "$ac_ct_LIPO" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7394 if test "x$ac_ct_LIPO" = x; then
7395 LIPO=":"
7396 else
7397 case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403 LIPO=$ac_ct_LIPO
7405 else
7406 LIPO="$ac_cv_prog_LIPO"
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}otool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_OTOOL+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$OTOOL"; then
7418 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7431 done
7432 done
7433 IFS=$as_save_IFS
7437 OTOOL=$ac_cv_prog_OTOOL
7438 if test -n "$OTOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7440 $as_echo "$OTOOL" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7448 if test -z "$ac_cv_prog_OTOOL"; then
7449 ac_ct_OTOOL=$OTOOL
7450 # Extract the first word of "otool", so it can be a program name with args.
7451 set dummy otool; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$ac_ct_OTOOL"; then
7458 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_ac_ct_OTOOL="otool"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7471 done
7472 done
7473 IFS=$as_save_IFS
7477 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7478 if test -n "$ac_ct_OTOOL"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7480 $as_echo "$ac_ct_OTOOL" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7486 if test "x$ac_ct_OTOOL" = x; then
7487 OTOOL=":"
7488 else
7489 case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495 OTOOL=$ac_ct_OTOOL
7497 else
7498 OTOOL="$ac_cv_prog_OTOOL"
7501 if test -n "$ac_tool_prefix"; then
7502 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7503 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_OTOOL64+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test -n "$OTOOL64"; then
7510 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7529 OTOOL64=$ac_cv_prog_OTOOL64
7530 if test -n "$OTOOL64"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7532 $as_echo "$OTOOL64" >&6; }
7533 else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7540 if test -z "$ac_cv_prog_OTOOL64"; then
7541 ac_ct_OTOOL64=$OTOOL64
7542 # Extract the first word of "otool64", so it can be a program name with args.
7543 set dummy otool64; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test -n "$ac_ct_OTOOL64"; then
7550 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_ac_ct_OTOOL64="otool64"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7563 done
7564 done
7565 IFS=$as_save_IFS
7569 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7570 if test -n "$ac_ct_OTOOL64"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7572 $as_echo "$ac_ct_OTOOL64" >&6; }
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7578 if test "x$ac_ct_OTOOL64" = x; then
7579 OTOOL64=":"
7580 else
7581 case $cross_compiling:$ac_tool_warned in
7582 yes:)
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587 OTOOL64=$ac_ct_OTOOL64
7589 else
7590 OTOOL64="$ac_cv_prog_OTOOL64"
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7620 $as_echo_n "checking for -single_module linker flag... " >&6; }
7621 if ${lt_cv_apple_cc_single_mod+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 lt_cv_apple_cc_single_mod=no
7625 if test -z "${LT_MULTI_MODULE}"; then
7626 # By default we will add the -single_module flag. You can override
7627 # by either setting the environment variable LT_MULTI_MODULE
7628 # non-empty at configure time, or by adding -multi_module to the
7629 # link flags.
7630 rm -rf libconftest.dylib*
7631 echo "int foo(void){return 1;}" > conftest.c
7632 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7633 -dynamiclib -Wl,-single_module conftest.c" >&5
7634 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7635 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7636 _lt_result=$?
7637 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7638 lt_cv_apple_cc_single_mod=yes
7639 else
7640 cat conftest.err >&5
7642 rm -rf libconftest.dylib*
7643 rm -f conftest.*
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7647 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7649 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7650 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 lt_cv_ld_exported_symbols_list=no
7654 save_LDFLAGS=$LDFLAGS
7655 echo "_main" > conftest.sym
7656 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7661 main ()
7665 return 0;
7667 _ACEOF
7668 if ac_fn_c_try_link "$LINENO"; then :
7669 lt_cv_ld_exported_symbols_list=yes
7670 else
7671 lt_cv_ld_exported_symbols_list=no
7673 rm -f core conftest.err conftest.$ac_objext \
7674 conftest$ac_exeext conftest.$ac_ext
7675 LDFLAGS="$save_LDFLAGS"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7679 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7681 $as_echo_n "checking for -force_load linker flag... " >&6; }
7682 if ${lt_cv_ld_force_load+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 lt_cv_ld_force_load=no
7686 cat > conftest.c << _LT_EOF
7687 int forced_loaded() { return 2;}
7688 _LT_EOF
7689 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7690 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7691 echo "$AR cru libconftest.a conftest.o" >&5
7692 $AR cru libconftest.a conftest.o 2>&5
7693 cat > conftest.c << _LT_EOF
7694 int main() { return 0;}
7695 _LT_EOF
7696 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7697 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7698 _lt_result=$?
7699 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7700 lt_cv_ld_force_load=yes
7701 else
7702 cat conftest.err >&5
7704 rm -f conftest.err libconftest.a conftest conftest.c
7705 rm -rf conftest.dSYM
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7709 $as_echo "$lt_cv_ld_force_load" >&6; }
7710 case $host_os in
7711 rhapsody* | darwin1.[012])
7712 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7713 darwin1.*)
7714 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7715 darwin*) # darwin 5.x on
7716 # if running on 10.5 or later, the deployment target defaults
7717 # to the OS version, if on x86, and 10.4, the deployment
7718 # target defaults to 10.4. Don't you love it?
7719 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7720 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7721 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7722 10.[012][,.]*)
7723 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724 10.*)
7725 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7726 esac
7728 esac
7729 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7730 _lt_dar_single_mod='$single_module'
7732 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7733 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7734 else
7735 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7737 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7738 _lt_dsymutil='~$DSYMUTIL $lib || :'
7739 else
7740 _lt_dsymutil=
7743 esac
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7751 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7752 # On Suns, sometimes $CPP names a directory.
7753 if test -n "$CPP" && test -d "$CPP"; then
7754 CPP=
7756 if test -z "$CPP"; then
7757 if ${ac_cv_prog_CPP+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 # Double quotes because CPP needs to be expanded
7761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7763 ac_preproc_ok=false
7764 for ac_c_preproc_warn_flag in '' yes
7766 # Use a header file that comes with gcc, so configuring glibc
7767 # with a fresh cross-compiler works.
7768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7769 # <limits.h> exists even on freestanding compilers.
7770 # On the NeXT, cc -E runs the code through the compiler's parser,
7771 # not just through cpp. "Syntax error" is here to catch this case.
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #ifdef __STDC__
7775 # include <limits.h>
7776 #else
7777 # include <assert.h>
7778 #endif
7779 Syntax error
7780 _ACEOF
7781 if ac_fn_c_try_cpp "$LINENO"; then :
7783 else
7784 # Broken: fails on valid input.
7785 continue
7787 rm -f conftest.err conftest.i conftest.$ac_ext
7789 # OK, works on sane cases. Now check whether nonexistent headers
7790 # can be detected and how.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 #include <ac_nonexistent.h>
7794 _ACEOF
7795 if ac_fn_c_try_cpp "$LINENO"; then :
7796 # Broken: success on invalid input.
7797 continue
7798 else
7799 # Passes both tests.
7800 ac_preproc_ok=:
7801 break
7803 rm -f conftest.err conftest.i conftest.$ac_ext
7805 done
7806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7807 rm -f conftest.i conftest.err conftest.$ac_ext
7808 if $ac_preproc_ok; then :
7809 break
7812 done
7813 ac_cv_prog_CPP=$CPP
7816 CPP=$ac_cv_prog_CPP
7817 else
7818 ac_cv_prog_CPP=$CPP
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7821 $as_echo "$CPP" >&6; }
7822 ac_preproc_ok=false
7823 for ac_c_preproc_warn_flag in '' yes
7825 # Use a header file that comes with gcc, so configuring glibc
7826 # with a fresh cross-compiler works.
7827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7828 # <limits.h> exists even on freestanding compilers.
7829 # On the NeXT, cc -E runs the code through the compiler's parser,
7830 # not just through cpp. "Syntax error" is here to catch this case.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #ifdef __STDC__
7834 # include <limits.h>
7835 #else
7836 # include <assert.h>
7837 #endif
7838 Syntax error
7839 _ACEOF
7840 if ac_fn_c_try_cpp "$LINENO"; then :
7842 else
7843 # Broken: fails on valid input.
7844 continue
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7848 # OK, works on sane cases. Now check whether nonexistent headers
7849 # can be detected and how.
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 #include <ac_nonexistent.h>
7853 _ACEOF
7854 if ac_fn_c_try_cpp "$LINENO"; then :
7855 # Broken: success on invalid input.
7856 continue
7857 else
7858 # Passes both tests.
7859 ac_preproc_ok=:
7860 break
7862 rm -f conftest.err conftest.i conftest.$ac_ext
7864 done
7865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7866 rm -f conftest.i conftest.err conftest.$ac_ext
7867 if $ac_preproc_ok; then :
7869 else
7870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7872 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7873 See \`config.log' for more details" "$LINENO" 5; }
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7884 $as_echo_n "checking for ANSI C header files... " >&6; }
7885 if ${ac_cv_header_stdc+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #include <stdlib.h>
7891 #include <stdarg.h>
7892 #include <string.h>
7893 #include <float.h>
7896 main ()
7900 return 0;
7902 _ACEOF
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904 ac_cv_header_stdc=yes
7905 else
7906 ac_cv_header_stdc=no
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 if test $ac_cv_header_stdc = yes; then
7911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <string.h>
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "memchr" >/dev/null 2>&1; then :
7920 else
7921 ac_cv_header_stdc=no
7923 rm -f conftest*
7927 if test $ac_cv_header_stdc = yes; then
7928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 #include <stdlib.h>
7933 _ACEOF
7934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7935 $EGREP "free" >/dev/null 2>&1; then :
7937 else
7938 ac_cv_header_stdc=no
7940 rm -f conftest*
7944 if test $ac_cv_header_stdc = yes; then
7945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7946 if test "$cross_compiling" = yes; then :
7948 else
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951 #include <ctype.h>
7952 #include <stdlib.h>
7953 #if ((' ' & 0x0FF) == 0x020)
7954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7956 #else
7957 # define ISLOWER(c) \
7958 (('a' <= (c) && (c) <= 'i') \
7959 || ('j' <= (c) && (c) <= 'r') \
7960 || ('s' <= (c) && (c) <= 'z'))
7961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7962 #endif
7964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7966 main ()
7968 int i;
7969 for (i = 0; i < 256; i++)
7970 if (XOR (islower (i), ISLOWER (i))
7971 || toupper (i) != TOUPPER (i))
7972 return 2;
7973 return 0;
7975 _ACEOF
7976 if ac_fn_c_try_run "$LINENO"; then :
7978 else
7979 ac_cv_header_stdc=no
7981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7988 $as_echo "$ac_cv_header_stdc" >&6; }
7989 if test $ac_cv_header_stdc = yes; then
7991 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7997 inttypes.h stdint.h unistd.h
7998 do :
7999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8003 cat >>confdefs.h <<_ACEOF
8004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005 _ACEOF
8009 done
8012 for ac_header in dlfcn.h
8013 do :
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8016 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DLFCN_H 1
8019 _ACEOF
8023 done
8029 # Set options
8030 enable_dlopen=yes
8035 enable_win32_dll=no
8038 # Check whether --enable-shared was given.
8039 if test "${enable_shared+set}" = set; then :
8040 enableval=$enable_shared; p=${PACKAGE-default}
8041 case $enableval in
8042 yes) enable_shared=yes ;;
8043 no) enable_shared=no ;;
8045 enable_shared=no
8046 # Look at the argument we got. We use all the common list separators.
8047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8048 for pkg in $enableval; do
8049 IFS="$lt_save_ifs"
8050 if test "X$pkg" = "X$p"; then
8051 enable_shared=yes
8053 done
8054 IFS="$lt_save_ifs"
8056 esac
8057 else
8058 enable_shared=yes
8069 # Check whether --enable-static was given.
8070 if test "${enable_static+set}" = set; then :
8071 enableval=$enable_static; p=${PACKAGE-default}
8072 case $enableval in
8073 yes) enable_static=yes ;;
8074 no) enable_static=no ;;
8076 enable_static=no
8077 # Look at the argument we got. We use all the common list separators.
8078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8079 for pkg in $enableval; do
8080 IFS="$lt_save_ifs"
8081 if test "X$pkg" = "X$p"; then
8082 enable_static=yes
8084 done
8085 IFS="$lt_save_ifs"
8087 esac
8088 else
8089 enable_static=yes
8101 # Check whether --with-pic was given.
8102 if test "${with_pic+set}" = set; then :
8103 withval=$with_pic; pic_mode="$withval"
8104 else
8105 pic_mode=default
8109 test -z "$pic_mode" && pic_mode=default
8117 # Check whether --enable-fast-install was given.
8118 if test "${enable_fast_install+set}" = set; then :
8119 enableval=$enable_fast_install; p=${PACKAGE-default}
8120 case $enableval in
8121 yes) enable_fast_install=yes ;;
8122 no) enable_fast_install=no ;;
8124 enable_fast_install=no
8125 # Look at the argument we got. We use all the common list separators.
8126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8127 for pkg in $enableval; do
8128 IFS="$lt_save_ifs"
8129 if test "X$pkg" = "X$p"; then
8130 enable_fast_install=yes
8132 done
8133 IFS="$lt_save_ifs"
8135 esac
8136 else
8137 enable_fast_install=yes
8150 # This can be used to rebuild libtool when needed
8151 LIBTOOL_DEPS="$ltmain"
8153 # Always use our own libtool.
8154 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8181 test -z "$LN_S" && LN_S="ln -s"
8196 if test -n "${ZSH_VERSION+set}" ; then
8197 setopt NO_GLOB_SUBST
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8201 $as_echo_n "checking for objdir... " >&6; }
8202 if ${lt_cv_objdir+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 rm -f .libs 2>/dev/null
8206 mkdir .libs 2>/dev/null
8207 if test -d .libs; then
8208 lt_cv_objdir=.libs
8209 else
8210 # MS-DOS does not allow filenames that begin with a dot.
8211 lt_cv_objdir=_libs
8213 rmdir .libs 2>/dev/null
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8216 $as_echo "$lt_cv_objdir" >&6; }
8217 objdir=$lt_cv_objdir
8223 cat >>confdefs.h <<_ACEOF
8224 #define LT_OBJDIR "$lt_cv_objdir/"
8225 _ACEOF
8230 case $host_os in
8231 aix3*)
8232 # AIX sometimes has problems with the GCC collect2 program. For some
8233 # reason, if we set the COLLECT_NAMES environment variable, the problems
8234 # vanish in a puff of smoke.
8235 if test "X${COLLECT_NAMES+set}" != Xset; then
8236 COLLECT_NAMES=
8237 export COLLECT_NAMES
8240 esac
8242 # Global variables:
8243 ofile=libtool
8244 can_build_shared=yes
8246 # All known linkers require a `.a' archive for static linking (except MSVC,
8247 # which needs '.lib').
8248 libext=a
8250 with_gnu_ld="$lt_cv_prog_gnu_ld"
8252 old_CC="$CC"
8253 old_CFLAGS="$CFLAGS"
8255 # Set sane defaults for various variables
8256 test -z "$CC" && CC=cc
8257 test -z "$LTCC" && LTCC=$CC
8258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8259 test -z "$LD" && LD=ld
8260 test -z "$ac_objext" && ac_objext=o
8262 for cc_temp in $compiler""; do
8263 case $cc_temp in
8264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8266 \-*) ;;
8267 *) break;;
8268 esac
8269 done
8270 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8273 # Only perform the check for file, if the check method requires it
8274 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8275 case $deplibs_check_method in
8276 file_magic*)
8277 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8279 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8280 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 case $MAGIC_CMD in
8284 [\\/*] | ?:[\\/]*)
8285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288 lt_save_MAGIC_CMD="$MAGIC_CMD"
8289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8291 for ac_dir in $ac_dummy; do
8292 IFS="$lt_save_ifs"
8293 test -z "$ac_dir" && ac_dir=.
8294 if test -f $ac_dir/${ac_tool_prefix}file; then
8295 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8296 if test -n "$file_magic_test_file"; then
8297 case $deplibs_check_method in
8298 "file_magic "*)
8299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8302 $EGREP "$file_magic_regex" > /dev/null; then
8304 else
8305 cat <<_LT_EOF 1>&2
8307 *** Warning: the command libtool uses to detect shared libraries,
8308 *** $file_magic_cmd, produces output that libtool cannot recognize.
8309 *** The result is that libtool may fail to recognize shared libraries
8310 *** as such. This will affect the creation of libtool libraries that
8311 *** depend on shared libraries, but programs linked with such libtool
8312 *** libraries will work regardless of this problem. Nevertheless, you
8313 *** may want to report the problem to your system manager and/or to
8314 *** bug-libtool@gnu.org
8316 _LT_EOF
8317 fi ;;
8318 esac
8320 break
8322 done
8323 IFS="$lt_save_ifs"
8324 MAGIC_CMD="$lt_save_MAGIC_CMD"
8326 esac
8329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330 if test -n "$MAGIC_CMD"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8332 $as_echo "$MAGIC_CMD" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8342 if test -z "$lt_cv_path_MAGIC_CMD"; then
8343 if test -n "$ac_tool_prefix"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8345 $as_echo_n "checking for file... " >&6; }
8346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 case $MAGIC_CMD in
8350 [\\/*] | ?:[\\/]*)
8351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8354 lt_save_MAGIC_CMD="$MAGIC_CMD"
8355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8357 for ac_dir in $ac_dummy; do
8358 IFS="$lt_save_ifs"
8359 test -z "$ac_dir" && ac_dir=.
8360 if test -f $ac_dir/file; then
8361 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8362 if test -n "$file_magic_test_file"; then
8363 case $deplibs_check_method in
8364 "file_magic "*)
8365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8368 $EGREP "$file_magic_regex" > /dev/null; then
8370 else
8371 cat <<_LT_EOF 1>&2
8373 *** Warning: the command libtool uses to detect shared libraries,
8374 *** $file_magic_cmd, produces output that libtool cannot recognize.
8375 *** The result is that libtool may fail to recognize shared libraries
8376 *** as such. This will affect the creation of libtool libraries that
8377 *** depend on shared libraries, but programs linked with such libtool
8378 *** libraries will work regardless of this problem. Nevertheless, you
8379 *** may want to report the problem to your system manager and/or to
8380 *** bug-libtool@gnu.org
8382 _LT_EOF
8383 fi ;;
8384 esac
8386 break
8388 done
8389 IFS="$lt_save_ifs"
8390 MAGIC_CMD="$lt_save_MAGIC_CMD"
8392 esac
8395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8396 if test -n "$MAGIC_CMD"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8398 $as_echo "$MAGIC_CMD" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8405 else
8406 MAGIC_CMD=:
8412 esac
8414 # Use C for the default configuration in the libtool script
8416 lt_save_CC="$CC"
8417 ac_ext=c
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424 # Source file extension for C test sources.
8425 ac_ext=c
8427 # Object file extension for compiled C test sources.
8428 objext=o
8429 objext=$objext
8431 # Code to be used in simple compile tests
8432 lt_simple_compile_test_code="int some_variable = 0;"
8434 # Code to be used in simple link tests
8435 lt_simple_link_test_code='int main(){return(0);}'
8443 # If no C compiler was specified, use CC.
8444 LTCC=${LTCC-"$CC"}
8446 # If no C compiler flags were specified, use CFLAGS.
8447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8449 # Allow CC to be a program name with arguments.
8450 compiler=$CC
8452 # Save the default compiler, since it gets overwritten when the other
8453 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8454 compiler_DEFAULT=$CC
8456 # save warnings/boilerplate of simple test code
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460 _lt_compiler_boilerplate=`cat conftest.err`
8461 $RM conftest*
8463 ac_outfile=conftest.$ac_objext
8464 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8466 _lt_linker_boilerplate=`cat conftest.err`
8467 $RM -r conftest*
8470 ## CAVEAT EMPTOR:
8471 ## There is no encapsulation within the following macros, do not change
8472 ## the running order or otherwise move them around unless you know exactly
8473 ## what you are doing...
8474 if test -n "$compiler"; then
8476 lt_prog_compiler_no_builtin_flag=
8478 if test "$GCC" = yes; then
8479 case $cc_basename in
8480 nvcc*)
8481 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8483 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8484 esac
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 lt_cv_prog_compiler_rtti_exceptions=no
8492 ac_outfile=conftest.$ac_objext
8493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494 lt_compiler_flag="-fno-rtti -fno-exceptions"
8495 # Insert the option either (1) after the last *FLAGS variable, or
8496 # (2) before a word containing "conftest.", or (3) at the end.
8497 # Note that $ac_compile itself does not contain backslashes and begins
8498 # with a dollar sign (not a hyphen), so the echo should work correctly.
8499 # The option is referenced via a variable to avoid confusing sed.
8500 lt_compile=`echo "$ac_compile" | $SED \
8501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503 -e 's:$: $lt_compiler_flag:'`
8504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505 (eval "$lt_compile" 2>conftest.err)
8506 ac_status=$?
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 if (exit $ac_status) && test -s "$ac_outfile"; then
8510 # The compiler can only warn and ignore the option if not recognized
8511 # So say no if there are warnings other than the usual output.
8512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515 lt_cv_prog_compiler_rtti_exceptions=yes
8518 $RM conftest*
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8526 else
8537 lt_prog_compiler_wl=
8538 lt_prog_compiler_pic=
8539 lt_prog_compiler_static=
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8542 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8544 if test "$GCC" = yes; then
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_static='-static'
8548 case $host_os in
8549 aix*)
8550 # All AIX code is PIC.
8551 if test "$host_cpu" = ia64; then
8552 # AIX 5 now supports IA64 processor
8553 lt_prog_compiler_static='-Bstatic'
8555 lt_prog_compiler_pic='-fPIC'
8558 amigaos*)
8559 case $host_cpu in
8560 powerpc)
8561 # see comment about AmigaOS4 .so support
8562 lt_prog_compiler_pic='-fPIC'
8564 m68k)
8565 # FIXME: we need at least 68020 code to build shared libraries, but
8566 # adding the `-m68020' flag to GCC prevents building anything better,
8567 # like `-m68040'.
8568 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8570 esac
8573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8574 # PIC is the default for these OSes.
8577 mingw* | cygwin* | pw32* | os2* | cegcc*)
8578 # This hack is so that the source file can tell whether it is being
8579 # built for inclusion in a dll (and should export symbols for example).
8580 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8581 # (--disable-auto-import) libraries
8582 lt_prog_compiler_pic='-DDLL_EXPORT'
8585 darwin* | rhapsody*)
8586 # PIC is the default on this platform
8587 # Common symbols not allowed in MH_DYLIB files
8588 lt_prog_compiler_pic='-fno-common'
8591 haiku*)
8592 # PIC is the default for Haiku.
8593 # The "-static" flag exists, but is broken.
8594 lt_prog_compiler_static=
8597 hpux*)
8598 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8599 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8600 # sets the default TLS model and affects inlining.
8601 case $host_cpu in
8602 hppa*64*)
8603 # +Z the default
8606 lt_prog_compiler_pic='-fPIC'
8608 esac
8611 interix[3-9]*)
8612 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8613 # Instead, we relocate shared libraries at runtime.
8616 msdosdjgpp*)
8617 # Just because we use GCC doesn't mean we suddenly get shared libraries
8618 # on systems that don't support them.
8619 lt_prog_compiler_can_build_shared=no
8620 enable_shared=no
8623 *nto* | *qnx*)
8624 # QNX uses GNU C++, but need to define -shared option too, otherwise
8625 # it will coredump.
8626 lt_prog_compiler_pic='-fPIC -shared'
8629 sysv4*MP*)
8630 if test -d /usr/nec; then
8631 lt_prog_compiler_pic=-Kconform_pic
8636 lt_prog_compiler_pic='-fPIC'
8638 esac
8640 case $cc_basename in
8641 nvcc*) # Cuda Compiler Driver 2.2
8642 lt_prog_compiler_wl='-Xlinker '
8643 lt_prog_compiler_pic='-Xcompiler -fPIC'
8645 esac
8646 else
8647 # PORTME Check for flag to pass linker flags through the system compiler.
8648 case $host_os in
8649 aix*)
8650 lt_prog_compiler_wl='-Wl,'
8651 if test "$host_cpu" = ia64; then
8652 # AIX 5 now supports IA64 processor
8653 lt_prog_compiler_static='-Bstatic'
8654 else
8655 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8659 mingw* | cygwin* | pw32* | os2* | cegcc*)
8660 # This hack is so that the source file can tell whether it is being
8661 # built for inclusion in a dll (and should export symbols for example).
8662 lt_prog_compiler_pic='-DDLL_EXPORT'
8665 hpux9* | hpux10* | hpux11*)
8666 lt_prog_compiler_wl='-Wl,'
8667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8668 # not for PA HP-UX.
8669 case $host_cpu in
8670 hppa*64*|ia64*)
8671 # +Z the default
8674 lt_prog_compiler_pic='+Z'
8676 esac
8677 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8678 lt_prog_compiler_static='${wl}-a ${wl}archive'
8681 irix5* | irix6* | nonstopux*)
8682 lt_prog_compiler_wl='-Wl,'
8683 # PIC (with -KPIC) is the default.
8684 lt_prog_compiler_static='-non_shared'
8687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8688 case $cc_basename in
8689 # old Intel for x86_64 which still supported -KPIC.
8690 ecc*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-static'
8695 # icc used to be incompatible with GCC.
8696 # ICC 10 doesn't accept -KPIC any more.
8697 icc* | ifort*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-fPIC'
8700 lt_prog_compiler_static='-static'
8702 # Lahey Fortran 8.1.
8703 lf95*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='--shared'
8706 lt_prog_compiler_static='--static'
8708 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8709 # Portland Group compilers (*not* the Pentium gcc compiler,
8710 # which looks to be a dead project)
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-fpic'
8713 lt_prog_compiler_static='-Bstatic'
8715 ccc*)
8716 lt_prog_compiler_wl='-Wl,'
8717 # All Alpha code is PIC.
8718 lt_prog_compiler_static='-non_shared'
8720 xl* | bgxl* | bgf* | mpixl*)
8721 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-qpic'
8724 lt_prog_compiler_static='-qstaticlink'
8727 case `$CC -V 2>&1 | sed 5q` in
8728 *Sun\ F* | *Sun*Fortran*)
8729 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8730 lt_prog_compiler_pic='-KPIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 lt_prog_compiler_wl=''
8734 *Sun\ C*)
8735 # Sun C 5.9
8736 lt_prog_compiler_pic='-KPIC'
8737 lt_prog_compiler_static='-Bstatic'
8738 lt_prog_compiler_wl='-Wl,'
8740 esac
8742 esac
8745 newsos6)
8746 lt_prog_compiler_pic='-KPIC'
8747 lt_prog_compiler_static='-Bstatic'
8750 *nto* | *qnx*)
8751 # QNX uses GNU C++, but need to define -shared option too, otherwise
8752 # it will coredump.
8753 lt_prog_compiler_pic='-fPIC -shared'
8756 osf3* | osf4* | osf5*)
8757 lt_prog_compiler_wl='-Wl,'
8758 # All OSF/1 code is PIC.
8759 lt_prog_compiler_static='-non_shared'
8762 rdos*)
8763 lt_prog_compiler_static='-non_shared'
8766 solaris*)
8767 lt_prog_compiler_pic='-KPIC'
8768 lt_prog_compiler_static='-Bstatic'
8769 case $cc_basename in
8770 f77* | f90* | f95*)
8771 lt_prog_compiler_wl='-Qoption ld ';;
8773 lt_prog_compiler_wl='-Wl,';;
8774 esac
8777 sunos4*)
8778 lt_prog_compiler_wl='-Qoption ld '
8779 lt_prog_compiler_pic='-PIC'
8780 lt_prog_compiler_static='-Bstatic'
8783 sysv4 | sysv4.2uw2* | sysv4.3*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8789 sysv4*MP*)
8790 if test -d /usr/nec ;then
8791 lt_prog_compiler_pic='-Kconform_pic'
8792 lt_prog_compiler_static='-Bstatic'
8796 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_pic='-KPIC'
8799 lt_prog_compiler_static='-Bstatic'
8802 unicos*)
8803 lt_prog_compiler_wl='-Wl,'
8804 lt_prog_compiler_can_build_shared=no
8807 uts4*)
8808 lt_prog_compiler_pic='-pic'
8809 lt_prog_compiler_static='-Bstatic'
8813 lt_prog_compiler_can_build_shared=no
8815 esac
8818 case $host_os in
8819 # For platforms which do not support PIC, -DPIC is meaningless:
8820 *djgpp*)
8821 lt_prog_compiler_pic=
8824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8826 esac
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8828 $as_echo "$lt_prog_compiler_pic" >&6; }
8836 # Check to make sure the PIC flag actually works.
8838 if test -n "$lt_prog_compiler_pic"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8840 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8841 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 lt_cv_prog_compiler_pic_works=no
8845 ac_outfile=conftest.$ac_objext
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8848 # Insert the option either (1) after the last *FLAGS variable, or
8849 # (2) before a word containing "conftest.", or (3) at the end.
8850 # Note that $ac_compile itself does not contain backslashes and begins
8851 # with a dollar sign (not a hyphen), so the echo should work correctly.
8852 # The option is referenced via a variable to avoid confusing sed.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>conftest.err)
8859 ac_status=$?
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s "$ac_outfile"; then
8863 # The compiler can only warn and ignore the option if not recognized
8864 # So say no if there are warnings other than the usual output.
8865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8868 lt_cv_prog_compiler_pic_works=yes
8871 $RM conftest*
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8875 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8877 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8878 case $lt_prog_compiler_pic in
8879 "" | " "*) ;;
8880 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8881 esac
8882 else
8883 lt_prog_compiler_pic=
8884 lt_prog_compiler_can_build_shared=no
8895 # Check to make sure the static flag actually works.
8897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8899 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8900 if ${lt_cv_prog_compiler_static_works+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_static_works=no
8904 save_LDFLAGS="$LDFLAGS"
8905 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8906 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8908 # The linker can only warn and ignore the option if not recognized
8909 # So say no if there are warnings
8910 if test -s conftest.err; then
8911 # Append any errors to the config.log.
8912 cat conftest.err 1>&5
8913 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8915 if diff conftest.exp conftest.er2 >/dev/null; then
8916 lt_cv_prog_compiler_static_works=yes
8918 else
8919 lt_cv_prog_compiler_static_works=yes
8922 $RM -r conftest*
8923 LDFLAGS="$save_LDFLAGS"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8927 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8929 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8931 else
8932 lt_prog_compiler_static=
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8942 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8943 if ${lt_cv_prog_compiler_c_o+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 lt_cv_prog_compiler_c_o=no
8947 $RM -r conftest 2>/dev/null
8948 mkdir conftest
8949 cd conftest
8950 mkdir out
8951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953 lt_compiler_flag="-o out/conftest2.$ac_objext"
8954 # Insert the option either (1) after the last *FLAGS variable, or
8955 # (2) before a word containing "conftest.", or (3) at the end.
8956 # Note that $ac_compile itself does not contain backslashes and begins
8957 # with a dollar sign (not a hyphen), so the echo should work correctly.
8958 lt_compile=`echo "$ac_compile" | $SED \
8959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961 -e 's:$: $lt_compiler_flag:'`
8962 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8963 (eval "$lt_compile" 2>out/conftest.err)
8964 ac_status=$?
8965 cat out/conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8968 then
8969 # The compiler can only warn and ignore the option if not recognized
8970 # So say no if there are warnings
8971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8974 lt_cv_prog_compiler_c_o=yes
8977 chmod u+w . 2>&5
8978 $RM conftest*
8979 # SGI C++ compiler will create directory out/ii_files/ for
8980 # template instantiation
8981 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8982 $RM out/* && rmdir out
8983 cd ..
8984 $RM -r conftest
8985 $RM conftest*
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8989 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8998 if ${lt_cv_prog_compiler_c_o+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 lt_cv_prog_compiler_c_o=no
9002 $RM -r conftest 2>/dev/null
9003 mkdir conftest
9004 cd conftest
9005 mkdir out
9006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008 lt_compiler_flag="-o out/conftest2.$ac_objext"
9009 # Insert the option either (1) after the last *FLAGS variable, or
9010 # (2) before a word containing "conftest.", or (3) at the end.
9011 # Note that $ac_compile itself does not contain backslashes and begins
9012 # with a dollar sign (not a hyphen), so the echo should work correctly.
9013 lt_compile=`echo "$ac_compile" | $SED \
9014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016 -e 's:$: $lt_compiler_flag:'`
9017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018 (eval "$lt_compile" 2>out/conftest.err)
9019 ac_status=$?
9020 cat out/conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023 then
9024 # The compiler can only warn and ignore the option if not recognized
9025 # So say no if there are warnings
9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9029 lt_cv_prog_compiler_c_o=yes
9032 chmod u+w . 2>&5
9033 $RM conftest*
9034 # SGI C++ compiler will create directory out/ii_files/ for
9035 # template instantiation
9036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9037 $RM out/* && rmdir out
9038 cd ..
9039 $RM -r conftest
9040 $RM conftest*
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9049 hard_links="nottested"
9050 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9051 # do not overwrite the value of need_locks provided by the user
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9053 $as_echo_n "checking if we can lock with hard links... " >&6; }
9054 hard_links=yes
9055 $RM conftest*
9056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057 touch conftest.a
9058 ln conftest.a conftest.b 2>&5 || hard_links=no
9059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9061 $as_echo "$hard_links" >&6; }
9062 if test "$hard_links" = no; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9064 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9065 need_locks=warn
9067 else
9068 need_locks=no
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9077 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9079 runpath_var=
9080 allow_undefined_flag=
9081 always_export_symbols=no
9082 archive_cmds=
9083 archive_expsym_cmds=
9084 compiler_needs_object=no
9085 enable_shared_with_static_runtimes=no
9086 export_dynamic_flag_spec=
9087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9088 hardcode_automatic=no
9089 hardcode_direct=no
9090 hardcode_direct_absolute=no
9091 hardcode_libdir_flag_spec=
9092 hardcode_libdir_flag_spec_ld=
9093 hardcode_libdir_separator=
9094 hardcode_minus_L=no
9095 hardcode_shlibpath_var=unsupported
9096 inherit_rpath=no
9097 link_all_deplibs=unknown
9098 module_cmds=
9099 module_expsym_cmds=
9100 old_archive_from_new_cmds=
9101 old_archive_from_expsyms_cmds=
9102 thread_safe_flag_spec=
9103 whole_archive_flag_spec=
9104 # include_expsyms should be a list of space-separated symbols to be *always*
9105 # included in the symbol list
9106 include_expsyms=
9107 # exclude_expsyms can be an extended regexp of symbols to exclude
9108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9110 # as well as any symbol that contains `d'.
9111 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9113 # platforms (ab)use it in PIC code, but their linkers get confused if
9114 # the symbol is explicitly referenced. Since portable code cannot
9115 # rely on this symbol name, it's probably fine to never include it in
9116 # preloaded symbol tables.
9117 # Exclude shared library initialization/finalization symbols.
9118 extract_expsyms_cmds=
9120 case $host_os in
9121 cygwin* | mingw* | pw32* | cegcc*)
9122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9123 # When not using gcc, we currently assume that we are using
9124 # Microsoft Visual C++.
9125 if test "$GCC" != yes; then
9126 with_gnu_ld=no
9129 interix*)
9130 # we just hope/assume this is gcc and not c89 (= MSVC++)
9131 with_gnu_ld=yes
9133 openbsd*)
9134 with_gnu_ld=no
9136 esac
9138 ld_shlibs=yes
9140 # On some targets, GNU ld is compatible enough with the native linker
9141 # that we're better off using the native interface for both.
9142 lt_use_gnu_ld_interface=no
9143 if test "$with_gnu_ld" = yes; then
9144 case $host_os in
9145 aix*)
9146 # The AIX port of GNU ld has always aspired to compatibility
9147 # with the native linker. However, as the warning in the GNU ld
9148 # block says, versions before 2.19.5* couldn't really create working
9149 # shared libraries, regardless of the interface used.
9150 case `$LD -v 2>&1` in
9151 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9152 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9153 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9155 lt_use_gnu_ld_interface=yes
9157 esac
9160 lt_use_gnu_ld_interface=yes
9162 esac
9165 if test "$lt_use_gnu_ld_interface" = yes; then
9166 # If archive_cmds runs LD, not CC, wlarc should be empty
9167 wlarc='${wl}'
9169 # Set some defaults for GNU ld with shared library support. These
9170 # are reset later if shared libraries are not supported. Putting them
9171 # here allows them to be overridden if necessary.
9172 runpath_var=LD_RUN_PATH
9173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174 export_dynamic_flag_spec='${wl}--export-dynamic'
9175 # ancient GNU ld didn't support --whole-archive et. al.
9176 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9177 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9178 else
9179 whole_archive_flag_spec=
9181 supports_anon_versioning=no
9182 case `$LD -v 2>&1` in
9183 *GNU\ gold*) supports_anon_versioning=yes ;;
9184 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9187 *\ 2.11.*) ;; # other 2.11 versions
9188 *) supports_anon_versioning=yes ;;
9189 esac
9191 # See if GNU ld supports shared libraries.
9192 case $host_os in
9193 aix[3-9]*)
9194 # On AIX/PPC, the GNU linker is very broken
9195 if test "$host_cpu" != ia64; then
9196 ld_shlibs=no
9197 cat <<_LT_EOF 1>&2
9199 *** Warning: the GNU linker, at least up to release 2.19, is reported
9200 *** to be unable to reliably create shared libraries on AIX.
9201 *** Therefore, libtool is disabling shared libraries support. If you
9202 *** really care for shared libraries, you may want to install binutils
9203 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9204 *** You will then need to restart the configuration process.
9206 _LT_EOF
9210 amigaos*)
9211 case $host_cpu in
9212 powerpc)
9213 # see comment about AmigaOS4 .so support
9214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215 archive_expsym_cmds=''
9217 m68k)
9218 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)'
9219 hardcode_libdir_flag_spec='-L$libdir'
9220 hardcode_minus_L=yes
9222 esac
9225 beos*)
9226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227 allow_undefined_flag=unsupported
9228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9229 # support --undefined. This deserves some investigation. FIXME
9230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231 else
9232 ld_shlibs=no
9236 cygwin* | mingw* | pw32* | cegcc*)
9237 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9238 # as there is no search path for DLLs.
9239 hardcode_libdir_flag_spec='-L$libdir'
9240 export_dynamic_flag_spec='${wl}--export-all-symbols'
9241 allow_undefined_flag=unsupported
9242 always_export_symbols=no
9243 enable_shared_with_static_runtimes=yes
9244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9246 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9248 # If the export-symbols file already is a .def file (1st line
9249 # is EXPORTS), use it as is; otherwise, prepend...
9250 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9251 cp $export_symbols $output_objdir/$soname.def;
9252 else
9253 echo EXPORTS > $output_objdir/$soname.def;
9254 cat $export_symbols >> $output_objdir/$soname.def;
9256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9257 else
9258 ld_shlibs=no
9262 haiku*)
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 link_all_deplibs=yes
9267 interix[3-9]*)
9268 hardcode_direct=no
9269 hardcode_shlibpath_var=no
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9273 # Instead, shared libraries are loaded at an image base (0x10000000 by
9274 # default) and relocated if they conflict, which is a slow very memory
9275 # consuming and fragmenting process. To avoid this, we pick a random,
9276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9279 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'
9282 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9283 tmp_diet=no
9284 if test "$host_os" = linux-dietlibc; then
9285 case $cc_basename in
9286 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9287 esac
9289 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9290 && test "$tmp_diet" = no
9291 then
9292 tmp_addflag=' $pic_flag'
9293 tmp_sharedflag='-shared'
9294 case $cc_basename,$host_cpu in
9295 pgcc*) # Portland Group C compiler
9296 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'
9297 tmp_addflag=' $pic_flag'
9299 pgf77* | pgf90* | pgf95* | pgfortran*)
9300 # Portland Group f77 and f90 compilers
9301 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'
9302 tmp_addflag=' $pic_flag -Mnomain' ;;
9303 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9304 tmp_addflag=' -i_dynamic' ;;
9305 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9306 tmp_addflag=' -i_dynamic -nofor_main' ;;
9307 ifc* | ifort*) # Intel Fortran compiler
9308 tmp_addflag=' -nofor_main' ;;
9309 lf95*) # Lahey Fortran 8.1
9310 whole_archive_flag_spec=
9311 tmp_sharedflag='--shared' ;;
9312 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9313 tmp_sharedflag='-qmkshrobj'
9314 tmp_addflag= ;;
9315 nvcc*) # Cuda Compiler Driver 2.2
9316 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'
9317 compiler_needs_object=yes
9319 esac
9320 case `$CC -V 2>&1 | sed 5q` in
9321 *Sun\ C*) # Sun C 5.9
9322 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'
9323 compiler_needs_object=yes
9324 tmp_sharedflag='-G' ;;
9325 *Sun\ F*) # Sun Fortran 8.3
9326 tmp_sharedflag='-G' ;;
9327 esac
9328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 if test "x$supports_anon_versioning" = xyes; then
9331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333 echo "local: *; };" >> $output_objdir/$libname.ver~
9334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9337 case $cc_basename in
9338 xlf* | bgf* | bgxlf* | mpixlf*)
9339 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9340 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9341 hardcode_libdir_flag_spec=
9342 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9343 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9344 if test "x$supports_anon_versioning" = xyes; then
9345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9347 echo "local: *; };" >> $output_objdir/$libname.ver~
9348 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9351 esac
9352 else
9353 ld_shlibs=no
9357 netbsd*)
9358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9359 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9360 wlarc=
9361 else
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9367 solaris*)
9368 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9369 ld_shlibs=no
9370 cat <<_LT_EOF 1>&2
9372 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9373 *** create shared libraries on Solaris systems. Therefore, libtool
9374 *** is disabling shared libraries support. We urge you to upgrade GNU
9375 *** binutils to release 2.9.1 or newer. Another option is to modify
9376 *** your PATH or compiler configuration so that the native linker is
9377 *** used, and then restart.
9379 _LT_EOF
9380 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9383 else
9384 ld_shlibs=no
9388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9389 case `$LD -v 2>&1` in
9390 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9391 ld_shlibs=no
9392 cat <<_LT_EOF 1>&2
9394 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9395 *** reliably create shared libraries on SCO systems. Therefore, libtool
9396 *** is disabling shared libraries support. We urge you to upgrade GNU
9397 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9398 *** your PATH or compiler configuration so that the native linker is
9399 *** used, and then restart.
9401 _LT_EOF
9404 # For security reasons, it is highly recommended that you always
9405 # use absolute paths for naming shared libraries, and exclude the
9406 # DT_RUNPATH tag from executables and libraries. But doing so
9407 # requires that you compile everything twice, which is a pain.
9408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412 else
9413 ld_shlibs=no
9416 esac
9419 sunos4*)
9420 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421 wlarc=
9422 hardcode_direct=yes
9423 hardcode_shlibpath_var=no
9427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 else
9431 ld_shlibs=no
9434 esac
9436 if test "$ld_shlibs" = no; then
9437 runpath_var=
9438 hardcode_libdir_flag_spec=
9439 export_dynamic_flag_spec=
9440 whole_archive_flag_spec=
9442 else
9443 # PORTME fill in a description of your system's linker (not GNU ld)
9444 case $host_os in
9445 aix3*)
9446 allow_undefined_flag=unsupported
9447 always_export_symbols=yes
9448 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'
9449 # Note: this linker hardcodes the directories in LIBPATH if there
9450 # are no directories specified by -L.
9451 hardcode_minus_L=yes
9452 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9453 # Neither direct hardcoding nor static linking is supported with a
9454 # broken collect2.
9455 hardcode_direct=unsupported
9459 aix[4-9]*)
9460 if test "$host_cpu" = ia64; then
9461 # On IA64, the linker does run time linking by default, so we don't
9462 # have to do anything special.
9463 aix_use_runtimelinking=no
9464 exp_sym_flag='-Bexport'
9465 no_entry_flag=""
9466 else
9467 # If we're using GNU nm, then we don't want the "-C" option.
9468 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9469 # Also, AIX nm treats weak defined symbols like other global
9470 # defined symbols, whereas GNU nm marks them as "W".
9471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9472 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'
9473 else
9474 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'
9476 aix_use_runtimelinking=no
9478 # Test if we are trying to use run time linking or normal
9479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9480 # need to do runtime linking.
9481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9482 for ld_flag in $LDFLAGS; do
9483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9484 aix_use_runtimelinking=yes
9485 break
9487 done
9489 esac
9491 exp_sym_flag='-bexport'
9492 no_entry_flag='-bnoentry'
9495 # When large executables or shared objects are built, AIX ld can
9496 # have problems creating the table of contents. If linking a library
9497 # or program results in "error TOC overflow" add -mminimal-toc to
9498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9501 archive_cmds=''
9502 hardcode_direct=yes
9503 hardcode_direct_absolute=yes
9504 hardcode_libdir_separator=':'
9505 link_all_deplibs=yes
9506 file_list_spec='${wl}-f,'
9508 if test "$GCC" = yes; then
9509 case $host_os in aix4.[012]|aix4.[012].*)
9510 # We only want to do this on AIX 4.2 and lower, the check
9511 # below for broken collect2 doesn't work under 4.3+
9512 collect2name=`${CC} -print-prog-name=collect2`
9513 if test -f "$collect2name" &&
9514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9515 then
9516 # We have reworked collect2
9518 else
9519 # We have old collect2
9520 hardcode_direct=unsupported
9521 # It fails to find uninstalled libraries when the uninstalled
9522 # path is not listed in the libpath. Setting hardcode_minus_L
9523 # to unsupported forces relinking
9524 hardcode_minus_L=yes
9525 hardcode_libdir_flag_spec='-L$libdir'
9526 hardcode_libdir_separator=
9529 esac
9530 shared_flag='-shared'
9531 if test "$aix_use_runtimelinking" = yes; then
9532 shared_flag="$shared_flag "'${wl}-G'
9534 else
9535 # not using gcc
9536 if test "$host_cpu" = ia64; then
9537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9538 # chokes on -Wl,-G. The following line is correct:
9539 shared_flag='-G'
9540 else
9541 if test "$aix_use_runtimelinking" = yes; then
9542 shared_flag='${wl}-G'
9543 else
9544 shared_flag='${wl}-bM:SRE'
9549 export_dynamic_flag_spec='${wl}-bexpall'
9550 # It seems that -bexpall does not export symbols beginning with
9551 # underscore (_), so it is better to generate a list of symbols to export.
9552 always_export_symbols=yes
9553 if test "$aix_use_runtimelinking" = yes; then
9554 # Warning - without using the other runtime loading flags (-brtl),
9555 # -berok will link without error, but may produce a broken library.
9556 allow_undefined_flag='-berok'
9557 # Determine the default libpath from the value encoded in an
9558 # empty executable.
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9563 main ()
9567 return 0;
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9572 lt_aix_libpath_sed='
9573 /Import File Strings/,/^$/ {
9574 /^0/ {
9575 s/^0 *\(.*\)$/\1/
9579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 # Check for a 64-bit object if we didn't find anything.
9581 if test -z "$aix_libpath"; then
9582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9590 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"
9591 else
9592 if test "$host_cpu" = ia64; then
9593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9594 allow_undefined_flag="-z nodefs"
9595 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"
9596 else
9597 # Determine the default libpath from the value encoded in an
9598 # empty executable.
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9603 main ()
9607 return 0;
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9612 lt_aix_libpath_sed='
9613 /Import File Strings/,/^$/ {
9614 /^0/ {
9615 s/^0 *\(.*\)$/\1/
9619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 # Check for a 64-bit object if we didn't find anything.
9621 if test -z "$aix_libpath"; then
9622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9630 # Warning - without using the other run time loading flags,
9631 # -berok will link without error, but may produce a broken library.
9632 no_undefined_flag=' ${wl}-bernotok'
9633 allow_undefined_flag=' ${wl}-berok'
9634 if test "$with_gnu_ld" = yes; then
9635 # We only use this code for GNU lds that support --whole-archive.
9636 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9637 else
9638 # Exported symbols can be pulled into shared objects from archives
9639 whole_archive_flag_spec='$convenience'
9641 archive_cmds_need_lc=yes
9642 # This is similar to how AIX traditionally builds its shared libraries.
9643 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'
9648 amigaos*)
9649 case $host_cpu in
9650 powerpc)
9651 # see comment about AmigaOS4 .so support
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 archive_expsym_cmds=''
9655 m68k)
9656 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)'
9657 hardcode_libdir_flag_spec='-L$libdir'
9658 hardcode_minus_L=yes
9660 esac
9663 bsdi[45]*)
9664 export_dynamic_flag_spec=-rdynamic
9667 cygwin* | mingw* | pw32* | cegcc*)
9668 # When not using gcc, we currently assume that we are using
9669 # Microsoft Visual C++.
9670 # hardcode_libdir_flag_spec is actually meaningless, as there is
9671 # no search path for DLLs.
9672 hardcode_libdir_flag_spec=' '
9673 allow_undefined_flag=unsupported
9674 # Tell ltmain to make .lib files, not .a files.
9675 libext=lib
9676 # Tell ltmain to make .dll files, not .so files.
9677 shrext_cmds=".dll"
9678 # FIXME: Setting linknames here is a bad hack.
9679 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9680 # The linker will automatically build a .lib file if we build a DLL.
9681 old_archive_from_new_cmds='true'
9682 # FIXME: Should let the user specify the lib program.
9683 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9684 fix_srcfile_path='`cygpath -w "$srcfile"`'
9685 enable_shared_with_static_runtimes=yes
9688 darwin* | rhapsody*)
9691 archive_cmds_need_lc=no
9692 hardcode_direct=no
9693 hardcode_automatic=yes
9694 hardcode_shlibpath_var=unsupported
9695 if test "$lt_cv_ld_force_load" = "yes"; then
9696 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\"`'
9697 else
9698 whole_archive_flag_spec=''
9700 link_all_deplibs=yes
9701 allow_undefined_flag="$_lt_dar_allow_undefined"
9702 case $cc_basename in
9703 ifort*) _lt_dar_can_shared=yes ;;
9704 *) _lt_dar_can_shared=$GCC ;;
9705 esac
9706 if test "$_lt_dar_can_shared" = "yes"; then
9707 output_verbose_link_cmd=func_echo_all
9708 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9709 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9710 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}"
9711 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}"
9713 else
9714 ld_shlibs=no
9719 dgux*)
9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_libdir_flag_spec='-L$libdir'
9722 hardcode_shlibpath_var=no
9725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9726 # support. Future versions do this automatically, but an explicit c++rt0.o
9727 # does not break anything, and helps significantly (at the cost of a little
9728 # extra space).
9729 freebsd2.2*)
9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9731 hardcode_libdir_flag_spec='-R$libdir'
9732 hardcode_direct=yes
9733 hardcode_shlibpath_var=no
9736 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9737 freebsd2.*)
9738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_direct=yes
9740 hardcode_minus_L=yes
9741 hardcode_shlibpath_var=no
9744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9745 freebsd* | dragonfly*)
9746 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9747 hardcode_libdir_flag_spec='-R$libdir'
9748 hardcode_direct=yes
9749 hardcode_shlibpath_var=no
9752 hpux9*)
9753 if test "$GCC" = yes; then
9754 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'
9755 else
9756 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'
9758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9759 hardcode_libdir_separator=:
9760 hardcode_direct=yes
9762 # hardcode_minus_L: Not really in the search PATH,
9763 # but as the default location of the library.
9764 hardcode_minus_L=yes
9765 export_dynamic_flag_spec='${wl}-E'
9768 hpux10*)
9769 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9771 else
9772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 if test "$with_gnu_ld" = no; then
9775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9776 hardcode_libdir_flag_spec_ld='+b $libdir'
9777 hardcode_libdir_separator=:
9778 hardcode_direct=yes
9779 hardcode_direct_absolute=yes
9780 export_dynamic_flag_spec='${wl}-E'
9781 # hardcode_minus_L: Not really in the search PATH,
9782 # but as the default location of the library.
9783 hardcode_minus_L=yes
9787 hpux11*)
9788 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9789 case $host_cpu in
9790 hppa*64*)
9791 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 ia64*)
9794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799 esac
9800 else
9801 case $host_cpu in
9802 hppa*64*)
9803 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 ia64*)
9806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9810 # Older versions of the 11.00 compiler do not understand -b yet
9811 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9813 $as_echo_n "checking if $CC understands -b... " >&6; }
9814 if ${lt_cv_prog_compiler__b+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 lt_cv_prog_compiler__b=no
9818 save_LDFLAGS="$LDFLAGS"
9819 LDFLAGS="$LDFLAGS -b"
9820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9822 # The linker can only warn and ignore the option if not recognized
9823 # So say no if there are warnings
9824 if test -s conftest.err; then
9825 # Append any errors to the config.log.
9826 cat conftest.err 1>&5
9827 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9829 if diff conftest.exp conftest.er2 >/dev/null; then
9830 lt_cv_prog_compiler__b=yes
9832 else
9833 lt_cv_prog_compiler__b=yes
9836 $RM -r conftest*
9837 LDFLAGS="$save_LDFLAGS"
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9841 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9843 if test x"$lt_cv_prog_compiler__b" = xyes; then
9844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845 else
9846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9850 esac
9852 if test "$with_gnu_ld" = no; then
9853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9854 hardcode_libdir_separator=:
9856 case $host_cpu in
9857 hppa*64*|ia64*)
9858 hardcode_direct=no
9859 hardcode_shlibpath_var=no
9862 hardcode_direct=yes
9863 hardcode_direct_absolute=yes
9864 export_dynamic_flag_spec='${wl}-E'
9866 # hardcode_minus_L: Not really in the search PATH,
9867 # but as the default location of the library.
9868 hardcode_minus_L=yes
9870 esac
9874 irix5* | irix6* | nonstopux*)
9875 if test "$GCC" = yes; then
9876 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'
9877 # Try to use the -exported_symbol ld option, if it does not
9878 # work, assume that -exports_file does not work either and
9879 # implicitly export all symbols.
9880 save_LDFLAGS="$LDFLAGS"
9881 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 int foo(void) {}
9885 _ACEOF
9886 if ac_fn_c_try_link "$LINENO"; then :
9887 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'
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 LDFLAGS="$save_LDFLAGS"
9893 else
9894 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'
9895 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'
9897 archive_cmds_need_lc='no'
9898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900 inherit_rpath=yes
9901 link_all_deplibs=yes
9904 netbsd*)
9905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9907 else
9908 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 hardcode_direct=yes
9912 hardcode_shlibpath_var=no
9915 newsos6)
9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_direct=yes
9918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919 hardcode_libdir_separator=:
9920 hardcode_shlibpath_var=no
9923 *nto* | *qnx*)
9926 openbsd*)
9927 if test -f /usr/libexec/ld.so; then
9928 hardcode_direct=yes
9929 hardcode_shlibpath_var=no
9930 hardcode_direct_absolute=yes
9931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9935 export_dynamic_flag_spec='${wl}-E'
9936 else
9937 case $host_os in
9938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9940 hardcode_libdir_flag_spec='-R$libdir'
9943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9946 esac
9948 else
9949 ld_shlibs=no
9953 os2*)
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_minus_L=yes
9956 allow_undefined_flag=unsupported
9957 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'
9958 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9961 osf3*)
9962 if test "$GCC" = yes; then
9963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9964 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'
9965 else
9966 allow_undefined_flag=' -expect_unresolved \*'
9967 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'
9969 archive_cmds_need_lc='no'
9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971 hardcode_libdir_separator=:
9974 osf4* | osf5*) # as osf3* with the addition of -msym flag
9975 if test "$GCC" = yes; then
9976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9977 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'
9978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979 else
9980 allow_undefined_flag=' -expect_unresolved \*'
9981 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'
9982 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~
9983 $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'
9985 # Both c and cxx compiler support -rpath directly
9986 hardcode_libdir_flag_spec='-rpath $libdir'
9988 archive_cmds_need_lc='no'
9989 hardcode_libdir_separator=:
9992 solaris*)
9993 no_undefined_flag=' -z defs'
9994 if test "$GCC" = yes; then
9995 wlarc='${wl}'
9996 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9999 else
10000 case `$CC -V 2>&1` in
10001 *"Compilers 5.0"*)
10002 wlarc=''
10003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10008 wlarc='${wl}'
10009 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10013 esac
10015 hardcode_libdir_flag_spec='-R$libdir'
10016 hardcode_shlibpath_var=no
10017 case $host_os in
10018 solaris2.[0-5] | solaris2.[0-5].*) ;;
10020 # The compiler driver will combine and reorder linker options,
10021 # but understands `-z linker_flag'. GCC discards it without `$wl',
10022 # but is careful enough not to reorder.
10023 # Supported since Solaris 2.6 (maybe 2.5.1?)
10024 if test "$GCC" = yes; then
10025 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10026 else
10027 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10030 esac
10031 link_all_deplibs=yes
10034 sunos4*)
10035 if test "x$host_vendor" = xsequent; then
10036 # Use $CC to link under sequent, because it throws in some extra .o
10037 # files that make .init and .fini sections work.
10038 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10039 else
10040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_direct=yes
10044 hardcode_minus_L=yes
10045 hardcode_shlibpath_var=no
10048 sysv4)
10049 case $host_vendor in
10050 sni)
10051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10052 hardcode_direct=yes # is this really true???
10054 siemens)
10055 ## LD is ld it makes a PLAMLIB
10056 ## CC just makes a GrossModule.
10057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10058 reload_cmds='$CC -r -o $output$reload_objs'
10059 hardcode_direct=no
10061 motorola)
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10065 esac
10066 runpath_var='LD_RUN_PATH'
10067 hardcode_shlibpath_var=no
10070 sysv4.3*)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_shlibpath_var=no
10073 export_dynamic_flag_spec='-Bexport'
10076 sysv4*MP*)
10077 if test -d /usr/nec; then
10078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079 hardcode_shlibpath_var=no
10080 runpath_var=LD_RUN_PATH
10081 hardcode_runpath_var=yes
10082 ld_shlibs=yes
10086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10087 no_undefined_flag='${wl}-z,text'
10088 archive_cmds_need_lc=no
10089 hardcode_shlibpath_var=no
10090 runpath_var='LD_RUN_PATH'
10092 if test "$GCC" = yes; then
10093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 else
10096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 sysv5* | sco3.2v5* | sco5v6*)
10102 # Note: We can NOT use -z defs as we might desire, because we do not
10103 # link with -lc, and that would cause any symbols used from libc to
10104 # always be unresolved, which means just about no library would
10105 # ever link correctly. If we're not using GNU ld we use -z text
10106 # though, which does catch some bad symbols but isn't as heavy-handed
10107 # as -z defs.
10108 no_undefined_flag='${wl}-z,text'
10109 allow_undefined_flag='${wl}-z,nodefs'
10110 archive_cmds_need_lc=no
10111 hardcode_shlibpath_var=no
10112 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10113 hardcode_libdir_separator=':'
10114 link_all_deplibs=yes
10115 export_dynamic_flag_spec='${wl}-Bexport'
10116 runpath_var='LD_RUN_PATH'
10118 if test "$GCC" = yes; then
10119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 else
10122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 uts4*)
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_shlibpath_var=no
10134 ld_shlibs=no
10136 esac
10138 if test x$host_vendor = xsni; then
10139 case $host in
10140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10141 export_dynamic_flag_spec='${wl}-Blargedynsym'
10143 esac
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10148 $as_echo "$ld_shlibs" >&6; }
10149 test "$ld_shlibs" = no && can_build_shared=no
10151 with_gnu_ld=$with_gnu_ld
10168 # Do we need to explicitly link libc?
10170 case "x$archive_cmds_need_lc" in
10171 x|xyes)
10172 # Assume -lc should be added
10173 archive_cmds_need_lc=yes
10175 if test "$enable_shared" = yes && test "$GCC" = yes; then
10176 case $archive_cmds in
10177 *'~'*)
10178 # FIXME: we may have to deal with multi-command sequences.
10180 '$CC '*)
10181 # Test whether the compiler implicitly links with -lc since on some
10182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10183 # to ld, don't add -lc before -lgcc.
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10185 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10186 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 $RM conftest*
10190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10193 (eval $ac_compile) 2>&5
10194 ac_status=$?
10195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196 test $ac_status = 0; } 2>conftest.err; then
10197 soname=conftest
10198 lib=conftest
10199 libobjs=conftest.$ac_objext
10200 deplibs=
10201 wl=$lt_prog_compiler_wl
10202 pic_flag=$lt_prog_compiler_pic
10203 compiler_flags=-v
10204 linker_flags=-v
10205 verstring=
10206 output_objdir=.
10207 libname=conftest
10208 lt_save_allow_undefined_flag=$allow_undefined_flag
10209 allow_undefined_flag=
10210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10211 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10212 ac_status=$?
10213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10214 test $ac_status = 0; }
10215 then
10216 lt_cv_archive_cmds_need_lc=no
10217 else
10218 lt_cv_archive_cmds_need_lc=yes
10220 allow_undefined_flag=$lt_save_allow_undefined_flag
10221 else
10222 cat conftest.err 1>&5
10224 $RM conftest*
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10228 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10229 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10231 esac
10234 esac
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10393 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10395 if test "$GCC" = yes; then
10396 case $host_os in
10397 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10398 *) lt_awk_arg="/^libraries:/" ;;
10399 esac
10400 case $host_os in
10401 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10402 *) lt_sed_strip_eq="s,=/,/,g" ;;
10403 esac
10404 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10405 case $lt_search_path_spec in
10406 *\;*)
10407 # if the path contains ";" then we assume it to be the separator
10408 # otherwise default to the standard path separator (i.e. ":") - it is
10409 # assumed that no part of a normal pathname contains ";" but that should
10410 # okay in the real world where ";" in dirpaths is itself problematic.
10411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10416 esac
10417 # Ok, now we have the path, separated by spaces, we can step through it
10418 # and add multilib dir if necessary.
10419 lt_tmp_lt_search_path_spec=
10420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10421 for lt_sys_path in $lt_search_path_spec; do
10422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10424 else
10425 test -d "$lt_sys_path" && \
10426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10428 done
10429 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10430 BEGIN {RS=" "; FS="/|\n";} {
10431 lt_foo="";
10432 lt_count=0;
10433 for (lt_i = NF; lt_i > 0; lt_i--) {
10434 if ($lt_i != "" && $lt_i != ".") {
10435 if ($lt_i == "..") {
10436 lt_count++;
10437 } else {
10438 if (lt_count == 0) {
10439 lt_foo="/" $lt_i lt_foo;
10440 } else {
10441 lt_count--;
10446 if (lt_foo != "") { lt_freq[lt_foo]++; }
10447 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10449 # AWK program above erroneously prepends '/' to C:/dos/paths
10450 # for these hosts.
10451 case $host_os in
10452 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10453 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10454 esac
10455 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10456 else
10457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10459 library_names_spec=
10460 libname_spec='lib$name'
10461 soname_spec=
10462 shrext_cmds=".so"
10463 postinstall_cmds=
10464 postuninstall_cmds=
10465 finish_cmds=
10466 finish_eval=
10467 shlibpath_var=
10468 shlibpath_overrides_runpath=unknown
10469 version_type=none
10470 dynamic_linker="$host_os ld.so"
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10472 need_lib_prefix=unknown
10473 hardcode_into_libs=no
10475 # when you set need_version to no, make sure it does not cause -set_version
10476 # flags to be left without arguments
10477 need_version=unknown
10479 case $host_os in
10480 aix3*)
10481 version_type=linux
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10483 shlibpath_var=LIBPATH
10485 # AIX 3 has no versioning support, so we append a major version to the name.
10486 soname_spec='${libname}${release}${shared_ext}$major'
10489 aix[4-9]*)
10490 version_type=linux
10491 need_lib_prefix=no
10492 need_version=no
10493 hardcode_into_libs=yes
10494 if test "$host_cpu" = ia64; then
10495 # AIX 5 supports IA64
10496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 else
10499 # With GCC up to 2.95.x, collect2 would create an import file
10500 # for dependence libraries. The import file would start with
10501 # the line `#! .'. This would cause the generated library to
10502 # depend on `.', always an invalid library. This was fixed in
10503 # development snapshots of GCC prior to 3.0.
10504 case $host_os in
10505 aix4 | aix4.[01] | aix4.[01].*)
10506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10507 echo ' yes '
10508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10510 else
10511 can_build_shared=no
10514 esac
10515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10516 # soname into executable. Probably we can add versioning support to
10517 # collect2, so additional links can be useful in future.
10518 if test "$aix_use_runtimelinking" = yes; then
10519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10520 # instead of lib<name>.a to let people know that these are not
10521 # typical AIX shared libraries.
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 else
10524 # We preserve .a as extension for shared libraries through AIX4.2
10525 # and later when we are not doing run time linking.
10526 library_names_spec='${libname}${release}.a $libname.a'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LIBPATH
10533 amigaos*)
10534 case $host_cpu in
10535 powerpc)
10536 # Since July 2007 AmigaOS4 officially supports .so libraries.
10537 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 m68k)
10541 library_names_spec='$libname.ixlibrary $libname.a'
10542 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10543 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'
10545 esac
10548 beos*)
10549 library_names_spec='${libname}${shared_ext}'
10550 dynamic_linker="$host_os ld.so"
10551 shlibpath_var=LIBRARY_PATH
10554 bsdi[45]*)
10555 version_type=linux
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10563 # the default ld.so.conf also contains /usr/contrib/lib and
10564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10565 # libtool to hard-code these into programs
10568 cygwin* | mingw* | pw32* | cegcc*)
10569 version_type=windows
10570 shrext_cmds=".dll"
10571 need_version=no
10572 need_lib_prefix=no
10574 case $GCC,$host_os in
10575 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10576 library_names_spec='$libname.dll.a'
10577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10578 postinstall_cmds='base_file=`basename \${file}`~
10579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10580 dldir=$destdir/`dirname \$dlpath`~
10581 test -d \$dldir || mkdir -p \$dldir~
10582 $install_prog $dir/$dlname \$dldir/$dlname~
10583 chmod a+x \$dldir/$dlname~
10584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10588 dlpath=$dir/\$dldll~
10589 $RM \$dlpath'
10590 shlibpath_overrides_runpath=yes
10592 case $host_os in
10593 cygwin*)
10594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10599 mingw* | cegcc*)
10600 # MinGW DLLs use traditional 'lib' prefix
10601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603 pw32*)
10604 # pw32 DLLs use 'pw' prefix rather than 'lib'
10605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 esac
10611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10613 esac
10614 dynamic_linker='Win32 ld.exe'
10615 # FIXME: first we should search . and the directory the executable is in
10616 shlibpath_var=PATH
10619 darwin* | rhapsody*)
10620 dynamic_linker="$host_os dyld"
10621 version_type=darwin
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10625 soname_spec='${libname}${release}${major}$shared_ext'
10626 shlibpath_overrides_runpath=yes
10627 shlibpath_var=DYLD_LIBRARY_PATH
10628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10630 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10631 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634 dgux*)
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10643 freebsd* | dragonfly*)
10644 # DragonFly does not have aout. When/if they implement a new
10645 # versioning mechanism, adjust this.
10646 if test -x /usr/bin/objformat; then
10647 objformat=`/usr/bin/objformat`
10648 else
10649 case $host_os in
10650 freebsd[23].*) objformat=aout ;;
10651 *) objformat=elf ;;
10652 esac
10654 version_type=freebsd-$objformat
10655 case $version_type in
10656 freebsd-elf*)
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10658 need_version=no
10659 need_lib_prefix=no
10661 freebsd-*)
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10663 need_version=yes
10665 esac
10666 shlibpath_var=LD_LIBRARY_PATH
10667 case $host_os in
10668 freebsd2.*)
10669 shlibpath_overrides_runpath=yes
10671 freebsd3.[01]* | freebsdelf3.[01]*)
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10677 shlibpath_overrides_runpath=no
10678 hardcode_into_libs=yes
10680 *) # from 4.6 on, and DragonFly
10681 shlibpath_overrides_runpath=yes
10682 hardcode_into_libs=yes
10684 esac
10687 gnu*)
10688 version_type=linux
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 hardcode_into_libs=yes
10697 haiku*)
10698 version_type=linux
10699 need_lib_prefix=no
10700 need_version=no
10701 dynamic_linker="$host_os runtime_loader"
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10706 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10707 hardcode_into_libs=yes
10710 hpux9* | hpux10* | hpux11*)
10711 # Give a soname corresponding to the major version so that dld.sl refuses to
10712 # link against other versions.
10713 version_type=sunos
10714 need_lib_prefix=no
10715 need_version=no
10716 case $host_cpu in
10717 ia64*)
10718 shrext_cmds='.so'
10719 hardcode_into_libs=yes
10720 dynamic_linker="$host_os dld.so"
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 if test "X$HPUX_IA64_MODE" = X32; then
10726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10727 else
10728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732 hppa*64*)
10733 shrext_cmds='.sl'
10734 hardcode_into_libs=yes
10735 dynamic_linker="$host_os dld.sl"
10736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10744 shrext_cmds='.sl'
10745 dynamic_linker="$host_os dld.sl"
10746 shlibpath_var=SHLIB_PATH
10747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10751 esac
10752 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10753 postinstall_cmds='chmod 555 $lib'
10754 # or fails outright, so override atomically:
10755 install_override_mode=555
10758 interix[3-9]*)
10759 version_type=linux
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10770 irix5* | irix6* | nonstopux*)
10771 case $host_os in
10772 nonstopux*) version_type=nonstopux ;;
10774 if test "$lt_cv_prog_gnu_ld" = yes; then
10775 version_type=linux
10776 else
10777 version_type=irix
10778 fi ;;
10779 esac
10780 need_lib_prefix=no
10781 need_version=no
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10784 case $host_os in
10785 irix5* | nonstopux*)
10786 libsuff= shlibsuff=
10789 case $LD in # libtool.m4 will add one of these switches to LD
10790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10791 libsuff= shlibsuff= libmagic=32-bit;;
10792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10793 libsuff=32 shlibsuff=N32 libmagic=N32;;
10794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10796 *) libsuff= shlibsuff= libmagic=never-match;;
10797 esac
10799 esac
10800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10801 shlibpath_overrides_runpath=no
10802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10804 hardcode_into_libs=yes
10807 # No shared lib support for Linux oldld, aout, or coff.
10808 linux*oldld* | linux*aout* | linux*coff*)
10809 dynamic_linker=no
10812 # This must be Linux ELF.
10813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10814 version_type=linux
10815 need_lib_prefix=no
10816 need_version=no
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10823 # Some binutils ld are patched to set DT_RUNPATH
10824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 lt_cv_shlibpath_overrides_runpath=no
10828 save_LDFLAGS=$LDFLAGS
10829 save_libdir=$libdir
10830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10836 main ()
10840 return 0;
10842 _ACEOF
10843 if ac_fn_c_try_link "$LINENO"; then :
10844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10845 lt_cv_shlibpath_overrides_runpath=yes
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LDFLAGS=$save_LDFLAGS
10851 libdir=$save_libdir
10855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10857 # This implies no fast_install, which is unacceptable.
10858 # Some rework will be needed to allow for fast_install
10859 # before this can be enabled.
10860 hardcode_into_libs=yes
10862 # Append ld.so.conf contents to the search path
10863 if test -f /etc/ld.so.conf; then
10864 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' ' '`
10865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10868 # We used to test for /lib/ld.so.1 and disable shared libraries on
10869 # powerpc, because MkLinux only supported shared libraries with the
10870 # GNU dynamic linker. Since this was broken with cross compilers,
10871 # most powerpc-linux boxes support dynamic linking these days and
10872 # people can always --disable-shared, the test was removed, and we
10873 # assume the GNU/Linux dynamic linker is in use.
10874 dynamic_linker='GNU/Linux ld.so'
10877 netbsd*)
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10884 dynamic_linker='NetBSD (a.out) ld.so'
10885 else
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 dynamic_linker='NetBSD ld.elf_so'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes
10892 hardcode_into_libs=yes
10895 newsos6)
10896 version_type=linux
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=yes
10902 *nto* | *qnx*)
10903 version_type=qnx
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10911 dynamic_linker='ldqnx.so'
10914 openbsd*)
10915 version_type=sunos
10916 sys_lib_dlsearch_path_spec="/usr/lib"
10917 need_lib_prefix=no
10918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10919 case $host_os in
10920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10921 *) need_version=no ;;
10922 esac
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10927 case $host_os in
10928 openbsd2.[89] | openbsd2.[89].*)
10929 shlibpath_overrides_runpath=no
10932 shlibpath_overrides_runpath=yes
10934 esac
10935 else
10936 shlibpath_overrides_runpath=yes
10940 os2*)
10941 libname_spec='$name'
10942 shrext_cmds=".dll"
10943 need_lib_prefix=no
10944 library_names_spec='$libname${shared_ext} $libname.a'
10945 dynamic_linker='OS/2 ld.exe'
10946 shlibpath_var=LIBPATH
10949 osf3* | osf4* | osf5*)
10950 version_type=osf
10951 need_lib_prefix=no
10952 need_version=no
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10960 rdos*)
10961 dynamic_linker=no
10964 solaris*)
10965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 # ldd complains unless libraries are executable
10974 postinstall_cmds='chmod +x $lib'
10977 sunos4*)
10978 version_type=sunos
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=yes
10983 if test "$with_gnu_ld" = yes; then
10984 need_lib_prefix=no
10986 need_version=yes
10989 sysv4 | sysv4.3*)
10990 version_type=linux
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 case $host_vendor in
10995 sni)
10996 shlibpath_overrides_runpath=no
10997 need_lib_prefix=no
10998 runpath_var=LD_RUN_PATH
11000 siemens)
11001 need_lib_prefix=no
11003 motorola)
11004 need_lib_prefix=no
11005 need_version=no
11006 shlibpath_overrides_runpath=no
11007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11009 esac
11012 sysv4*MP*)
11013 if test -d /usr/nec ;then
11014 version_type=linux
11015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11016 soname_spec='$libname${shared_ext}.$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11022 version_type=freebsd-elf
11023 need_lib_prefix=no
11024 need_version=no
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 hardcode_into_libs=yes
11030 if test "$with_gnu_ld" = yes; then
11031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11032 else
11033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11034 case $host_os in
11035 sco3.2v5*)
11036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11038 esac
11040 sys_lib_dlsearch_path_spec='/usr/lib'
11043 tpf*)
11044 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11045 version_type=linux
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 hardcode_into_libs=yes
11054 uts4*)
11055 version_type=linux
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11062 dynamic_linker=no
11064 esac
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11066 $as_echo "$dynamic_linker" >&6; }
11067 test "$dynamic_linker" = no && can_build_shared=no
11069 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11070 if test "$GCC" = yes; then
11071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11074 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11075 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11077 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11078 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11174 hardcode_action=
11175 if test -n "$hardcode_libdir_flag_spec" ||
11176 test -n "$runpath_var" ||
11177 test "X$hardcode_automatic" = "Xyes" ; then
11179 # We can hardcode non-existent directories.
11180 if test "$hardcode_direct" != no &&
11181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11182 # have to relink, otherwise we might link with an installed library
11183 # when we should be linking with a yet-to-be-installed one
11184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11185 test "$hardcode_minus_L" != no; then
11186 # Linking always hardcodes the temporary library directory.
11187 hardcode_action=relink
11188 else
11189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11190 hardcode_action=immediate
11192 else
11193 # We cannot hardcode anything, or else we can only hardcode existing
11194 # directories.
11195 hardcode_action=unsupported
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11198 $as_echo "$hardcode_action" >&6; }
11200 if test "$hardcode_action" = relink ||
11201 test "$inherit_rpath" = yes; then
11202 # Fast installation is not supported
11203 enable_fast_install=no
11204 elif test "$shlibpath_overrides_runpath" = yes ||
11205 test "$enable_shared" = no; then
11206 # Fast installation is not necessary
11207 enable_fast_install=needless
11215 if test "x$enable_dlopen" != xyes; then
11216 enable_dlopen=unknown
11217 enable_dlopen_self=unknown
11218 enable_dlopen_self_static=unknown
11219 else
11220 lt_cv_dlopen=no
11221 lt_cv_dlopen_libs=
11223 case $host_os in
11224 beos*)
11225 lt_cv_dlopen="load_add_on"
11226 lt_cv_dlopen_libs=
11227 lt_cv_dlopen_self=yes
11230 mingw* | pw32* | cegcc*)
11231 lt_cv_dlopen="LoadLibrary"
11232 lt_cv_dlopen_libs=
11235 cygwin*)
11236 lt_cv_dlopen="dlopen"
11237 lt_cv_dlopen_libs=
11240 darwin*)
11241 # if libdl is installed we need to link against it
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11243 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11244 if ${ac_cv_lib_dl_dlopen+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-ldl $LIBS"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char dlopen ();
11260 main ()
11262 return dlopen ();
11264 return 0;
11266 _ACEOF
11267 if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_dl_dlopen=yes
11269 else
11270 ac_cv_lib_dl_dlopen=no
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11277 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11278 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11280 else
11282 lt_cv_dlopen="dyld"
11283 lt_cv_dlopen_libs=
11284 lt_cv_dlopen_self=yes
11291 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11292 if test "x$ac_cv_func_shl_load" = xyes; then :
11293 lt_cv_dlopen="shl_load"
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11296 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11297 if ${ac_cv_lib_dld_shl_load+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldld $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char shl_load ();
11313 main ()
11315 return shl_load ();
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dld_shl_load=yes
11322 else
11323 ac_cv_lib_dld_shl_load=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11330 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11331 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11332 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11333 else
11334 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11335 if test "x$ac_cv_func_dlopen" = xyes; then :
11336 lt_cv_dlopen="dlopen"
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11340 if ${ac_cv_lib_dl_dlopen+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-ldl $LIBS"
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 char dlopen ();
11356 main ()
11358 return dlopen ();
11360 return 0;
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_dl_dlopen=yes
11365 else
11366 ac_cv_lib_dl_dlopen=no
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11379 if ${ac_cv_lib_svld_dlopen+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-lsvld $LIBS"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char dlopen ();
11395 main ()
11397 return dlopen ();
11399 return 0;
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_svld_dlopen=yes
11404 else
11405 ac_cv_lib_svld_dlopen=no
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11412 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11413 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11417 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11418 if ${ac_cv_lib_dld_dld_link+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-ldld $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char dld_link ();
11434 main ()
11436 return dld_link ();
11438 return 0;
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_dld_dld_link=yes
11443 else
11444 ac_cv_lib_dld_dld_link=no
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11451 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11452 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11453 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11472 esac
11474 if test "x$lt_cv_dlopen" != xno; then
11475 enable_dlopen=yes
11476 else
11477 enable_dlopen=no
11480 case $lt_cv_dlopen in
11481 dlopen)
11482 save_CPPFLAGS="$CPPFLAGS"
11483 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11485 save_LDFLAGS="$LDFLAGS"
11486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11488 save_LIBS="$LIBS"
11489 LIBS="$lt_cv_dlopen_libs $LIBS"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11492 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11493 if ${lt_cv_dlopen_self+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self=cross
11498 else
11499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11500 lt_status=$lt_dlunknown
11501 cat > conftest.$ac_ext <<_LT_EOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11505 #if HAVE_DLFCN_H
11506 #include <dlfcn.h>
11507 #endif
11509 #include <stdio.h>
11511 #ifdef RTLD_GLOBAL
11512 # define LT_DLGLOBAL RTLD_GLOBAL
11513 #else
11514 # ifdef DL_GLOBAL
11515 # define LT_DLGLOBAL DL_GLOBAL
11516 # else
11517 # define LT_DLGLOBAL 0
11518 # endif
11519 #endif
11521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523 #ifndef LT_DLLAZY_OR_NOW
11524 # ifdef RTLD_LAZY
11525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11526 # else
11527 # ifdef DL_LAZY
11528 # define LT_DLLAZY_OR_NOW DL_LAZY
11529 # else
11530 # ifdef RTLD_NOW
11531 # define LT_DLLAZY_OR_NOW RTLD_NOW
11532 # else
11533 # ifdef DL_NOW
11534 # define LT_DLLAZY_OR_NOW DL_NOW
11535 # else
11536 # define LT_DLLAZY_OR_NOW 0
11537 # endif
11538 # endif
11539 # endif
11540 # endif
11541 #endif
11543 /* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546 void fnord () __attribute__((visibility("default")));
11547 #endif
11549 void fnord () { int i=42; }
11550 int main ()
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11555 if (self)
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11563 /* dlclose (self); */
11565 else
11566 puts (dlerror ());
11568 return status;
11570 _LT_EOF
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11576 (./conftest; exit; ) >&5 2>/dev/null
11577 lt_status=$?
11578 case x$lt_status in
11579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11581 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11582 esac
11583 else :
11584 # compilation failed
11585 lt_cv_dlopen_self=no
11588 rm -fr conftest*
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11593 $as_echo "$lt_cv_dlopen_self" >&6; }
11595 if test "x$lt_cv_dlopen_self" = xyes; then
11596 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11598 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11599 if ${lt_cv_dlopen_self_static+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test "$cross_compiling" = yes; then :
11603 lt_cv_dlopen_self_static=cross
11604 else
11605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11606 lt_status=$lt_dlunknown
11607 cat > conftest.$ac_ext <<_LT_EOF
11608 #line 11608 "configure"
11609 #include "confdefs.h"
11611 #if HAVE_DLFCN_H
11612 #include <dlfcn.h>
11613 #endif
11615 #include <stdio.h>
11617 #ifdef RTLD_GLOBAL
11618 # define LT_DLGLOBAL RTLD_GLOBAL
11619 #else
11620 # ifdef DL_GLOBAL
11621 # define LT_DLGLOBAL DL_GLOBAL
11622 # else
11623 # define LT_DLGLOBAL 0
11624 # endif
11625 #endif
11627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628 find out it does not work in some platform. */
11629 #ifndef LT_DLLAZY_OR_NOW
11630 # ifdef RTLD_LAZY
11631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11632 # else
11633 # ifdef DL_LAZY
11634 # define LT_DLLAZY_OR_NOW DL_LAZY
11635 # else
11636 # ifdef RTLD_NOW
11637 # define LT_DLLAZY_OR_NOW RTLD_NOW
11638 # else
11639 # ifdef DL_NOW
11640 # define LT_DLLAZY_OR_NOW DL_NOW
11641 # else
11642 # define LT_DLLAZY_OR_NOW 0
11643 # endif
11644 # endif
11645 # endif
11646 # endif
11647 #endif
11649 /* When -fvisbility=hidden is used, assume the code has been annotated
11650 correspondingly for the symbols needed. */
11651 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652 void fnord () __attribute__((visibility("default")));
11653 #endif
11655 void fnord () { int i=42; }
11656 int main ()
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11661 if (self)
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else
11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 else puts (dlerror ());
11669 /* dlclose (self); */
11671 else
11672 puts (dlerror ());
11674 return status;
11676 _LT_EOF
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11682 (./conftest; exit; ) >&5 2>/dev/null
11683 lt_status=$?
11684 case x$lt_status in
11685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11687 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11688 esac
11689 else :
11690 # compilation failed
11691 lt_cv_dlopen_self_static=no
11694 rm -fr conftest*
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11699 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11702 CPPFLAGS="$save_CPPFLAGS"
11703 LDFLAGS="$save_LDFLAGS"
11704 LIBS="$save_LIBS"
11706 esac
11708 case $lt_cv_dlopen_self in
11709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11710 *) enable_dlopen_self=unknown ;;
11711 esac
11713 case $lt_cv_dlopen_self_static in
11714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11715 *) enable_dlopen_self_static=unknown ;;
11716 esac
11735 striplib=
11736 old_striplib=
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11738 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11739 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11744 else
11745 # FIXME - insert some real tests, host_os isn't really good enough
11746 case $host_os in
11747 darwin*)
11748 if test -n "$STRIP" ; then
11749 striplib="$STRIP -x"
11750 old_striplib="$STRIP -S"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752 $as_echo "yes" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11762 esac
11776 # Report which library types will actually be built
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11778 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11780 $as_echo "$can_build_shared" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11783 $as_echo_n "checking whether to build shared libraries... " >&6; }
11784 test "$can_build_shared" = "no" && enable_shared=no
11786 # On AIX, shared libraries and static libraries use the same namespace, and
11787 # are all built from PIC.
11788 case $host_os in
11789 aix3*)
11790 test "$enable_shared" = yes && enable_static=no
11791 if test -n "$RANLIB"; then
11792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11793 postinstall_cmds='$RANLIB $lib'
11797 aix[4-9]*)
11798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11799 test "$enable_shared" = yes && enable_static=no
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11804 $as_echo "$enable_shared" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11807 $as_echo_n "checking whether to build static libraries... " >&6; }
11808 # Make sure either enable_shared or enable_static is yes.
11809 test "$enable_shared" = yes || enable_static=yes
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11811 $as_echo "$enable_static" >&6; }
11817 ac_ext=c
11818 ac_cpp='$CPP $CPPFLAGS'
11819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11823 CC="$lt_save_CC"
11837 ac_config_commands="$ac_config_commands libtool"
11842 # Only expand once:
11848 gdc_save_DFLAGS=$GDCFLAGS
11849 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11852 # Source file extension for D test sources.
11853 ac_ext=d
11855 # Object file extension for compiled D test sources.
11856 objext=o
11857 objext_D=$objext
11859 # Code to be used in simple compile tests
11860 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11862 # Code to be used in simple link tests
11863 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11872 # If no C compiler was specified, use CC.
11873 LTCC=${LTCC-"$CC"}
11875 # If no C compiler flags were specified, use CFLAGS.
11876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11878 # Allow CC to be a program name with arguments.
11879 compiler=$CC
11882 # save warnings/boilerplate of simple test code
11883 ac_outfile=conftest.$ac_objext
11884 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11886 _lt_compiler_boilerplate=`cat conftest.err`
11887 $RM conftest*
11889 ac_outfile=conftest.$ac_objext
11890 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11891 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11892 _lt_linker_boilerplate=`cat conftest.err`
11893 $RM -r conftest*
11896 # Allow CC to be a program name with arguments.
11897 lt_save_CC=$CC
11898 lt_save_CFLAGS=$CFLAGS
11899 lt_save_DFLAGS=$GDCFLAGS
11900 lt_save_GCC=$GCC
11901 GCC=yes
11902 CC=${GDC-"gdc"}
11903 # Need to specify location for object.d
11904 GDCFLAGS="-nophoboslib $GDCFLAGS"
11905 CFLAGS=$GDCFLAGS
11906 compiler=$CC
11907 compiler_D=$CC
11908 LD_D=$CC
11909 for cc_temp in $compiler""; do
11910 case $cc_temp in
11911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11913 \-*) ;;
11914 *) break;;
11915 esac
11916 done
11917 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11920 # GDC did not exist at the time GCC didn't implicitly link libc in.
11921 archive_cmds_need_lc_D=no
11923 old_archive_cmds_D=$old_archive_cmds
11924 reload_flag_D=$reload_flag
11925 reload_cmds_D=$reload_cmds
11927 ## CAVEAT EMPTOR:
11928 ## There is no encapsulation within the following macros, do not change
11929 ## the running order or otherwise move them around unless you know exactly
11930 ## what you are doing...
11931 if test -n "$compiler"; then
11933 lt_prog_compiler_no_builtin_flag_D=
11935 if test "$GCC" = yes; then
11936 case $cc_basename in
11937 nvcc*)
11938 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11940 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11941 esac
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11944 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11945 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 lt_cv_prog_compiler_rtti_exceptions=no
11949 ac_outfile=conftest.$ac_objext
11950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11951 lt_compiler_flag="-fno-rtti -fno-exceptions"
11952 # Insert the option either (1) after the last *FLAGS variable, or
11953 # (2) before a word containing "conftest.", or (3) at the end.
11954 # Note that $ac_compile itself does not contain backslashes and begins
11955 # with a dollar sign (not a hyphen), so the echo should work correctly.
11956 # The option is referenced via a variable to avoid confusing sed.
11957 lt_compile=`echo "$ac_compile" | $SED \
11958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11960 -e 's:$: $lt_compiler_flag:'`
11961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11962 (eval "$lt_compile" 2>conftest.err)
11963 ac_status=$?
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 if (exit $ac_status) && test -s "$ac_outfile"; then
11967 # The compiler can only warn and ignore the option if not recognized
11968 # So say no if there are warnings other than the usual output.
11969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11972 lt_cv_prog_compiler_rtti_exceptions=yes
11975 $RM conftest*
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11979 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11982 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11983 else
11991 lt_prog_compiler_wl_D=
11992 lt_prog_compiler_pic_D=
11993 lt_prog_compiler_static_D=
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11996 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11998 if test "$GCC" = yes; then
11999 lt_prog_compiler_wl_D='-Wl,'
12000 lt_prog_compiler_static_D='-static'
12002 case $host_os in
12003 aix*)
12004 # All AIX code is PIC.
12005 if test "$host_cpu" = ia64; then
12006 # AIX 5 now supports IA64 processor
12007 lt_prog_compiler_static_D='-Bstatic'
12009 lt_prog_compiler_pic_D='-fPIC'
12012 amigaos*)
12013 case $host_cpu in
12014 powerpc)
12015 # see comment about AmigaOS4 .so support
12016 lt_prog_compiler_pic_D='-fPIC'
12018 m68k)
12019 # FIXME: we need at least 68020 code to build shared libraries, but
12020 # adding the `-m68020' flag to GCC prevents building anything better,
12021 # like `-m68040'.
12022 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12024 esac
12027 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12028 # PIC is the default for these OSes.
12031 mingw* | cygwin* | pw32* | os2* | cegcc*)
12032 # This hack is so that the source file can tell whether it is being
12033 # built for inclusion in a dll (and should export symbols for example).
12034 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12035 # (--disable-auto-import) libraries
12036 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12039 darwin* | rhapsody*)
12040 # PIC is the default on this platform
12041 # Common symbols not allowed in MH_DYLIB files
12042 lt_prog_compiler_pic_D='-fno-common'
12045 haiku*)
12046 # PIC is the default for Haiku.
12047 # The "-static" flag exists, but is broken.
12048 lt_prog_compiler_static_D=
12051 hpux*)
12052 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12053 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12054 # sets the default TLS model and affects inlining.
12055 case $host_cpu in
12056 hppa*64*)
12057 # +Z the default
12060 lt_prog_compiler_pic_D='-fPIC'
12062 esac
12065 interix[3-9]*)
12066 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12067 # Instead, we relocate shared libraries at runtime.
12070 msdosdjgpp*)
12071 # Just because we use GCC doesn't mean we suddenly get shared libraries
12072 # on systems that don't support them.
12073 lt_prog_compiler_can_build_shared_D=no
12074 enable_shared=no
12077 *nto* | *qnx*)
12078 # QNX uses GNU C++, but need to define -shared option too, otherwise
12079 # it will coredump.
12080 lt_prog_compiler_pic_D='-fPIC -shared'
12083 sysv4*MP*)
12084 if test -d /usr/nec; then
12085 lt_prog_compiler_pic_D=-Kconform_pic
12090 lt_prog_compiler_pic_D='-fPIC'
12092 esac
12094 case $cc_basename in
12095 nvcc*) # Cuda Compiler Driver 2.2
12096 lt_prog_compiler_wl_D='-Xlinker '
12097 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12099 esac
12100 else
12101 # PORTME Check for flag to pass linker flags through the system compiler.
12102 case $host_os in
12103 aix*)
12104 lt_prog_compiler_wl_D='-Wl,'
12105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static_D='-Bstatic'
12108 else
12109 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12113 mingw* | cygwin* | pw32* | os2* | cegcc*)
12114 # This hack is so that the source file can tell whether it is being
12115 # built for inclusion in a dll (and should export symbols for example).
12116 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12119 hpux9* | hpux10* | hpux11*)
12120 lt_prog_compiler_wl_D='-Wl,'
12121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12122 # not for PA HP-UX.
12123 case $host_cpu in
12124 hppa*64*|ia64*)
12125 # +Z the default
12128 lt_prog_compiler_pic_D='+Z'
12130 esac
12131 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12132 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12135 irix5* | irix6* | nonstopux*)
12136 lt_prog_compiler_wl_D='-Wl,'
12137 # PIC (with -KPIC) is the default.
12138 lt_prog_compiler_static_D='-non_shared'
12141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12142 case $cc_basename in
12143 # old Intel for x86_64 which still supported -KPIC.
12144 ecc*)
12145 lt_prog_compiler_wl_D='-Wl,'
12146 lt_prog_compiler_pic_D='-KPIC'
12147 lt_prog_compiler_static_D='-static'
12149 # icc used to be incompatible with GCC.
12150 # ICC 10 doesn't accept -KPIC any more.
12151 icc* | ifort*)
12152 lt_prog_compiler_wl_D='-Wl,'
12153 lt_prog_compiler_pic_D='-fPIC'
12154 lt_prog_compiler_static_D='-static'
12156 # Lahey Fortran 8.1.
12157 lf95*)
12158 lt_prog_compiler_wl_D='-Wl,'
12159 lt_prog_compiler_pic_D='--shared'
12160 lt_prog_compiler_static_D='--static'
12162 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12163 # Portland Group compilers (*not* the Pentium gcc compiler,
12164 # which looks to be a dead project)
12165 lt_prog_compiler_wl_D='-Wl,'
12166 lt_prog_compiler_pic_D='-fpic'
12167 lt_prog_compiler_static_D='-Bstatic'
12169 ccc*)
12170 lt_prog_compiler_wl_D='-Wl,'
12171 # All Alpha code is PIC.
12172 lt_prog_compiler_static_D='-non_shared'
12174 xl* | bgxl* | bgf* | mpixl*)
12175 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12176 lt_prog_compiler_wl_D='-Wl,'
12177 lt_prog_compiler_pic_D='-qpic'
12178 lt_prog_compiler_static_D='-qstaticlink'
12181 case `$CC -V 2>&1 | sed 5q` in
12182 *Sun\ F* | *Sun*Fortran*)
12183 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12184 lt_prog_compiler_pic_D='-KPIC'
12185 lt_prog_compiler_static_D='-Bstatic'
12186 lt_prog_compiler_wl_D=''
12188 *Sun\ C*)
12189 # Sun C 5.9
12190 lt_prog_compiler_pic_D='-KPIC'
12191 lt_prog_compiler_static_D='-Bstatic'
12192 lt_prog_compiler_wl_D='-Wl,'
12194 esac
12196 esac
12199 newsos6)
12200 lt_prog_compiler_pic_D='-KPIC'
12201 lt_prog_compiler_static_D='-Bstatic'
12204 *nto* | *qnx*)
12205 # QNX uses GNU C++, but need to define -shared option too, otherwise
12206 # it will coredump.
12207 lt_prog_compiler_pic_D='-fPIC -shared'
12210 osf3* | osf4* | osf5*)
12211 lt_prog_compiler_wl_D='-Wl,'
12212 # All OSF/1 code is PIC.
12213 lt_prog_compiler_static_D='-non_shared'
12216 rdos*)
12217 lt_prog_compiler_static_D='-non_shared'
12220 solaris*)
12221 lt_prog_compiler_pic_D='-KPIC'
12222 lt_prog_compiler_static_D='-Bstatic'
12223 case $cc_basename in
12224 f77* | f90* | f95*)
12225 lt_prog_compiler_wl_D='-Qoption ld ';;
12227 lt_prog_compiler_wl_D='-Wl,';;
12228 esac
12231 sunos4*)
12232 lt_prog_compiler_wl_D='-Qoption ld '
12233 lt_prog_compiler_pic_D='-PIC'
12234 lt_prog_compiler_static_D='-Bstatic'
12237 sysv4 | sysv4.2uw2* | sysv4.3*)
12238 lt_prog_compiler_wl_D='-Wl,'
12239 lt_prog_compiler_pic_D='-KPIC'
12240 lt_prog_compiler_static_D='-Bstatic'
12243 sysv4*MP*)
12244 if test -d /usr/nec ;then
12245 lt_prog_compiler_pic_D='-Kconform_pic'
12246 lt_prog_compiler_static_D='-Bstatic'
12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251 lt_prog_compiler_wl_D='-Wl,'
12252 lt_prog_compiler_pic_D='-KPIC'
12253 lt_prog_compiler_static_D='-Bstatic'
12256 unicos*)
12257 lt_prog_compiler_wl_D='-Wl,'
12258 lt_prog_compiler_can_build_shared_D=no
12261 uts4*)
12262 lt_prog_compiler_pic_D='-pic'
12263 lt_prog_compiler_static_D='-Bstatic'
12267 lt_prog_compiler_can_build_shared_D=no
12269 esac
12272 case $host_os in
12273 # For platforms which do not support PIC, -DPIC is meaningless:
12274 *djgpp*)
12275 lt_prog_compiler_pic_D=
12278 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12280 esac
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12282 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12287 # Check to make sure the PIC flag actually works.
12289 if test -n "$lt_prog_compiler_pic_D"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12291 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12292 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 lt_cv_prog_compiler_pic_works_D=no
12296 ac_outfile=conftest.$ac_objext
12297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12298 lt_compiler_flag="$lt_prog_compiler_pic_D"
12299 # Insert the option either (1) after the last *FLAGS variable, or
12300 # (2) before a word containing "conftest.", or (3) at the end.
12301 # Note that $ac_compile itself does not contain backslashes and begins
12302 # with a dollar sign (not a hyphen), so the echo should work correctly.
12303 # The option is referenced via a variable to avoid confusing sed.
12304 lt_compile=`echo "$ac_compile" | $SED \
12305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12307 -e 's:$: $lt_compiler_flag:'`
12308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12309 (eval "$lt_compile" 2>conftest.err)
12310 ac_status=$?
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 if (exit $ac_status) && test -s "$ac_outfile"; then
12314 # The compiler can only warn and ignore the option if not recognized
12315 # So say no if there are warnings other than the usual output.
12316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12319 lt_cv_prog_compiler_pic_works_D=yes
12322 $RM conftest*
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12326 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12328 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12329 case $lt_prog_compiler_pic_D in
12330 "" | " "*) ;;
12331 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12332 esac
12333 else
12334 lt_prog_compiler_pic_D=
12335 lt_prog_compiler_can_build_shared_D=no
12343 # Check to make sure the static flag actually works.
12345 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12347 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12348 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 lt_cv_prog_compiler_static_works_D=no
12352 save_LDFLAGS="$LDFLAGS"
12353 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12354 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12356 # The linker can only warn and ignore the option if not recognized
12357 # So say no if there are warnings
12358 if test -s conftest.err; then
12359 # Append any errors to the config.log.
12360 cat conftest.err 1>&5
12361 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12363 if diff conftest.exp conftest.er2 >/dev/null; then
12364 lt_cv_prog_compiler_static_works_D=yes
12366 else
12367 lt_cv_prog_compiler_static_works_D=yes
12370 $RM -r conftest*
12371 LDFLAGS="$save_LDFLAGS"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12375 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12377 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12379 else
12380 lt_prog_compiler_static_D=
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12388 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 lt_cv_prog_compiler_c_o_D=no
12392 $RM -r conftest 2>/dev/null
12393 mkdir conftest
12394 cd conftest
12395 mkdir out
12396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12398 lt_compiler_flag="-o out/conftest2.$ac_objext"
12399 # Insert the option either (1) after the last *FLAGS variable, or
12400 # (2) before a word containing "conftest.", or (3) at the end.
12401 # Note that $ac_compile itself does not contain backslashes and begins
12402 # with a dollar sign (not a hyphen), so the echo should work correctly.
12403 lt_compile=`echo "$ac_compile" | $SED \
12404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12406 -e 's:$: $lt_compiler_flag:'`
12407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12408 (eval "$lt_compile" 2>out/conftest.err)
12409 ac_status=$?
12410 cat out/conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12413 then
12414 # The compiler can only warn and ignore the option if not recognized
12415 # So say no if there are warnings
12416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12419 lt_cv_prog_compiler_c_o_D=yes
12422 chmod u+w . 2>&5
12423 $RM conftest*
12424 # SGI C++ compiler will create directory out/ii_files/ for
12425 # template instantiation
12426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12427 $RM out/* && rmdir out
12428 cd ..
12429 $RM -r conftest
12430 $RM conftest*
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12434 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12440 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 lt_cv_prog_compiler_c_o_D=no
12444 $RM -r conftest 2>/dev/null
12445 mkdir conftest
12446 cd conftest
12447 mkdir out
12448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12450 lt_compiler_flag="-o out/conftest2.$ac_objext"
12451 # Insert the option either (1) after the last *FLAGS variable, or
12452 # (2) before a word containing "conftest.", or (3) at the end.
12453 # Note that $ac_compile itself does not contain backslashes and begins
12454 # with a dollar sign (not a hyphen), so the echo should work correctly.
12455 lt_compile=`echo "$ac_compile" | $SED \
12456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458 -e 's:$: $lt_compiler_flag:'`
12459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12460 (eval "$lt_compile" 2>out/conftest.err)
12461 ac_status=$?
12462 cat out/conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12465 then
12466 # The compiler can only warn and ignore the option if not recognized
12467 # So say no if there are warnings
12468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12471 lt_cv_prog_compiler_c_o_D=yes
12474 chmod u+w . 2>&5
12475 $RM conftest*
12476 # SGI C++ compiler will create directory out/ii_files/ for
12477 # template instantiation
12478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12479 $RM out/* && rmdir out
12480 cd ..
12481 $RM -r conftest
12482 $RM conftest*
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12486 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12491 hard_links="nottested"
12492 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12493 # do not overwrite the value of need_locks provided by the user
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12495 $as_echo_n "checking if we can lock with hard links... " >&6; }
12496 hard_links=yes
12497 $RM conftest*
12498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12499 touch conftest.a
12500 ln conftest.a conftest.b 2>&5 || hard_links=no
12501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12503 $as_echo "$hard_links" >&6; }
12504 if test "$hard_links" = no; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12506 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12507 need_locks=warn
12509 else
12510 need_locks=no
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12516 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12518 runpath_var=
12519 allow_undefined_flag_D=
12520 always_export_symbols_D=no
12521 archive_cmds_D=
12522 archive_expsym_cmds_D=
12523 compiler_needs_object_D=no
12524 enable_shared_with_static_runtimes_D=no
12525 export_dynamic_flag_spec_D=
12526 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12527 hardcode_automatic_D=no
12528 hardcode_direct_D=no
12529 hardcode_direct_absolute_D=no
12530 hardcode_libdir_flag_spec_D=
12531 hardcode_libdir_flag_spec_ld_D=
12532 hardcode_libdir_separator_D=
12533 hardcode_minus_L_D=no
12534 hardcode_shlibpath_var_D=unsupported
12535 inherit_rpath_D=no
12536 link_all_deplibs_D=unknown
12537 module_cmds_D=
12538 module_expsym_cmds_D=
12539 old_archive_from_new_cmds_D=
12540 old_archive_from_expsyms_cmds_D=
12541 thread_safe_flag_spec_D=
12542 whole_archive_flag_spec_D=
12543 # include_expsyms should be a list of space-separated symbols to be *always*
12544 # included in the symbol list
12545 include_expsyms_D=
12546 # exclude_expsyms can be an extended regexp of symbols to exclude
12547 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12548 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12549 # as well as any symbol that contains `d'.
12550 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12551 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12552 # platforms (ab)use it in PIC code, but their linkers get confused if
12553 # the symbol is explicitly referenced. Since portable code cannot
12554 # rely on this symbol name, it's probably fine to never include it in
12555 # preloaded symbol tables.
12556 # Exclude shared library initialization/finalization symbols.
12557 extract_expsyms_cmds=
12559 case $host_os in
12560 cygwin* | mingw* | pw32* | cegcc*)
12561 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12562 # When not using gcc, we currently assume that we are using
12563 # Microsoft Visual C++.
12564 if test "$GCC" != yes; then
12565 with_gnu_ld=no
12568 interix*)
12569 # we just hope/assume this is gcc and not c89 (= MSVC++)
12570 with_gnu_ld=yes
12572 openbsd*)
12573 with_gnu_ld=no
12575 esac
12577 ld_shlibs_D=yes
12579 # On some targets, GNU ld is compatible enough with the native linker
12580 # that we're better off using the native interface for both.
12581 lt_use_gnu_ld_interface=no
12582 if test "$with_gnu_ld" = yes; then
12583 case $host_os in
12584 aix*)
12585 # The AIX port of GNU ld has always aspired to compatibility
12586 # with the native linker. However, as the warning in the GNU ld
12587 # block says, versions before 2.19.5* couldn't really create working
12588 # shared libraries, regardless of the interface used.
12589 case `$LD -v 2>&1` in
12590 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12591 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12592 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12594 lt_use_gnu_ld_interface=yes
12596 esac
12599 lt_use_gnu_ld_interface=yes
12601 esac
12604 if test "$lt_use_gnu_ld_interface" = yes; then
12605 # If archive_cmds runs LD, not CC, wlarc should be empty
12606 wlarc='${wl}'
12608 # Set some defaults for GNU ld with shared library support. These
12609 # are reset later if shared libraries are not supported. Putting them
12610 # here allows them to be overridden if necessary.
12611 runpath_var=LD_RUN_PATH
12612 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12613 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12614 # ancient GNU ld didn't support --whole-archive et. al.
12615 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12616 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12617 else
12618 whole_archive_flag_spec_D=
12620 supports_anon_versioning=no
12621 case `$LD -v 2>&1` in
12622 *GNU\ gold*) supports_anon_versioning=yes ;;
12623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12626 *\ 2.11.*) ;; # other 2.11 versions
12627 *) supports_anon_versioning=yes ;;
12628 esac
12630 # See if GNU ld supports shared libraries.
12631 case $host_os in
12632 aix[3-9]*)
12633 # On AIX/PPC, the GNU linker is very broken
12634 if test "$host_cpu" != ia64; then
12635 ld_shlibs_D=no
12636 cat <<_LT_EOF 1>&2
12638 *** Warning: the GNU linker, at least up to release 2.19, is reported
12639 *** to be unable to reliably create shared libraries on AIX.
12640 *** Therefore, libtool is disabling shared libraries support. If you
12641 *** really care for shared libraries, you may want to install binutils
12642 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12643 *** You will then need to restart the configuration process.
12645 _LT_EOF
12649 amigaos*)
12650 case $host_cpu in
12651 powerpc)
12652 # see comment about AmigaOS4 .so support
12653 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654 archive_expsym_cmds_D=''
12656 m68k)
12657 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)'
12658 hardcode_libdir_flag_spec_D='-L$libdir'
12659 hardcode_minus_L_D=yes
12661 esac
12664 beos*)
12665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12666 allow_undefined_flag_D=unsupported
12667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12668 # support --undefined. This deserves some investigation. FIXME
12669 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670 else
12671 ld_shlibs_D=no
12675 cygwin* | mingw* | pw32* | cegcc*)
12676 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12677 # as there is no search path for DLLs.
12678 hardcode_libdir_flag_spec_D='-L$libdir'
12679 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12680 allow_undefined_flag_D=unsupported
12681 always_export_symbols_D=no
12682 enable_shared_with_static_runtimes_D=yes
12683 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12686 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12687 # If the export-symbols file already is a .def file (1st line
12688 # is EXPORTS), use it as is; otherwise, prepend...
12689 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12690 cp $export_symbols $output_objdir/$soname.def;
12691 else
12692 echo EXPORTS > $output_objdir/$soname.def;
12693 cat $export_symbols >> $output_objdir/$soname.def;
12695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12696 else
12697 ld_shlibs_D=no
12701 haiku*)
12702 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12703 link_all_deplibs_D=yes
12706 interix[3-9]*)
12707 hardcode_direct_D=no
12708 hardcode_shlibpath_var_D=no
12709 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12710 export_dynamic_flag_spec_D='${wl}-E'
12711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12712 # Instead, shared libraries are loaded at an image base (0x10000000 by
12713 # default) and relocated if they conflict, which is a slow very memory
12714 # consuming and fragmenting process. To avoid this, we pick a random,
12715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12716 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12717 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'
12718 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'
12721 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12722 tmp_diet=no
12723 if test "$host_os" = linux-dietlibc; then
12724 case $cc_basename in
12725 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12726 esac
12728 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12729 && test "$tmp_diet" = no
12730 then
12731 tmp_addflag=' $pic_flag'
12732 tmp_sharedflag='-shared'
12733 case $cc_basename,$host_cpu in
12734 pgcc*) # Portland Group C compiler
12735 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'
12736 tmp_addflag=' $pic_flag'
12738 pgf77* | pgf90* | pgf95* | pgfortran*)
12739 # Portland Group f77 and f90 compilers
12740 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'
12741 tmp_addflag=' $pic_flag -Mnomain' ;;
12742 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12743 tmp_addflag=' -i_dynamic' ;;
12744 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12745 tmp_addflag=' -i_dynamic -nofor_main' ;;
12746 ifc* | ifort*) # Intel Fortran compiler
12747 tmp_addflag=' -nofor_main' ;;
12748 lf95*) # Lahey Fortran 8.1
12749 whole_archive_flag_spec_D=
12750 tmp_sharedflag='--shared' ;;
12751 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12752 tmp_sharedflag='-qmkshrobj'
12753 tmp_addflag= ;;
12754 nvcc*) # Cuda Compiler Driver 2.2
12755 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'
12756 compiler_needs_object_D=yes
12758 esac
12759 case `$CC -V 2>&1 | sed 5q` in
12760 *Sun\ C*) # Sun C 5.9
12761 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'
12762 compiler_needs_object_D=yes
12763 tmp_sharedflag='-G' ;;
12764 *Sun\ F*) # Sun Fortran 8.3
12765 tmp_sharedflag='-G' ;;
12766 esac
12767 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769 if test "x$supports_anon_versioning" = xyes; then
12770 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12772 echo "local: *; };" >> $output_objdir/$libname.ver~
12773 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12776 case $cc_basename in
12777 xlf* | bgf* | bgxlf* | mpixlf*)
12778 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12779 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12780 hardcode_libdir_flag_spec_D=
12781 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12782 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12783 if test "x$supports_anon_versioning" = xyes; then
12784 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12786 echo "local: *; };" >> $output_objdir/$libname.ver~
12787 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12790 esac
12791 else
12792 ld_shlibs_D=no
12796 netbsd*)
12797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12798 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12799 wlarc=
12800 else
12801 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12806 solaris*)
12807 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12808 ld_shlibs_D=no
12809 cat <<_LT_EOF 1>&2
12811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12812 *** create shared libraries on Solaris systems. Therefore, libtool
12813 *** is disabling shared libraries support. We urge you to upgrade GNU
12814 *** binutils to release 2.9.1 or newer. Another option is to modify
12815 *** your PATH or compiler configuration so that the native linker is
12816 *** used, and then restart.
12818 _LT_EOF
12819 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12820 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12822 else
12823 ld_shlibs_D=no
12827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12828 case `$LD -v 2>&1` in
12829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12830 ld_shlibs_D=no
12831 cat <<_LT_EOF 1>&2
12833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12834 *** reliably create shared libraries on SCO systems. Therefore, libtool
12835 *** is disabling shared libraries support. We urge you to upgrade GNU
12836 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12837 *** your PATH or compiler configuration so that the native linker is
12838 *** used, and then restart.
12840 _LT_EOF
12843 # For security reasons, it is highly recommended that you always
12844 # use absolute paths for naming shared libraries, and exclude the
12845 # DT_RUNPATH tag from executables and libraries. But doing so
12846 # requires that you compile everything twice, which is a pain.
12847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12848 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12849 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12850 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12851 else
12852 ld_shlibs_D=no
12855 esac
12858 sunos4*)
12859 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12860 wlarc=
12861 hardcode_direct_D=yes
12862 hardcode_shlibpath_var_D=no
12866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12867 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12869 else
12870 ld_shlibs_D=no
12873 esac
12875 if test "$ld_shlibs_D" = no; then
12876 runpath_var=
12877 hardcode_libdir_flag_spec_D=
12878 export_dynamic_flag_spec_D=
12879 whole_archive_flag_spec_D=
12881 else
12882 # PORTME fill in a description of your system's linker (not GNU ld)
12883 case $host_os in
12884 aix3*)
12885 allow_undefined_flag_D=unsupported
12886 always_export_symbols_D=yes
12887 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'
12888 # Note: this linker hardcodes the directories in LIBPATH if there
12889 # are no directories specified by -L.
12890 hardcode_minus_L_D=yes
12891 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12892 # Neither direct hardcoding nor static linking is supported with a
12893 # broken collect2.
12894 hardcode_direct_D=unsupported
12898 aix[4-9]*)
12899 if test "$host_cpu" = ia64; then
12900 # On IA64, the linker does run time linking by default, so we don't
12901 # have to do anything special.
12902 aix_use_runtimelinking=no
12903 exp_sym_flag='-Bexport'
12904 no_entry_flag=""
12905 else
12906 # If we're using GNU nm, then we don't want the "-C" option.
12907 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12908 # Also, AIX nm treats weak defined symbols like other global
12909 # defined symbols, whereas GNU nm marks them as "W".
12910 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12911 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'
12912 else
12913 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'
12915 aix_use_runtimelinking=no
12917 # Test if we are trying to use run time linking or normal
12918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12919 # need to do runtime linking.
12920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12921 for ld_flag in $LDFLAGS; do
12922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12923 aix_use_runtimelinking=yes
12924 break
12926 done
12928 esac
12930 exp_sym_flag='-bexport'
12931 no_entry_flag='-bnoentry'
12934 # When large executables or shared objects are built, AIX ld can
12935 # have problems creating the table of contents. If linking a library
12936 # or program results in "error TOC overflow" add -mminimal-toc to
12937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12940 archive_cmds_D=''
12941 hardcode_direct_D=yes
12942 hardcode_direct_absolute_D=yes
12943 hardcode_libdir_separator_D=':'
12944 link_all_deplibs_D=yes
12945 file_list_spec_D='${wl}-f,'
12947 if test "$GCC" = yes; then
12948 case $host_os in aix4.[012]|aix4.[012].*)
12949 # We only want to do this on AIX 4.2 and lower, the check
12950 # below for broken collect2 doesn't work under 4.3+
12951 collect2name=`${CC} -print-prog-name=collect2`
12952 if test -f "$collect2name" &&
12953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12954 then
12955 # We have reworked collect2
12957 else
12958 # We have old collect2
12959 hardcode_direct_D=unsupported
12960 # It fails to find uninstalled libraries when the uninstalled
12961 # path is not listed in the libpath. Setting hardcode_minus_L
12962 # to unsupported forces relinking
12963 hardcode_minus_L_D=yes
12964 hardcode_libdir_flag_spec_D='-L$libdir'
12965 hardcode_libdir_separator_D=
12968 esac
12969 shared_flag='-shared'
12970 if test "$aix_use_runtimelinking" = yes; then
12971 shared_flag="$shared_flag "'${wl}-G'
12973 else
12974 # not using gcc
12975 if test "$host_cpu" = ia64; then
12976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12977 # chokes on -Wl,-G. The following line is correct:
12978 shared_flag='-G'
12979 else
12980 if test "$aix_use_runtimelinking" = yes; then
12981 shared_flag='${wl}-G'
12982 else
12983 shared_flag='${wl}-bM:SRE'
12988 export_dynamic_flag_spec_D='${wl}-bexpall'
12989 # It seems that -bexpall does not export symbols beginning with
12990 # underscore (_), so it is better to generate a list of symbols to export.
12991 always_export_symbols_D=yes
12992 if test "$aix_use_runtimelinking" = yes; then
12993 # Warning - without using the other runtime loading flags (-brtl),
12994 # -berok will link without error, but may produce a broken library.
12995 allow_undefined_flag_D='-berok'
12996 # Determine the default libpath from the value encoded in an
12997 # empty executable.
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13002 main ()
13006 return 0;
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"; then :
13011 lt_aix_libpath_sed='
13012 /Import File Strings/,/^$/ {
13013 /^0/ {
13014 s/^0 *\(.*\)$/\1/
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 # Check for a 64-bit object if we didn't find anything.
13020 if test -z "$aix_libpath"; then
13021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13028 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13029 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"
13030 else
13031 if test "$host_cpu" = ia64; then
13032 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13033 allow_undefined_flag_D="-z nodefs"
13034 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"
13035 else
13036 # Determine the default libpath from the value encoded in an
13037 # empty executable.
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13042 main ()
13046 return 0;
13048 _ACEOF
13049 if ac_fn_c_try_link "$LINENO"; then :
13051 lt_aix_libpath_sed='
13052 /Import File Strings/,/^$/ {
13053 /^0/ {
13054 s/^0 *\(.*\)$/\1/
13058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13059 # Check for a 64-bit object if we didn't find anything.
13060 if test -z "$aix_libpath"; then
13061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13068 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13069 # Warning - without using the other run time loading flags,
13070 # -berok will link without error, but may produce a broken library.
13071 no_undefined_flag_D=' ${wl}-bernotok'
13072 allow_undefined_flag_D=' ${wl}-berok'
13073 if test "$with_gnu_ld" = yes; then
13074 # We only use this code for GNU lds that support --whole-archive.
13075 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13076 else
13077 # Exported symbols can be pulled into shared objects from archives
13078 whole_archive_flag_spec_D='$convenience'
13080 archive_cmds_need_lc_D=yes
13081 # This is similar to how AIX traditionally builds its shared libraries.
13082 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'
13087 amigaos*)
13088 case $host_cpu in
13089 powerpc)
13090 # see comment about AmigaOS4 .so support
13091 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 archive_expsym_cmds_D=''
13094 m68k)
13095 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)'
13096 hardcode_libdir_flag_spec_D='-L$libdir'
13097 hardcode_minus_L_D=yes
13099 esac
13102 bsdi[45]*)
13103 export_dynamic_flag_spec_D=-rdynamic
13106 cygwin* | mingw* | pw32* | cegcc*)
13107 # When not using gcc, we currently assume that we are using
13108 # Microsoft Visual C++.
13109 # hardcode_libdir_flag_spec is actually meaningless, as there is
13110 # no search path for DLLs.
13111 hardcode_libdir_flag_spec_D=' '
13112 allow_undefined_flag_D=unsupported
13113 # Tell ltmain to make .lib files, not .a files.
13114 libext=lib
13115 # Tell ltmain to make .dll files, not .so files.
13116 shrext_cmds=".dll"
13117 # FIXME: Setting linknames here is a bad hack.
13118 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13119 # The linker will automatically build a .lib file if we build a DLL.
13120 old_archive_from_new_cmds_D='true'
13121 # FIXME: Should let the user specify the lib program.
13122 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13123 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13124 enable_shared_with_static_runtimes_D=yes
13127 darwin* | rhapsody*)
13130 archive_cmds_need_lc_D=no
13131 hardcode_direct_D=no
13132 hardcode_automatic_D=yes
13133 hardcode_shlibpath_var_D=unsupported
13134 if test "$lt_cv_ld_force_load" = "yes"; then
13135 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\"`'
13136 else
13137 whole_archive_flag_spec_D=''
13139 link_all_deplibs_D=yes
13140 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13141 case $cc_basename in
13142 ifort*) _lt_dar_can_shared=yes ;;
13143 *) _lt_dar_can_shared=$GCC ;;
13144 esac
13145 if test "$_lt_dar_can_shared" = "yes"; then
13146 output_verbose_link_cmd=func_echo_all
13147 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}"
13148 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13149 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}"
13150 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}"
13152 else
13153 ld_shlibs_D=no
13158 dgux*)
13159 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13160 hardcode_libdir_flag_spec_D='-L$libdir'
13161 hardcode_shlibpath_var_D=no
13164 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13165 # support. Future versions do this automatically, but an explicit c++rt0.o
13166 # does not break anything, and helps significantly (at the cost of a little
13167 # extra space).
13168 freebsd2.2*)
13169 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13170 hardcode_libdir_flag_spec_D='-R$libdir'
13171 hardcode_direct_D=yes
13172 hardcode_shlibpath_var_D=no
13175 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13176 freebsd2.*)
13177 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13178 hardcode_direct_D=yes
13179 hardcode_minus_L_D=yes
13180 hardcode_shlibpath_var_D=no
13183 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13184 freebsd* | dragonfly*)
13185 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13186 hardcode_libdir_flag_spec_D='-R$libdir'
13187 hardcode_direct_D=yes
13188 hardcode_shlibpath_var_D=no
13191 hpux9*)
13192 if test "$GCC" = yes; then
13193 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'
13194 else
13195 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'
13197 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13198 hardcode_libdir_separator_D=:
13199 hardcode_direct_D=yes
13201 # hardcode_minus_L: Not really in the search PATH,
13202 # but as the default location of the library.
13203 hardcode_minus_L_D=yes
13204 export_dynamic_flag_spec_D='${wl}-E'
13207 hpux10*)
13208 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13209 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13210 else
13211 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13213 if test "$with_gnu_ld" = no; then
13214 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13215 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13216 hardcode_libdir_separator_D=:
13217 hardcode_direct_D=yes
13218 hardcode_direct_absolute_D=yes
13219 export_dynamic_flag_spec_D='${wl}-E'
13220 # hardcode_minus_L: Not really in the search PATH,
13221 # but as the default location of the library.
13222 hardcode_minus_L_D=yes
13226 hpux11*)
13227 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13228 case $host_cpu in
13229 hppa*64*)
13230 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13232 ia64*)
13233 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13236 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13238 esac
13239 else
13240 case $host_cpu in
13241 hppa*64*)
13242 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13244 ia64*)
13245 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13248 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13250 esac
13252 if test "$with_gnu_ld" = no; then
13253 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13254 hardcode_libdir_separator_D=:
13256 case $host_cpu in
13257 hppa*64*|ia64*)
13258 hardcode_direct_D=no
13259 hardcode_shlibpath_var_D=no
13262 hardcode_direct_D=yes
13263 hardcode_direct_absolute_D=yes
13264 export_dynamic_flag_spec_D='${wl}-E'
13266 # hardcode_minus_L: Not really in the search PATH,
13267 # but as the default location of the library.
13268 hardcode_minus_L_D=yes
13270 esac
13274 irix5* | irix6* | nonstopux*)
13275 if test "$GCC" = yes; then
13276 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'
13277 # Try to use the -exported_symbol ld option, if it does not
13278 # work, assume that -exports_file does not work either and
13279 # implicitly export all symbols.
13280 save_LDFLAGS="$LDFLAGS"
13281 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 int foo(void) {}
13285 _ACEOF
13286 if ac_fn_c_try_link "$LINENO"; then :
13287 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'
13290 rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292 LDFLAGS="$save_LDFLAGS"
13293 else
13294 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'
13295 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'
13297 archive_cmds_need_lc_D='no'
13298 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13299 hardcode_libdir_separator_D=:
13300 inherit_rpath_D=yes
13301 link_all_deplibs_D=yes
13304 netbsd*)
13305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13306 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13307 else
13308 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13310 hardcode_libdir_flag_spec_D='-R$libdir'
13311 hardcode_direct_D=yes
13312 hardcode_shlibpath_var_D=no
13315 newsos6)
13316 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13317 hardcode_direct_D=yes
13318 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13319 hardcode_libdir_separator_D=:
13320 hardcode_shlibpath_var_D=no
13323 *nto* | *qnx*)
13326 openbsd*)
13327 if test -f /usr/libexec/ld.so; then
13328 hardcode_direct_D=yes
13329 hardcode_shlibpath_var_D=no
13330 hardcode_direct_absolute_D=yes
13331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13332 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13333 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13334 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13335 export_dynamic_flag_spec_D='${wl}-E'
13336 else
13337 case $host_os in
13338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13339 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13340 hardcode_libdir_flag_spec_D='-R$libdir'
13343 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13344 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13346 esac
13348 else
13349 ld_shlibs_D=no
13353 os2*)
13354 hardcode_libdir_flag_spec_D='-L$libdir'
13355 hardcode_minus_L_D=yes
13356 allow_undefined_flag_D=unsupported
13357 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'
13358 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13361 osf3*)
13362 if test "$GCC" = yes; then
13363 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13364 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'
13365 else
13366 allow_undefined_flag_D=' -expect_unresolved \*'
13367 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'
13369 archive_cmds_need_lc_D='no'
13370 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13371 hardcode_libdir_separator_D=:
13374 osf4* | osf5*) # as osf3* with the addition of -msym flag
13375 if test "$GCC" = yes; then
13376 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13377 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'
13378 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13379 else
13380 allow_undefined_flag_D=' -expect_unresolved \*'
13381 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'
13382 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~
13383 $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'
13385 # Both c and cxx compiler support -rpath directly
13386 hardcode_libdir_flag_spec_D='-rpath $libdir'
13388 archive_cmds_need_lc_D='no'
13389 hardcode_libdir_separator_D=:
13392 solaris*)
13393 no_undefined_flag_D=' -z defs'
13394 if test "$GCC" = yes; then
13395 wlarc='${wl}'
13396 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13397 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13398 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13399 else
13400 case `$CC -V 2>&1` in
13401 *"Compilers 5.0"*)
13402 wlarc=''
13403 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13404 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13405 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13408 wlarc='${wl}'
13409 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13410 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13411 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13413 esac
13415 hardcode_libdir_flag_spec_D='-R$libdir'
13416 hardcode_shlibpath_var_D=no
13417 case $host_os in
13418 solaris2.[0-5] | solaris2.[0-5].*) ;;
13420 # The compiler driver will combine and reorder linker options,
13421 # but understands `-z linker_flag'. GCC discards it without `$wl',
13422 # but is careful enough not to reorder.
13423 # Supported since Solaris 2.6 (maybe 2.5.1?)
13424 if test "$GCC" = yes; then
13425 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13426 else
13427 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13430 esac
13431 link_all_deplibs_D=yes
13434 sunos4*)
13435 if test "x$host_vendor" = xsequent; then
13436 # Use $CC to link under sequent, because it throws in some extra .o
13437 # files that make .init and .fini sections work.
13438 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13439 else
13440 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13442 hardcode_libdir_flag_spec_D='-L$libdir'
13443 hardcode_direct_D=yes
13444 hardcode_minus_L_D=yes
13445 hardcode_shlibpath_var_D=no
13448 sysv4)
13449 case $host_vendor in
13450 sni)
13451 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13452 hardcode_direct_D=yes # is this really true???
13454 siemens)
13455 ## LD is ld it makes a PLAMLIB
13456 ## CC just makes a GrossModule.
13457 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13458 reload_cmds_D='$CC -r -o $output$reload_objs'
13459 hardcode_direct_D=no
13461 motorola)
13462 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13463 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13465 esac
13466 runpath_var='LD_RUN_PATH'
13467 hardcode_shlibpath_var_D=no
13470 sysv4.3*)
13471 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_shlibpath_var_D=no
13473 export_dynamic_flag_spec_D='-Bexport'
13476 sysv4*MP*)
13477 if test -d /usr/nec; then
13478 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_shlibpath_var_D=no
13480 runpath_var=LD_RUN_PATH
13481 hardcode_runpath_var=yes
13482 ld_shlibs_D=yes
13486 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13487 no_undefined_flag_D='${wl}-z,text'
13488 archive_cmds_need_lc_D=no
13489 hardcode_shlibpath_var_D=no
13490 runpath_var='LD_RUN_PATH'
13492 if test "$GCC" = yes; then
13493 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 else
13496 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 sysv5* | sco3.2v5* | sco5v6*)
13502 # Note: We can NOT use -z defs as we might desire, because we do not
13503 # link with -lc, and that would cause any symbols used from libc to
13504 # always be unresolved, which means just about no library would
13505 # ever link correctly. If we're not using GNU ld we use -z text
13506 # though, which does catch some bad symbols but isn't as heavy-handed
13507 # as -z defs.
13508 no_undefined_flag_D='${wl}-z,text'
13509 allow_undefined_flag_D='${wl}-z,nodefs'
13510 archive_cmds_need_lc_D=no
13511 hardcode_shlibpath_var_D=no
13512 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13513 hardcode_libdir_separator_D=':'
13514 link_all_deplibs_D=yes
13515 export_dynamic_flag_spec_D='${wl}-Bexport'
13516 runpath_var='LD_RUN_PATH'
13518 if test "$GCC" = yes; then
13519 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 else
13522 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 uts4*)
13528 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529 hardcode_libdir_flag_spec_D='-L$libdir'
13530 hardcode_shlibpath_var_D=no
13534 ld_shlibs_D=no
13536 esac
13538 if test x$host_vendor = xsni; then
13539 case $host in
13540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13541 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13543 esac
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13548 $as_echo "$ld_shlibs_D" >&6; }
13549 test "$ld_shlibs_D" = no && can_build_shared=no
13551 with_gnu_ld_D=$with_gnu_ld
13559 # Do we need to explicitly link libc?
13561 case "x$archive_cmds_need_lc_D" in
13562 x|xyes)
13563 # Assume -lc should be added
13564 archive_cmds_need_lc_D=yes
13566 if test "$enable_shared" = yes && test "$GCC" = yes; then
13567 case $archive_cmds_D in
13568 *'~'*)
13569 # FIXME: we may have to deal with multi-command sequences.
13571 '$CC '*)
13572 # Test whether the compiler implicitly links with -lc since on some
13573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13574 # to ld, don't add -lc before -lgcc.
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13576 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13577 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 $RM conftest*
13581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13584 (eval $ac_compile) 2>&5
13585 ac_status=$?
13586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13587 test $ac_status = 0; } 2>conftest.err; then
13588 soname=conftest
13589 lib=conftest
13590 libobjs=conftest.$ac_objext
13591 deplibs=
13592 wl=$lt_prog_compiler_wl_D
13593 pic_flag=$lt_prog_compiler_pic_D
13594 compiler_flags=-v
13595 linker_flags=-v
13596 verstring=
13597 output_objdir=.
13598 libname=conftest
13599 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13600 allow_undefined_flag_D=
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13602 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13603 ac_status=$?
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }
13606 then
13607 lt_cv_archive_cmds_need_lc_D=no
13608 else
13609 lt_cv_archive_cmds_need_lc_D=yes
13611 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13612 else
13613 cat conftest.err 1>&5
13615 $RM conftest*
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13619 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13620 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13622 esac
13625 esac
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13692 hardcode_action_D=
13693 if test -n "$hardcode_libdir_flag_spec_D" ||
13694 test -n "$runpath_var_D" ||
13695 test "X$hardcode_automatic_D" = "Xyes" ; then
13697 # We can hardcode non-existent directories.
13698 if test "$hardcode_direct_D" != no &&
13699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13700 # have to relink, otherwise we might link with an installed library
13701 # when we should be linking with a yet-to-be-installed one
13702 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13703 test "$hardcode_minus_L_D" != no; then
13704 # Linking always hardcodes the temporary library directory.
13705 hardcode_action_D=relink
13706 else
13707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13708 hardcode_action_D=immediate
13710 else
13711 # We cannot hardcode anything, or else we can only hardcode existing
13712 # directories.
13713 hardcode_action_D=unsupported
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13716 $as_echo "$hardcode_action_D" >&6; }
13718 if test "$hardcode_action_D" = relink ||
13719 test "$inherit_rpath_D" = yes; then
13720 # Fast installation is not supported
13721 enable_fast_install=no
13722 elif test "$shlibpath_overrides_runpath" = yes ||
13723 test "$enable_shared" = no; then
13724 # Fast installation is not necessary
13725 enable_fast_install=needless
13736 ac_ext=c
13737 ac_cpp='$CPP $CPPFLAGS'
13738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13743 GCC=$lt_save_GCC
13744 CC=$lt_save_CC
13745 CFLAGS=$lt_save_CFLAGS
13746 GDCFLAGS=$lt_save_DFLAGS
13748 GDCFLAGS=$gdc_save_DFLAGS
13750 if test "$enable_shared" = "yes"; then
13751 ENABLE_SHARED_TRUE=
13752 ENABLE_SHARED_FALSE='#'
13753 else
13754 ENABLE_SHARED_TRUE='#'
13755 ENABLE_SHARED_FALSE=
13758 if test "$enable_static" = "yes"; then
13759 ENABLE_STATIC_TRUE=
13760 ENABLE_STATIC_FALSE='#'
13761 else
13762 ENABLE_STATIC_TRUE='#'
13763 ENABLE_STATIC_FALSE=
13767 # libtool variables for Phobos shared and position-independent compiles.
13769 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13770 # creating shared objects. Default: -fversion=Shared.
13772 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13773 # creating position-independent objects. This varies with the target
13774 # hardware and operating system, but is often: -fPIC.
13776 # The distinction between pic and shared compilation flags is not present in
13777 # libtool, and so we make it here. How it is handled is that in shared
13778 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13779 # ensure that conditional compilation of shared runtime code is compiled in.
13780 # The original PIC flags are then used in the compilation of every object.
13782 # Why are objects destined for libgphobos.a compiled with -fPIC?
13783 # Because -fPIC is not harmful to use for objects destined for static
13784 # libraries. In addition, using -fPIC will allow the use of static
13785 # libgphobos.a in the creation of other D shared libraries.
13786 if test "$enable_shared" = yes; then
13787 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13788 phobos_compiler_shared_flag="-fversion=Shared"
13789 else
13790 phobos_compiler_pic_flag=
13791 phobos_compiler_shared_flag=
13796 # Override the libtool's pic_flag and pic_mode.
13797 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13798 # NB: this impacts --with-pic and --without-pic.
13799 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13800 pic_mode='default'
13802 # Determine what GCC version number to use in filesystem paths.
13804 get_gcc_base_ver="cat"
13806 # Check whether --with-gcc-major-version-only was given.
13807 if test "${with_gcc_major_version_only+set}" = set; then :
13808 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13809 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13817 # libphobos/libdruntime specific options and feature detection
13819 # These need to be absolute paths, yet at the same time need to
13820 # canonicalize only relative paths, because then amd will not unmount
13821 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13822 libphobos_builddir=`${PWDCMD-pwd}`
13823 case $srcdir in
13824 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13825 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13826 esac
13831 if test ${multilib} = yes; then
13832 multilib_arg="--enable-multilib"
13833 else
13834 multilib_arg=
13838 # Check whether --enable-werror was given.
13839 if test "${enable_werror+set}" = set; then :
13840 enableval=$enable_werror;
13843 WERROR_FLAG=""
13844 if test "x$enable_werror" = "xyes"; then
13845 WERROR_FLAG="-Werror"
13849 # Check whether --enable-druntime-gc was given.
13850 if test "${enable_druntime_gc+set}" = set; then :
13851 enableval=$enable_druntime_gc; enable_druntime_gc=no
13852 else
13853 enable_druntime_gc=yes
13857 if test "$enable_druntime_gc" = "yes"; then
13858 DRUNTIME_GC_ENABLE_TRUE=
13859 DRUNTIME_GC_ENABLE_FALSE='#'
13860 else
13861 DRUNTIME_GC_ENABLE_TRUE='#'
13862 DRUNTIME_GC_ENABLE_FALSE=
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13868 $as_echo_n "checking for target OS... " >&6; }
13869 if ${druntime_cv_target_os+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13875 $as_echo "$druntime_cv_target_os" >&6; }
13876 if test -z "$druntime_cv_target_os"; then :
13877 as_fn_error $? "can't detect target OS" "$LINENO" 5
13882 # Check whether --enable-unix was given.
13883 if test "${enable_unix+set}" = set; then :
13884 enableval=$enable_unix; :
13885 else
13886 enable_unix=auto
13890 case "$druntime_cv_target_os" in
13891 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13892 esac
13893 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13894 enable_unix=yes
13896 if test "$enable_unix" = "yes"; then
13897 DRUNTIME_OS_UNIX_TRUE=
13898 DRUNTIME_OS_UNIX_FALSE='#'
13899 else
13900 DRUNTIME_OS_UNIX_TRUE='#'
13901 DRUNTIME_OS_UNIX_FALSE=
13908 druntime_target_os_parsed=""
13909 case "$druntime_cv_target_os" in
13910 aix*) druntime_target_os_parsed="aix"
13912 *android*)
13913 druntime_target_os_parsed="android"
13915 darwin*) druntime_target_os_parsed="darwin"
13917 dragonfly*)
13918 druntime_target_os_parsed="dragonflybsd"
13920 freebsd*|k*bsd*-gnu)
13921 druntime_target_os_parsed="freebsd"
13923 openbsd*)
13924 druntime_target_os_parsed="openbsd"
13926 netbsd*)
13927 druntime_target_os_parsed="netbsd"
13929 linux*) druntime_target_os_parsed="linux"
13931 mingw*) druntime_target_os_parsed="mingw"
13933 *solaris*) druntime_target_os_parsed="solaris"
13934 esac
13935 if test "$druntime_target_os_parsed" = "aix"; then
13936 DRUNTIME_OS_AIX_TRUE=
13937 DRUNTIME_OS_AIX_FALSE='#'
13938 else
13939 DRUNTIME_OS_AIX_TRUE='#'
13940 DRUNTIME_OS_AIX_FALSE=
13943 if test "$druntime_target_os_parsed" = "android"; then
13944 DRUNTIME_OS_ANDROID_TRUE=
13945 DRUNTIME_OS_ANDROID_FALSE='#'
13946 else
13947 DRUNTIME_OS_ANDROID_TRUE='#'
13948 DRUNTIME_OS_ANDROID_FALSE=
13951 if test "$druntime_target_os_parsed" = "darwin"; then
13952 DRUNTIME_OS_DARWIN_TRUE=
13953 DRUNTIME_OS_DARWIN_FALSE='#'
13954 else
13955 DRUNTIME_OS_DARWIN_TRUE='#'
13956 DRUNTIME_OS_DARWIN_FALSE=
13959 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13960 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13961 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13962 else
13963 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13964 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13967 if test "$druntime_target_os_parsed" = "freebsd"; then
13968 DRUNTIME_OS_FREEBSD_TRUE=
13969 DRUNTIME_OS_FREEBSD_FALSE='#'
13970 else
13971 DRUNTIME_OS_FREEBSD_TRUE='#'
13972 DRUNTIME_OS_FREEBSD_FALSE=
13975 if test "$druntime_target_os_parsed" = "netbsd"; then
13976 DRUNTIME_OS_NETBSD_TRUE=
13977 DRUNTIME_OS_NETBSD_FALSE='#'
13978 else
13979 DRUNTIME_OS_NETBSD_TRUE='#'
13980 DRUNTIME_OS_NETBSD_FALSE=
13983 if test "$druntime_target_os_parsed" = "openbsd"; then
13984 DRUNTIME_OS_OPENBSD_TRUE=
13985 DRUNTIME_OS_OPENBSD_FALSE='#'
13986 else
13987 DRUNTIME_OS_OPENBSD_TRUE='#'
13988 DRUNTIME_OS_OPENBSD_FALSE=
13991 if test "$druntime_target_os_parsed" = "linux"; then
13992 DRUNTIME_OS_LINUX_TRUE=
13993 DRUNTIME_OS_LINUX_FALSE='#'
13994 else
13995 DRUNTIME_OS_LINUX_TRUE='#'
13996 DRUNTIME_OS_LINUX_FALSE=
13999 if test "$druntime_target_os_parsed" = "mingw"; then
14000 DRUNTIME_OS_MINGW_TRUE=
14001 DRUNTIME_OS_MINGW_FALSE='#'
14002 else
14003 DRUNTIME_OS_MINGW_TRUE='#'
14004 DRUNTIME_OS_MINGW_FALSE=
14007 if test "$druntime_target_os_parsed" = "solaris"; then
14008 DRUNTIME_OS_SOLARIS_TRUE=
14009 DRUNTIME_OS_SOLARIS_FALSE='#'
14010 else
14011 DRUNTIME_OS_SOLARIS_TRUE='#'
14012 DRUNTIME_OS_SOLARIS_FALSE=
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14019 $as_echo_n "checking for thread model used by GDC... " >&6; }
14020 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14022 $as_echo "$d_thread_model" >&6; }
14024 # Map from thread model to thread interface.
14026 case $d_thread_model in
14027 aix) DCFG_THREAD_MODEL="Posix" ;;
14028 lynx) DCFG_THREAD_MODEL="Posix" ;;
14029 posix) DCFG_THREAD_MODEL="Posix" ;;
14030 single) DCFG_THREAD_MODEL="Single" ;;
14031 win32) DCFG_THREAD_MODEL="Win32" ;;
14032 # TODO: These targets need porting.
14033 dce|mipssde|rtems|tpf|vxworks)
14034 DCFG_THREAD_MODEL="Single" ;;
14035 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14036 esac
14041 ac_ext=c
14042 ac_cpp='$CPP $CPPFLAGS'
14043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14048 $as_echo_n "checking for ARM unwinder... " >&6; }
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14051 #include <unwind.h>
14053 main ()
14056 #if __ARM_EABI_UNWINDER__
14057 #error Yes, it is.
14058 #endif
14061 return 0;
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067 DCFG_ARM_EABI_UNWINDER=false
14068 else
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14070 $as_echo "yes" >&6; }
14071 DCFG_ARM_EABI_UNWINDER=true
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14076 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14077 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14078 else
14079 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14080 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14083 ac_ext=c
14084 ac_cpp='$CPP $CPPFLAGS'
14085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14091 ac_ext=c
14092 ac_cpp='$CPP $CPPFLAGS'
14093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14098 $as_echo_n "checking for minfo section bracketing... " >&6; }
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14102 void* module_info_ptr __attribute__((section ("minfo")));
14103 extern void* __start_minfo __attribute__((visibility ("hidden")));
14104 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14106 int main()
14108 // Never run, just to prevent compiler from optimizing access
14109 return &__start_minfo == &__stop_minfo;
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14115 $as_echo "yes" >&6; }
14116 DCFG_MINFO_BRACKETING=true
14117 else
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 $as_echo "no" >&6; }
14120 DCFG_MINFO_BRACKETING=false
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14125 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14126 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14127 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14128 else
14129 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14130 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14133 ac_ext=c
14134 ac_cpp='$CPP $CPPFLAGS'
14135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14141 ac_ext=c
14142 ac_cpp='$CPP $CPPFLAGS'
14143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14147 DCFG_HAVE_QSORT_R=false
14148 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14149 if test "x$ac_cv_func_qsort_r" = xyes; then :
14150 DCFG_HAVE_QSORT_R=true
14154 ac_ext=c
14155 ac_cpp='$CPP $CPPFLAGS'
14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14164 gdc_save_DFLAGS=$GDCFLAGS
14165 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14167 ac_ext=d
14168 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14169 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14170 ac_compiler_gnu=yes
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14173 $as_echo_n "checking for library containing malloc... " >&6; }
14174 if ${ac_cv_search_malloc+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 ac_func_search_save_LIBS=$LIBS
14178 cat > conftest.$ac_ext <<_ACEOF
14179 module mod;
14180 extern(C) int malloc();
14182 extern(C) int main() {
14183 malloc(); return 0;
14185 _ACEOF
14186 for ac_lib in '' c; do
14187 if test -z "$ac_lib"; then
14188 ac_res="none required"
14189 else
14190 ac_res=-l$ac_lib
14191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14193 if ac_fn_d_try_link "$LINENO"; then :
14194 ac_cv_search_malloc=$ac_res
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext
14198 if ${ac_cv_search_malloc+:} false; then :
14199 break
14201 done
14202 if ${ac_cv_search_malloc+:} false; then :
14204 else
14205 ac_cv_search_malloc=no
14207 rm conftest.$ac_ext
14208 LIBS=$ac_func_search_save_LIBS
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14211 $as_echo "$ac_cv_search_malloc" >&6; }
14212 ac_res=$ac_cv_search_malloc
14213 if test "$ac_res" != no; then :
14214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14219 enable_thread_lib=yes
14220 # Check whether --enable-thread-lib was given.
14221 if test "${enable_thread_lib+set}" = set; then :
14222 enableval=$enable_thread_lib;
14226 if test "x$enable_thread_lib" = "xyes"; then :
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14229 $as_echo_n "checking for library containing pthread_create... " >&6; }
14230 if ${ac_cv_search_pthread_create+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 ac_func_search_save_LIBS=$LIBS
14234 cat > conftest.$ac_ext <<_ACEOF
14235 module mod;
14236 extern(C) int pthread_create();
14238 extern(C) int main() {
14239 pthread_create(); return 0;
14241 _ACEOF
14242 for ac_lib in '' pthread; do
14243 if test -z "$ac_lib"; then
14244 ac_res="none required"
14245 else
14246 ac_res=-l$ac_lib
14247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14249 if ac_fn_d_try_link "$LINENO"; then :
14250 ac_cv_search_pthread_create=$ac_res
14252 rm -f core conftest.err conftest.$ac_objext \
14253 conftest$ac_exeext
14254 if ${ac_cv_search_pthread_create+:} false; then :
14255 break
14257 done
14258 if ${ac_cv_search_pthread_create+:} false; then :
14260 else
14261 ac_cv_search_pthread_create=no
14263 rm conftest.$ac_ext
14264 LIBS=$ac_func_search_save_LIBS
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14267 $as_echo "$ac_cv_search_pthread_create" >&6; }
14268 ac_res=$ac_cv_search_pthread_create
14269 if test "$ac_res" != no; then :
14270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14275 else
14277 if test "x$enable_thread_lib" = "xno"; then :
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14280 $as_echo_n "checking for thread library... " >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14282 $as_echo "disabled" >&6; }
14284 else
14286 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14288 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14289 if eval \${$as_ac_Lib+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-l$enable_thread_lib $LIBS"
14294 cat > conftest.$ac_ext <<_ACEOF
14295 module mod;
14296 extern(C) int pthread_create();
14298 extern(C) int main() {
14299 pthread_create(); return 0;
14301 _ACEOF
14302 if ac_fn_d_try_link "$LINENO"; then :
14303 eval "$as_ac_Lib=yes"
14304 else
14305 eval "$as_ac_Lib=no"
14307 rm -f core conftest.err conftest.$ac_objext \
14308 conftest$ac_exeext conftest.$ac_ext
14309 LIBS=$ac_check_lib_save_LIBS
14311 eval ac_res=\$$as_ac_Lib
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14313 $as_echo "$ac_res" >&6; }
14314 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14317 _ACEOF
14319 LIBS="-l$enable_thread_lib $LIBS"
14321 else
14323 as_fn_error $? "Thread library not found" "$LINENO" 5
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14333 $as_echo_n "checking for library containing cosf... " >&6; }
14334 if ${ac_cv_search_cosf+:} false; then :
14335 $as_echo_n "(cached) " >&6
14336 else
14337 ac_func_search_save_LIBS=$LIBS
14338 cat > conftest.$ac_ext <<_ACEOF
14339 module mod;
14340 extern(C) int cosf();
14342 extern(C) int main() {
14343 cosf(); return 0;
14345 _ACEOF
14346 for ac_lib in '' m; do
14347 if test -z "$ac_lib"; then
14348 ac_res="none required"
14349 else
14350 ac_res=-l$ac_lib
14351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14353 if ac_fn_d_try_link "$LINENO"; then :
14354 ac_cv_search_cosf=$ac_res
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext
14358 if ${ac_cv_search_cosf+:} false; then :
14359 break
14361 done
14362 if ${ac_cv_search_cosf+:} false; then :
14364 else
14365 ac_cv_search_cosf=no
14367 rm conftest.$ac_ext
14368 LIBS=$ac_func_search_save_LIBS
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14371 $as_echo "$ac_cv_search_cosf" >&6; }
14372 ac_res=$ac_cv_search_cosf
14373 if test "$ac_res" != no; then :
14374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14379 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14380 if ${ac_cv_search_clock_gettime+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 ac_func_search_save_LIBS=$LIBS
14384 cat > conftest.$ac_ext <<_ACEOF
14385 module mod;
14386 extern(C) int clock_gettime();
14388 extern(C) int main() {
14389 clock_gettime(); return 0;
14391 _ACEOF
14392 for ac_lib in '' rt; do
14393 if test -z "$ac_lib"; then
14394 ac_res="none required"
14395 else
14396 ac_res=-l$ac_lib
14397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14399 if ac_fn_d_try_link "$LINENO"; then :
14400 ac_cv_search_clock_gettime=$ac_res
14402 rm -f core conftest.err conftest.$ac_objext \
14403 conftest$ac_exeext
14404 if ${ac_cv_search_clock_gettime+:} false; then :
14405 break
14407 done
14408 if ${ac_cv_search_clock_gettime+:} false; then :
14410 else
14411 ac_cv_search_clock_gettime=no
14413 rm conftest.$ac_ext
14414 LIBS=$ac_func_search_save_LIBS
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14417 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14418 ac_res=$ac_cv_search_clock_gettime
14419 if test "$ac_res" != no; then :
14420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14425 # This checks to see if the host supports the compiler-generated builtins
14426 # for atomic operations for various integral sizes. Note, this is intended
14427 # to be an all-or-nothing switch, so all the atomic operations that are
14428 # used should be checked.
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14430 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14431 if ${druntime_cv_atomic_byte+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14435 cat > conftest.$ac_ext <<_ACEOF
14436 module mod;
14437 import gcc.builtins;
14439 extern(C) int main() {
14441 shared(byte) c1;
14442 byte c2, c3;
14443 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14444 __atomic_load_1(&c1, 5);
14445 __atomic_store_1(&c1, c2, 5);
14446 return 0;
14449 _ACEOF
14450 if ac_fn_d_try_link "$LINENO"; then :
14451 druntime_cv_atomic_byte=yes
14452 else
14453 druntime_cv_atomic_byte=no
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14461 $as_echo "$druntime_cv_atomic_byte" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14464 $as_echo_n "checking for atomic builtins for short... " >&6; }
14465 if ${druntime_cv_atomic_short+:} false; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14469 cat > conftest.$ac_ext <<_ACEOF
14470 module mod;
14471 import gcc.builtins;
14473 extern(C) int main() {
14475 shared(short) c1;
14476 short c2, c3;
14477 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14478 __atomic_load_2(&c1, 5);
14479 __atomic_store_2(&c1, c2, 5);
14480 return 0;
14483 _ACEOF
14484 if ac_fn_d_try_link "$LINENO"; then :
14485 druntime_cv_atomic_short=yes
14486 else
14487 druntime_cv_atomic_short=no
14489 rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14495 $as_echo "$druntime_cv_atomic_short" >&6; }
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14498 $as_echo_n "checking for atomic builtins for int... " >&6; }
14499 if ${druntime_cv_atomic_int+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14503 cat > conftest.$ac_ext <<_ACEOF
14504 module mod;
14505 import gcc.builtins;
14507 extern(C) int main() {
14509 shared(int) c1;
14510 int c2, c3;
14511 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14512 __atomic_load_4(&c1, 5);
14513 __atomic_store_4(&c1, c2, 5);
14514 return 0;
14517 _ACEOF
14518 if ac_fn_d_try_link "$LINENO"; then :
14519 druntime_cv_atomic_int=yes
14520 else
14521 druntime_cv_atomic_int=no
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14529 $as_echo "$druntime_cv_atomic_int" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14532 $as_echo_n "checking for atomic builtins for long... " >&6; }
14533 if ${druntime_cv_atomic_long+:} false; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14537 cat > conftest.$ac_ext <<_ACEOF
14538 module mod;
14539 import gcc.builtins;
14541 extern(C) int main() {
14543 shared(long) c1;
14544 long c2, c3;
14545 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14546 __atomic_load_8(&c1, 5);
14547 __atomic_store_8(&c1, c2, 5);
14548 return 0;
14551 _ACEOF
14552 if ac_fn_d_try_link "$LINENO"; then :
14553 druntime_cv_atomic_long=yes
14554 else
14555 druntime_cv_atomic_long=no
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14563 $as_echo "$druntime_cv_atomic_long" >&6; }
14565 # Have atomic builtin support if all but the long test above passes.
14566 DCFG_HAVE_ATOMIC_BUILTINS=false
14567 if test "$druntime_cv_atomic_byte" = yes \
14568 && test "$druntime_cv_atomic_short" = yes \
14569 && test "$druntime_cv_atomic_int" = yes; then \
14570 DCFG_HAVE_ATOMIC_BUILTINS=true
14573 # Have 64-bit atomic support if the long test above passes.
14574 DCFG_HAVE_64BIT_ATOMICS=false
14575 if test "$druntime_cv_atomic_long" = yes; then
14576 DCFG_HAVE_64BIT_ATOMICS=true
14582 ac_ext=c
14583 ac_cpp='$CPP $CPPFLAGS'
14584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14589 GDCFLAGS=$gdc_save_DFLAGS
14594 # Check whether --with-libatomic was given.
14595 if test "${with_libatomic+set}" = set; then :
14596 withval=$with_libatomic;
14600 DCFG_HAVE_LIBATOMIC=false
14601 LIBATOMIC=
14602 if test "x$with_libatomic" != "xno"; then :
14604 DCFG_HAVE_LIBATOMIC=true
14605 LIBATOMIC=../../libatomic/libatomic_convenience.la
14607 else
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14610 $as_echo_n "checking for libatomic... " >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14612 $as_echo "disabled" >&6; }
14620 ac_ext=c
14621 ac_cpp='$CPP $CPPFLAGS'
14622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14626 BACKTRACE_SUPPORTED=false
14627 BACKTRACE_USES_MALLOC=false
14628 BACKTRACE_SUPPORTS_THREADS=false
14629 LIBBACKTRACE=""
14632 # Check whether --with-libbacktrace was given.
14633 if test "${with_libbacktrace+set}" = set; then :
14634 withval=$with_libbacktrace;
14638 if test "x$with_libbacktrace" != "xno"; then :
14640 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14642 gdc_save_CPPFLAGS=$CPPFLAGS
14643 CPPFLAGS+=" -I../libbacktrace "
14645 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14646 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14647 have_libbacktrace_h=true
14648 else
14649 have_libbacktrace_h=false
14654 if $have_libbacktrace_h; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14656 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14660 #include <backtrace-supported.h>
14661 #if BACKTRACE_SUPPORTED
14662 FOUND_LIBBACKTRACE_RESULT_GDC
14663 #endif
14665 _ACEOF
14666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14667 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14668 BACKTRACE_SUPPORTED=true
14669 else
14670 BACKTRACE_SUPPORTED=false
14672 rm -f conftest*
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14675 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14678 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14682 #include <backtrace-supported.h>
14683 #if BACKTRACE_USES_MALLOC
14684 FOUND_LIBBACKTRACE_RESULT_GDC
14685 #endif
14687 _ACEOF
14688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14689 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14690 BACKTRACE_USES_MALLOC=true
14691 else
14692 BACKTRACE_USES_MALLOC=false
14694 rm -f conftest*
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14697 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14700 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14704 #include <backtrace-supported.h>
14705 #if BACKTRACE_SUPPORTS_THREADS
14706 FOUND_LIBBACKTRACE_RESULT_GDC
14707 #endif
14709 _ACEOF
14710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14711 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14712 BACKTRACE_SUPPORTS_THREADS=true
14713 else
14714 BACKTRACE_SUPPORTS_THREADS=false
14716 rm -f conftest*
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14719 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14721 CPPFLAGS=$gdc_save_CPPFLAGS
14723 else
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14726 $as_echo_n "checking for libbacktrace... " >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14728 $as_echo "disabled" >&6; }
14736 ac_ext=c
14737 ac_cpp='$CPP $CPPFLAGS'
14738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14744 # Libtool has already checked this, so re-use the inferred dlopen lib.
14745 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14747 LIBS="$LIBS $lt_cv_dlopen_libs"
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14753 $as_echo_n "checking for socket libraries... " >&6; }
14754 if ${druntime_cv_lib_sockets+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 druntime_cv_lib_sockets=
14758 druntime_check_both=no
14759 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14760 if test "x$ac_cv_func_connect" = xyes; then :
14761 druntime_check_socket=no
14762 else
14763 druntime_check_socket=yes
14766 if test "$druntime_check_socket" = "yes"; then
14767 unset ac_cv_func_connect
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14769 $as_echo_n "checking for main in -lsocket... " >&6; }
14770 if ${ac_cv_lib_socket_main+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 ac_check_lib_save_LIBS=$LIBS
14774 LIBS="-lsocket $LIBS"
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14780 main ()
14782 return main ();
14784 return 0;
14786 _ACEOF
14787 if ac_fn_c_try_link "$LINENO"; then :
14788 ac_cv_lib_socket_main=yes
14789 else
14790 ac_cv_lib_socket_main=no
14792 rm -f core conftest.err conftest.$ac_objext \
14793 conftest$ac_exeext conftest.$ac_ext
14794 LIBS=$ac_check_lib_save_LIBS
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14797 $as_echo "$ac_cv_lib_socket_main" >&6; }
14798 if test "x$ac_cv_lib_socket_main" = xyes; then :
14799 druntime_cv_lib_sockets="-lsocket"
14800 else
14801 druntime_check_both=yes
14805 if test "$druntime_check_both" = "yes"; then
14806 druntime_old_libs=$LIBS
14807 LIBS="$LIBS -lsocket -lnsl"
14808 unset ac_cv_func_accept
14809 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14810 if test "x$ac_cv_func_accept" = xyes; then :
14811 druntime_check_nsl=no
14812 druntime_cv_lib_sockets="-lsocket -lnsl"
14815 unset ac_cv_func_accept
14816 LIBS=$druntime_old_libs
14818 unset ac_cv_func_gethostbyname
14819 druntime_old_libs="$LIBS"
14820 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14821 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14823 else
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14825 $as_echo_n "checking for main in -lnsl... " >&6; }
14826 if ${ac_cv_lib_nsl_main+:} false; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lnsl $LIBS"
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14836 main ()
14838 return main ();
14840 return 0;
14842 _ACEOF
14843 if ac_fn_c_try_link "$LINENO"; then :
14844 ac_cv_lib_nsl_main=yes
14845 else
14846 ac_cv_lib_nsl_main=no
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_check_lib_save_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14853 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14854 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14855 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
14863 $as_echo "$druntime_cv_lib_sockets" >&6; }
14864 LIBS="$LIBS $druntime_cv_lib_sockets"
14868 # Check whether --with-target-system-zlib was given.
14869 if test "${with_target_system_zlib+set}" = set; then :
14870 withval=$with_target_system_zlib;
14874 system_zlib=false
14875 if test "x$with_target_system_zlib" = "xyes"; then :
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14878 $as_echo_n "checking for deflate in -lz... " >&6; }
14879 if ${ac_cv_lib_z_deflate+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lz $LIBS"
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 char deflate ();
14895 main ()
14897 return deflate ();
14899 return 0;
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"; then :
14903 ac_cv_lib_z_deflate=yes
14904 else
14905 ac_cv_lib_z_deflate=no
14907 rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14909 LIBS=$ac_check_lib_save_LIBS
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14912 $as_echo "$ac_cv_lib_z_deflate" >&6; }
14913 if test "x$ac_cv_lib_z_deflate" = xyes; then :
14915 system_zlib=yes
14917 else
14919 as_fn_error $? "System zlib not found" "$LINENO" 5
14924 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14927 $as_echo_n "checking for zlib... " >&6; }
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14929 $as_echo "just compiled" >&6; }
14933 if test "$with_target_system_zlib" = yes; then
14934 DRUNTIME_ZLIB_SYSTEM_TRUE=
14935 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14936 else
14937 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14938 DRUNTIME_ZLIB_SYSTEM_FALSE=
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14946 $as_echo_n "checking D GCC version... " >&6; }
14947 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14949 $as_echo "$gcc_version" >&6; }
14953 # Check whether --with-cross-host was given.
14954 if test "${with_cross_host+set}" = set; then :
14955 withval=$with_cross_host;
14959 libphobos_toolexecdir=no
14960 libphobos_toolexeclibdir=no
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14963 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14964 # Check whether --enable-version-specific-runtime-libs was given.
14965 if test "${enable_version_specific_runtime_libs+set}" = set; then :
14966 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
14967 yes) version_specific_libs=yes ;;
14968 no) version_specific_libs=no ;;
14969 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14970 esac
14971 else
14972 version_specific_libs=no
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14976 $as_echo "$version_specific_libs" >&6; }
14978 # Version-specific runtime libs processing.
14979 if test $version_specific_libs = yes; then
14980 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14981 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14982 else
14983 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14984 # Install a library built with a cross compiler in tooldir, not libdir.
14985 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14986 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
14987 libphobos_toolexeclibdir='${toolexecdir}/lib'
14988 else
14989 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14990 libphobos_toolexeclibdir='${libdir}'
14992 multi_os_directory=`$GDC -print-multi-os-directory`
14993 case $multi_os_directory in
14994 .) ;; # Avoid trailing /.
14995 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14996 esac
15001 # Default case for install directory for D sources files.
15002 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15006 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15007 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15008 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15009 else
15010 DRTSTUFF_SPEC=/dev/null
15014 # Add dependencies for libgphobos.spec file
15015 SPEC_PHOBOS_DEPS="$LIBS"
15018 # Libdruntime / phobos soname version
15019 libtool_VERSION=76:3:0
15022 # Set default flags (after DRUNTIME_WERROR!)
15023 if test -z "$GDCFLAGS"; then
15024 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15028 if test -z "$GDCFLAGSX"; then
15029 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15033 # Sanity check for the cross-compilation case:
15034 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15035 if test "x$ac_cv_header_stdio_h" = xyes; then :
15037 else
15038 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15043 ac_config_files="$ac_config_files Makefile"
15046 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15048 ac_config_files="$ac_config_files src/libgphobos.spec"
15050 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15053 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15054 # that multilib installs will end up installed in the correct place.
15055 # The testsuite needs it for multilib-aware ABI baseline files.
15056 # To work around this not being passed down from config-ml.in ->
15057 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15058 # append it here. Only modify Makefiles that have just been created.
15060 # Also, get rid of this simulated-VPATH thing that automake does.
15061 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15064 cat >confcache <<\_ACEOF
15065 # This file is a shell script that caches the results of configure
15066 # tests run on this system so they can be shared between configure
15067 # scripts and configure runs, see configure's option --config-cache.
15068 # It is not useful on other systems. If it contains results you don't
15069 # want to keep, you may remove or edit it.
15071 # config.status only pays attention to the cache file if you give it
15072 # the --recheck option to rerun configure.
15074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15076 # following values.
15078 _ACEOF
15080 # The following way of writing the cache mishandles newlines in values,
15081 # but we know of no workaround that is simple, portable, and efficient.
15082 # So, we kill variables containing newlines.
15083 # Ultrix sh set writes to stderr and can't be redirected directly,
15084 # and sets the high bit in the cache file unless we assign to the vars.
15086 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15087 eval ac_val=\$$ac_var
15088 case $ac_val in #(
15089 *${as_nl}*)
15090 case $ac_var in #(
15091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15093 esac
15094 case $ac_var in #(
15095 _ | IFS | as_nl) ;; #(
15096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15097 *) { eval $ac_var=; unset $ac_var;} ;;
15098 esac ;;
15099 esac
15100 done
15102 (set) 2>&1 |
15103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15104 *${as_nl}ac_space=\ *)
15105 # `set' does not quote correctly, so add quotes: double-quote
15106 # substitution turns \\\\ into \\, and sed turns \\ into \.
15107 sed -n \
15108 "s/'/'\\\\''/g;
15109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15110 ;; #(
15112 # `set' quotes correctly as required by POSIX, so do not add quotes.
15113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15115 esac |
15116 sort
15118 sed '
15119 /^ac_cv_env_/b end
15120 t clear
15121 :clear
15122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15123 t end
15124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15125 :end' >>confcache
15126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15127 if test -w "$cache_file"; then
15128 if test "x$cache_file" != "x/dev/null"; then
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15130 $as_echo "$as_me: updating cache $cache_file" >&6;}
15131 if test ! -f "$cache_file" || test -h "$cache_file"; then
15132 cat confcache >"$cache_file"
15133 else
15134 case $cache_file in #(
15135 */* | ?:*)
15136 mv -f confcache "$cache_file"$$ &&
15137 mv -f "$cache_file"$$ "$cache_file" ;; #(
15139 mv -f confcache "$cache_file" ;;
15140 esac
15143 else
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15145 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15148 rm -f confcache
15150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15151 # Let make expand exec_prefix.
15152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15154 DEFS=-DHAVE_CONFIG_H
15156 ac_libobjs=
15157 ac_ltlibobjs=
15159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15160 # 1. Remove the extension, and $U if already installed.
15161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15164 # will be set to the directory where LIBOBJS objects are built.
15165 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15166 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15167 done
15168 LIBOBJS=$ac_libobjs
15170 LTLIBOBJS=$ac_ltlibobjs
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15174 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15175 if test -n "$am_sleep_pid"; then
15176 # Hide warnings about reused PIDs.
15177 wait $am_sleep_pid 2>/dev/null
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15180 $as_echo "done" >&6; }
15181 if test -n "$EXEEXT"; then
15182 am__EXEEXT_TRUE=
15183 am__EXEEXT_FALSE='#'
15184 else
15185 am__EXEEXT_TRUE='#'
15186 am__EXEEXT_FALSE=
15189 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15190 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15193 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15194 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
15195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15197 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
15198 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
15199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15201 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15202 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15205 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15206 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15209 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15210 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15213 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15214 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15217 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15218 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15221 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15222 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15225 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15226 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15229 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15230 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15233 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15234 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15237 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15238 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15241 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15242 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15245 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15246 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15249 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15250 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15253 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15254 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15257 if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
15258 as_fn_error $? "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
15259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15262 : "${CONFIG_STATUS=./config.status}"
15263 ac_write_fail=0
15264 ac_clean_files_save=$ac_clean_files
15265 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15267 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15268 as_write_fail=0
15269 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15270 #! $SHELL
15271 # Generated by $as_me.
15272 # Run this file to recreate the current configuration.
15273 # Compiler output produced by configure, useful for debugging
15274 # configure, is in config.log if it exists.
15276 debug=false
15277 ac_cs_recheck=false
15278 ac_cs_silent=false
15280 SHELL=\${CONFIG_SHELL-$SHELL}
15281 export SHELL
15282 _ASEOF
15283 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15284 ## -------------------- ##
15285 ## M4sh Initialization. ##
15286 ## -------------------- ##
15288 # Be more Bourne compatible
15289 DUALCASE=1; export DUALCASE # for MKS sh
15290 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15291 emulate sh
15292 NULLCMD=:
15293 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15294 # is contrary to our usage. Disable this feature.
15295 alias -g '${1+"$@"}'='"$@"'
15296 setopt NO_GLOB_SUBST
15297 else
15298 case `(set -o) 2>/dev/null` in #(
15299 *posix*) :
15300 set -o posix ;; #(
15301 *) :
15303 esac
15307 as_nl='
15309 export as_nl
15310 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15311 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15312 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15313 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15314 # Prefer a ksh shell builtin over an external printf program on Solaris,
15315 # but without wasting forks for bash or zsh.
15316 if test -z "$BASH_VERSION$ZSH_VERSION" \
15317 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15318 as_echo='print -r --'
15319 as_echo_n='print -rn --'
15320 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15321 as_echo='printf %s\n'
15322 as_echo_n='printf %s'
15323 else
15324 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15325 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15326 as_echo_n='/usr/ucb/echo -n'
15327 else
15328 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15329 as_echo_n_body='eval
15330 arg=$1;
15331 case $arg in #(
15332 *"$as_nl"*)
15333 expr "X$arg" : "X\\(.*\\)$as_nl";
15334 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15335 esac;
15336 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15338 export as_echo_n_body
15339 as_echo_n='sh -c $as_echo_n_body as_echo'
15341 export as_echo_body
15342 as_echo='sh -c $as_echo_body as_echo'
15345 # The user is always right.
15346 if test "${PATH_SEPARATOR+set}" != set; then
15347 PATH_SEPARATOR=:
15348 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15349 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15350 PATH_SEPARATOR=';'
15355 # IFS
15356 # We need space, tab and new line, in precisely that order. Quoting is
15357 # there to prevent editors from complaining about space-tab.
15358 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15359 # splitting by setting IFS to empty value.)
15360 IFS=" "" $as_nl"
15362 # Find who we are. Look in the path if we contain no directory separator.
15363 as_myself=
15364 case $0 in #((
15365 *[\\/]* ) as_myself=$0 ;;
15366 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15367 for as_dir in $PATH
15369 IFS=$as_save_IFS
15370 test -z "$as_dir" && as_dir=.
15371 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15372 done
15373 IFS=$as_save_IFS
15376 esac
15377 # We did not find ourselves, most probably we were run as `sh COMMAND'
15378 # in which case we are not to be found in the path.
15379 if test "x$as_myself" = x; then
15380 as_myself=$0
15382 if test ! -f "$as_myself"; then
15383 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15384 exit 1
15387 # Unset variables that we do not need and which cause bugs (e.g. in
15388 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15389 # suppresses any "Segmentation fault" message there. '((' could
15390 # trigger a bug in pdksh 5.2.14.
15391 for as_var in BASH_ENV ENV MAIL MAILPATH
15392 do eval test x\${$as_var+set} = xset \
15393 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15394 done
15395 PS1='$ '
15396 PS2='> '
15397 PS4='+ '
15399 # NLS nuisances.
15400 LC_ALL=C
15401 export LC_ALL
15402 LANGUAGE=C
15403 export LANGUAGE
15405 # CDPATH.
15406 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15410 # ----------------------------------------
15411 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15412 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15413 # script with STATUS, using 1 if that was 0.
15414 as_fn_error ()
15416 as_status=$1; test $as_status -eq 0 && as_status=1
15417 if test "$4"; then
15418 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15419 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15421 $as_echo "$as_me: error: $2" >&2
15422 as_fn_exit $as_status
15423 } # as_fn_error
15426 # as_fn_set_status STATUS
15427 # -----------------------
15428 # Set $? to STATUS, without forking.
15429 as_fn_set_status ()
15431 return $1
15432 } # as_fn_set_status
15434 # as_fn_exit STATUS
15435 # -----------------
15436 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15437 as_fn_exit ()
15439 set +e
15440 as_fn_set_status $1
15441 exit $1
15442 } # as_fn_exit
15444 # as_fn_unset VAR
15445 # ---------------
15446 # Portably unset VAR.
15447 as_fn_unset ()
15449 { eval $1=; unset $1;}
15451 as_unset=as_fn_unset
15452 # as_fn_append VAR VALUE
15453 # ----------------------
15454 # Append the text in VALUE to the end of the definition contained in VAR. Take
15455 # advantage of any shell optimizations that allow amortized linear growth over
15456 # repeated appends, instead of the typical quadratic growth present in naive
15457 # implementations.
15458 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15459 eval 'as_fn_append ()
15461 eval $1+=\$2
15463 else
15464 as_fn_append ()
15466 eval $1=\$$1\$2
15468 fi # as_fn_append
15470 # as_fn_arith ARG...
15471 # ------------------
15472 # Perform arithmetic evaluation on the ARGs, and store the result in the
15473 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15474 # must be portable across $(()) and expr.
15475 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15476 eval 'as_fn_arith ()
15478 as_val=$(( $* ))
15480 else
15481 as_fn_arith ()
15483 as_val=`expr "$@" || test $? -eq 1`
15485 fi # as_fn_arith
15488 if expr a : '\(a\)' >/dev/null 2>&1 &&
15489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15490 as_expr=expr
15491 else
15492 as_expr=false
15495 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15496 as_basename=basename
15497 else
15498 as_basename=false
15501 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15502 as_dirname=dirname
15503 else
15504 as_dirname=false
15507 as_me=`$as_basename -- "$0" ||
15508 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15509 X"$0" : 'X\(//\)$' \| \
15510 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15511 $as_echo X/"$0" |
15512 sed '/^.*\/\([^/][^/]*\)\/*$/{
15513 s//\1/
15516 /^X\/\(\/\/\)$/{
15517 s//\1/
15520 /^X\/\(\/\).*/{
15521 s//\1/
15524 s/.*/./; q'`
15526 # Avoid depending upon Character Ranges.
15527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15530 as_cr_digits='0123456789'
15531 as_cr_alnum=$as_cr_Letters$as_cr_digits
15533 ECHO_C= ECHO_N= ECHO_T=
15534 case `echo -n x` in #(((((
15535 -n*)
15536 case `echo 'xy\c'` in
15537 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15538 xy) ECHO_C='\c';;
15539 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15540 ECHO_T=' ';;
15541 esac;;
15543 ECHO_N='-n';;
15544 esac
15546 rm -f conf$$ conf$$.exe conf$$.file
15547 if test -d conf$$.dir; then
15548 rm -f conf$$.dir/conf$$.file
15549 else
15550 rm -f conf$$.dir
15551 mkdir conf$$.dir 2>/dev/null
15553 if (echo >conf$$.file) 2>/dev/null; then
15554 if ln -s conf$$.file conf$$ 2>/dev/null; then
15555 as_ln_s='ln -s'
15556 # ... but there are two gotchas:
15557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15559 # In both cases, we have to default to `cp -pR'.
15560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15561 as_ln_s='cp -pR'
15562 elif ln conf$$.file conf$$ 2>/dev/null; then
15563 as_ln_s=ln
15564 else
15565 as_ln_s='cp -pR'
15567 else
15568 as_ln_s='cp -pR'
15570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15571 rmdir conf$$.dir 2>/dev/null
15574 # as_fn_mkdir_p
15575 # -------------
15576 # Create "$as_dir" as a directory, including parents if necessary.
15577 as_fn_mkdir_p ()
15580 case $as_dir in #(
15581 -*) as_dir=./$as_dir;;
15582 esac
15583 test -d "$as_dir" || eval $as_mkdir_p || {
15584 as_dirs=
15585 while :; do
15586 case $as_dir in #(
15587 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15588 *) as_qdir=$as_dir;;
15589 esac
15590 as_dirs="'$as_qdir' $as_dirs"
15591 as_dir=`$as_dirname -- "$as_dir" ||
15592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15593 X"$as_dir" : 'X\(//\)[^/]' \| \
15594 X"$as_dir" : 'X\(//\)$' \| \
15595 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15596 $as_echo X"$as_dir" |
15597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15598 s//\1/
15601 /^X\(\/\/\)[^/].*/{
15602 s//\1/
15605 /^X\(\/\/\)$/{
15606 s//\1/
15609 /^X\(\/\).*/{
15610 s//\1/
15613 s/.*/./; q'`
15614 test -d "$as_dir" && break
15615 done
15616 test -z "$as_dirs" || eval "mkdir $as_dirs"
15617 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15620 } # as_fn_mkdir_p
15621 if mkdir -p . 2>/dev/null; then
15622 as_mkdir_p='mkdir -p "$as_dir"'
15623 else
15624 test -d ./-p && rmdir ./-p
15625 as_mkdir_p=false
15629 # as_fn_executable_p FILE
15630 # -----------------------
15631 # Test if FILE is an executable regular file.
15632 as_fn_executable_p ()
15634 test -f "$1" && test -x "$1"
15635 } # as_fn_executable_p
15636 as_test_x='test -x'
15637 as_executable_p=as_fn_executable_p
15639 # Sed expression to map a string onto a valid CPP name.
15640 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15642 # Sed expression to map a string onto a valid variable name.
15643 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15646 exec 6>&1
15647 ## ----------------------------------- ##
15648 ## Main body of $CONFIG_STATUS script. ##
15649 ## ----------------------------------- ##
15650 _ASEOF
15651 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654 # Save the log message, to keep $0 and so on meaningful, and to
15655 # report actual input values of CONFIG_FILES etc. instead of their
15656 # values after options handling.
15657 ac_log="
15658 This file was extended by package-unused $as_me version-unused, which was
15659 generated by GNU Autoconf 2.69. Invocation command line was
15661 CONFIG_FILES = $CONFIG_FILES
15662 CONFIG_HEADERS = $CONFIG_HEADERS
15663 CONFIG_LINKS = $CONFIG_LINKS
15664 CONFIG_COMMANDS = $CONFIG_COMMANDS
15665 $ $0 $@
15667 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15670 _ACEOF
15672 case $ac_config_files in *"
15673 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15674 esac
15676 case $ac_config_headers in *"
15677 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15678 esac
15681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15682 # Files that config.status was made for.
15683 config_files="$ac_config_files"
15684 config_headers="$ac_config_headers"
15685 config_commands="$ac_config_commands"
15687 _ACEOF
15689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15690 ac_cs_usage="\
15691 \`$as_me' instantiates files and other configuration actions
15692 from templates according to the current configuration. Unless the files
15693 and actions are specified as TAGs, all are instantiated by default.
15695 Usage: $0 [OPTION]... [TAG]...
15697 -h, --help print this help, then exit
15698 -V, --version print version number and configuration settings, then exit
15699 --config print configuration, then exit
15700 -q, --quiet, --silent
15701 do not print progress messages
15702 -d, --debug don't remove temporary files
15703 --recheck update $as_me by reconfiguring in the same conditions
15704 --file=FILE[:TEMPLATE]
15705 instantiate the configuration file FILE
15706 --header=FILE[:TEMPLATE]
15707 instantiate the configuration header FILE
15709 Configuration files:
15710 $config_files
15712 Configuration headers:
15713 $config_headers
15715 Configuration commands:
15716 $config_commands
15718 Report bugs to the package provider."
15720 _ACEOF
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15723 ac_cs_version="\\
15724 package-unused config.status version-unused
15725 configured by $0, generated by GNU Autoconf 2.69,
15726 with options \\"\$ac_cs_config\\"
15728 Copyright (C) 2012 Free Software Foundation, Inc.
15729 This config.status script is free software; the Free Software Foundation
15730 gives unlimited permission to copy, distribute and modify it."
15732 ac_pwd='$ac_pwd'
15733 srcdir='$srcdir'
15734 INSTALL='$INSTALL'
15735 MKDIR_P='$MKDIR_P'
15736 AWK='$AWK'
15737 test -n "\$AWK" || AWK=awk
15738 _ACEOF
15740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15741 # The default lists apply if the user does not specify any file.
15742 ac_need_defaults=:
15743 while test $# != 0
15745 case $1 in
15746 --*=?*)
15747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15748 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15749 ac_shift=:
15751 --*=)
15752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15753 ac_optarg=
15754 ac_shift=:
15757 ac_option=$1
15758 ac_optarg=$2
15759 ac_shift=shift
15761 esac
15763 case $ac_option in
15764 # Handling of the options.
15765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15766 ac_cs_recheck=: ;;
15767 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15768 $as_echo "$ac_cs_version"; exit ;;
15769 --config | --confi | --conf | --con | --co | --c )
15770 $as_echo "$ac_cs_config"; exit ;;
15771 --debug | --debu | --deb | --de | --d | -d )
15772 debug=: ;;
15773 --file | --fil | --fi | --f )
15774 $ac_shift
15775 case $ac_optarg in
15776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15777 '') as_fn_error $? "missing file argument" ;;
15778 esac
15779 as_fn_append CONFIG_FILES " '$ac_optarg'"
15780 ac_need_defaults=false;;
15781 --header | --heade | --head | --hea )
15782 $ac_shift
15783 case $ac_optarg in
15784 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15785 esac
15786 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15787 ac_need_defaults=false;;
15788 --he | --h)
15789 # Conflict between --help and --header
15790 as_fn_error $? "ambiguous option: \`$1'
15791 Try \`$0 --help' for more information.";;
15792 --help | --hel | -h )
15793 $as_echo "$ac_cs_usage"; exit ;;
15794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15796 ac_cs_silent=: ;;
15798 # This is an error.
15799 -*) as_fn_error $? "unrecognized option: \`$1'
15800 Try \`$0 --help' for more information." ;;
15802 *) as_fn_append ac_config_targets " $1"
15803 ac_need_defaults=false ;;
15805 esac
15806 shift
15807 done
15809 ac_configure_extra_args=
15811 if $ac_cs_silent; then
15812 exec 6>/dev/null
15813 ac_configure_extra_args="$ac_configure_extra_args --silent"
15816 _ACEOF
15817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 if \$ac_cs_recheck; then
15819 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15820 shift
15821 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15822 CONFIG_SHELL='$SHELL'
15823 export CONFIG_SHELL
15824 exec "\$@"
15827 _ACEOF
15828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15829 exec 5>>config.log
15831 echo
15832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15833 ## Running $as_me. ##
15834 _ASBOX
15835 $as_echo "$ac_log"
15836 } >&5
15838 _ACEOF
15839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15841 # INIT-COMMANDS
15844 srcdir="$srcdir"
15845 host="$host"
15846 target="$target"
15847 with_multisubdir="$with_multisubdir"
15848 with_multisrctop="$with_multisrctop"
15849 with_target_subdir="$with_target_subdir"
15850 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15851 multi_basedir="$multi_basedir"
15852 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15853 CC="$CC"
15854 CXX="$CXX"
15855 GFORTRAN="$GFORTRAN"
15856 GDC="$GDC"
15859 # The HP-UX ksh and POSIX shell print the target directory to stdout
15860 # if CDPATH is set.
15861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15863 sed_quote_subst='$sed_quote_subst'
15864 double_quote_subst='$double_quote_subst'
15865 delay_variable_subst='$delay_variable_subst'
15866 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15867 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15868 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15869 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15870 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15871 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15872 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15873 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15874 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15875 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15876 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15877 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15878 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15879 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15880 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15881 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15882 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15883 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15884 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15885 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15886 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15887 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15888 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15889 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15890 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15891 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15892 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15893 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15894 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15895 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15896 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15897 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15898 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15899 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15900 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15901 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15902 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15903 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15904 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15905 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15906 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15907 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15908 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15909 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15910 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15911 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15912 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15913 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15914 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"`'
15915 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15916 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15917 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15918 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15919 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15920 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15921 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15922 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15923 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15924 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15925 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15926 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15927 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15928 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15929 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15930 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15931 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15932 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15933 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15934 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15935 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15936 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15937 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15938 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15939 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15940 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15941 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15942 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15943 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15944 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15945 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15946 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15947 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15948 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15949 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15950 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15951 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15952 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15953 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15954 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15955 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15956 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15957 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15958 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15959 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15960 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15961 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15962 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15963 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15964 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15965 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15966 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15967 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15968 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15969 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15970 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15971 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15972 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15973 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15974 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15975 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15976 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15977 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15978 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15979 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15980 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15981 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15982 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15983 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15984 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15985 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15986 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15987 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15988 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15989 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15990 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15991 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15992 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15993 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15994 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15995 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15996 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15997 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15998 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15999 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16000 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16001 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16002 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16003 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16004 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16005 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16006 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16007 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16008 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16009 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16010 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16011 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16012 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16013 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16014 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16015 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16016 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16017 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16018 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16019 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16020 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16021 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16022 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16023 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16024 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16025 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16026 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16027 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16028 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16030 LTCC='$LTCC'
16031 LTCFLAGS='$LTCFLAGS'
16032 compiler='$compiler_DEFAULT'
16034 # A function that is used when there is no print builtin or printf.
16035 func_fallback_echo ()
16037 eval 'cat <<_LTECHO_EOF
16039 _LTECHO_EOF'
16042 # Quote evaled strings.
16043 for var in SHELL \
16044 ECHO \
16045 SED \
16046 GREP \
16047 EGREP \
16048 FGREP \
16049 LD \
16050 NM \
16051 LN_S \
16052 lt_SP2NL \
16053 lt_NL2SP \
16054 reload_flag \
16055 OBJDUMP \
16056 deplibs_check_method \
16057 file_magic_cmd \
16058 AR \
16059 AR_FLAGS \
16060 STRIP \
16061 RANLIB \
16062 CC \
16063 CFLAGS \
16064 compiler \
16065 lt_cv_sys_global_symbol_pipe \
16066 lt_cv_sys_global_symbol_to_cdecl \
16067 lt_cv_sys_global_symbol_to_c_name_address \
16068 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16069 lt_prog_compiler_no_builtin_flag \
16070 lt_prog_compiler_wl \
16071 lt_prog_compiler_pic \
16072 lt_prog_compiler_static \
16073 lt_cv_prog_compiler_c_o \
16074 need_locks \
16075 DSYMUTIL \
16076 NMEDIT \
16077 LIPO \
16078 OTOOL \
16079 OTOOL64 \
16080 shrext_cmds \
16081 export_dynamic_flag_spec \
16082 whole_archive_flag_spec \
16083 compiler_needs_object \
16084 with_gnu_ld \
16085 allow_undefined_flag \
16086 no_undefined_flag \
16087 hardcode_libdir_flag_spec \
16088 hardcode_libdir_flag_spec_ld \
16089 hardcode_libdir_separator \
16090 fix_srcfile_path \
16091 exclude_expsyms \
16092 include_expsyms \
16093 file_list_spec \
16094 variables_saved_for_relink \
16095 libname_spec \
16096 library_names_spec \
16097 soname_spec \
16098 install_override_mode \
16099 finish_eval \
16100 old_striplib \
16101 striplib \
16102 LD_D \
16103 reload_flag_D \
16104 compiler_D \
16105 lt_prog_compiler_no_builtin_flag_D \
16106 lt_prog_compiler_wl_D \
16107 lt_prog_compiler_pic_D \
16108 lt_prog_compiler_static_D \
16109 lt_cv_prog_compiler_c_o_D \
16110 export_dynamic_flag_spec_D \
16111 whole_archive_flag_spec_D \
16112 compiler_needs_object_D \
16113 with_gnu_ld_D \
16114 allow_undefined_flag_D \
16115 no_undefined_flag_D \
16116 hardcode_libdir_flag_spec_D \
16117 hardcode_libdir_flag_spec_ld_D \
16118 hardcode_libdir_separator_D \
16119 fix_srcfile_path_D \
16120 exclude_expsyms_D \
16121 include_expsyms_D \
16122 file_list_spec_D; do
16123 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16124 *[\\\\\\\`\\"\\\$]*)
16125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16130 esac
16131 done
16133 # Double-quote double-evaled strings.
16134 for var in reload_cmds \
16135 old_postinstall_cmds \
16136 old_postuninstall_cmds \
16137 old_archive_cmds \
16138 extract_expsyms_cmds \
16139 old_archive_from_new_cmds \
16140 old_archive_from_expsyms_cmds \
16141 archive_cmds \
16142 archive_expsym_cmds \
16143 module_cmds \
16144 module_expsym_cmds \
16145 export_symbols_cmds \
16146 prelink_cmds \
16147 postinstall_cmds \
16148 postuninstall_cmds \
16149 finish_cmds \
16150 sys_lib_search_path_spec \
16151 sys_lib_dlsearch_path_spec \
16152 reload_cmds_D \
16153 old_archive_cmds_D \
16154 old_archive_from_new_cmds_D \
16155 old_archive_from_expsyms_cmds_D \
16156 archive_cmds_D \
16157 archive_expsym_cmds_D \
16158 module_cmds_D \
16159 module_expsym_cmds_D \
16160 export_symbols_cmds_D \
16161 prelink_cmds_D; do
16162 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16163 *[\\\\\\\`\\"\\\$]*)
16164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16169 esac
16170 done
16172 ac_aux_dir='$ac_aux_dir'
16173 xsi_shell='$xsi_shell'
16174 lt_shell_append='$lt_shell_append'
16176 # See if we are running on zsh, and set the options which allow our
16177 # commands through without removal of \ escapes INIT.
16178 if test -n "\${ZSH_VERSION+set}" ; then
16179 setopt NO_GLOB_SUBST
16183 PACKAGE='$PACKAGE'
16184 VERSION='$VERSION'
16185 TIMESTAMP='$TIMESTAMP'
16186 RM='$RM'
16187 ofile='$ofile'
16194 _ACEOF
16196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 # Handling of arguments.
16199 for ac_config_target in $ac_config_targets
16201 case $ac_config_target in
16202 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16203 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16204 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16206 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16207 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16208 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16209 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16210 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16211 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16212 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16215 esac
16216 done
16219 # If the user did not use the arguments to specify the items to instantiate,
16220 # then the envvar interface is used. Set only those that are not.
16221 # We use the long form for the default assignment because of an extremely
16222 # bizarre bug on SunOS 4.1.3.
16223 if $ac_need_defaults; then
16224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16229 # Have a temporary directory for convenience. Make it in the build tree
16230 # simply because there is no reason against having it here, and in addition,
16231 # creating and moving files from /tmp can sometimes cause problems.
16232 # Hook for its removal unless debugging.
16233 # Note that there is a small window in which the directory will not be cleaned:
16234 # after its creation but before its name has been assigned to `$tmp'.
16235 $debug ||
16237 tmp= ac_tmp=
16238 trap 'exit_status=$?
16239 : "${ac_tmp:=$tmp}"
16240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16242 trap 'as_fn_exit 1' 1 2 13 15
16244 # Create a (secure) tmp directory for tmp files.
16247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16248 test -d "$tmp"
16249 } ||
16251 tmp=./conf$$-$RANDOM
16252 (umask 077 && mkdir "$tmp")
16253 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16254 ac_tmp=$tmp
16256 # Set up the scripts for CONFIG_FILES section.
16257 # No need to generate them if there are no CONFIG_FILES.
16258 # This happens for instance with `./config.status config.h'.
16259 if test -n "$CONFIG_FILES"; then
16261 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16262 ac_cs_awk_getline=:
16263 ac_cs_awk_pipe_init=
16264 ac_cs_awk_read_file='
16265 while ((getline aline < (F[key])) > 0)
16266 print(aline)
16267 close(F[key])'
16268 ac_cs_awk_pipe_fini=
16269 else
16270 ac_cs_awk_getline=false
16271 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16272 ac_cs_awk_read_file='
16273 print "|#_!!_#|"
16274 print "cat " F[key] " &&"
16275 '$ac_cs_awk_pipe_init
16276 # The final `:' finishes the AND list.
16277 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16279 ac_cr=`echo X | tr X '\015'`
16280 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16281 # But we know of no other shell where ac_cr would be empty at this
16282 # point, so we can use a bashism as a fallback.
16283 if test "x$ac_cr" = x; then
16284 eval ac_cr=\$\'\\r\'
16286 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16287 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16288 ac_cs_awk_cr='\\r'
16289 else
16290 ac_cs_awk_cr=$ac_cr
16293 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16294 _ACEOF
16296 # Create commands to substitute file output variables.
16298 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16299 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16300 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16301 echo "_ACAWK" &&
16302 echo "_ACEOF"
16303 } >conf$$files.sh &&
16304 . ./conf$$files.sh ||
16305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16306 rm -f conf$$files.sh
16309 echo "cat >conf$$subs.awk <<_ACEOF" &&
16310 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16311 echo "_ACEOF"
16312 } >conf$$subs.sh ||
16313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16314 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16315 ac_delim='%!_!# '
16316 for ac_last_try in false false false false false :; do
16317 . ./conf$$subs.sh ||
16318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16320 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16321 if test $ac_delim_n = $ac_delim_num; then
16322 break
16323 elif $ac_last_try; then
16324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16325 else
16326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16328 done
16329 rm -f conf$$subs.sh
16331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16332 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16333 _ACEOF
16334 sed -n '
16336 s/^/S["/; s/!.*/"]=/
16339 s/^[^!]*!//
16340 :repl
16341 t repl
16342 s/'"$ac_delim"'$//
16343 t delim
16346 s/\(.\{148\}\)..*/\1/
16347 t more1
16348 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16351 b repl
16352 :more1
16353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16356 s/.\{148\}//
16357 t nl
16358 :delim
16360 s/\(.\{148\}\)..*/\1/
16361 t more2
16362 s/["\\]/\\&/g; s/^/"/; s/$/"/
16365 :more2
16366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16369 s/.\{148\}//
16370 t delim
16371 ' <conf$$subs.awk | sed '
16372 /^[^""]/{
16374 s/\n//
16376 ' >>$CONFIG_STATUS || ac_write_fail=1
16377 rm -f conf$$subs.awk
16378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379 _ACAWK
16380 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16381 for (key in S) S_is_set[key] = 1
16382 FS = "\a"
16383 \$ac_cs_awk_pipe_init
16386 line = $ 0
16387 nfields = split(line, field, "@")
16388 substed = 0
16389 len = length(field[1])
16390 for (i = 2; i < nfields; i++) {
16391 key = field[i]
16392 keylen = length(key)
16393 if (S_is_set[key]) {
16394 value = S[key]
16395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16396 len += length(value) + length(field[++i])
16397 substed = 1
16398 } else
16399 len += 1 + keylen
16401 if (nfields == 3 && !substed) {
16402 key = field[2]
16403 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16404 \$ac_cs_awk_read_file
16405 next
16408 print line
16410 \$ac_cs_awk_pipe_fini
16411 _ACAWK
16412 _ACEOF
16413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16416 else
16418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16420 _ACEOF
16422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16424 # trailing colons and then remove the whole line if VPATH becomes empty
16425 # (actually we leave an empty line to preserve line numbers).
16426 if test "x$srcdir" = x.; then
16427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16429 s///
16430 s/^/:/
16431 s/[ ]*$/:/
16432 s/:\$(srcdir):/:/g
16433 s/:\${srcdir}:/:/g
16434 s/:@srcdir@:/:/g
16435 s/^:*//
16436 s/:*$//
16438 s/\(=[ ]*\).*/\1/
16440 s/\n//
16441 s/^[^=]*=[ ]*$//
16445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16446 fi # test -n "$CONFIG_FILES"
16448 # Set up the scripts for CONFIG_HEADERS section.
16449 # No need to generate them if there are no CONFIG_HEADERS.
16450 # This happens for instance with `./config.status Makefile'.
16451 if test -n "$CONFIG_HEADERS"; then
16452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16453 BEGIN {
16454 _ACEOF
16456 # Transform confdefs.h into an awk script `defines.awk', embedded as
16457 # here-document in config.status, that substitutes the proper values into
16458 # config.h.in to produce config.h.
16460 # Create a delimiter string that does not exist in confdefs.h, to ease
16461 # handling of long lines.
16462 ac_delim='%!_!# '
16463 for ac_last_try in false false :; do
16464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16465 if test -z "$ac_tt"; then
16466 break
16467 elif $ac_last_try; then
16468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16469 else
16470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16472 done
16474 # For the awk script, D is an array of macro values keyed by name,
16475 # likewise P contains macro parameters if any. Preserve backslash
16476 # newline sequences.
16478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16479 sed -n '
16480 s/.\{148\}/&'"$ac_delim"'/g
16481 t rset
16482 :rset
16483 s/^[ ]*#[ ]*define[ ][ ]*/ /
16484 t def
16486 :def
16487 s/\\$//
16488 t bsnl
16489 s/["\\]/\\&/g
16490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16491 D["\1"]=" \3"/p
16492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16494 :bsnl
16495 s/["\\]/\\&/g
16496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16497 D["\1"]=" \3\\\\\\n"\\/p
16498 t cont
16499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16500 t cont
16502 :cont
16504 s/.\{148\}/&'"$ac_delim"'/g
16505 t clear
16506 :clear
16507 s/\\$//
16508 t bsnlc
16509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16511 :bsnlc
16512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16513 b cont
16514 ' <confdefs.h | sed '
16515 s/'"$ac_delim"'/"\\\
16516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16519 for (key in D) D_is_set[key] = 1
16520 FS = "\a"
16522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16523 line = \$ 0
16524 split(line, arg, " ")
16525 if (arg[1] == "#") {
16526 defundef = arg[2]
16527 mac1 = arg[3]
16528 } else {
16529 defundef = substr(arg[1], 2)
16530 mac1 = arg[2]
16532 split(mac1, mac2, "(") #)
16533 macro = mac2[1]
16534 prefix = substr(line, 1, index(line, defundef) - 1)
16535 if (D_is_set[macro]) {
16536 # Preserve the white space surrounding the "#".
16537 print prefix "define", macro P[macro] D[macro]
16538 next
16539 } else {
16540 # Replace #undef with comments. This is necessary, for example,
16541 # in the case of _POSIX_SOURCE, which is predefined and required
16542 # on some systems where configure will not decide to define it.
16543 if (defundef == "undef") {
16544 print "/*", prefix defundef, macro, "*/"
16545 next
16549 { print }
16550 _ACAWK
16551 _ACEOF
16552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16554 fi # test -n "$CONFIG_HEADERS"
16557 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16558 shift
16559 for ac_tag
16561 case $ac_tag in
16562 :[FHLC]) ac_mode=$ac_tag; continue;;
16563 esac
16564 case $ac_mode$ac_tag in
16565 :[FHL]*:*);;
16566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16567 :[FH]-) ac_tag=-:-;;
16568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16569 esac
16570 ac_save_IFS=$IFS
16571 IFS=:
16572 set x $ac_tag
16573 IFS=$ac_save_IFS
16574 shift
16575 ac_file=$1
16576 shift
16578 case $ac_mode in
16579 :L) ac_source=$1;;
16580 :[FH])
16581 ac_file_inputs=
16582 for ac_f
16584 case $ac_f in
16585 -) ac_f="$ac_tmp/stdin";;
16586 *) # Look for the file first in the build tree, then in the source tree
16587 # (if the path is not absolute). The absolute path cannot be DOS-style,
16588 # because $ac_f cannot contain `:'.
16589 test -f "$ac_f" ||
16590 case $ac_f in
16591 [\\/$]*) false;;
16592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16593 esac ||
16594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16595 esac
16596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16597 as_fn_append ac_file_inputs " '$ac_f'"
16598 done
16600 # Let's still pretend it is `configure' which instantiates (i.e., don't
16601 # use $as_me), people would be surprised to read:
16602 # /* config.h. Generated by config.status. */
16603 configure_input='Generated from '`
16604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16605 `' by configure.'
16606 if test x"$ac_file" != x-; then
16607 configure_input="$ac_file. $configure_input"
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16609 $as_echo "$as_me: creating $ac_file" >&6;}
16611 # Neutralize special characters interpreted by sed in replacement strings.
16612 case $configure_input in #(
16613 *\&* | *\|* | *\\* )
16614 ac_sed_conf_input=`$as_echo "$configure_input" |
16615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16616 *) ac_sed_conf_input=$configure_input;;
16617 esac
16619 case $ac_tag in
16620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16622 esac
16624 esac
16626 ac_dir=`$as_dirname -- "$ac_file" ||
16627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16628 X"$ac_file" : 'X\(//\)[^/]' \| \
16629 X"$ac_file" : 'X\(//\)$' \| \
16630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16631 $as_echo X"$ac_file" |
16632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16633 s//\1/
16636 /^X\(\/\/\)[^/].*/{
16637 s//\1/
16640 /^X\(\/\/\)$/{
16641 s//\1/
16644 /^X\(\/\).*/{
16645 s//\1/
16648 s/.*/./; q'`
16649 as_dir="$ac_dir"; as_fn_mkdir_p
16650 ac_builddir=.
16652 case "$ac_dir" in
16653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16656 # A ".." for each directory in $ac_dir_suffix.
16657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16658 case $ac_top_builddir_sub in
16659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16661 esac ;;
16662 esac
16663 ac_abs_top_builddir=$ac_pwd
16664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16665 # for backward compatibility:
16666 ac_top_builddir=$ac_top_build_prefix
16668 case $srcdir in
16669 .) # We are building in place.
16670 ac_srcdir=.
16671 ac_top_srcdir=$ac_top_builddir_sub
16672 ac_abs_top_srcdir=$ac_pwd ;;
16673 [\\/]* | ?:[\\/]* ) # Absolute name.
16674 ac_srcdir=$srcdir$ac_dir_suffix;
16675 ac_top_srcdir=$srcdir
16676 ac_abs_top_srcdir=$srcdir ;;
16677 *) # Relative name.
16678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16679 ac_top_srcdir=$ac_top_build_prefix$srcdir
16680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16681 esac
16682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16685 case $ac_mode in
16688 # CONFIG_FILE
16691 case $INSTALL in
16692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16694 esac
16695 ac_MKDIR_P=$MKDIR_P
16696 case $MKDIR_P in
16697 [\\/$]* | ?:[\\/]* ) ;;
16698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16699 esac
16700 _ACEOF
16702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16703 # If the template does not know about datarootdir, expand it.
16704 # FIXME: This hack should be removed a few years after 2.60.
16705 ac_datarootdir_hack=; ac_datarootdir_seen=
16706 ac_sed_dataroot='
16707 /datarootdir/ {
16711 /@datadir@/p
16712 /@docdir@/p
16713 /@infodir@/p
16714 /@localedir@/p
16715 /@mandir@/p'
16716 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16717 *datarootdir*) ac_datarootdir_seen=yes;;
16718 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16720 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16721 _ACEOF
16722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16723 ac_datarootdir_hack='
16724 s&@datadir@&$datadir&g
16725 s&@docdir@&$docdir&g
16726 s&@infodir@&$infodir&g
16727 s&@localedir@&$localedir&g
16728 s&@mandir@&$mandir&g
16729 s&\\\${datarootdir}&$datarootdir&g' ;;
16730 esac
16731 _ACEOF
16733 # Neutralize VPATH when `$srcdir' = `.'.
16734 # Shell code in configure.ac might set extrasub.
16735 # FIXME: do we really want to maintain this feature?
16736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16737 ac_sed_extra="$ac_vpsub
16738 $extrasub
16739 _ACEOF
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16743 s|@configure_input@|$ac_sed_conf_input|;t t
16744 s&@top_builddir@&$ac_top_builddir_sub&;t t
16745 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16746 s&@srcdir@&$ac_srcdir&;t t
16747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16748 s&@top_srcdir@&$ac_top_srcdir&;t t
16749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16750 s&@builddir@&$ac_builddir&;t t
16751 s&@abs_builddir@&$ac_abs_builddir&;t t
16752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16753 s&@INSTALL@&$ac_INSTALL&;t t
16754 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16755 $ac_datarootdir_hack
16757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16758 if $ac_cs_awk_getline; then
16759 $AWK -f "$ac_tmp/subs.awk"
16760 else
16761 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16762 fi \
16763 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16765 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16768 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16770 which seems to be undefined. Please make sure it is defined" >&5
16771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16772 which seems to be undefined. Please make sure it is defined" >&2;}
16774 rm -f "$ac_tmp/stdin"
16775 case $ac_file in
16776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16778 esac \
16779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16783 # CONFIG_HEADER
16785 if test x"$ac_file" != x-; then
16787 $as_echo "/* $configure_input */" \
16788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16789 } >"$ac_tmp/config.h" \
16790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16791 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16793 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16794 else
16795 rm -f "$ac_file"
16796 mv "$ac_tmp/config.h" "$ac_file" \
16797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16799 else
16800 $as_echo "/* $configure_input */" \
16801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16802 || as_fn_error $? "could not create -" "$LINENO" 5
16804 # Compute "$ac_file"'s index in $config_headers.
16805 _am_arg="$ac_file"
16806 _am_stamp_count=1
16807 for _am_header in $config_headers :; do
16808 case $_am_header in
16809 $_am_arg | $_am_arg:* )
16810 break ;;
16812 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16813 esac
16814 done
16815 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16816 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16817 X"$_am_arg" : 'X\(//\)[^/]' \| \
16818 X"$_am_arg" : 'X\(//\)$' \| \
16819 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16820 $as_echo X"$_am_arg" |
16821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16822 s//\1/
16825 /^X\(\/\/\)[^/].*/{
16826 s//\1/
16829 /^X\(\/\/\)$/{
16830 s//\1/
16833 /^X\(\/\).*/{
16834 s//\1/
16837 s/.*/./; q'`/stamp-h$_am_stamp_count
16840 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16841 $as_echo "$as_me: executing $ac_file commands" >&6;}
16843 esac
16846 case $ac_file$ac_mode in
16847 "default-1":C)
16848 # Only add multilib support code if we just rebuilt the top-level
16849 # Makefile.
16850 case " $CONFIG_FILES " in
16851 *" Makefile "*)
16852 ac_file=Makefile . ${multi_basedir}/config-ml.in
16854 esac ;;
16855 "libtool":C)
16857 # See if we are running on zsh, and set the options which allow our
16858 # commands through without removal of \ escapes.
16859 if test -n "${ZSH_VERSION+set}" ; then
16860 setopt NO_GLOB_SUBST
16863 cfgfile="${ofile}T"
16864 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16865 $RM "$cfgfile"
16867 cat <<_LT_EOF >> "$cfgfile"
16868 #! $SHELL
16870 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16871 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16873 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16875 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16876 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16877 # Written by Gordon Matzigkeit, 1996
16879 # This file is part of GNU Libtool.
16881 # GNU Libtool is free software; you can redistribute it and/or
16882 # modify it under the terms of the GNU General Public License as
16883 # published by the Free Software Foundation; either version 2 of
16884 # the License, or (at your option) any later version.
16886 # As a special exception to the GNU General Public License,
16887 # if you distribute this file as part of a program or library that
16888 # is built using GNU Libtool, you may include this file under the
16889 # same distribution terms that you use for the rest of that program.
16891 # GNU Libtool is distributed in the hope that it will be useful,
16892 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16893 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16894 # GNU General Public License for more details.
16896 # You should have received a copy of the GNU General Public License
16897 # along with GNU Libtool; see the file COPYING. If not, a copy
16898 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16899 # obtained by writing to the Free Software Foundation, Inc.,
16900 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16903 # The names of the tagged configurations supported by this script.
16904 available_tags="D "
16906 # ### BEGIN LIBTOOL CONFIG
16908 # Which release of libtool.m4 was used?
16909 macro_version=$macro_version
16910 macro_revision=$macro_revision
16912 # Whether or not to build shared libraries.
16913 build_libtool_libs=$enable_shared
16915 # Whether or not to build static libraries.
16916 build_old_libs=$enable_static
16918 # What type of objects to build.
16919 pic_mode=$pic_mode
16921 # Whether or not to optimize for fast installation.
16922 fast_install=$enable_fast_install
16924 # Shell to use when invoking shell scripts.
16925 SHELL=$lt_SHELL
16927 # An echo program that protects backslashes.
16928 ECHO=$lt_ECHO
16930 # The host system.
16931 host_alias=$host_alias
16932 host=$host
16933 host_os=$host_os
16935 # The build system.
16936 build_alias=$build_alias
16937 build=$build
16938 build_os=$build_os
16940 # A sed program that does not truncate output.
16941 SED=$lt_SED
16943 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16944 Xsed="\$SED -e 1s/^X//"
16946 # A grep program that handles long lines.
16947 GREP=$lt_GREP
16949 # An ERE matcher.
16950 EGREP=$lt_EGREP
16952 # A literal string matcher.
16953 FGREP=$lt_FGREP
16955 # A BSD- or MS-compatible name lister.
16956 NM=$lt_NM
16958 # Whether we need soft or hard links.
16959 LN_S=$lt_LN_S
16961 # What is the maximum length of a command?
16962 max_cmd_len=$max_cmd_len
16964 # Object file suffix (normally "o").
16965 objext=$ac_objext
16967 # Executable file suffix (normally "").
16968 exeext=$exeext
16970 # whether the shell understands "unset".
16971 lt_unset=$lt_unset
16973 # turn spaces into newlines.
16974 SP2NL=$lt_lt_SP2NL
16976 # turn newlines into spaces.
16977 NL2SP=$lt_lt_NL2SP
16979 # An object symbol dumper.
16980 OBJDUMP=$lt_OBJDUMP
16982 # Method to check whether dependent libraries are shared objects.
16983 deplibs_check_method=$lt_deplibs_check_method
16985 # Command to use when deplibs_check_method == "file_magic".
16986 file_magic_cmd=$lt_file_magic_cmd
16988 # The archiver.
16989 AR=$lt_AR
16990 AR_FLAGS=$lt_AR_FLAGS
16992 # A symbol stripping program.
16993 STRIP=$lt_STRIP
16995 # Commands used to install an old-style archive.
16996 RANLIB=$lt_RANLIB
16997 old_postinstall_cmds=$lt_old_postinstall_cmds
16998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17000 # Whether to use a lock for old archive extraction.
17001 lock_old_archive_extraction=$lock_old_archive_extraction
17003 # A C compiler.
17004 LTCC=$lt_CC
17006 # LTCC compiler flags.
17007 LTCFLAGS=$lt_CFLAGS
17009 # Take the output of nm and produce a listing of raw symbols and C names.
17010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17012 # Transform the output of nm in a proper C declaration.
17013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17015 # Transform the output of nm in a C name address pair.
17016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17018 # Transform the output of nm in a C name address pair when lib prefix is needed.
17019 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17021 # The name of the directory that contains temporary libtool files.
17022 objdir=$objdir
17024 # Used to examine libraries when file_magic_cmd begins with "file".
17025 MAGIC_CMD=$MAGIC_CMD
17027 # Must we lock files when doing compilation?
17028 need_locks=$lt_need_locks
17030 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17031 DSYMUTIL=$lt_DSYMUTIL
17033 # Tool to change global to local symbols on Mac OS X.
17034 NMEDIT=$lt_NMEDIT
17036 # Tool to manipulate fat objects and archives on Mac OS X.
17037 LIPO=$lt_LIPO
17039 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17040 OTOOL=$lt_OTOOL
17042 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17043 OTOOL64=$lt_OTOOL64
17045 # Old archive suffix (normally "a").
17046 libext=$libext
17048 # Shared library suffix (normally ".so").
17049 shrext_cmds=$lt_shrext_cmds
17051 # The commands to extract the exported symbol list from a shared archive.
17052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17054 # Variables whose values should be saved in libtool wrapper scripts and
17055 # restored at link time.
17056 variables_saved_for_relink=$lt_variables_saved_for_relink
17058 # Do we need the "lib" prefix for modules?
17059 need_lib_prefix=$need_lib_prefix
17061 # Do we need a version for libraries?
17062 need_version=$need_version
17064 # Library versioning type.
17065 version_type=$version_type
17067 # Shared library runtime path variable.
17068 runpath_var=$runpath_var
17070 # Shared library path variable.
17071 shlibpath_var=$shlibpath_var
17073 # Is shlibpath searched before the hard-coded library search path?
17074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17076 # Format of library name prefix.
17077 libname_spec=$lt_libname_spec
17079 # List of archive names. First name is the real one, the rest are links.
17080 # The last name is the one that the linker finds with -lNAME
17081 library_names_spec=$lt_library_names_spec
17083 # The coded name of the library, if different from the real name.
17084 soname_spec=$lt_soname_spec
17086 # Permission mode override for installation of shared libraries.
17087 install_override_mode=$lt_install_override_mode
17089 # Command to use after installation of a shared archive.
17090 postinstall_cmds=$lt_postinstall_cmds
17092 # Command to use after uninstallation of a shared archive.
17093 postuninstall_cmds=$lt_postuninstall_cmds
17095 # Commands used to finish a libtool library installation in a directory.
17096 finish_cmds=$lt_finish_cmds
17098 # As "finish_cmds", except a single script fragment to be evaled but
17099 # not shown.
17100 finish_eval=$lt_finish_eval
17102 # Whether we should hardcode library paths into libraries.
17103 hardcode_into_libs=$hardcode_into_libs
17105 # Compile-time system search path for libraries.
17106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17108 # Run-time system search path for libraries.
17109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17111 # Whether dlopen is supported.
17112 dlopen_support=$enable_dlopen
17114 # Whether dlopen of programs is supported.
17115 dlopen_self=$enable_dlopen_self
17117 # Whether dlopen of statically linked programs is supported.
17118 dlopen_self_static=$enable_dlopen_self_static
17120 # Commands to strip libraries.
17121 old_striplib=$lt_old_striplib
17122 striplib=$lt_striplib
17125 # The linker used to build libraries.
17126 LD=$lt_LD
17128 # How to create reloadable object files.
17129 reload_flag=$lt_reload_flag
17130 reload_cmds=$lt_reload_cmds
17132 # Commands used to build an old-style archive.
17133 old_archive_cmds=$lt_old_archive_cmds
17135 # A language specific compiler.
17136 CC=$lt_compiler
17138 # Is the compiler the GNU compiler?
17139 with_gcc=$GCC
17141 # Compiler flag to turn off builtin functions.
17142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17144 # How to pass a linker flag through the compiler.
17145 wl=$lt_lt_prog_compiler_wl
17147 # Additional compiler flags for building library objects.
17148 pic_flag=$lt_lt_prog_compiler_pic
17150 # Compiler flag to prevent dynamic linking.
17151 link_static_flag=$lt_lt_prog_compiler_static
17153 # Does compiler simultaneously support -c and -o options?
17154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17156 # Whether or not to add -lc for building shared libraries.
17157 build_libtool_need_lc=$archive_cmds_need_lc
17159 # Whether or not to disallow shared libs when runtime libs are static.
17160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17162 # Compiler flag to allow reflexive dlopens.
17163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17165 # Compiler flag to generate shared objects directly from archives.
17166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17168 # Whether the compiler copes with passing no objects directly.
17169 compiler_needs_object=$lt_compiler_needs_object
17171 # Create an old-style archive from a shared archive.
17172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17174 # Create a temporary old-style archive to link instead of a shared archive.
17175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17177 # Commands used to build a shared archive.
17178 archive_cmds=$lt_archive_cmds
17179 archive_expsym_cmds=$lt_archive_expsym_cmds
17181 # Commands used to build a loadable module if different from building
17182 # a shared archive.
17183 module_cmds=$lt_module_cmds
17184 module_expsym_cmds=$lt_module_expsym_cmds
17186 # Whether we are building with GNU ld or not.
17187 with_gnu_ld=$lt_with_gnu_ld
17189 # Flag that allows shared libraries with undefined symbols to be built.
17190 allow_undefined_flag=$lt_allow_undefined_flag
17192 # Flag that enforces no undefined symbols.
17193 no_undefined_flag=$lt_no_undefined_flag
17195 # Flag to hardcode \$libdir into a binary during linking.
17196 # This must work even if \$libdir does not exist
17197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17199 # If ld is used when linking, flag to hardcode \$libdir into a binary
17200 # during linking. This must work even if \$libdir does not exist.
17201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17203 # Whether we need a single "-rpath" flag with a separated argument.
17204 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17207 # DIR into the resulting binary.
17208 hardcode_direct=$hardcode_direct
17210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17211 # DIR into the resulting binary and the resulting library dependency is
17212 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17213 # library is relocated.
17214 hardcode_direct_absolute=$hardcode_direct_absolute
17216 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17217 # into the resulting binary.
17218 hardcode_minus_L=$hardcode_minus_L
17220 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17221 # into the resulting binary.
17222 hardcode_shlibpath_var=$hardcode_shlibpath_var
17224 # Set to "yes" if building a shared library automatically hardcodes DIR
17225 # into the library and all subsequent libraries and executables linked
17226 # against it.
17227 hardcode_automatic=$hardcode_automatic
17229 # Set to yes if linker adds runtime paths of dependent libraries
17230 # to runtime path list.
17231 inherit_rpath=$inherit_rpath
17233 # Whether libtool must link a program against all its dependency libraries.
17234 link_all_deplibs=$link_all_deplibs
17236 # Fix the shell variable \$srcfile for the compiler.
17237 fix_srcfile_path=$lt_fix_srcfile_path
17239 # Set to "yes" if exported symbols are required.
17240 always_export_symbols=$always_export_symbols
17242 # The commands to list exported symbols.
17243 export_symbols_cmds=$lt_export_symbols_cmds
17245 # Symbols that should not be listed in the preloaded symbols.
17246 exclude_expsyms=$lt_exclude_expsyms
17248 # Symbols that must always be exported.
17249 include_expsyms=$lt_include_expsyms
17251 # Commands necessary for linking programs (against libraries) with templates.
17252 prelink_cmds=$lt_prelink_cmds
17254 # Specify filename containing input files.
17255 file_list_spec=$lt_file_list_spec
17257 # How to hardcode a shared library path into an executable.
17258 hardcode_action=$hardcode_action
17260 # ### END LIBTOOL CONFIG
17262 _LT_EOF
17264 case $host_os in
17265 aix3*)
17266 cat <<\_LT_EOF >> "$cfgfile"
17267 # AIX sometimes has problems with the GCC collect2 program. For some
17268 # reason, if we set the COLLECT_NAMES environment variable, the problems
17269 # vanish in a puff of smoke.
17270 if test "X${COLLECT_NAMES+set}" != Xset; then
17271 COLLECT_NAMES=
17272 export COLLECT_NAMES
17274 _LT_EOF
17276 esac
17279 ltmain="$ac_aux_dir/ltmain.sh"
17282 # We use sed instead of cat because bash on DJGPP gets confused if
17283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17284 # text mode, it properly converts lines to CR/LF. This bash problem
17285 # is reportedly fixed, but why not run on old versions too?
17286 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17287 || (rm -f "$cfgfile"; exit 1)
17289 case $xsi_shell in
17290 yes)
17291 cat << \_LT_EOF >> "$cfgfile"
17293 # func_dirname file append nondir_replacement
17294 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17295 # otherwise set result to NONDIR_REPLACEMENT.
17296 func_dirname ()
17298 case ${1} in
17299 */*) func_dirname_result="${1%/*}${2}" ;;
17300 * ) func_dirname_result="${3}" ;;
17301 esac
17304 # func_basename file
17305 func_basename ()
17307 func_basename_result="${1##*/}"
17310 # func_dirname_and_basename file append nondir_replacement
17311 # perform func_basename and func_dirname in a single function
17312 # call:
17313 # dirname: Compute the dirname of FILE. If nonempty,
17314 # add APPEND to the result, otherwise set result
17315 # to NONDIR_REPLACEMENT.
17316 # value returned in "$func_dirname_result"
17317 # basename: Compute filename of FILE.
17318 # value retuned in "$func_basename_result"
17319 # Implementation must be kept synchronized with func_dirname
17320 # and func_basename. For efficiency, we do not delegate to
17321 # those functions but instead duplicate the functionality here.
17322 func_dirname_and_basename ()
17324 case ${1} in
17325 */*) func_dirname_result="${1%/*}${2}" ;;
17326 * ) func_dirname_result="${3}" ;;
17327 esac
17328 func_basename_result="${1##*/}"
17331 # func_stripname prefix suffix name
17332 # strip PREFIX and SUFFIX off of NAME.
17333 # PREFIX and SUFFIX must not contain globbing or regex special
17334 # characters, hashes, percent signs, but SUFFIX may contain a leading
17335 # dot (in which case that matches only a dot).
17336 func_stripname ()
17338 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17339 # positional parameters, so assign one to ordinary parameter first.
17340 func_stripname_result=${3}
17341 func_stripname_result=${func_stripname_result#"${1}"}
17342 func_stripname_result=${func_stripname_result%"${2}"}
17345 # func_opt_split
17346 func_opt_split ()
17348 func_opt_split_opt=${1%%=*}
17349 func_opt_split_arg=${1#*=}
17352 # func_lo2o object
17353 func_lo2o ()
17355 case ${1} in
17356 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17357 *) func_lo2o_result=${1} ;;
17358 esac
17361 # func_xform libobj-or-source
17362 func_xform ()
17364 func_xform_result=${1%.*}.lo
17367 # func_arith arithmetic-term...
17368 func_arith ()
17370 func_arith_result=$(( $* ))
17373 # func_len string
17374 # STRING may not start with a hyphen.
17375 func_len ()
17377 func_len_result=${#1}
17380 _LT_EOF
17382 *) # Bourne compatible functions.
17383 cat << \_LT_EOF >> "$cfgfile"
17385 # func_dirname file append nondir_replacement
17386 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17387 # otherwise set result to NONDIR_REPLACEMENT.
17388 func_dirname ()
17390 # Extract subdirectory from the argument.
17391 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17392 if test "X$func_dirname_result" = "X${1}"; then
17393 func_dirname_result="${3}"
17394 else
17395 func_dirname_result="$func_dirname_result${2}"
17399 # func_basename file
17400 func_basename ()
17402 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17406 # func_stripname prefix suffix name
17407 # strip PREFIX and SUFFIX off of NAME.
17408 # PREFIX and SUFFIX must not contain globbing or regex special
17409 # characters, hashes, percent signs, but SUFFIX may contain a leading
17410 # dot (in which case that matches only a dot).
17411 # func_strip_suffix prefix name
17412 func_stripname ()
17414 case ${2} in
17415 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17416 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17417 esac
17420 # sed scripts:
17421 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17422 my_sed_long_arg='1s/^-[^=]*=//'
17424 # func_opt_split
17425 func_opt_split ()
17427 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17428 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17431 # func_lo2o object
17432 func_lo2o ()
17434 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17437 # func_xform libobj-or-source
17438 func_xform ()
17440 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17443 # func_arith arithmetic-term...
17444 func_arith ()
17446 func_arith_result=`expr "$@"`
17449 # func_len string
17450 # STRING may not start with a hyphen.
17451 func_len ()
17453 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17456 _LT_EOF
17457 esac
17459 case $lt_shell_append in
17460 yes)
17461 cat << \_LT_EOF >> "$cfgfile"
17463 # func_append var value
17464 # Append VALUE to the end of shell variable VAR.
17465 func_append ()
17467 eval "$1+=\$2"
17469 _LT_EOF
17472 cat << \_LT_EOF >> "$cfgfile"
17474 # func_append var value
17475 # Append VALUE to the end of shell variable VAR.
17476 func_append ()
17478 eval "$1=\$$1\$2"
17481 _LT_EOF
17483 esac
17486 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17487 || (rm -f "$cfgfile"; exit 1)
17489 mv -f "$cfgfile" "$ofile" ||
17490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17491 chmod +x "$ofile"
17494 cat <<_LT_EOF >> "$ofile"
17496 # ### BEGIN LIBTOOL TAG CONFIG: D
17498 # The linker used to build libraries.
17499 LD=$lt_LD_D
17501 # How to create reloadable object files.
17502 reload_flag=$lt_reload_flag_D
17503 reload_cmds=$lt_reload_cmds_D
17505 # Commands used to build an old-style archive.
17506 old_archive_cmds=$lt_old_archive_cmds_D
17508 # A language specific compiler.
17509 CC=$lt_compiler_D
17511 # Is the compiler the GNU compiler?
17512 with_gcc=$GCC_D
17514 # Compiler flag to turn off builtin functions.
17515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17517 # How to pass a linker flag through the compiler.
17518 wl=$lt_lt_prog_compiler_wl_D
17520 # Additional compiler flags for building library objects.
17521 pic_flag=$lt_lt_prog_compiler_pic_D
17523 # Compiler flag to prevent dynamic linking.
17524 link_static_flag=$lt_lt_prog_compiler_static_D
17526 # Does compiler simultaneously support -c and -o options?
17527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17529 # Whether or not to add -lc for building shared libraries.
17530 build_libtool_need_lc=$archive_cmds_need_lc_D
17532 # Whether or not to disallow shared libs when runtime libs are static.
17533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17535 # Compiler flag to allow reflexive dlopens.
17536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17538 # Compiler flag to generate shared objects directly from archives.
17539 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17541 # Whether the compiler copes with passing no objects directly.
17542 compiler_needs_object=$lt_compiler_needs_object_D
17544 # Create an old-style archive from a shared archive.
17545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17547 # Create a temporary old-style archive to link instead of a shared archive.
17548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17550 # Commands used to build a shared archive.
17551 archive_cmds=$lt_archive_cmds_D
17552 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17554 # Commands used to build a loadable module if different from building
17555 # a shared archive.
17556 module_cmds=$lt_module_cmds_D
17557 module_expsym_cmds=$lt_module_expsym_cmds_D
17559 # Whether we are building with GNU ld or not.
17560 with_gnu_ld=$lt_with_gnu_ld_D
17562 # Flag that allows shared libraries with undefined symbols to be built.
17563 allow_undefined_flag=$lt_allow_undefined_flag_D
17565 # Flag that enforces no undefined symbols.
17566 no_undefined_flag=$lt_no_undefined_flag_D
17568 # Flag to hardcode \$libdir into a binary during linking.
17569 # This must work even if \$libdir does not exist
17570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17572 # If ld is used when linking, flag to hardcode \$libdir into a binary
17573 # during linking. This must work even if \$libdir does not exist.
17574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17576 # Whether we need a single "-rpath" flag with a separated argument.
17577 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17580 # DIR into the resulting binary.
17581 hardcode_direct=$hardcode_direct_D
17583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17584 # DIR into the resulting binary and the resulting library dependency is
17585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17586 # library is relocated.
17587 hardcode_direct_absolute=$hardcode_direct_absolute_D
17589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17590 # into the resulting binary.
17591 hardcode_minus_L=$hardcode_minus_L_D
17593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17594 # into the resulting binary.
17595 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17597 # Set to "yes" if building a shared library automatically hardcodes DIR
17598 # into the library and all subsequent libraries and executables linked
17599 # against it.
17600 hardcode_automatic=$hardcode_automatic_D
17602 # Set to yes if linker adds runtime paths of dependent libraries
17603 # to runtime path list.
17604 inherit_rpath=$inherit_rpath_D
17606 # Whether libtool must link a program against all its dependency libraries.
17607 link_all_deplibs=$link_all_deplibs_D
17609 # Fix the shell variable \$srcfile for the compiler.
17610 fix_srcfile_path=$lt_fix_srcfile_path_D
17612 # Set to "yes" if exported symbols are required.
17613 always_export_symbols=$always_export_symbols_D
17615 # The commands to list exported symbols.
17616 export_symbols_cmds=$lt_export_symbols_cmds_D
17618 # Symbols that should not be listed in the preloaded symbols.
17619 exclude_expsyms=$lt_exclude_expsyms_D
17621 # Symbols that must always be exported.
17622 include_expsyms=$lt_include_expsyms_D
17624 # Commands necessary for linking programs (against libraries) with templates.
17625 prelink_cmds=$lt_prelink_cmds_D
17627 # Specify filename containing input files.
17628 file_list_spec=$lt_file_list_spec_D
17630 # How to hardcode a shared library path into an executable.
17631 hardcode_action=$hardcode_action_D
17633 # ### END LIBTOOL TAG CONFIG: D
17634 _LT_EOF
17637 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17638 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17639 s!`test -f '$<' || echo '$(srcdir)/'`!!
17640 _EOF
17641 sed -f vpsed$$ $ac_file > tmp$$
17642 mv tmp$$ $ac_file
17643 rm vpsed$$
17644 echo 'MULTISUBDIR =' >> $ac_file
17645 ml_norecursion=yes
17646 . ${multi_basedir}/config-ml.in
17647 { ml_norecursion=; unset ml_norecursion;}
17649 "src/Makefile":F) cat > vpsed$$ << \_EOF
17650 s!`test -f '$<' || echo '$(srcdir)/'`!!
17651 _EOF
17652 sed -f vpsed$$ $ac_file > tmp$$
17653 mv tmp$$ $ac_file
17654 rm vpsed$$
17655 echo 'MULTISUBDIR =' >> $ac_file
17656 ml_norecursion=yes
17657 . ${multi_basedir}/config-ml.in
17658 { ml_norecursion=; unset ml_norecursion;}
17660 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17661 s!`test -f '$<' || echo '$(srcdir)/'`!!
17662 _EOF
17663 sed -f vpsed$$ $ac_file > tmp$$
17664 mv tmp$$ $ac_file
17665 rm vpsed$$
17666 echo 'MULTISUBDIR =' >> $ac_file
17667 ml_norecursion=yes
17668 . ${multi_basedir}/config-ml.in
17669 { ml_norecursion=; unset ml_norecursion;}
17672 esac
17673 done # for ac_tag
17676 as_fn_exit 0
17677 _ACEOF
17678 ac_clean_files=$ac_clean_files_save
17680 test $ac_write_fail = 0 ||
17681 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17684 # configure is writing to config.log, and then calls config.status.
17685 # config.status does its own redirection, appending to config.log.
17686 # Unfortunately, on DOS this fails, as config.log is still kept open
17687 # by configure, so config.status won't be able to write to it; its
17688 # output is simply discarded. So we exec the FD to /dev/null,
17689 # effectively closing config.log, so it can be properly (re)opened and
17690 # appended to by config.status. When coming back to configure, we
17691 # need to make the FD available again.
17692 if test "$no_create" != yes; then
17693 ac_cs_success=:
17694 ac_config_status_args=
17695 test "$silent" = yes &&
17696 ac_config_status_args="$ac_config_status_args --quiet"
17697 exec 5>/dev/null
17698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17699 exec 5>>config.log
17700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17701 # would make configure fail if this is the last instruction.
17702 $ac_cs_success || as_fn_exit 1
17704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17706 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}