linux-atomic.c (__kernel_cmpxchg): Change argument 1 to volatile void *.
[official-gcc.git] / libphobos / configure
blobfde2af90c4425c7dc824ace0f8588109a5de0247
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
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
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 ENABLE_LIBPHOBOS_FALSE
640 ENABLE_LIBPHOBOS_TRUE
641 gdc_include_dir
642 libphobos_toolexeclibdir
643 libphobos_toolexecdir
644 gcc_version
645 LIBZ
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
648 BACKTRACE_SUPPORTED
649 LIBBACKTRACE
650 LIBATOMIC
651 DCFG_HAVE_LIBATOMIC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
654 DCFG_HAVE_QSORT_R
655 OS_LINK_SPEC
656 DCFG_DLPI_TLS_MODID
657 DRUNTIME_OS_MINFO_BRACKETING_FALSE
658 DRUNTIME_OS_MINFO_BRACKETING_TRUE
659 DCFG_MINFO_BRACKETING
660 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
661 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
662 DCFG_ARM_EABI_UNWINDER
663 DCFG_THREAD_MODEL
664 DRUNTIME_OS_SOLARIS_FALSE
665 DRUNTIME_OS_SOLARIS_TRUE
666 DRUNTIME_OS_MINGW_FALSE
667 DRUNTIME_OS_MINGW_TRUE
668 DRUNTIME_OS_LINUX_FALSE
669 DRUNTIME_OS_LINUX_TRUE
670 DRUNTIME_OS_OPENBSD_FALSE
671 DRUNTIME_OS_OPENBSD_TRUE
672 DRUNTIME_OS_NETBSD_FALSE
673 DRUNTIME_OS_NETBSD_TRUE
674 DRUNTIME_OS_FREEBSD_FALSE
675 DRUNTIME_OS_FREEBSD_TRUE
676 DRUNTIME_OS_DRAGONFLYBSD_FALSE
677 DRUNTIME_OS_DRAGONFLYBSD_TRUE
678 DRUNTIME_OS_DARWIN_FALSE
679 DRUNTIME_OS_DARWIN_TRUE
680 DRUNTIME_OS_ANDROID_FALSE
681 DRUNTIME_OS_ANDROID_TRUE
682 DRUNTIME_OS_AIX_FALSE
683 DRUNTIME_OS_AIX_TRUE
684 DRUNTIME_OS_UNIX_FALSE
685 DRUNTIME_OS_UNIX_TRUE
686 DRUNTIME_CPU_X86_FALSE
687 DRUNTIME_CPU_X86_TRUE
688 DRUNTIME_CPU_POWERPC64_FALSE
689 DRUNTIME_CPU_POWERPC64_TRUE
690 DRUNTIME_CPU_POWERPC_FALSE
691 DRUNTIME_CPU_POWERPC_TRUE
692 DRUNTIME_CPU_MIPS_FALSE
693 DRUNTIME_CPU_MIPS_TRUE
694 DRUNTIME_CPU_ARM_FALSE
695 DRUNTIME_CPU_ARM_TRUE
696 DRUNTIME_CPU_AARCH64_FALSE
697 DRUNTIME_CPU_AARCH64_TRUE
698 DRUNTIME_GC_ENABLE_FALSE
699 DRUNTIME_GC_ENABLE_TRUE
700 libphobos_srcdir
701 libphobos_builddir
702 get_gcc_base_ver
703 phobos_compiler_shared_flag
704 phobos_compiler_pic_flag
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 OBJDUMP
711 LN_S
713 ac_ct_DUMPBIN
714 DUMPBIN
716 FGREP
718 LIBTOOL
719 CFLAGS_FOR_BUILD
720 CC_FOR_BUILD
722 RANLIB
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 GDCFLAGS
728 CCASFLAGS
729 CCAS
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 EGREP
758 GREP
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
767 target_os
768 target_vendor
769 target_cpu
770 target
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 multi_basedir
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files='DRTSTUFF_SPEC'
819 ac_user_opts='
820 enable_option_checking
821 enable_multilib
822 enable_silent_rules
823 enable_maintainer_mode
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_gnu_ld
829 enable_libtool_lock
830 with_gcc_major_version_only
831 enable_werror
832 enable_druntime_gc
833 enable_unix
834 enable_thread_lib
835 with_libatomic
836 with_libbacktrace
837 with_target_system_zlib
838 with_cross_host
839 enable_version_specific_runtime_libs
840 enable_libphobos
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
846 CFLAGS
847 LDFLAGS
848 LIBS
849 CPPFLAGS
850 CPP'
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
901 ac_prev=
902 ac_dashdash=
903 for ac_option
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
922 ac_dashdash=yes ;;
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
941 --config-cache | -C)
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 esac
1259 done
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1343 /^X\(\/\/\)$/{
1344 s//\1/
1347 /^X\(\/\).*/{
1348 s//\1/
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1356 else
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457 _ACEOF
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of package-unused version-unused:";;
1463 esac
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-multilib build many library versions (default)
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-maintainer-mode
1474 enable make rules and dependencies not useful (and
1475 sometimes confusing) to the casual installer
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --enable-werror turns on -Werror [default=no]
1482 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1483 --enable-unix enables Unix runtime (default: yes, for Unix
1484 targets)
1485 --enable-thread-lib=<arg>
1486 specify linker option for the system thread library
1487 (default: autodetect)
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491 --enable-libphobos Enable libphobos
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-gcc-major-version-only
1500 use only GCC major number in filesystem paths
1501 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1502 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1503 auto)
1504 --with-target-system-zlib={yes,no,auto}
1505 use installed libz (default: no)
1506 --with-cross-host=HOST configuring with a cross compiler
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CPP C preprocessor
1517 CCAS assembler compiler command (defaults to CC)
1518 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1519 GDC D compiler command
1520 GDCFLAGS D compiler flags
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to the package provider.
1526 _ACEOF
1527 ac_status=$?
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 continue
1536 ac_builddir=.
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1554 case $srcdir in
1555 .) # We are building in place.
1556 ac_srcdir=.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1563 *) # Relative name.
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 package-unused configure version-unused
1589 generated by GNU Autoconf 2.69
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1609 if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=1
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1638 } # ac_fn_c_try_compile
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=1
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_cpp
1677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680 # the include files in INCLUDES and setting the cache variable VAR
1681 # accordingly.
1682 ac_fn_c_check_header_mongrel ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if eval \${$3+:} false; then :
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 else
1695 # Is the header compilable?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697 $as_echo_n "checking $2 usability... " >&6; }
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704 ac_header_compiler=yes
1705 else
1706 ac_header_compiler=no
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710 $as_echo "$ac_header_compiler" >&6; }
1712 # Is the header present?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714 $as_echo_n "checking $2 presence... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_cpp "$LINENO"; then :
1720 ac_header_preproc=yes
1721 else
1722 ac_header_preproc=no
1724 rm -f conftest.err conftest.i conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726 $as_echo "$ac_header_preproc" >&6; }
1728 # So? What about this header?
1729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730 yes:no: )
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 no:yes:* )
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1740 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1744 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748 esac
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 eval "$3=\$ac_header_compiler"
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 } # ac_fn_c_check_header_mongrel
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1768 ac_fn_c_try_run ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=$ac_status
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_run
1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists and can be compiled using the include files in
1809 # INCLUDES, setting the cache variable VAR accordingly.
1810 ac_fn_c_check_header_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_header_compile
1837 # ac_fn_d_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_d_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_d_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_d_try_compile
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_link ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=1
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_link
1921 # ac_fn_c_check_func LINENO FUNC VAR
1922 # ----------------------------------
1923 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1924 ac_fn_c_check_func ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936 #define $2 innocuous_$2
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1943 #ifdef __STDC__
1944 # include <limits.h>
1945 #else
1946 # include <assert.h>
1947 #endif
1949 #undef $2
1951 /* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1954 #ifdef __cplusplus
1955 extern "C"
1956 #endif
1957 char $2 ();
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined __stub_$2 || defined __stub___$2
1962 choke me
1963 #endif
1966 main ()
1968 return $2 ();
1970 return 0;
1972 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1978 rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_func
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \${$4+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 main ()
2006 static $2 ac_aggr;
2007 if (ac_aggr.$3)
2008 return 0;
2010 return 0;
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$4=yes"
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 main ()
2022 static $2 ac_aggr;
2023 if (sizeof ac_aggr.$3)
2024 return 0;
2026 return 0;
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031 else
2032 eval "$4=no"
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 eval ac_res=\$$4
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_member
2045 # ac_fn_d_try_link LINENO
2046 # -----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_d_try_link ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_d_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 test -x conftest$ac_exeext
2073 }; then :
2074 ac_retval=0
2075 else
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_retval=1
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2089 } # ac_fn_d_try_link
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2094 It was created by package-unused $as_me version-unused, which was
2095 generated by GNU Autoconf 2.69. Invocation command line was
2097 $ $0 $@
2099 _ACEOF
2100 exec 5>>config.log
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124 _ASUNAME
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133 IFS=$as_save_IFS
2135 } >&5
2137 cat >&5 <<_ACEOF
2140 ## ----------- ##
2141 ## Core tests. ##
2142 ## ----------- ##
2144 _ACEOF
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2152 ac_configure_args=
2153 ac_configure_args0=
2154 ac_configure_args1=
2155 ac_must_keep_next=false
2156 for ac_pass in 1 2
2158 for ac_arg
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2187 as_fn_append ac_configure_args " '$ac_arg'"
2189 esac
2190 done
2191 done
2192 { ac_configure_args0=; unset ac_configure_args0;}
2193 { ac_configure_args1=; unset ac_configure_args1;}
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2203 echo
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2208 echo
2209 # The following way of writing the cache mishandles newlines in values,
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in #(
2214 *${as_nl}*)
2215 case $ac_var in #(
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 esac
2219 case $ac_var in #(
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2223 esac ;;
2224 esac
2225 done
2226 (set) 2>&1 |
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2229 sed -n \
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 ;; #(
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 esac |
2237 sort
2239 echo
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2244 echo
2245 for ac_var in $ac_subst_vars
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2259 echo
2260 for ac_var in $ac_subst_files
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2273 ## confdefs.h. ##
2274 ## ----------- ##"
2275 echo
2276 cat confdefs.h
2277 echo
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2287 for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289 done
2290 ac_signal=0
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest* confdefs.h
2295 $as_echo "/* confdefs.h */" > confdefs.h
2297 # Predefined preprocessor variables.
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 _ACEOF
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 _ACEOF
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2321 _ACEOF
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 ac_site_file1=NONE
2327 ac_site_file2=NONE
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1=./$CONFIG_SITE;;
2332 */*) ac_site_file1=$CONFIG_SITE;;
2333 *) ac_site_file1=./$CONFIG_SITE;;
2334 esac
2335 elif test "x$prefix" != xNONE; then
2336 ac_site_file1=$prefix/share/config.site
2337 ac_site_file2=$prefix/etc/config.site
2338 else
2339 ac_site_file1=$ac_default_prefix/share/config.site
2340 ac_site_file2=$ac_default_prefix/etc/config.site
2342 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2344 test "x$ac_site_file" = xNONE && continue
2345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2355 done
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2374 # Check that the precious variables saved in the cache have kept the same
2375 # value.
2376 ac_cache_corrupted=false
2377 for ac_var in $ac_precious_vars; do
2378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379 eval ac_new_set=\$ac_env_${ac_var}_set
2380 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381 eval ac_new_val=\$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2383 set,)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,set)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,);;
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w=`echo x $ac_old_val`
2396 ac_new_val_w=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted=:
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\$ac_old_val
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410 fi;;
2411 esac
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2414 case $ac_new_val in
2415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg=$ac_var=$ac_new_val ;;
2417 esac
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 esac
2423 done
2424 if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 ## -------------------- ##
2432 ## Main body of script. ##
2433 ## -------------------- ##
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 ac_config_headers="$ac_config_headers config.h"
2449 # Default to --enable-multilib
2450 # Check whether --enable-multilib was given.
2451 if test "${enable_multilib+set}" = set; then :
2452 enableval=$enable_multilib; case "$enableval" in
2453 yes) multilib=yes ;;
2454 no) multilib=no ;;
2455 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2456 esac
2457 else
2458 multilib=yes
2462 # We may get other options which we leave undocumented:
2463 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2464 # See config-ml.in if you want the gory details.
2466 if test "$srcdir" = "."; then
2467 if test "$with_target_subdir" != "."; then
2468 multi_basedir="$srcdir/$with_multisrctop../.."
2469 else
2470 multi_basedir="$srcdir/$with_multisrctop.."
2472 else
2473 multi_basedir="$srcdir/.."
2477 # Even if the default multilib is not a cross compilation,
2478 # it may be that some of the other multilibs are.
2479 if test $cross_compiling = no && test $multilib = yes \
2480 && test "x${with_multisubdir}" != x ; then
2481 cross_compiling=maybe
2484 ac_config_commands="$ac_config_commands default-1"
2486 ac_aux_dir=
2487 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2488 if test -f "$ac_dir/install-sh"; then
2489 ac_aux_dir=$ac_dir
2490 ac_install_sh="$ac_aux_dir/install-sh -c"
2491 break
2492 elif test -f "$ac_dir/install.sh"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/install.sh -c"
2495 break
2496 elif test -f "$ac_dir/shtool"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/shtool install -c"
2499 break
2501 done
2502 if test -z "$ac_aux_dir"; then
2503 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 # Make sure we can run config.sub.
2516 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2517 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520 $as_echo_n "checking build system type... " >&6; }
2521 if ${ac_cv_build+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 ac_build_alias=$build_alias
2525 test "x$ac_build_alias" = x &&
2526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2527 test "x$ac_build_alias" = x &&
2528 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2529 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534 $as_echo "$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2536 *-*-*) ;;
2537 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2538 esac
2539 build=$ac_cv_build
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_build
2542 shift
2543 build_cpu=$1
2544 build_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 build_os=$*
2549 IFS=$ac_save_IFS
2550 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554 $as_echo_n "checking host system type... " >&6; }
2555 if ${ac_cv_host+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test "x$host_alias" = x; then
2559 ac_cv_host=$ac_cv_build
2560 else
2561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567 $as_echo "$ac_cv_host" >&6; }
2568 case $ac_cv_host in
2569 *-*-*) ;;
2570 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2587 $as_echo_n "checking target system type... " >&6; }
2588 if ${ac_cv_target+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test "x$target_alias" = x; then
2592 ac_cv_target=$ac_cv_host
2593 else
2594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2600 $as_echo "$ac_cv_target" >&6; }
2601 case $ac_cv_target in
2602 *-*-*) ;;
2603 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2604 esac
2605 target=$ac_cv_target
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_target
2608 shift
2609 target_cpu=$1
2610 target_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 target_os=$*
2615 IFS=$ac_save_IFS
2616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2619 # The aliases save the names the user supplied, while $host etc.
2620 # will get canonicalized.
2621 test -n "$target_alias" &&
2622 test "$program_prefix$program_suffix$program_transform_name" = \
2623 NONENONEs,x,x, &&
2624 program_prefix=${target_alias}-
2626 # Expand $ac_aux_dir to an absolute path.
2627 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2658 IFS=$as_save_IFS
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2673 if test -z "$ac_cv_prog_CC"; then
2674 ac_ct_CC=$CC
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC="gcc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 $as_echo "$ac_ct_CC" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2711 if test "x$ac_ct_CC" = x; then
2712 CC=""
2713 else
2714 case $cross_compiling:$ac_tool_warned in
2715 yes:)
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720 CC=$ac_ct_CC
2722 else
2723 CC="$ac_cv_prog_CC"
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="${ac_tool_prefix}cc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2749 done
2750 done
2751 IFS=$as_save_IFS
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2767 if test -z "$CC"; then
2768 # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 ac_prog_rejected=no
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787 ac_prog_rejected=yes
2788 continue
2790 ac_cv_prog_CC="cc"
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
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2801 shift
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2806 shift
2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in cl.exe
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2850 IFS=$as_save_IFS
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2864 test -n "$CC" && break
2865 done
2867 if test -z "$CC"; then
2868 ac_ct_CC=$CC
2869 for ac_prog in cl.exe
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC="$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2894 IFS=$as_save_IFS
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2908 test -n "$ac_ct_CC" && break
2909 done
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CC=$ac_ct_CC
2927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $? "no acceptable C compiler found in \$PATH
2930 See \`config.log' for more details" "$LINENO" 5; }
2932 # Provide some information about the compiler.
2933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2934 set X $ac_compile
2935 ac_compiler=$2
2936 for ac_option in --version -v -V -qversion; do
2937 { { ac_try="$ac_compiler $ac_option >&5"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2945 ac_status=$?
2946 if test -s conftest.err; then
2947 sed '10a\
2948 ... rest of stderr output deleted ...
2949 10q' conftest.err >conftest.er1
2950 cat conftest.er1 >&5
2952 rm -f conftest.er1 conftest.err
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2955 done
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2961 main ()
2965 return 0;
2967 _ACEOF
2968 ac_clean_files_save=$ac_clean_files
2969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970 # Try to create an executable without -o first, disregard a.out.
2971 # It will help us diagnose broken compilers, and finding out an intuition
2972 # of exeext.
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977 # The possible output files:
2978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2980 ac_rmfiles=
2981 for ac_file in $ac_files
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986 esac
2987 done
2988 rm -f $ac_rmfiles
2990 if { { ac_try="$ac_link_default"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_link_default") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
3001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3005 # Autoconf.
3006 for ac_file in $ac_files ''
3008 test -f "$ac_file" || continue
3009 case $ac_file in
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3012 [ab].out )
3013 # We found the default executable, but exeext='' is most
3014 # certainly right.
3015 break;;
3016 *.* )
3017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018 then :; else
3019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 # We set ac_cv_exeext here because the later test for it is not
3022 # safe: cross compilers may not add the suffix if given an `-o'
3023 # argument, so we may need to know it at that point already.
3024 # Even if this section looks crufty: it has the advantage of
3025 # actually working.
3026 break;;
3028 break;;
3029 esac
3030 done
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3033 else
3034 ac_file=''
3036 if test -z "$ac_file"; then :
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error 77 "C compiler cannot create executables
3045 See \`config.log' for more details" "$LINENO" 5; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3051 $as_echo_n "checking for C compiler default output file name... " >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 ac_exeext=$ac_cv_exeext
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059 $as_echo_n "checking for suffix of executables... " >&6; }
3060 if { { ac_try="$ac_link"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3073 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 # `rm'.
3075 for ac_file in conftest.exe conftest conftest.*; do
3076 test -f "$ac_file" || continue
3077 case $ac_file in
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 break;;
3081 * ) break;;
3082 esac
3083 done
3084 else
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details" "$LINENO" 5; }
3090 rm -f conftest conftest$ac_cv_exeext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092 $as_echo "$ac_cv_exeext" >&6; }
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099 #include <stdio.h>
3101 main ()
3103 FILE *f = fopen ("conftest.out", "w");
3104 return ferror (f) || fclose (f) != 0;
3107 return 0;
3109 _ACEOF
3110 ac_clean_files="$ac_clean_files conftest.out"
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114 $as_echo_n "checking whether we are cross compiling... " >&6; }
3115 if test "$cross_compiling" != yes; then
3116 { { ac_try="$ac_link"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }
3127 if { ac_try='./conftest$ac_cv_exeext'
3128 { { case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; }; then
3138 cross_compiling=no
3139 else
3140 if test "$cross_compiling" = maybe; then
3141 cross_compiling=yes
3142 else
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details" "$LINENO" 5; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152 $as_echo "$cross_compiling" >&6; }
3154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if ${ac_cv_objext+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3165 main ()
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.o conftest.obj
3173 if { { ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compile") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 for ac_file in conftest.o conftest.obj conftest.*; do
3185 test -f "$ac_file" || continue;
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3189 break;;
3190 esac
3191 done
3192 else
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204 $as_echo "$ac_cv_objext" >&6; }
3205 OBJEXT=$ac_cv_objext
3206 ac_objext=$OBJEXT
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3209 if ${ac_cv_c_compiler_gnu+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3216 main ()
3218 #ifndef __GNUC__
3219 choke me
3220 #endif
3223 return 0;
3225 _ACEOF
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227 ac_compiler_gnu=yes
3228 else
3229 ac_compiler_gnu=no
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3237 if test $ac_compiler_gnu = yes; then
3238 GCC=yes
3239 else
3240 GCC=
3242 ac_test_CFLAGS=${CFLAGS+set}
3243 ac_save_CFLAGS=$CFLAGS
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3246 if ${ac_cv_prog_cc_g+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 ac_save_c_werror_flag=$ac_c_werror_flag
3250 ac_c_werror_flag=yes
3251 ac_cv_prog_cc_g=no
3252 CFLAGS="-g"
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 if ac_fn_c_try_compile "$LINENO"; then :
3265 ac_cv_prog_cc_g=yes
3266 else
3267 CFLAGS=""
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3281 else
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3283 CFLAGS="-g"
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 if ac_fn_c_try_compile "$LINENO"; then :
3296 ac_cv_prog_cc_g=yes
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3311 CFLAGS="-g -O2"
3312 else
3313 CFLAGS="-g"
3315 else
3316 if test "$GCC" = yes; then
3317 CFLAGS="-O2"
3318 else
3319 CFLAGS=
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if ${ac_cv_prog_cc_c89+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 ac_cv_prog_cc_c89=no
3328 ac_save_CC=$CC
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #include <stdarg.h>
3332 #include <stdio.h>
3333 struct stat;
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3338 char **p;
3339 int i;
3341 return p[i];
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3345 char *s;
3346 va_list v;
3347 va_start (v,p);
3348 s = g (p, va_arg (v,int));
3349 va_end (v);
3350 return s;
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3364 #define FOO(x) 'x'
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 int argc;
3372 char **argv;
3374 main ()
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 return 0;
3380 _ACEOF
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_c89=$ac_arg
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3390 done
3391 rm -f conftest.$ac_ext
3392 CC=$ac_save_CC
3395 # AC_CACHE_VAL
3396 case "x$ac_cv_prog_cc_c89" in
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3400 xno)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3407 esac
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3424 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3425 if ${am_cv_prog_cc_c_o+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 # Make sure it works both with $CC and with simple cc.
3440 # Following AC_PROG_CC_C_O, we do the test twice because some
3441 # compilers refuse to overwrite an existing .o file with -o,
3442 # though they will create one.
3443 am_cv_prog_cc_c_o=yes
3444 for am_i in 1 2; do
3445 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3446 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } \
3450 && test -f conftest2.$ac_objext; then
3451 : OK
3452 else
3453 am_cv_prog_cc_c_o=no
3454 break
3456 done
3457 rm -f core conftest*
3458 unset am_i
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3461 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3462 if test "$am_cv_prog_cc_c_o" != yes; then
3463 # Losing compiler, so override with the script.
3464 # FIXME: It is wrong to rewrite CC.
3465 # But if we don't then we get into trouble of one sort or another.
3466 # A longer-term fix would be to have automake use am__CC in this case,
3467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3468 CC="$am_aux_dir/compile $CC"
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3485 # On Suns, sometimes $CPP names a directory.
3486 if test -n "$CPP" && test -d "$CPP"; then
3487 CPP=
3489 if test -z "$CPP"; then
3490 if ${ac_cv_prog_CPP+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 # Double quotes because CPP needs to be expanded
3494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3496 ac_preproc_ok=false
3497 for ac_c_preproc_warn_flag in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512 Syntax error
3513 _ACEOF
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3516 else
3517 # Broken: fails on valid input.
3518 continue
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3527 _ACEOF
3528 if ac_fn_c_try_cpp "$LINENO"; then :
3529 # Broken: success on invalid input.
3530 continue
3531 else
3532 # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3536 rm -f conftest.err conftest.i conftest.$ac_ext
3538 done
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.i conftest.err conftest.$ac_ext
3541 if $ac_preproc_ok; then :
3542 break
3545 done
3546 ac_cv_prog_CPP=$CPP
3549 CPP=$ac_cv_prog_CPP
3550 else
3551 ac_cv_prog_CPP=$CPP
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554 $as_echo "$CPP" >&6; }
3555 ac_preproc_ok=false
3556 for ac_c_preproc_warn_flag in '' yes
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #ifdef __STDC__
3567 # include <limits.h>
3568 #else
3569 # include <assert.h>
3570 #endif
3571 Syntax error
3572 _ACEOF
3573 if ac_fn_c_try_cpp "$LINENO"; then :
3575 else
3576 # Broken: fails on valid input.
3577 continue
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if ac_fn_c_try_cpp "$LINENO"; then :
3588 # Broken: success on invalid input.
3589 continue
3590 else
3591 # Passes both tests.
3592 ac_preproc_ok=:
3593 break
3595 rm -f conftest.err conftest.i conftest.$ac_ext
3597 done
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.i conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then :
3602 else
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details" "$LINENO" 5; }
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618 if ${ac_cv_path_GREP+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -z "$GREP"; then
3622 ac_path_GREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 as_fn_executable_p "$ac_path_GREP" || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3636 *GNU*)
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3639 ac_count=0
3640 $as_echo_n 0123456789 >"conftest.in"
3641 while :
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 as_fn_arith $ac_count + 1 && ac_count=$as_val
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3657 done
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3661 $ac_path_GREP_found && break 3
3662 done
3663 done
3664 done
3665 IFS=$as_save_IFS
3666 if test -z "$ac_cv_path_GREP"; then
3667 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669 else
3670 ac_cv_path_GREP=$GREP
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675 $as_echo "$ac_cv_path_GREP" >&6; }
3676 GREP="$ac_cv_path_GREP"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680 $as_echo_n "checking for egrep... " >&6; }
3681 if ${ac_cv_path_EGREP+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685 then ac_cv_path_EGREP="$GREP -E"
3686 else
3687 if test -z "$EGREP"; then
3688 ac_path_EGREP_found=false
3689 # Loop through the user's path and test for each of PROGNAME-LIST
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_prog in egrep; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698 as_fn_executable_p "$ac_path_EGREP" || continue
3699 # Check for GNU ac_path_EGREP and select it if it is found.
3700 # Check for GNU $ac_path_EGREP
3701 case `"$ac_path_EGREP" --version 2>&1` in
3702 *GNU*)
3703 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3705 ac_count=0
3706 $as_echo_n 0123456789 >"conftest.in"
3707 while :
3709 cat "conftest.in" "conftest.in" >"conftest.tmp"
3710 mv "conftest.tmp" "conftest.in"
3711 cp "conftest.in" "conftest.nl"
3712 $as_echo 'EGREP' >> "conftest.nl"
3713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715 as_fn_arith $ac_count + 1 && ac_count=$as_val
3716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717 # Best one so far, save it but keep looking for a better one
3718 ac_cv_path_EGREP="$ac_path_EGREP"
3719 ac_path_EGREP_max=$ac_count
3721 # 10*(2^10) chars as input seems more than enough
3722 test $ac_count -gt 10 && break
3723 done
3724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725 esac
3727 $ac_path_EGREP_found && break 3
3728 done
3729 done
3730 done
3731 IFS=$as_save_IFS
3732 if test -z "$ac_cv_path_EGREP"; then
3733 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3735 else
3736 ac_cv_path_EGREP=$EGREP
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742 $as_echo "$ac_cv_path_EGREP" >&6; }
3743 EGREP="$ac_cv_path_EGREP"
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747 $as_echo_n "checking for ANSI C header files... " >&6; }
3748 if ${ac_cv_header_stdc+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753 #include <stdlib.h>
3754 #include <stdarg.h>
3755 #include <string.h>
3756 #include <float.h>
3759 main ()
3763 return 0;
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_header_stdc=yes
3768 else
3769 ac_cv_header_stdc=no
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 if test $ac_cv_header_stdc = yes; then
3774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <string.h>
3779 _ACEOF
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 $EGREP "memchr" >/dev/null 2>&1; then :
3783 else
3784 ac_cv_header_stdc=no
3786 rm -f conftest*
3790 if test $ac_cv_header_stdc = yes; then
3791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <stdlib.h>
3796 _ACEOF
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "free" >/dev/null 2>&1; then :
3800 else
3801 ac_cv_header_stdc=no
3803 rm -f conftest*
3807 if test $ac_cv_header_stdc = yes; then
3808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809 if test "$cross_compiling" = yes; then :
3811 else
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <ctype.h>
3815 #include <stdlib.h>
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819 #else
3820 # define ISLOWER(c) \
3821 (('a' <= (c) && (c) <= 'i') \
3822 || ('j' <= (c) && (c) <= 'r') \
3823 || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825 #endif
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3829 main ()
3831 int i;
3832 for (i = 0; i < 256; i++)
3833 if (XOR (islower (i), ISLOWER (i))
3834 || toupper (i) != TOUPPER (i))
3835 return 2;
3836 return 0;
3838 _ACEOF
3839 if ac_fn_c_try_run "$LINENO"; then :
3841 else
3842 ac_cv_header_stdc=no
3844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845 conftest.$ac_objext conftest.beam conftest.$ac_ext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851 $as_echo "$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860 inttypes.h stdint.h unistd.h
3861 do :
3862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3866 cat >>confdefs.h <<_ACEOF
3867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 _ACEOF
3872 done
3876 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3877 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3878 MINIX=yes
3879 else
3880 MINIX=
3884 if test "$MINIX" = yes; then
3886 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3889 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3892 $as_echo "#define _MINIX 1" >>confdefs.h
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3898 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3899 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3905 # define __EXTENSIONS__ 1
3906 $ac_includes_default
3908 main ()
3912 return 0;
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_safe_to_define___extensions__=yes
3917 else
3918 ac_cv_safe_to_define___extensions__=no
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3923 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3924 test $ac_cv_safe_to_define___extensions__ = yes &&
3925 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3927 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3929 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3931 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3933 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3937 target_alias=${target_alias-$target}
3940 # 1.11.1: Require that version of automake.
3941 # foreign: Don't require README, INSTALL, NEWS, etc.
3942 # no-define: Don't define PACKAGE and VERSION.
3943 # no-dependencies: Don't generate automatic dependencies.
3944 # (because it breaks when using bootstrap-lean, since some of the
3945 # headers are gone at "make install" time).
3946 # subdir-objects: Build objects in sub-directories.
3947 # -Wall: Issue all automake warnings.
3948 # -Wno-portability: Don't warn about constructs supported by GNU make.
3949 # (because GCC requires GNU make anyhow).
3950 # -Wno-override: Overrides used in testsuite.
3951 am__api_version='1.15'
3953 # Find a good install program. We prefer a C program (faster),
3954 # so one script is as good as another. But avoid the broken or
3955 # incompatible versions:
3956 # SysV /etc/install, /usr/sbin/install
3957 # SunOS /usr/etc/install
3958 # IRIX /sbin/install
3959 # AIX /bin/install
3960 # AmigaOS /C/install, which installs bootblocks on floppy discs
3961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3964 # OS/2's system install, which has a completely different semantic
3965 # ./install, which can be erroneously created by make from ./install.sh.
3966 # Reject install programs that cannot install multiple files.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3968 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3969 if test -z "$INSTALL"; then
3970 if ${ac_cv_path_install+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 # Account for people who put trailing slashes in PATH elements.
3979 case $as_dir/ in #((
3980 ./ | .// | /[cC]/* | \
3981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3982 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3983 /usr/ucb/* ) ;;
3985 # OSF1 and SCO ODT 3.0 have their own names for install.
3986 # Don't use installbsd from OSF since it installs stuff as root
3987 # by default.
3988 for ac_prog in ginstall scoinst install; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3991 if test $ac_prog = install &&
3992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3993 # AIX install. It has an incompatible calling convention.
3995 elif test $ac_prog = install &&
3996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3997 # program-specific install script used by HP pwplus--don't use.
3999 else
4000 rm -rf conftest.one conftest.two conftest.dir
4001 echo one > conftest.one
4002 echo two > conftest.two
4003 mkdir conftest.dir
4004 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4005 test -s conftest.one && test -s conftest.two &&
4006 test -s conftest.dir/conftest.one &&
4007 test -s conftest.dir/conftest.two
4008 then
4009 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4010 break 3
4014 done
4015 done
4017 esac
4019 done
4020 IFS=$as_save_IFS
4022 rm -rf conftest.one conftest.two conftest.dir
4025 if test "${ac_cv_path_install+set}" = set; then
4026 INSTALL=$ac_cv_path_install
4027 else
4028 # As a last resort, use the slow shell script. Don't cache a
4029 # value for INSTALL within a source directory, because that will
4030 # break other packages using the cache if that directory is
4031 # removed, or if the value is a relative name.
4032 INSTALL=$ac_install_sh
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4036 $as_echo "$INSTALL" >&6; }
4038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039 # It thinks the first close brace ends the variable substitution.
4040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4047 $as_echo_n "checking whether build environment is sane... " >&6; }
4048 # Reject unsafe characters in $srcdir or the absolute working directory
4049 # name. Accept space and tab only in the latter.
4050 am_lf='
4052 case `pwd` in
4053 *[\\\"\#\$\&\'\`$am_lf]*)
4054 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4055 esac
4056 case $srcdir in
4057 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4058 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4059 esac
4061 # Do 'set' in a subshell so we don't clobber the current shell's
4062 # arguments. Must try -L first in case configure is actually a
4063 # symlink; some systems play weird games with the mod time of symlinks
4064 # (eg FreeBSD returns the mod time of the symlink's containing
4065 # directory).
4066 if (
4067 am_has_slept=no
4068 for am_try in 1 2; do
4069 echo "timestamp, slept: $am_has_slept" > conftest.file
4070 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4071 if test "$*" = "X"; then
4072 # -L didn't work.
4073 set X `ls -t "$srcdir/configure" conftest.file`
4075 if test "$*" != "X $srcdir/configure conftest.file" \
4076 && test "$*" != "X conftest.file $srcdir/configure"; then
4078 # If neither matched, then we have a broken ls. This can happen
4079 # if, for instance, CONFIG_SHELL is bash and it inherits a
4080 # broken ls alias from the environment. This has actually
4081 # happened. Such a system could not be considered "sane".
4082 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4083 alias in your environment" "$LINENO" 5
4085 if test "$2" = conftest.file || test $am_try -eq 2; then
4086 break
4088 # Just in case.
4089 sleep 1
4090 am_has_slept=yes
4091 done
4092 test "$2" = conftest.file
4094 then
4095 # Ok.
4097 else
4098 as_fn_error $? "newly created file is older than distributed files!
4099 Check your system clock" "$LINENO" 5
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4103 # If we didn't sleep, we still need to ensure time stamps of config.status and
4104 # generated files are strictly newer.
4105 am_sleep_pid=
4106 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4107 ( sleep 1 ) &
4108 am_sleep_pid=$!
4111 rm -f conftest.file
4113 test "$program_prefix" != NONE &&
4114 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4115 # Use a double $ so make ignores it.
4116 test "$program_suffix" != NONE &&
4117 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4118 # Double any \ or $.
4119 # By default was `s,x,x', remove it if useless.
4120 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4121 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4123 if test x"${MISSING+set}" != xset; then
4124 case $am_aux_dir in
4125 *\ * | *\ *)
4126 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4128 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4129 esac
4131 # Use eval to expand $SHELL
4132 if eval "$MISSING --is-lightweight"; then
4133 am_missing_run="$MISSING "
4134 else
4135 am_missing_run=
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4137 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4140 if test x"${install_sh+set}" != xset; then
4141 case $am_aux_dir in
4142 *\ * | *\ *)
4143 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4145 install_sh="\${SHELL} $am_aux_dir/install-sh"
4146 esac
4149 # Installed binaries are usually stripped using 'strip' when the user
4150 # run "make install-strip". However 'strip' might not be the right
4151 # tool to use in cross-compilation environments, therefore Automake
4152 # will honor the 'STRIP' environment variable to overrule this program.
4153 if test "$cross_compiling" != no; then
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}strip; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_prog_STRIP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if test -n "$STRIP"; then
4163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4178 IFS=$as_save_IFS
4182 STRIP=$ac_cv_prog_STRIP
4183 if test -n "$STRIP"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4185 $as_echo "$STRIP" >&6; }
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4193 if test -z "$ac_cv_prog_STRIP"; then
4194 ac_ct_STRIP=$STRIP
4195 # Extract the first word of "strip", so it can be a program name with args.
4196 set dummy strip; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$ac_ct_STRIP"; then
4203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_STRIP="strip"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4218 IFS=$as_save_IFS
4222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223 if test -n "$ac_ct_STRIP"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4225 $as_echo "$ac_ct_STRIP" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4231 if test "x$ac_ct_STRIP" = x; then
4232 STRIP=":"
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4239 esac
4240 STRIP=$ac_ct_STRIP
4242 else
4243 STRIP="$ac_cv_prog_STRIP"
4247 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4250 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4251 if test -z "$MKDIR_P"; then
4252 if ${ac_cv_path_mkdir+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in mkdir gmkdir; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4263 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4264 'mkdir (GNU coreutils) '* | \
4265 'mkdir (coreutils) '* | \
4266 'mkdir (fileutils) '4.1*)
4267 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4268 break 3;;
4269 esac
4270 done
4271 done
4272 done
4273 IFS=$as_save_IFS
4277 test -d ./--version && rmdir ./--version
4278 if test "${ac_cv_path_mkdir+set}" = set; then
4279 MKDIR_P="$ac_cv_path_mkdir -p"
4280 else
4281 # As a last resort, use the slow shell script. Don't cache a
4282 # value for MKDIR_P within a source directory, because that will
4283 # break other packages using the cache if that directory is
4284 # removed, or if the value is a relative name.
4285 MKDIR_P="$ac_install_sh -d"
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4289 $as_echo "$MKDIR_P" >&6; }
4291 for ac_prog in gawk mawk nawk awk
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_AWK+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$AWK"; then
4301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_AWK="$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4320 AWK=$ac_cv_prog_AWK
4321 if test -n "$AWK"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4323 $as_echo "$AWK" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$AWK" && break
4331 done
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4334 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4335 set x ${MAKE-make}
4336 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4337 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat >conftest.make <<\_ACEOF
4341 SHELL = /bin/sh
4342 all:
4343 @echo '@@@%%%=$(MAKE)=@@@%%%'
4344 _ACEOF
4345 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4346 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4347 *@@@%%%=?*=@@@%%%*)
4348 eval ac_cv_prog_make_${ac_make}_set=yes;;
4350 eval ac_cv_prog_make_${ac_make}_set=no;;
4351 esac
4352 rm -f conftest.make
4354 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 SET_MAKE=
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 SET_MAKE="MAKE=${MAKE-make}"
4364 rm -rf .tst 2>/dev/null
4365 mkdir .tst 2>/dev/null
4366 if test -d .tst; then
4367 am__leading_dot=.
4368 else
4369 am__leading_dot=_
4371 rmdir .tst 2>/dev/null
4373 # Check whether --enable-silent-rules was given.
4374 if test "${enable_silent_rules+set}" = set; then :
4375 enableval=$enable_silent_rules;
4378 case $enable_silent_rules in # (((
4379 yes) AM_DEFAULT_VERBOSITY=0;;
4380 no) AM_DEFAULT_VERBOSITY=1;;
4381 *) AM_DEFAULT_VERBOSITY=1;;
4382 esac
4383 am_make=${MAKE-make}
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4385 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4386 if ${am_cv_make_support_nested_variables+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if $as_echo 'TRUE=$(BAR$(V))
4390 BAR0=false
4391 BAR1=true
4393 am__doit:
4394 @$(TRUE)
4395 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4396 am_cv_make_support_nested_variables=yes
4397 else
4398 am_cv_make_support_nested_variables=no
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4402 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4403 if test $am_cv_make_support_nested_variables = yes; then
4404 AM_V='$(V)'
4405 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4406 else
4407 AM_V=$AM_DEFAULT_VERBOSITY
4408 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4410 AM_BACKSLASH='\'
4412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4414 # is not polluted with repeated "-I."
4415 am__isrc=' -I$(srcdir)'
4416 # test to see if srcdir already configured
4417 if test -f $srcdir/config.status; then
4418 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4422 # test whether we have cygpath
4423 if test -z "$CYGPATH_W"; then
4424 if (cygpath --version) >/dev/null 2>/dev/null; then
4425 CYGPATH_W='cygpath -w'
4426 else
4427 CYGPATH_W=echo
4432 # Define the identity of the package.
4433 PACKAGE='libphobos'
4434 VERSION='version-unused'
4437 # Some tools Automake needs.
4439 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4442 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4445 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4448 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4451 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4453 # For better backward compatibility. To be removed once Automake 1.9.x
4454 # dies out for good. For more background, see:
4455 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4456 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4457 mkdir_p='$(MKDIR_P)'
4459 # We need awk for the "check" target (and possibly the TAP driver). The
4460 # system "awk" is bad on some platforms.
4461 # Always define AMTAR for backward compatibility. Yes, it's still used
4462 # in the wild :-( We should find a proper way to deprecate it ...
4463 AMTAR='$${TAR-tar}'
4466 # We'll loop over all known methods to create a tar archive until one works.
4467 _am_tools='gnutar pax cpio none'
4469 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4476 # POSIX will say in a future version that running "rm -f" with no argument
4477 # is OK; and we want to be able to make that assumption in our Makefile
4478 # recipes. So use an aggressive probe to check that the usage we want is
4479 # actually supported "in the wild" to an acceptable degree.
4480 # See automake bug#10828.
4481 # To make any issue more visible, cause the running configure to be aborted
4482 # by default if the 'rm' program in use doesn't match our expectations; the
4483 # user can still override this though.
4484 if rm -f && rm -fr && rm -rf; then : OK; else
4485 cat >&2 <<'END'
4486 Oops!
4488 Your 'rm' program seems unable to run without file operands specified
4489 on the command line, even when the '-f' option is present. This is contrary
4490 to the behaviour of most rm programs out there, and not conforming with
4491 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4493 Please tell bug-automake@gnu.org about your system, including the value
4494 of your $PATH and any error possibly output before this message. This
4495 can help us improve future automake versions.
4498 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4499 echo 'Configuration will proceed anyway, since you have set the' >&2
4500 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4501 echo >&2
4502 else
4503 cat >&2 <<'END'
4504 Aborting the configuration process, to ensure you take notice of the issue.
4506 You can download and install GNU coreutils to get an 'rm' implementation
4507 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4509 If you want to complete the configuration process using your problematic
4510 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4511 to "yes", and re-run configure.
4514 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4521 # By default we simply use the C compiler to build assembly code.
4523 test "${CCAS+set}" = set || CCAS=$CC
4524 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 if test -n "$ac_tool_prefix"; then
4534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4535 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_CC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4572 if test -z "$ac_cv_prog_CC"; then
4573 ac_ct_CC=$CC
4574 # Extract the first word of "gcc", so it can be a program name with args.
4575 set dummy gcc; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$ac_ct_CC"; then
4582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_ac_ct_CC="gcc"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4602 if test -n "$ac_ct_CC"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4604 $as_echo "$ac_ct_CC" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4610 if test "x$ac_ct_CC" = x; then
4611 CC=""
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 CC=$ac_ct_CC
4621 else
4622 CC="$ac_cv_prog_CC"
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}cc; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_CC+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_CC="${ac_tool_prefix}cc"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4650 IFS=$as_save_IFS
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4666 if test -z "$CC"; then
4667 # Extract the first word of "cc", so it can be a program name with args.
4668 set dummy cc; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_prog_CC+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$CC"; then
4675 ac_cv_prog_CC="$CC" # Let the user override the test.
4676 else
4677 ac_prog_rejected=no
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4686 ac_prog_rejected=yes
4687 continue
4689 ac_cv_prog_CC="cc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4697 if test $ac_prog_rejected = yes; then
4698 # We found a bogon in the path, so make sure we never use it.
4699 set dummy $ac_cv_prog_CC
4700 shift
4701 if test $# != 0; then
4702 # We chose a different compiler from the bogus one.
4703 # However, it has the same basename, so the bogon will be chosen
4704 # first if we set CC to just the basename; use the full file name.
4705 shift
4706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4711 CC=$ac_cv_prog_CC
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 if test -z "$CC"; then
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog in cl.exe
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_CC+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4747 done
4748 done
4749 IFS=$as_save_IFS
4753 CC=$ac_cv_prog_CC
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4763 test -n "$CC" && break
4764 done
4766 if test -z "$CC"; then
4767 ac_ct_CC=$CC
4768 for ac_prog in cl.exe
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_CC"; then
4778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_CC="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4798 if test -n "$ac_ct_CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4800 $as_echo "$ac_ct_CC" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$ac_ct_CC" && break
4808 done
4810 if test "x$ac_ct_CC" = x; then
4811 CC=""
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 CC=$ac_ct_CC
4826 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4828 as_fn_error $? "no acceptable C compiler found in \$PATH
4829 See \`config.log' for more details" "$LINENO" 5; }
4831 # Provide some information about the compiler.
4832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4833 set X $ac_compile
4834 ac_compiler=$2
4835 for ac_option in --version -v -V -qversion; do
4836 { { ac_try="$ac_compiler $ac_option >&5"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4844 ac_status=$?
4845 if test -s conftest.err; then
4846 sed '10a\
4847 ... rest of stderr output deleted ...
4848 10q' conftest.err >conftest.er1
4849 cat conftest.er1 >&5
4851 rm -f conftest.er1 conftest.err
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }
4854 done
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4857 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4858 if ${ac_cv_c_compiler_gnu+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4865 main ()
4867 #ifndef __GNUC__
4868 choke me
4869 #endif
4872 return 0;
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_compiler_gnu=yes
4877 else
4878 ac_compiler_gnu=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4886 if test $ac_compiler_gnu = yes; then
4887 GCC=yes
4888 else
4889 GCC=
4891 ac_test_CFLAGS=${CFLAGS+set}
4892 ac_save_CFLAGS=$CFLAGS
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4895 if ${ac_cv_prog_cc_g+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 ac_save_c_werror_flag=$ac_c_werror_flag
4899 ac_c_werror_flag=yes
4900 ac_cv_prog_cc_g=no
4901 CFLAGS="-g"
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4906 main ()
4910 return 0;
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_prog_cc_g=yes
4915 else
4916 CFLAGS=""
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4921 main ()
4925 return 0;
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4930 else
4931 ac_c_werror_flag=$ac_save_c_werror_flag
4932 CFLAGS="-g"
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4937 main ()
4941 return 0;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_g=yes
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4955 $as_echo "$ac_cv_prog_cc_g" >&6; }
4956 if test "$ac_test_CFLAGS" = set; then
4957 CFLAGS=$ac_save_CFLAGS
4958 elif test $ac_cv_prog_cc_g = yes; then
4959 if test "$GCC" = yes; then
4960 CFLAGS="-g -O2"
4961 else
4962 CFLAGS="-g"
4964 else
4965 if test "$GCC" = yes; then
4966 CFLAGS="-O2"
4967 else
4968 CFLAGS=
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4972 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4973 if ${ac_cv_prog_cc_c89+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_cv_prog_cc_c89=no
4977 ac_save_CC=$CC
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <stdarg.h>
4981 #include <stdio.h>
4982 struct stat;
4983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4984 struct buf { int x; };
4985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4986 static char *e (p, i)
4987 char **p;
4988 int i;
4990 return p[i];
4992 static char *f (char * (*g) (char **, int), char **p, ...)
4994 char *s;
4995 va_list v;
4996 va_start (v,p);
4997 s = g (p, va_arg (v,int));
4998 va_end (v);
4999 return s;
5002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5003 function prototypes and stuff, but not '\xHH' hex character constants.
5004 These don't provoke an error unfortunately, instead are silently treated
5005 as 'x'. The following induces an error, until -std is added to get
5006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5007 array size at least. It's necessary to write '\x00'==0 to get something
5008 that's true only with -std. */
5009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5012 inside strings and character constants. */
5013 #define FOO(x) 'x'
5014 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5016 int test (int i, double x);
5017 struct s1 {int (*f) (int a);};
5018 struct s2 {int (*f) (double a);};
5019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5020 int argc;
5021 char **argv;
5023 main ()
5025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5027 return 0;
5029 _ACEOF
5030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5033 CC="$ac_save_CC $ac_arg"
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_prog_cc_c89=$ac_arg
5037 rm -f core conftest.err conftest.$ac_objext
5038 test "x$ac_cv_prog_cc_c89" != "xno" && break
5039 done
5040 rm -f conftest.$ac_ext
5041 CC=$ac_save_CC
5044 # AC_CACHE_VAL
5045 case "x$ac_cv_prog_cc_c89" in
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5048 $as_echo "none needed" >&6; } ;;
5049 xno)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5051 $as_echo "unsupported" >&6; } ;;
5053 CC="$CC $ac_cv_prog_cc_c89"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5056 esac
5057 if test "x$ac_cv_prog_cc_c89" != xno; then :
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5073 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5074 if ${am_cv_prog_cc_c_o+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5081 main ()
5085 return 0;
5087 _ACEOF
5088 # Make sure it works both with $CC and with simple cc.
5089 # Following AC_PROG_CC_C_O, we do the test twice because some
5090 # compilers refuse to overwrite an existing .o file with -o,
5091 # though they will create one.
5092 am_cv_prog_cc_c_o=yes
5093 for am_i in 1 2; do
5094 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5095 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } \
5099 && test -f conftest2.$ac_objext; then
5100 : OK
5101 else
5102 am_cv_prog_cc_c_o=no
5103 break
5105 done
5106 rm -f core conftest*
5107 unset am_i
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5110 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5111 if test "$am_cv_prog_cc_c_o" != yes; then
5112 # Losing compiler, so override with the script.
5113 # FIXME: It is wrong to rewrite CC.
5114 # But if we don't then we get into trouble of one sort or another.
5115 # A longer-term fix would be to have automake use am__CC in this case,
5116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5117 CC="$am_aux_dir/compile $CC"
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 ac_ext=d
5127 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5128 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=yes
5130 if test -n "$ac_tool_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_GDC+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$GDC"; then
5139 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 GDC=$ac_cv_prog_GDC
5159 if test -n "$GDC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5161 $as_echo "$GDC" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5169 if test -z "$ac_cv_prog_GDC"; then
5170 ac_ct_GDC=$GDC
5171 # Extract the first word of "gdc", so it can be a program name with args.
5172 set dummy gdc; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$ac_ct_GDC"; then
5179 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ac_ct_GDC="gdc"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5199 if test -n "$ac_ct_GDC"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5201 $as_echo "$ac_ct_GDC" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5207 if test "x$ac_ct_GDC" = x; then
5208 GDC=""
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5215 esac
5216 GDC=$ac_ct_GDC
5218 else
5219 GDC="$ac_cv_prog_GDC"
5222 if test -z "$GDC"; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_GDC+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$GDC"; then
5232 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 GDC=$ac_cv_prog_GDC
5252 if test -n "$GDC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5254 $as_echo "$GDC" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5263 if test -z "$GDC"; then
5264 # Extract the first word of "gdc", so it can be a program name with args.
5265 set dummy gdc; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_GDC+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$GDC"; then
5272 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5273 else
5274 ac_prog_rejected=no
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5283 ac_prog_rejected=yes
5284 continue
5286 ac_cv_prog_GDC="gdc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5290 done
5291 done
5292 IFS=$as_save_IFS
5294 if test $ac_prog_rejected = yes; then
5295 # We found a bogon in the path, so make sure we never use it.
5296 set dummy $ac_cv_prog_GDC
5297 shift
5298 if test $# != 0; then
5299 # We chose a different compiler from the bogus one.
5300 # However, it has the same basename, so the bogon will be chosen
5301 # first if we set GDC to just the basename; use the full file name.
5302 shift
5303 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5308 GDC=$ac_cv_prog_GDC
5309 if test -n "$GDC"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5311 $as_echo "$GDC" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5321 # Provide some information about the compiler.
5322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5323 set X $ac_compile
5324 ac_compiler=$2
5325 { { ac_try="$ac_compiler --version >&5"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5331 $as_echo "$ac_try_echo"; } >&5
5332 (eval "$ac_compiler --version >&5") 2>conftest.err
5333 ac_status=$?
5334 if test -s conftest.err; then
5335 sed '10a\
5336 ... rest of stderr output deleted ...
5337 10q' conftest.err >conftest.er1
5338 cat conftest.er1 >&5
5340 rm -f conftest.er1 conftest.err
5341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5342 test $ac_status = 0; }
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5351 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5352 if ${phobos_cv_abs_srcdir+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5358 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5359 if test -d "$phobos_cv_abs_srcdir"; then :
5361 else
5362 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5368 gdc_save_DFLAGS=$GDCFLAGS
5369 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5371 ac_ext=d
5372 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5373 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=yes
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5377 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5378 cat > conftest.$ac_ext <<_ACEOF
5379 module mod;
5382 extern(C) int main() {
5383 return 0;
5385 _ACEOF
5386 if ac_fn_d_try_compile "$LINENO"; then :
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388 $as_echo "yes" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 GDCFLAGS=$gdc_save_DFLAGS
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5410 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5411 # Check whether --enable-maintainer-mode was given.
5412 if test "${enable_maintainer_mode+set}" = set; then :
5413 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5414 else
5415 USE_MAINTAINER_MODE=no
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5419 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5420 if test $USE_MAINTAINER_MODE = yes; then
5421 MAINTAINER_MODE_TRUE=
5422 MAINTAINER_MODE_FALSE='#'
5423 else
5424 MAINTAINER_MODE_TRUE='#'
5425 MAINTAINER_MODE_FALSE=
5428 MAINT=$MAINTAINER_MODE_TRUE
5431 if test -n "$ac_tool_prefix"; then
5432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_RANLIB+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$RANLIB"; then
5440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5459 RANLIB=$ac_cv_prog_RANLIB
5460 if test -n "$RANLIB"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5462 $as_echo "$RANLIB" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473 set dummy ranlib; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB="ranlib"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5493 done
5494 done
5495 IFS=$as_save_IFS
5499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500 if test -n "$ac_ct_RANLIB"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5502 $as_echo "$ac_ct_RANLIB" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5508 if test "x$ac_ct_RANLIB" = x; then
5509 RANLIB=":"
5510 else
5511 case $cross_compiling:$ac_tool_warned in
5512 yes:)
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned=yes ;;
5516 esac
5517 RANLIB=$ac_ct_RANLIB
5519 else
5520 RANLIB="$ac_cv_prog_RANLIB"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5525 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5526 set x ${MAKE-make}
5527 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5528 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat >conftest.make <<\_ACEOF
5532 SHELL = /bin/sh
5533 all:
5534 @echo '@@@%%%=$(MAKE)=@@@%%%'
5535 _ACEOF
5536 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5537 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5538 *@@@%%%=?*=@@@%%%*)
5539 eval ac_cv_prog_make_${ac_make}_set=yes;;
5541 eval ac_cv_prog_make_${ac_make}_set=no;;
5542 esac
5543 rm -f conftest.make
5545 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548 SET_MAKE=
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 SET_MAKE="MAKE=${MAKE-make}"
5556 # This should be inherited in the recursive make, but ensure it is defined.
5557 test "$AR" || AR=ar
5560 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5564 # Enable libtool
5565 case `pwd` in
5566 *\ * | *\ *)
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5568 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5569 esac
5573 macro_version='2.2.7a'
5574 macro_revision='1.3134'
5588 ltmain="$ac_aux_dir/ltmain.sh"
5590 # Backslashify metacharacters that are still active within
5591 # double-quoted strings.
5592 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5594 # Same as above, but do not quote variable references.
5595 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5597 # Sed substitution to delay expansion of an escaped shell variable in a
5598 # double_quote_subst'ed string.
5599 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5601 # Sed substitution to delay expansion of an escaped single quote.
5602 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5604 # Sed substitution to avoid accidental globbing in evaled expressions
5605 no_glob_subst='s/\*/\\\*/g'
5607 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5608 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5609 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5612 $as_echo_n "checking how to print strings... " >&6; }
5613 # Test print first, because it will be a builtin if present.
5614 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5615 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5616 ECHO='print -r --'
5617 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5618 ECHO='printf %s\n'
5619 else
5620 # Use this function as a fallback that always works.
5621 func_fallback_echo ()
5623 eval 'cat <<_LTECHO_EOF
5625 _LTECHO_EOF'
5627 ECHO='func_fallback_echo'
5630 # func_echo_all arg...
5631 # Invoke $ECHO with all args, space-separated.
5632 func_echo_all ()
5634 $ECHO ""
5637 case "$ECHO" in
5638 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5639 $as_echo "printf" >&6; } ;;
5640 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5641 $as_echo "print -r" >&6; } ;;
5642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5643 $as_echo "cat" >&6; } ;;
5644 esac
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5661 if ${ac_cv_path_SED+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5665 for ac_i in 1 2 3 4 5 6 7; do
5666 ac_script="$ac_script$as_nl$ac_script"
5667 done
5668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5669 { ac_script=; unset ac_script;}
5670 if test -z "$SED"; then
5671 ac_path_SED_found=false
5672 # Loop through the user's path and test for each of PROGNAME-LIST
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_prog in sed gsed; do
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5681 as_fn_executable_p "$ac_path_SED" || continue
5682 # Check for GNU ac_path_SED and select it if it is found.
5683 # Check for GNU $ac_path_SED
5684 case `"$ac_path_SED" --version 2>&1` in
5685 *GNU*)
5686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5688 ac_count=0
5689 $as_echo_n 0123456789 >"conftest.in"
5690 while :
5692 cat "conftest.in" "conftest.in" >"conftest.tmp"
5693 mv "conftest.tmp" "conftest.in"
5694 cp "conftest.in" "conftest.nl"
5695 $as_echo '' >> "conftest.nl"
5696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5698 as_fn_arith $ac_count + 1 && ac_count=$as_val
5699 if test $ac_count -gt ${ac_path_SED_max-0}; then
5700 # Best one so far, save it but keep looking for a better one
5701 ac_cv_path_SED="$ac_path_SED"
5702 ac_path_SED_max=$ac_count
5704 # 10*(2^10) chars as input seems more than enough
5705 test $ac_count -gt 10 && break
5706 done
5707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5708 esac
5710 $ac_path_SED_found && break 3
5711 done
5712 done
5713 done
5714 IFS=$as_save_IFS
5715 if test -z "$ac_cv_path_SED"; then
5716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5718 else
5719 ac_cv_path_SED=$SED
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5724 $as_echo "$ac_cv_path_SED" >&6; }
5725 SED="$ac_cv_path_SED"
5726 rm -f conftest.sed
5728 test -z "$SED" && SED=sed
5729 Xsed="$SED -e 1s/^X//"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5742 $as_echo_n "checking for fgrep... " >&6; }
5743 if ${ac_cv_path_FGREP+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5747 then ac_cv_path_FGREP="$GREP -F"
5748 else
5749 if test -z "$FGREP"; then
5750 ac_path_FGREP_found=false
5751 # Loop through the user's path and test for each of PROGNAME-LIST
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_prog in fgrep; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5760 as_fn_executable_p "$ac_path_FGREP" || continue
5761 # Check for GNU ac_path_FGREP and select it if it is found.
5762 # Check for GNU $ac_path_FGREP
5763 case `"$ac_path_FGREP" --version 2>&1` in
5764 *GNU*)
5765 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5767 ac_count=0
5768 $as_echo_n 0123456789 >"conftest.in"
5769 while :
5771 cat "conftest.in" "conftest.in" >"conftest.tmp"
5772 mv "conftest.tmp" "conftest.in"
5773 cp "conftest.in" "conftest.nl"
5774 $as_echo 'FGREP' >> "conftest.nl"
5775 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5777 as_fn_arith $ac_count + 1 && ac_count=$as_val
5778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5779 # Best one so far, save it but keep looking for a better one
5780 ac_cv_path_FGREP="$ac_path_FGREP"
5781 ac_path_FGREP_max=$ac_count
5783 # 10*(2^10) chars as input seems more than enough
5784 test $ac_count -gt 10 && break
5785 done
5786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5787 esac
5789 $ac_path_FGREP_found && break 3
5790 done
5791 done
5792 done
5793 IFS=$as_save_IFS
5794 if test -z "$ac_cv_path_FGREP"; then
5795 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5797 else
5798 ac_cv_path_FGREP=$FGREP
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5804 $as_echo "$ac_cv_path_FGREP" >&6; }
5805 FGREP="$ac_cv_path_FGREP"
5808 test -z "$GREP" && GREP=grep
5828 # Check whether --with-gnu-ld was given.
5829 if test "${with_gnu_ld+set}" = set; then :
5830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5831 else
5832 with_gnu_ld=no
5835 ac_prog=ld
5836 if test "$GCC" = yes; then
5837 # Check if gcc -print-prog-name=ld gives a path.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5839 $as_echo_n "checking for ld used by $CC... " >&6; }
5840 case $host in
5841 *-*-mingw*)
5842 # gcc leaves a trailing carriage return which upsets mingw
5843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5846 esac
5847 case $ac_prog in
5848 # Accept absolute paths.
5849 [\\/]* | ?:[\\/]*)
5850 re_direlt='/[^/][^/]*/\.\./'
5851 # Canonicalize the pathname of ld
5852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5855 done
5856 test -z "$LD" && LD="$ac_prog"
5859 # If it fails, then pretend we aren't using GCC.
5860 ac_prog=ld
5863 # If it is relative, then search for the first ld in PATH.
5864 with_gnu_ld=unknown
5866 esac
5867 elif test "$with_gnu_ld" = yes; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5869 $as_echo_n "checking for GNU ld... " >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5872 $as_echo_n "checking for non-GNU ld... " >&6; }
5874 if ${lt_cv_path_LD+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -z "$LD"; then
5878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5879 for ac_dir in $PATH; do
5880 IFS="$lt_save_ifs"
5881 test -z "$ac_dir" && ac_dir=.
5882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5883 lt_cv_path_LD="$ac_dir/$ac_prog"
5884 # Check to see if the program is GNU ld. I'd rather use --version,
5885 # but apparently some variants of GNU ld only accept -v.
5886 # Break only if it was the GNU/non-GNU ld that we prefer.
5887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889 test "$with_gnu_ld" != no && break
5892 test "$with_gnu_ld" != yes && break
5894 esac
5896 done
5897 IFS="$lt_save_ifs"
5898 else
5899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5903 LD="$lt_cv_path_LD"
5904 if test -n "$LD"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5906 $as_echo "$LD" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5911 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914 if ${lt_cv_prog_gnu_ld+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5918 case `$LD -v 2>&1 </dev/null` in
5919 *GNU* | *'with BFD'*)
5920 lt_cv_prog_gnu_ld=yes
5923 lt_cv_prog_gnu_ld=no
5925 esac
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5929 with_gnu_ld=$lt_cv_prog_gnu_ld
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5940 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5941 if ${lt_cv_path_NM+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$NM"; then
5945 # Let the user override the test.
5946 lt_cv_path_NM="$NM"
5947 else
5948 lt_nm_to_check="${ac_tool_prefix}nm"
5949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5950 lt_nm_to_check="$lt_nm_to_check nm"
5952 for lt_tmp_nm in $lt_nm_to_check; do
5953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5955 IFS="$lt_save_ifs"
5956 test -z "$ac_dir" && ac_dir=.
5957 tmp_nm="$ac_dir/$lt_tmp_nm"
5958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5959 # Check to see if the nm accepts a BSD-compat flag.
5960 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5961 # nm: unknown option "B" ignored
5962 # Tru64's nm complains that /dev/null is an invalid object file
5963 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5964 */dev/null* | *'Invalid file or object type'*)
5965 lt_cv_path_NM="$tmp_nm -B"
5966 break
5969 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5970 */dev/null*)
5971 lt_cv_path_NM="$tmp_nm -p"
5972 break
5975 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5976 continue # so that we can try to find one that supports BSD flags
5978 esac
5980 esac
5982 done
5983 IFS="$lt_save_ifs"
5984 done
5985 : ${lt_cv_path_NM=no}
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5989 $as_echo "$lt_cv_path_NM" >&6; }
5990 if test "$lt_cv_path_NM" != "no"; then
5991 NM="$lt_cv_path_NM"
5992 else
5993 # Didn't find any BSD compatible name lister, look for dumpbin.
5994 if test -n "$DUMPBIN"; then :
5995 # Let the user override the test.
5996 else
5997 if test -n "$ac_tool_prefix"; then
5998 for ac_prog in dumpbin "link -dump"
6000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_DUMPBIN+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$DUMPBIN"; then
6008 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 DUMPBIN=$ac_cv_prog_DUMPBIN
6028 if test -n "$DUMPBIN"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6030 $as_echo "$DUMPBIN" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6037 test -n "$DUMPBIN" && break
6038 done
6040 if test -z "$DUMPBIN"; then
6041 ac_ct_DUMPBIN=$DUMPBIN
6042 for ac_prog in dumpbin "link -dump"
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$ac_ct_DUMPBIN"; then
6052 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6065 done
6066 done
6067 IFS=$as_save_IFS
6071 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6072 if test -n "$ac_ct_DUMPBIN"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6074 $as_echo "$ac_ct_DUMPBIN" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6081 test -n "$ac_ct_DUMPBIN" && break
6082 done
6084 if test "x$ac_ct_DUMPBIN" = x; then
6085 DUMPBIN=":"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 DUMPBIN=$ac_ct_DUMPBIN
6097 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6098 *COFF*)
6099 DUMPBIN="$DUMPBIN -symbols"
6102 DUMPBIN=:
6104 esac
6107 if test "$DUMPBIN" != ":"; then
6108 NM="$DUMPBIN"
6111 test -z "$NM" && NM=nm
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6119 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6120 if ${lt_cv_nm_interface+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 lt_cv_nm_interface="BSD nm"
6124 echo "int some_variable = 0;" > conftest.$ac_ext
6125 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6126 (eval "$ac_compile" 2>conftest.err)
6127 cat conftest.err >&5
6128 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6130 cat conftest.err >&5
6131 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6132 cat conftest.out >&5
6133 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6134 lt_cv_nm_interface="MS dumpbin"
6136 rm -f conftest*
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6139 $as_echo "$lt_cv_nm_interface" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6142 $as_echo_n "checking whether ln -s works... " >&6; }
6143 LN_S=$as_ln_s
6144 if test "$LN_S" = "ln -s"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146 $as_echo "yes" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6149 $as_echo "no, using $LN_S" >&6; }
6152 # find the maximum length of command line arguments
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6154 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6155 if ${lt_cv_sys_max_cmd_len+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6159 teststring="ABCD"
6161 case $build_os in
6162 msdosdjgpp*)
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6170 gnu*)
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len=-1;
6177 cygwin* | mingw* | cegcc*)
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len=8192;
6188 mint*)
6189 # On MiNT this can take a long time and run out of memory.
6190 lt_cv_sys_max_cmd_len=8192;
6193 amigaos*)
6194 # On AmigaOS with pdksh, this test takes hours, literally.
6195 # So we just punt and use a minimum line length of 8192.
6196 lt_cv_sys_max_cmd_len=8192;
6199 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200 # This has been around since 386BSD, at least. Likely further.
6201 if test -x /sbin/sysctl; then
6202 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203 elif test -x /usr/sbin/sysctl; then
6204 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6205 else
6206 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6208 # And add a safety zone
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6213 interix*)
6214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215 lt_cv_sys_max_cmd_len=196608
6218 osf*)
6219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221 # nice to cause kernel panics so lets avoid the loop below.
6222 # First set a reasonable default.
6223 lt_cv_sys_max_cmd_len=16384
6225 if test -x /sbin/sysconfig; then
6226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228 esac
6231 sco3.2v5*)
6232 lt_cv_sys_max_cmd_len=102400
6234 sysv5* | sco5v6* | sysv4.2uw2*)
6235 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236 if test -n "$kargmax"; then
6237 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6238 else
6239 lt_cv_sys_max_cmd_len=32768
6243 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244 if test -n "$lt_cv_sys_max_cmd_len"; then
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247 else
6248 # Make teststring a little bigger before we do anything with it.
6249 # a 1K string should be a reasonable start.
6250 for i in 1 2 3 4 5 6 7 8 ; do
6251 teststring=$teststring$teststring
6252 done
6253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254 # If test is not a shell built-in, we'll probably end up computing a
6255 # maximum length that is only half of the actual maximum length, but
6256 # we can't tell.
6257 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6258 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6259 test $i != 17 # 1/2 MB should be enough
6261 i=`expr $i + 1`
6262 teststring=$teststring$teststring
6263 done
6264 # Only check the string length outside the loop.
6265 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6266 teststring=
6267 # Add a significant safety factor because C++ compilers can tack on
6268 # massive amounts of additional arguments before passing them to the
6269 # linker. It appears as though 1/2 is a usable value.
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6273 esac
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6282 $as_echo "none" >&6; }
6284 max_cmd_len=$lt_cv_sys_max_cmd_len
6291 : ${CP="cp -f"}
6292 : ${MV="mv -f"}
6293 : ${RM="rm -f"}
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6298 xsi_shell=no
6299 ( _lt_dummy="a/b/c"
6300 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6301 = c,a/b,, \
6302 && eval 'test $(( 1 + 1 )) -eq 2 \
6303 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6304 && xsi_shell=yes
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6311 lt_shell_append=no
6312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6313 >/dev/null 2>&1 \
6314 && lt_shell_append=yes
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320 lt_unset=unset
6321 else
6322 lt_unset=false
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6340 esac
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6352 if ${lt_cv_ld_reload_flag+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 lt_cv_ld_reload_flag='-r'
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6361 "" | " "*) ;;
6362 *) reload_flag=" $reload_flag" ;;
6363 esac
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365 case $host_os in
6366 darwin*)
6367 if test "$GCC" = yes; then
6368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369 else
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6373 esac
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_OBJDUMP+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$OBJDUMP"; then
6392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6405 done
6406 done
6407 IFS=$as_save_IFS
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423 ac_ct_OBJDUMP=$OBJDUMP
6424 # Extract the first word of "objdump", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -n "$ac_ct_OBJDUMP"; then
6432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6445 done
6446 done
6447 IFS=$as_save_IFS
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6460 if test "x$ac_ct_OBJDUMP" = x; then
6461 OBJDUMP="false"
6462 else
6463 case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469 OBJDUMP=$ac_ct_OBJDUMP
6471 else
6472 OBJDUMP="$ac_cv_prog_OBJDUMP"
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487 if ${lt_cv_deplibs_check_method+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6504 case $host_os in
6505 aix[4-9]*)
6506 lt_cv_deplibs_check_method=pass_all
6509 beos*)
6510 lt_cv_deplibs_check_method=pass_all
6513 bsdi[45]*)
6514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515 lt_cv_file_magic_cmd='/usr/bin/file -L'
6516 lt_cv_file_magic_test_file=/shlib/libc.so
6519 cygwin*)
6520 # func_win32_libid is a shell function defined in ltmain.sh
6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522 lt_cv_file_magic_cmd='func_win32_libid'
6525 mingw* | pw32*)
6526 # Base MSYS/MinGW do not provide the 'file' command needed by
6527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528 # unless we find 'file', for example because we are cross-compiling.
6529 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6530 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532 lt_cv_file_magic_cmd='func_win32_libid'
6533 else
6534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6535 lt_cv_file_magic_cmd='$OBJDUMP -f'
6539 cegcc*)
6540 # use the weaker test based on 'objdump'. See mingw*.
6541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6542 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 darwin* | rhapsody*)
6546 lt_cv_deplibs_check_method=pass_all
6549 freebsd* | dragonfly*)
6550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6551 case $host_cpu in
6552 i*86 )
6553 # Not sure whether the presence of OpenBSD here was a mistake.
6554 # Let's accept both of them until this is cleared up.
6555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6556 lt_cv_file_magic_cmd=/usr/bin/file
6557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6559 esac
6560 else
6561 lt_cv_deplibs_check_method=pass_all
6565 gnu*)
6566 lt_cv_deplibs_check_method=pass_all
6569 haiku*)
6570 lt_cv_deplibs_check_method=pass_all
6573 hpux10.20* | hpux11*)
6574 lt_cv_file_magic_cmd=/usr/bin/file
6575 case $host_cpu in
6576 ia64*)
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6580 hppa*64*)
6581 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]'
6582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6588 esac
6591 interix[3-9]*)
6592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6596 irix5* | irix6* | nonstopux*)
6597 case $LD in
6598 *-32|*"-32 ") libmagic=32-bit;;
6599 *-n32|*"-n32 ") libmagic=N32;;
6600 *-64|*"-64 ") libmagic=64-bit;;
6601 *) libmagic=never-match;;
6602 esac
6603 lt_cv_deplibs_check_method=pass_all
6606 # This must be Linux ELF.
6607 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6608 lt_cv_deplibs_check_method=pass_all
6611 netbsd*)
6612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6614 else
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6619 newos6*)
6620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6621 lt_cv_file_magic_cmd=/usr/bin/file
6622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6625 *nto* | *qnx*)
6626 lt_cv_deplibs_check_method=pass_all
6629 openbsd*)
6630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6632 else
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6637 osf3* | osf4* | osf5*)
6638 lt_cv_deplibs_check_method=pass_all
6641 rdos*)
6642 lt_cv_deplibs_check_method=pass_all
6645 solaris*)
6646 lt_cv_deplibs_check_method=pass_all
6649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6650 lt_cv_deplibs_check_method=pass_all
6653 sysv4 | sysv4.3*)
6654 case $host_vendor in
6655 motorola)
6656 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]'
6657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6659 ncr)
6660 lt_cv_deplibs_check_method=pass_all
6662 sequent)
6663 lt_cv_file_magic_cmd='/bin/file'
6664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6666 sni)
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6669 lt_cv_file_magic_test_file=/lib/libc.so
6671 siemens)
6672 lt_cv_deplibs_check_method=pass_all
6675 lt_cv_deplibs_check_method=pass_all
6677 esac
6680 tpf*)
6681 lt_cv_deplibs_check_method=pass_all
6683 esac
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6688 file_magic_cmd=$lt_cv_file_magic_cmd
6689 deplibs_check_method=$lt_cv_deplibs_check_method
6690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}ar; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_AR+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$AR"; then
6712 ac_cv_prog_AR="$AR" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_AR="${ac_tool_prefix}ar"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6725 done
6726 done
6727 IFS=$as_save_IFS
6731 AR=$ac_cv_prog_AR
6732 if test -n "$AR"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6734 $as_echo "$AR" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6742 if test -z "$ac_cv_prog_AR"; then
6743 ac_ct_AR=$AR
6744 # Extract the first word of "ar", so it can be a program name with args.
6745 set dummy ar; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$ac_ct_AR"; then
6752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_AR="ar"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6765 done
6766 done
6767 IFS=$as_save_IFS
6771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772 if test -n "$ac_ct_AR"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6774 $as_echo "$ac_ct_AR" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6780 if test "x$ac_ct_AR" = x; then
6781 AR="false"
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784 yes:)
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 AR=$ac_ct_AR
6791 else
6792 AR="$ac_cv_prog_AR"
6795 test -z "$AR" && AR=ar
6796 test -z "$AR_FLAGS" && AR_FLAGS=cru
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}strip; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_STRIP+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$STRIP"; then
6817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 STRIP=$ac_cv_prog_STRIP
6837 if test -n "$STRIP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6839 $as_echo "$STRIP" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6847 if test -z "$ac_cv_prog_STRIP"; then
6848 ac_ct_STRIP=$STRIP
6849 # Extract the first word of "strip", so it can be a program name with args.
6850 set dummy strip; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_STRIP"; then
6857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_STRIP="strip"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6877 if test -n "$ac_ct_STRIP"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6879 $as_echo "$ac_ct_STRIP" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6885 if test "x$ac_ct_STRIP" = x; then
6886 STRIP=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 STRIP=$ac_ct_STRIP
6896 else
6897 STRIP="$ac_cv_prog_STRIP"
6900 test -z "$STRIP" && STRIP=:
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_RANLIB+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$RANLIB"; then
6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6929 done
6930 done
6931 IFS=$as_save_IFS
6935 RANLIB=$ac_cv_prog_RANLIB
6936 if test -n "$RANLIB"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6938 $as_echo "$RANLIB" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6946 if test -z "$ac_cv_prog_RANLIB"; then
6947 ac_ct_RANLIB=$RANLIB
6948 # Extract the first word of "ranlib", so it can be a program name with args.
6949 set dummy ranlib; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_RANLIB"; then
6956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 ac_cv_prog_ac_ct_RANLIB="ranlib"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6976 if test -n "$ac_ct_RANLIB"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6978 $as_echo "$ac_ct_RANLIB" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6984 if test "x$ac_ct_RANLIB" = x; then
6985 RANLIB=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 RANLIB=$ac_ct_RANLIB
6995 else
6996 RANLIB="$ac_cv_prog_RANLIB"
6999 test -z "$RANLIB" && RANLIB=:
7006 # Determine commands to create old-style static archives.
7007 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7008 old_postinstall_cmds='chmod 644 $oldlib'
7009 old_postuninstall_cmds=
7011 if test -n "$RANLIB"; then
7012 case $host_os in
7013 openbsd*)
7014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7019 esac
7020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7023 case $host_os in
7024 darwin*)
7025 lock_old_archive_extraction=yes ;;
7027 lock_old_archive_extraction=no ;;
7028 esac
7068 # If no C compiler was specified, use CC.
7069 LTCC=${LTCC-"$CC"}
7071 # If no C compiler flags were specified, use CFLAGS.
7072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7074 # Allow CC to be a program name with arguments.
7075 compiler=$CC
7078 # Check for command to grab the raw symbol name followed by C symbol from nm.
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7080 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7081 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7085 # These are sane defaults that work on at least a few old systems.
7086 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7088 # Character class describing NM global symbol codes.
7089 symcode='[BCDEGRST]'
7091 # Regexp to match symbols that can be accessed directly from C.
7092 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7094 # Define system-specific variables.
7095 case $host_os in
7096 aix*)
7097 symcode='[BCDT]'
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 symcode='[ABCDGISTW]'
7102 hpux*)
7103 if test "$host_cpu" = ia64; then
7104 symcode='[ABCDEGRST]'
7107 irix* | nonstopux*)
7108 symcode='[BCDEGRST]'
7110 osf*)
7111 symcode='[BCDEGQRST]'
7113 solaris*)
7114 symcode='[BDRT]'
7116 sco3.2v5*)
7117 symcode='[DT]'
7119 sysv4.2uw2*)
7120 symcode='[DT]'
7122 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7123 symcode='[ABDT]'
7125 sysv4)
7126 symcode='[DFNSTU]'
7128 esac
7130 # If we're using GNU nm, then use its standard symbol codes.
7131 case `$NM -V 2>&1` in
7132 *GNU* | *'with BFD'*)
7133 symcode='[ABCDGIRSTW]' ;;
7134 esac
7136 # Transform an extracted symbol line into a proper C declaration.
7137 # Some systems (esp. on ia64) link data and code symbols differently,
7138 # so use this general approach.
7139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7141 # Transform an extracted symbol line into symbol name and symbol address
7142 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7143 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'"
7145 # Handle CRLF in mingw tool chain
7146 opt_cr=
7147 case $build_os in
7148 mingw*)
7149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7151 esac
7153 # Try without a prefix underscore, then with it.
7154 for ac_symprfx in "" "_"; do
7156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7157 symxfrm="\\1 $ac_symprfx\\2 \\2"
7159 # Write the raw and C identifiers.
7160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7161 # Fake it for dumpbin and say T for any non-static function
7162 # and D for any global variable.
7163 # Also find C++ and __fastcall symbols from MSVC++,
7164 # which start with @ or ?.
7165 lt_cv_sys_global_symbol_pipe="$AWK '"\
7166 " {last_section=section; section=\$ 3};"\
7167 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7168 " \$ 0!~/External *\|/{next};"\
7169 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7170 " {if(hide[section]) next};"\
7171 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7172 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7173 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7174 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7175 " ' prfx=^$ac_symprfx"
7176 else
7177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7180 # Check to see that the pipe works correctly.
7181 pipe_works=no
7183 rm -f conftest*
7184 cat > conftest.$ac_ext <<_LT_EOF
7185 #ifdef __cplusplus
7186 extern "C" {
7187 #endif
7188 char nm_test_var;
7189 void nm_test_func(void);
7190 void nm_test_func(void){}
7191 #ifdef __cplusplus
7193 #endif
7194 int main(){nm_test_var='a';nm_test_func();return(0);}
7195 _LT_EOF
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 # Now try to grab the symbols.
7203 nlist=conftest.nm
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; } && test -s "$nlist"; then
7209 # Try sorting and uniquifying the output.
7210 if sort "$nlist" | uniq > "$nlist"T; then
7211 mv -f "$nlist"T "$nlist"
7212 else
7213 rm -f "$nlist"T
7216 # Make sure that we snagged all the symbols we need.
7217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7219 cat <<_LT_EOF > conftest.$ac_ext
7220 #ifdef __cplusplus
7221 extern "C" {
7222 #endif
7224 _LT_EOF
7225 # Now generate the symbol file.
7226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7228 cat <<_LT_EOF >> conftest.$ac_ext
7230 /* The mapping between symbol names and symbols. */
7231 const struct {
7232 const char *name;
7233 void *address;
7235 lt__PROGRAM__LTX_preloaded_symbols[] =
7237 { "@PROGRAM@", (void *) 0 },
7238 _LT_EOF
7239 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7240 cat <<\_LT_EOF >> conftest.$ac_ext
7241 {0, (void *) 0}
7244 /* This works around a problem in FreeBSD linker */
7245 #ifdef FREEBSD_WORKAROUND
7246 static const void *lt_preloaded_setup() {
7247 return lt__PROGRAM__LTX_preloaded_symbols;
7249 #endif
7251 #ifdef __cplusplus
7253 #endif
7254 _LT_EOF
7255 # Now try linking the two files.
7256 mv conftest.$ac_objext conftstm.$ac_objext
7257 lt_save_LIBS="$LIBS"
7258 lt_save_CFLAGS="$CFLAGS"
7259 LIBS="conftstm.$ac_objext"
7260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7262 (eval $ac_link) 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7266 pipe_works=yes
7268 LIBS="$lt_save_LIBS"
7269 CFLAGS="$lt_save_CFLAGS"
7270 else
7271 echo "cannot find nm_test_func in $nlist" >&5
7273 else
7274 echo "cannot find nm_test_var in $nlist" >&5
7276 else
7277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7279 else
7280 echo "$progname: failed program was:" >&5
7281 cat conftest.$ac_ext >&5
7283 rm -rf conftest* conftst*
7285 # Do not use the global_symbol_pipe unless it works.
7286 if test "$pipe_works" = yes; then
7287 break
7288 else
7289 lt_cv_sys_global_symbol_pipe=
7291 done
7295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7296 lt_cv_sys_global_symbol_to_cdecl=
7298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7300 $as_echo "failed" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7303 $as_echo "ok" >&6; }
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then :
7329 enableval=$enable_libtool_lock;
7332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7334 # Some flags need to be propagated to the compiler or linker for good
7335 # libtool support.
7336 case $host in
7337 ia64-*-hpux*)
7338 # Find out which ABI we are using.
7339 echo 'int i;' > conftest.$ac_ext
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341 (eval $ac_compile) 2>&5
7342 ac_status=$?
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; then
7345 case `/usr/bin/file conftest.$ac_objext` in
7346 *ELF-32*)
7347 HPUX_IA64_MODE="32"
7349 *ELF-64*)
7350 HPUX_IA64_MODE="64"
7352 esac
7354 rm -rf conftest*
7356 *-*-irix6*)
7357 # Find out which ABI we are using.
7358 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7360 (eval $ac_compile) 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; }; then
7364 if test "$lt_cv_prog_gnu_ld" = yes; then
7365 case `/usr/bin/file conftest.$ac_objext` in
7366 *32-bit*)
7367 LD="${LD-ld} -melf32bsmip"
7369 *N32*)
7370 LD="${LD-ld} -melf32bmipn32"
7372 *64-bit*)
7373 LD="${LD-ld} -melf64bmip"
7375 esac
7376 else
7377 case `/usr/bin/file conftest.$ac_objext` in
7378 *32-bit*)
7379 LD="${LD-ld} -32"
7381 *N32*)
7382 LD="${LD-ld} -n32"
7384 *64-bit*)
7385 LD="${LD-ld} -64"
7387 esac
7390 rm -rf conftest*
7393 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7394 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7395 # Find out which ABI we are using.
7396 echo 'int i;' > conftest.$ac_ext
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7399 ac_status=$?
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 case `/usr/bin/file conftest.o` in
7403 *32-bit*)
7404 case $host in
7405 x86_64-*kfreebsd*-gnu)
7406 LD="${LD-ld} -m elf_i386_fbsd"
7408 x86_64-*linux*)
7409 case `/usr/bin/file conftest.o` in
7410 *x86-64*)
7411 LD="${LD-ld} -m elf32_x86_64"
7414 LD="${LD-ld} -m elf_i386"
7416 esac
7418 powerpc64le-*linux*)
7419 LD="${LD-ld} -m elf32lppclinux"
7421 powerpc64-*linux*)
7422 LD="${LD-ld} -m elf32ppclinux"
7424 s390x-*linux*)
7425 LD="${LD-ld} -m elf_s390"
7427 sparc64-*linux*)
7428 LD="${LD-ld} -m elf32_sparc"
7430 esac
7432 *64-bit*)
7433 case $host in
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_x86_64_fbsd"
7437 x86_64-*linux*)
7438 LD="${LD-ld} -m elf_x86_64"
7440 powerpcle-*linux*)
7441 LD="${LD-ld} -m elf64lppc"
7443 powerpc-*linux*)
7444 LD="${LD-ld} -m elf64ppc"
7446 s390*-*linux*|s390*-*tpf*)
7447 LD="${LD-ld} -m elf64_s390"
7449 sparc*-*linux*)
7450 LD="${LD-ld} -m elf64_sparc"
7452 esac
7454 esac
7456 rm -rf conftest*
7459 *-*-sco3.2v5*)
7460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7461 SAVE_CFLAGS="$CFLAGS"
7462 CFLAGS="$CFLAGS -belf"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7464 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7465 if ${lt_cv_cc_needs_belf+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 ac_ext=c
7469 ac_cpp='$CPP $CPPFLAGS'
7470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7478 main ()
7482 return 0;
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 lt_cv_cc_needs_belf=yes
7487 else
7488 lt_cv_cc_needs_belf=no
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 ac_ext=c
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7500 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7501 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7502 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7503 CFLAGS="$SAVE_CFLAGS"
7506 sparc*-*solaris*)
7507 # Find out which ABI we are using.
7508 echo 'int i;' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 case `/usr/bin/file conftest.o` in
7515 *64-bit*)
7516 case $lt_cv_prog_gnu_ld in
7517 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7519 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7520 LD="${LD-ld} -64"
7523 esac
7525 esac
7527 rm -rf conftest*
7529 esac
7531 need_locks="$enable_libtool_lock"
7534 case $host_os in
7535 rhapsody* | darwin*)
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$DSYMUTIL"; then
7545 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7565 if test -n "$DSYMUTIL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7567 $as_echo "$DSYMUTIL" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_DSYMUTIL"; then
7576 ac_ct_DSYMUTIL=$DSYMUTIL
7577 # Extract the first word of "dsymutil", so it can be a program name with args.
7578 set dummy dsymutil; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_DSYMUTIL"; then
7585 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7598 done
7599 done
7600 IFS=$as_save_IFS
7604 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7605 if test -n "$ac_ct_DSYMUTIL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7607 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_DSYMUTIL" = x; then
7614 DSYMUTIL=":"
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 DSYMUTIL=$ac_ct_DSYMUTIL
7624 else
7625 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_NMEDIT+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 if test -n "$NMEDIT"; then
7637 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7650 done
7651 done
7652 IFS=$as_save_IFS
7656 NMEDIT=$ac_cv_prog_NMEDIT
7657 if test -n "$NMEDIT"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7659 $as_echo "$NMEDIT" >&6; }
7660 else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7667 if test -z "$ac_cv_prog_NMEDIT"; then
7668 ac_ct_NMEDIT=$NMEDIT
7669 # Extract the first word of "nmedit", so it can be a program name with args.
7670 set dummy nmedit; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$ac_ct_NMEDIT"; then
7677 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7692 IFS=$as_save_IFS
7696 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7697 if test -n "$ac_ct_NMEDIT"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7699 $as_echo "$ac_ct_NMEDIT" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7705 if test "x$ac_ct_NMEDIT" = x; then
7706 NMEDIT=":"
7707 else
7708 case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714 NMEDIT=$ac_ct_NMEDIT
7716 else
7717 NMEDIT="$ac_cv_prog_NMEDIT"
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_LIPO+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$LIPO"; then
7729 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7748 LIPO=$ac_cv_prog_LIPO
7749 if test -n "$LIPO"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7751 $as_echo "$LIPO" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 if test -z "$ac_cv_prog_LIPO"; then
7760 ac_ct_LIPO=$LIPO
7761 # Extract the first word of "lipo", so it can be a program name with args.
7762 set dummy lipo; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$ac_ct_LIPO"; then
7769 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_ac_ct_LIPO="lipo"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7789 if test -n "$ac_ct_LIPO"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7791 $as_echo "$ac_ct_LIPO" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7797 if test "x$ac_ct_LIPO" = x; then
7798 LIPO=":"
7799 else
7800 case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806 LIPO=$ac_ct_LIPO
7808 else
7809 LIPO="$ac_cv_prog_LIPO"
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}otool; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_OTOOL+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test -n "$OTOOL"; then
7821 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7840 OTOOL=$ac_cv_prog_OTOOL
7841 if test -n "$OTOOL"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7843 $as_echo "$OTOOL" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7851 if test -z "$ac_cv_prog_OTOOL"; then
7852 ac_ct_OTOOL=$OTOOL
7853 # Extract the first word of "otool", so it can be a program name with args.
7854 set dummy otool; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$ac_ct_OTOOL"; then
7861 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_OTOOL="otool"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7874 done
7875 done
7876 IFS=$as_save_IFS
7880 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7881 if test -n "$ac_ct_OTOOL"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7883 $as_echo "$ac_ct_OTOOL" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7889 if test "x$ac_ct_OTOOL" = x; then
7890 OTOOL=":"
7891 else
7892 case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898 OTOOL=$ac_ct_OTOOL
7900 else
7901 OTOOL="$ac_cv_prog_OTOOL"
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 $as_echo_n "checking for $ac_word... " >&6; }
7909 if ${ac_cv_prog_OTOOL64+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 if test -n "$OTOOL64"; then
7913 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7926 done
7927 done
7928 IFS=$as_save_IFS
7932 OTOOL64=$ac_cv_prog_OTOOL64
7933 if test -n "$OTOOL64"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7935 $as_echo "$OTOOL64" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7943 if test -z "$ac_cv_prog_OTOOL64"; then
7944 ac_ct_OTOOL64=$OTOOL64
7945 # Extract the first word of "otool64", so it can be a program name with args.
7946 set dummy otool64; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$ac_ct_OTOOL64"; then
7953 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_ac_ct_OTOOL64="otool64"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7966 done
7967 done
7968 IFS=$as_save_IFS
7972 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7973 if test -n "$ac_ct_OTOOL64"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7975 $as_echo "$ac_ct_OTOOL64" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7981 if test "x$ac_ct_OTOOL64" = x; then
7982 OTOOL64=":"
7983 else
7984 case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988 ac_tool_warned=yes ;;
7989 esac
7990 OTOOL64=$ac_ct_OTOOL64
7992 else
7993 OTOOL64="$ac_cv_prog_OTOOL64"
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8023 $as_echo_n "checking for -single_module linker flag... " >&6; }
8024 if ${lt_cv_apple_cc_single_mod+:} false; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 lt_cv_apple_cc_single_mod=no
8028 if test -z "${LT_MULTI_MODULE}"; then
8029 # By default we will add the -single_module flag. You can override
8030 # by either setting the environment variable LT_MULTI_MODULE
8031 # non-empty at configure time, or by adding -multi_module to the
8032 # link flags.
8033 rm -rf libconftest.dylib*
8034 echo "int foo(void){return 1;}" > conftest.c
8035 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8036 -dynamiclib -Wl,-single_module conftest.c" >&5
8037 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8038 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8039 _lt_result=$?
8040 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8041 lt_cv_apple_cc_single_mod=yes
8042 else
8043 cat conftest.err >&5
8045 rm -rf libconftest.dylib*
8046 rm -f conftest.*
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8050 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8052 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8053 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 lt_cv_ld_exported_symbols_list=no
8057 save_LDFLAGS=$LDFLAGS
8058 echo "_main" > conftest.sym
8059 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8064 main ()
8068 return 0;
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 lt_cv_ld_exported_symbols_list=yes
8073 else
8074 lt_cv_ld_exported_symbols_list=no
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 LDFLAGS="$save_LDFLAGS"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8082 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8084 $as_echo_n "checking for -force_load linker flag... " >&6; }
8085 if ${lt_cv_ld_force_load+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 lt_cv_ld_force_load=no
8089 cat > conftest.c << _LT_EOF
8090 int forced_loaded() { return 2;}
8091 _LT_EOF
8092 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8093 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8094 echo "$AR cru libconftest.a conftest.o" >&5
8095 $AR cru libconftest.a conftest.o 2>&5
8096 cat > conftest.c << _LT_EOF
8097 int main() { return 0;}
8098 _LT_EOF
8099 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8100 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8101 _lt_result=$?
8102 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8103 lt_cv_ld_force_load=yes
8104 else
8105 cat conftest.err >&5
8107 rm -f conftest.err libconftest.a conftest conftest.c
8108 rm -rf conftest.dSYM
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8112 $as_echo "$lt_cv_ld_force_load" >&6; }
8113 case $host_os in
8114 rhapsody* | darwin1.[012])
8115 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8116 darwin1.*)
8117 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8118 darwin*) # darwin 5.x on
8119 # if running on 10.5 or later, the deployment target defaults
8120 # to the OS version, if on x86, and 10.4, the deployment
8121 # target defaults to 10.4. Don't you love it?
8122 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8123 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8125 10.[012][,.]*)
8126 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8127 10.*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129 esac
8131 esac
8132 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8133 _lt_dar_single_mod='$single_module'
8135 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8136 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8137 else
8138 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8140 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8141 _lt_dsymutil='~$DSYMUTIL $lib || :'
8142 else
8143 _lt_dsymutil=
8146 esac
8148 for ac_header in dlfcn.h
8149 do :
8150 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8152 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DLFCN_H 1
8155 _ACEOF
8159 done
8165 # Set options
8166 enable_dlopen=yes
8171 enable_win32_dll=no
8174 # Check whether --enable-shared was given.
8175 if test "${enable_shared+set}" = set; then :
8176 enableval=$enable_shared; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_shared=yes ;;
8179 no) enable_shared=no ;;
8181 enable_shared=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_shared=yes
8189 done
8190 IFS="$lt_save_ifs"
8192 esac
8193 else
8194 enable_shared=yes
8205 # Check whether --enable-static was given.
8206 if test "${enable_static+set}" = set; then :
8207 enableval=$enable_static; p=${PACKAGE-default}
8208 case $enableval in
8209 yes) enable_static=yes ;;
8210 no) enable_static=no ;;
8212 enable_static=no
8213 # Look at the argument we got. We use all the common list separators.
8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215 for pkg in $enableval; do
8216 IFS="$lt_save_ifs"
8217 if test "X$pkg" = "X$p"; then
8218 enable_static=yes
8220 done
8221 IFS="$lt_save_ifs"
8223 esac
8224 else
8225 enable_static=yes
8237 # Check whether --with-pic was given.
8238 if test "${with_pic+set}" = set; then :
8239 withval=$with_pic; pic_mode="$withval"
8240 else
8241 pic_mode=default
8245 test -z "$pic_mode" && pic_mode=default
8253 # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255 enableval=$enable_fast_install; p=${PACKAGE-default}
8256 case $enableval in
8257 yes) enable_fast_install=yes ;;
8258 no) enable_fast_install=no ;;
8260 enable_fast_install=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 for pkg in $enableval; do
8264 IFS="$lt_save_ifs"
8265 if test "X$pkg" = "X$p"; then
8266 enable_fast_install=yes
8268 done
8269 IFS="$lt_save_ifs"
8271 esac
8272 else
8273 enable_fast_install=yes
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8317 test -z "$LN_S" && LN_S="ln -s"
8332 if test -n "${ZSH_VERSION+set}" ; then
8333 setopt NO_GLOB_SUBST
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8337 $as_echo_n "checking for objdir... " >&6; }
8338 if ${lt_cv_objdir+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 rm -f .libs 2>/dev/null
8342 mkdir .libs 2>/dev/null
8343 if test -d .libs; then
8344 lt_cv_objdir=.libs
8345 else
8346 # MS-DOS does not allow filenames that begin with a dot.
8347 lt_cv_objdir=_libs
8349 rmdir .libs 2>/dev/null
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8352 $as_echo "$lt_cv_objdir" >&6; }
8353 objdir=$lt_cv_objdir
8359 cat >>confdefs.h <<_ACEOF
8360 #define LT_OBJDIR "$lt_cv_objdir/"
8361 _ACEOF
8366 case $host_os in
8367 aix3*)
8368 # AIX sometimes has problems with the GCC collect2 program. For some
8369 # reason, if we set the COLLECT_NAMES environment variable, the problems
8370 # vanish in a puff of smoke.
8371 if test "X${COLLECT_NAMES+set}" != Xset; then
8372 COLLECT_NAMES=
8373 export COLLECT_NAMES
8376 esac
8378 # Global variables:
8379 ofile=libtool
8380 can_build_shared=yes
8382 # All known linkers require a `.a' archive for static linking (except MSVC,
8383 # which needs '.lib').
8384 libext=a
8386 with_gnu_ld="$lt_cv_prog_gnu_ld"
8388 old_CC="$CC"
8389 old_CFLAGS="$CFLAGS"
8391 # Set sane defaults for various variables
8392 test -z "$CC" && CC=cc
8393 test -z "$LTCC" && LTCC=$CC
8394 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8395 test -z "$LD" && LD=ld
8396 test -z "$ac_objext" && ac_objext=o
8398 for cc_temp in $compiler""; do
8399 case $cc_temp in
8400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8402 \-*) ;;
8403 *) break;;
8404 esac
8405 done
8406 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8409 # Only perform the check for file, if the check method requires it
8410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8411 case $deplibs_check_method in
8412 file_magic*)
8413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8415 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8416 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 case $MAGIC_CMD in
8420 [\\/*] | ?:[\\/]*)
8421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8424 lt_save_MAGIC_CMD="$MAGIC_CMD"
8425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8427 for ac_dir in $ac_dummy; do
8428 IFS="$lt_save_ifs"
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/${ac_tool_prefix}file; then
8431 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8432 if test -n "$file_magic_test_file"; then
8433 case $deplibs_check_method in
8434 "file_magic "*)
8435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8438 $EGREP "$file_magic_regex" > /dev/null; then
8440 else
8441 cat <<_LT_EOF 1>&2
8443 *** Warning: the command libtool uses to detect shared libraries,
8444 *** $file_magic_cmd, produces output that libtool cannot recognize.
8445 *** The result is that libtool may fail to recognize shared libraries
8446 *** as such. This will affect the creation of libtool libraries that
8447 *** depend on shared libraries, but programs linked with such libtool
8448 *** libraries will work regardless of this problem. Nevertheless, you
8449 *** may want to report the problem to your system manager and/or to
8450 *** bug-libtool@gnu.org
8452 _LT_EOF
8453 fi ;;
8454 esac
8456 break
8458 done
8459 IFS="$lt_save_ifs"
8460 MAGIC_CMD="$lt_save_MAGIC_CMD"
8462 esac
8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466 if test -n "$MAGIC_CMD"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8468 $as_echo "$MAGIC_CMD" >&6; }
8469 else
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8478 if test -z "$lt_cv_path_MAGIC_CMD"; then
8479 if test -n "$ac_tool_prefix"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8481 $as_echo_n "checking for file... " >&6; }
8482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 case $MAGIC_CMD in
8486 [\\/*] | ?:[\\/]*)
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8494 IFS="$lt_save_ifs"
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8500 "file_magic "*)
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8506 else
8507 cat <<_LT_EOF 1>&2
8509 *** Warning: the command libtool uses to detect shared libraries,
8510 *** $file_magic_cmd, produces output that libtool cannot recognize.
8511 *** The result is that libtool may fail to recognize shared libraries
8512 *** as such. This will affect the creation of libtool libraries that
8513 *** depend on shared libraries, but programs linked with such libtool
8514 *** libraries will work regardless of this problem. Nevertheless, you
8515 *** may want to report the problem to your system manager and/or to
8516 *** bug-libtool@gnu.org
8518 _LT_EOF
8519 fi ;;
8520 esac
8522 break
8524 done
8525 IFS="$lt_save_ifs"
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8528 esac
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if test -n "$MAGIC_CMD"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8534 $as_echo "$MAGIC_CMD" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8541 else
8542 MAGIC_CMD=:
8548 esac
8550 # Use C for the default configuration in the libtool script
8552 lt_save_CC="$CC"
8553 ac_ext=c
8554 ac_cpp='$CPP $CPPFLAGS'
8555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560 # Source file extension for C test sources.
8561 ac_ext=c
8563 # Object file extension for compiled C test sources.
8564 objext=o
8565 objext=$objext
8567 # Code to be used in simple compile tests
8568 lt_simple_compile_test_code="int some_variable = 0;"
8570 # Code to be used in simple link tests
8571 lt_simple_link_test_code='int main(){return(0);}'
8579 # If no C compiler was specified, use CC.
8580 LTCC=${LTCC-"$CC"}
8582 # If no C compiler flags were specified, use CFLAGS.
8583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8585 # Allow CC to be a program name with arguments.
8586 compiler=$CC
8588 # Save the default compiler, since it gets overwritten when the other
8589 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8590 compiler_DEFAULT=$CC
8592 # save warnings/boilerplate of simple test code
8593 ac_outfile=conftest.$ac_objext
8594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8596 _lt_compiler_boilerplate=`cat conftest.err`
8597 $RM conftest*
8599 ac_outfile=conftest.$ac_objext
8600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602 _lt_linker_boilerplate=`cat conftest.err`
8603 $RM -r conftest*
8606 ## CAVEAT EMPTOR:
8607 ## There is no encapsulation within the following macros, do not change
8608 ## the running order or otherwise move them around unless you know exactly
8609 ## what you are doing...
8610 if test -n "$compiler"; then
8612 lt_prog_compiler_no_builtin_flag=
8614 if test "$GCC" = yes; then
8615 case $cc_basename in
8616 nvcc*)
8617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620 esac
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 lt_cv_prog_compiler_rtti_exceptions=no
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630 lt_compiler_flag="-fno-rtti -fno-exceptions"
8631 # Insert the option either (1) after the last *FLAGS variable, or
8632 # (2) before a word containing "conftest.", or (3) at the end.
8633 # Note that $ac_compile itself does not contain backslashes and begins
8634 # with a dollar sign (not a hyphen), so the echo should work correctly.
8635 # The option is referenced via a variable to avoid confusing sed.
8636 lt_compile=`echo "$ac_compile" | $SED \
8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639 -e 's:$: $lt_compiler_flag:'`
8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641 (eval "$lt_compile" 2>conftest.err)
8642 ac_status=$?
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 if (exit $ac_status) && test -s "$ac_outfile"; then
8646 # The compiler can only warn and ignore the option if not recognized
8647 # So say no if there are warnings other than the usual output.
8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_rtti_exceptions=yes
8654 $RM conftest*
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8660 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8662 else
8673 lt_prog_compiler_wl=
8674 lt_prog_compiler_pic=
8675 lt_prog_compiler_static=
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8680 if test "$GCC" = yes; then
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_static='-static'
8684 case $host_os in
8685 aix*)
8686 # All AIX code is PIC.
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 now supports IA64 processor
8689 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_pic='-fPIC'
8694 amigaos*)
8695 case $host_cpu in
8696 powerpc)
8697 # see comment about AmigaOS4 .so support
8698 lt_prog_compiler_pic='-fPIC'
8700 m68k)
8701 # FIXME: we need at least 68020 code to build shared libraries, but
8702 # adding the `-m68020' flag to GCC prevents building anything better,
8703 # like `-m68040'.
8704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8706 esac
8709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8710 # PIC is the default for these OSes.
8713 mingw* | cygwin* | pw32* | os2* | cegcc*)
8714 # This hack is so that the source file can tell whether it is being
8715 # built for inclusion in a dll (and should export symbols for example).
8716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8717 # (--disable-auto-import) libraries
8718 lt_prog_compiler_pic='-DDLL_EXPORT'
8721 darwin* | rhapsody*)
8722 # PIC is the default on this platform
8723 # Common symbols not allowed in MH_DYLIB files
8724 lt_prog_compiler_pic='-fno-common'
8727 haiku*)
8728 # PIC is the default for Haiku.
8729 # The "-static" flag exists, but is broken.
8730 lt_prog_compiler_static=
8733 hpux*)
8734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8736 # sets the default TLS model and affects inlining.
8737 case $host_cpu in
8738 hppa*64*)
8739 # +Z the default
8742 lt_prog_compiler_pic='-fPIC'
8744 esac
8747 interix[3-9]*)
8748 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8749 # Instead, we relocate shared libraries at runtime.
8752 msdosdjgpp*)
8753 # Just because we use GCC doesn't mean we suddenly get shared libraries
8754 # on systems that don't support them.
8755 lt_prog_compiler_can_build_shared=no
8756 enable_shared=no
8759 *nto* | *qnx*)
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8761 # it will coredump.
8762 lt_prog_compiler_pic='-fPIC -shared'
8765 sysv4*MP*)
8766 if test -d /usr/nec; then
8767 lt_prog_compiler_pic=-Kconform_pic
8772 lt_prog_compiler_pic='-fPIC'
8774 esac
8776 case $cc_basename in
8777 nvcc*) # Cuda Compiler Driver 2.2
8778 lt_prog_compiler_wl='-Xlinker '
8779 lt_prog_compiler_pic='-Xcompiler -fPIC'
8781 esac
8782 else
8783 # PORTME Check for flag to pass linker flags through the system compiler.
8784 case $host_os in
8785 aix*)
8786 lt_prog_compiler_wl='-Wl,'
8787 if test "$host_cpu" = ia64; then
8788 # AIX 5 now supports IA64 processor
8789 lt_prog_compiler_static='-Bstatic'
8790 else
8791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 hpux9* | hpux10* | hpux11*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8804 # not for PA HP-UX.
8805 case $host_cpu in
8806 hppa*64*|ia64*)
8807 # +Z the default
8810 lt_prog_compiler_pic='+Z'
8812 esac
8813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8814 lt_prog_compiler_static='${wl}-a ${wl}archive'
8817 irix5* | irix6* | nonstopux*)
8818 lt_prog_compiler_wl='-Wl,'
8819 # PIC (with -KPIC) is the default.
8820 lt_prog_compiler_static='-non_shared'
8823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8824 case $cc_basename in
8825 # old Intel for x86_64 which still supported -KPIC.
8826 ecc*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-static'
8831 # icc used to be incompatible with GCC.
8832 # ICC 10 doesn't accept -KPIC any more.
8833 icc* | ifort*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fPIC'
8836 lt_prog_compiler_static='-static'
8838 # Lahey Fortran 8.1.
8839 lf95*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='--shared'
8842 lt_prog_compiler_static='--static'
8844 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845 # Portland Group compilers (*not* the Pentium gcc compiler,
8846 # which looks to be a dead project)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8851 ccc*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # All Alpha code is PIC.
8854 lt_prog_compiler_static='-non_shared'
8856 xl* | bgxl* | bgf* | mpixl*)
8857 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-qpic'
8860 lt_prog_compiler_static='-qstaticlink'
8863 case `$CC -V 2>&1 | sed 5q` in
8864 *Sun\ F* | *Sun*Fortran*)
8865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl=''
8870 *Sun\ C*)
8871 # Sun C 5.9
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl='-Wl,'
8876 esac
8878 esac
8881 newsos6)
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8886 *nto* | *qnx*)
8887 # QNX uses GNU C++, but need to define -shared option too, otherwise
8888 # it will coredump.
8889 lt_prog_compiler_pic='-fPIC -shared'
8892 osf3* | osf4* | osf5*)
8893 lt_prog_compiler_wl='-Wl,'
8894 # All OSF/1 code is PIC.
8895 lt_prog_compiler_static='-non_shared'
8898 rdos*)
8899 lt_prog_compiler_static='-non_shared'
8902 solaris*)
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 case $cc_basename in
8906 f77* | f90* | f95*)
8907 lt_prog_compiler_wl='-Qoption ld ';;
8909 lt_prog_compiler_wl='-Wl,';;
8910 esac
8913 sunos4*)
8914 lt_prog_compiler_wl='-Qoption ld '
8915 lt_prog_compiler_pic='-PIC'
8916 lt_prog_compiler_static='-Bstatic'
8919 sysv4 | sysv4.2uw2* | sysv4.3*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8925 sysv4*MP*)
8926 if test -d /usr/nec ;then
8927 lt_prog_compiler_pic='-Kconform_pic'
8928 lt_prog_compiler_static='-Bstatic'
8932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8938 unicos*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_can_build_shared=no
8943 uts4*)
8944 lt_prog_compiler_pic='-pic'
8945 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_can_build_shared=no
8951 esac
8954 case $host_os in
8955 # For platforms which do not support PIC, -DPIC is meaningless:
8956 *djgpp*)
8957 lt_prog_compiler_pic=
8960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962 esac
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8964 $as_echo "$lt_prog_compiler_pic" >&6; }
8972 # Check to make sure the PIC flag actually works.
8974 if test -n "$lt_prog_compiler_pic"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8976 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8977 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 lt_cv_prog_compiler_pic_works=no
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984 # Insert the option either (1) after the last *FLAGS variable, or
8985 # (2) before a word containing "conftest.", or (3) at the end.
8986 # Note that $ac_compile itself does not contain backslashes and begins
8987 # with a dollar sign (not a hyphen), so the echo should work correctly.
8988 # The option is referenced via a variable to avoid confusing sed.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>conftest.err)
8995 ac_status=$?
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 if (exit $ac_status) && test -s "$ac_outfile"; then
8999 # The compiler can only warn and ignore the option if not recognized
9000 # So say no if there are warnings other than the usual output.
9001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9004 lt_cv_prog_compiler_pic_works=yes
9007 $RM conftest*
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9013 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014 case $lt_prog_compiler_pic in
9015 "" | " "*) ;;
9016 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9017 esac
9018 else
9019 lt_prog_compiler_pic=
9020 lt_prog_compiler_can_build_shared=no
9031 # Check to make sure the static flag actually works.
9033 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9035 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9036 if ${lt_cv_prog_compiler_static_works+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_prog_compiler_static_works=no
9040 save_LDFLAGS="$LDFLAGS"
9041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9042 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9044 # The linker can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 if test -s conftest.err; then
9047 # Append any errors to the config.log.
9048 cat conftest.err 1>&5
9049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051 if diff conftest.exp conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler_static_works=yes
9054 else
9055 lt_cv_prog_compiler_static_works=yes
9058 $RM -r conftest*
9059 LDFLAGS="$save_LDFLAGS"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9063 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9065 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9067 else
9068 lt_prog_compiler_static=
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9079 if ${lt_cv_prog_compiler_c_o+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 lt_cv_prog_compiler_c_o=no
9083 $RM -r conftest 2>/dev/null
9084 mkdir conftest
9085 cd conftest
9086 mkdir out
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089 lt_compiler_flag="-o out/conftest2.$ac_objext"
9090 # Insert the option either (1) after the last *FLAGS variable, or
9091 # (2) before a word containing "conftest.", or (3) at the end.
9092 # Note that $ac_compile itself does not contain backslashes and begins
9093 # with a dollar sign (not a hyphen), so the echo should work correctly.
9094 lt_compile=`echo "$ac_compile" | $SED \
9095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097 -e 's:$: $lt_compiler_flag:'`
9098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099 (eval "$lt_compile" 2>out/conftest.err)
9100 ac_status=$?
9101 cat out/conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104 then
9105 # The compiler can only warn and ignore the option if not recognized
9106 # So say no if there are warnings
9107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110 lt_cv_prog_compiler_c_o=yes
9113 chmod u+w . 2>&5
9114 $RM conftest*
9115 # SGI C++ compiler will create directory out/ii_files/ for
9116 # template instantiation
9117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118 $RM out/* && rmdir out
9119 cd ..
9120 $RM -r conftest
9121 $RM conftest*
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9134 if ${lt_cv_prog_compiler_c_o+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 lt_cv_prog_compiler_c_o=no
9138 $RM -r conftest 2>/dev/null
9139 mkdir conftest
9140 cd conftest
9141 mkdir out
9142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="-o out/conftest2.$ac_objext"
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 lt_compile=`echo "$ac_compile" | $SED \
9150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152 -e 's:$: $lt_compiler_flag:'`
9153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154 (eval "$lt_compile" 2>out/conftest.err)
9155 ac_status=$?
9156 cat out/conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9159 then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_c_o=yes
9168 chmod u+w . 2>&5
9169 $RM conftest*
9170 # SGI C++ compiler will create directory out/ii_files/ for
9171 # template instantiation
9172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9173 $RM out/* && rmdir out
9174 cd ..
9175 $RM -r conftest
9176 $RM conftest*
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9185 hard_links="nottested"
9186 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9187 # do not overwrite the value of need_locks provided by the user
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9189 $as_echo_n "checking if we can lock with hard links... " >&6; }
9190 hard_links=yes
9191 $RM conftest*
9192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9193 touch conftest.a
9194 ln conftest.a conftest.b 2>&5 || hard_links=no
9195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9197 $as_echo "$hard_links" >&6; }
9198 if test "$hard_links" = no; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9200 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9201 need_locks=warn
9203 else
9204 need_locks=no
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9213 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9215 runpath_var=
9216 allow_undefined_flag=
9217 always_export_symbols=no
9218 archive_cmds=
9219 archive_expsym_cmds=
9220 compiler_needs_object=no
9221 enable_shared_with_static_runtimes=no
9222 export_dynamic_flag_spec=
9223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9224 hardcode_automatic=no
9225 hardcode_direct=no
9226 hardcode_direct_absolute=no
9227 hardcode_libdir_flag_spec=
9228 hardcode_libdir_flag_spec_ld=
9229 hardcode_libdir_separator=
9230 hardcode_minus_L=no
9231 hardcode_shlibpath_var=unsupported
9232 inherit_rpath=no
9233 link_all_deplibs=unknown
9234 module_cmds=
9235 module_expsym_cmds=
9236 old_archive_from_new_cmds=
9237 old_archive_from_expsyms_cmds=
9238 thread_safe_flag_spec=
9239 whole_archive_flag_spec=
9240 # include_expsyms should be a list of space-separated symbols to be *always*
9241 # included in the symbol list
9242 include_expsyms=
9243 # exclude_expsyms can be an extended regexp of symbols to exclude
9244 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9245 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9246 # as well as any symbol that contains `d'.
9247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9249 # platforms (ab)use it in PIC code, but their linkers get confused if
9250 # the symbol is explicitly referenced. Since portable code cannot
9251 # rely on this symbol name, it's probably fine to never include it in
9252 # preloaded symbol tables.
9253 # Exclude shared library initialization/finalization symbols.
9254 extract_expsyms_cmds=
9256 case $host_os in
9257 cygwin* | mingw* | pw32* | cegcc*)
9258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9259 # When not using gcc, we currently assume that we are using
9260 # Microsoft Visual C++.
9261 if test "$GCC" != yes; then
9262 with_gnu_ld=no
9265 interix*)
9266 # we just hope/assume this is gcc and not c89 (= MSVC++)
9267 with_gnu_ld=yes
9269 openbsd*)
9270 with_gnu_ld=no
9272 esac
9274 ld_shlibs=yes
9276 # On some targets, GNU ld is compatible enough with the native linker
9277 # that we're better off using the native interface for both.
9278 lt_use_gnu_ld_interface=no
9279 if test "$with_gnu_ld" = yes; then
9280 case $host_os in
9281 aix*)
9282 # The AIX port of GNU ld has always aspired to compatibility
9283 # with the native linker. However, as the warning in the GNU ld
9284 # block says, versions before 2.19.5* couldn't really create working
9285 # shared libraries, regardless of the interface used.
9286 case `$LD -v 2>&1` in
9287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9289 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9291 lt_use_gnu_ld_interface=yes
9293 esac
9296 lt_use_gnu_ld_interface=yes
9298 esac
9301 if test "$lt_use_gnu_ld_interface" = yes; then
9302 # If archive_cmds runs LD, not CC, wlarc should be empty
9303 wlarc='${wl}'
9305 # Set some defaults for GNU ld with shared library support. These
9306 # are reset later if shared libraries are not supported. Putting them
9307 # here allows them to be overridden if necessary.
9308 runpath_var=LD_RUN_PATH
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 export_dynamic_flag_spec='${wl}--export-dynamic'
9311 # ancient GNU ld didn't support --whole-archive et. al.
9312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9313 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9314 else
9315 whole_archive_flag_spec=
9317 supports_anon_versioning=no
9318 case `$LD -v 2>&1` in
9319 *GNU\ gold*) supports_anon_versioning=yes ;;
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9323 *\ 2.11.*) ;; # other 2.11 versions
9324 *) supports_anon_versioning=yes ;;
9325 esac
9327 # See if GNU ld supports shared libraries.
9328 case $host_os in
9329 aix[3-9]*)
9330 # On AIX/PPC, the GNU linker is very broken
9331 if test "$host_cpu" != ia64; then
9332 ld_shlibs=no
9333 cat <<_LT_EOF 1>&2
9335 *** Warning: the GNU linker, at least up to release 2.19, is reported
9336 *** to be unable to reliably create shared libraries on AIX.
9337 *** Therefore, libtool is disabling shared libraries support. If you
9338 *** really care for shared libraries, you may want to install binutils
9339 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9340 *** You will then need to restart the configuration process.
9342 _LT_EOF
9346 amigaos*)
9347 case $host_cpu in
9348 powerpc)
9349 # see comment about AmigaOS4 .so support
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 archive_expsym_cmds=''
9353 m68k)
9354 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)'
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9358 esac
9361 beos*)
9362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363 allow_undefined_flag=unsupported
9364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9365 # support --undefined. This deserves some investigation. FIXME
9366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367 else
9368 ld_shlibs=no
9372 cygwin* | mingw* | pw32* | cegcc*)
9373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9374 # as there is no search path for DLLs.
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 export_dynamic_flag_spec='${wl}--export-all-symbols'
9377 allow_undefined_flag=unsupported
9378 always_export_symbols=no
9379 enable_shared_with_static_runtimes=yes
9380 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384 # If the export-symbols file already is a .def file (1st line
9385 # is EXPORTS), use it as is; otherwise, prepend...
9386 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9387 cp $export_symbols $output_objdir/$soname.def;
9388 else
9389 echo EXPORTS > $output_objdir/$soname.def;
9390 cat $export_symbols >> $output_objdir/$soname.def;
9392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393 else
9394 ld_shlibs=no
9398 haiku*)
9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 link_all_deplibs=yes
9403 interix[3-9]*)
9404 hardcode_direct=no
9405 hardcode_shlibpath_var=no
9406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9407 export_dynamic_flag_spec='${wl}-E'
9408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9409 # Instead, shared libraries are loaded at an image base (0x10000000 by
9410 # default) and relocated if they conflict, which is a slow very memory
9411 # consuming and fragmenting process. To avoid this, we pick a random,
9412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9415 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'
9418 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9419 tmp_diet=no
9420 if test "$host_os" = linux-dietlibc; then
9421 case $cc_basename in
9422 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9423 esac
9425 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9426 && test "$tmp_diet" = no
9427 then
9428 tmp_addflag=' $pic_flag'
9429 tmp_sharedflag='-shared'
9430 case $cc_basename,$host_cpu in
9431 pgcc*) # Portland Group C compiler
9432 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'
9433 tmp_addflag=' $pic_flag'
9435 pgf77* | pgf90* | pgf95* | pgfortran*)
9436 # Portland Group f77 and f90 compilers
9437 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'
9438 tmp_addflag=' $pic_flag -Mnomain' ;;
9439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9440 tmp_addflag=' -i_dynamic' ;;
9441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9442 tmp_addflag=' -i_dynamic -nofor_main' ;;
9443 ifc* | ifort*) # Intel Fortran compiler
9444 tmp_addflag=' -nofor_main' ;;
9445 lf95*) # Lahey Fortran 8.1
9446 whole_archive_flag_spec=
9447 tmp_sharedflag='--shared' ;;
9448 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9449 tmp_sharedflag='-qmkshrobj'
9450 tmp_addflag= ;;
9451 nvcc*) # Cuda Compiler Driver 2.2
9452 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'
9453 compiler_needs_object=yes
9455 esac
9456 case `$CC -V 2>&1 | sed 5q` in
9457 *Sun\ C*) # Sun C 5.9
9458 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'
9459 compiler_needs_object=yes
9460 tmp_sharedflag='-G' ;;
9461 *Sun\ F*) # Sun Fortran 8.3
9462 tmp_sharedflag='-G' ;;
9463 esac
9464 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 if test "x$supports_anon_versioning" = xyes; then
9467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9469 echo "local: *; };" >> $output_objdir/$libname.ver~
9470 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9473 case $cc_basename in
9474 xlf* | bgf* | bgxlf* | mpixlf*)
9475 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9476 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9477 hardcode_libdir_flag_spec=
9478 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9479 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9480 if test "x$supports_anon_versioning" = xyes; then
9481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9483 echo "local: *; };" >> $output_objdir/$libname.ver~
9484 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9487 esac
9488 else
9489 ld_shlibs=no
9493 netbsd*)
9494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9496 wlarc=
9497 else
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 solaris*)
9504 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9505 ld_shlibs=no
9506 cat <<_LT_EOF 1>&2
9508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9509 *** create shared libraries on Solaris systems. Therefore, libtool
9510 *** is disabling shared libraries support. We urge you to upgrade GNU
9511 *** binutils to release 2.9.1 or newer. Another option is to modify
9512 *** your PATH or compiler configuration so that the native linker is
9513 *** used, and then restart.
9515 _LT_EOF
9516 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519 else
9520 ld_shlibs=no
9524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9525 case `$LD -v 2>&1` in
9526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9527 ld_shlibs=no
9528 cat <<_LT_EOF 1>&2
9530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9531 *** reliably create shared libraries on SCO systems. Therefore, libtool
9532 *** is disabling shared libraries support. We urge you to upgrade GNU
9533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9534 *** your PATH or compiler configuration so that the native linker is
9535 *** used, and then restart.
9537 _LT_EOF
9540 # For security reasons, it is highly recommended that you always
9541 # use absolute paths for naming shared libraries, and exclude the
9542 # DT_RUNPATH tag from executables and libraries. But doing so
9543 # requires that you compile everything twice, which is a pain.
9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9552 esac
9555 sunos4*)
9556 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9557 wlarc=
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566 else
9567 ld_shlibs=no
9570 esac
9572 if test "$ld_shlibs" = no; then
9573 runpath_var=
9574 hardcode_libdir_flag_spec=
9575 export_dynamic_flag_spec=
9576 whole_archive_flag_spec=
9578 else
9579 # PORTME fill in a description of your system's linker (not GNU ld)
9580 case $host_os in
9581 aix3*)
9582 allow_undefined_flag=unsupported
9583 always_export_symbols=yes
9584 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'
9585 # Note: this linker hardcodes the directories in LIBPATH if there
9586 # are no directories specified by -L.
9587 hardcode_minus_L=yes
9588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9589 # Neither direct hardcoding nor static linking is supported with a
9590 # broken collect2.
9591 hardcode_direct=unsupported
9595 aix[4-9]*)
9596 if test "$host_cpu" = ia64; then
9597 # On IA64, the linker does run time linking by default, so we don't
9598 # have to do anything special.
9599 aix_use_runtimelinking=no
9600 exp_sym_flag='-Bexport'
9601 no_entry_flag=""
9602 else
9603 # If we're using GNU nm, then we don't want the "-C" option.
9604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9605 # Also, AIX nm treats weak defined symbols like other global
9606 # defined symbols, whereas GNU nm marks them as "W".
9607 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9608 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'
9609 else
9610 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'
9612 aix_use_runtimelinking=no
9614 # Test if we are trying to use run time linking or normal
9615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616 # need to do runtime linking.
9617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9618 for ld_flag in $LDFLAGS; do
9619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9620 aix_use_runtimelinking=yes
9621 break
9623 done
9625 esac
9627 exp_sym_flag='-bexport'
9628 no_entry_flag='-bnoentry'
9631 # When large executables or shared objects are built, AIX ld can
9632 # have problems creating the table of contents. If linking a library
9633 # or program results in "error TOC overflow" add -mminimal-toc to
9634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9637 archive_cmds=''
9638 hardcode_direct=yes
9639 hardcode_direct_absolute=yes
9640 hardcode_libdir_separator=':'
9641 link_all_deplibs=yes
9642 file_list_spec='${wl}-f,'
9644 if test "$GCC" = yes; then
9645 case $host_os in aix4.[012]|aix4.[012].*)
9646 # We only want to do this on AIX 4.2 and lower, the check
9647 # below for broken collect2 doesn't work under 4.3+
9648 collect2name=`${CC} -print-prog-name=collect2`
9649 if test -f "$collect2name" &&
9650 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9651 then
9652 # We have reworked collect2
9654 else
9655 # We have old collect2
9656 hardcode_direct=unsupported
9657 # It fails to find uninstalled libraries when the uninstalled
9658 # path is not listed in the libpath. Setting hardcode_minus_L
9659 # to unsupported forces relinking
9660 hardcode_minus_L=yes
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_libdir_separator=
9665 esac
9666 shared_flag='-shared'
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag="$shared_flag "'${wl}-G'
9670 else
9671 # not using gcc
9672 if test "$host_cpu" = ia64; then
9673 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9674 # chokes on -Wl,-G. The following line is correct:
9675 shared_flag='-G'
9676 else
9677 if test "$aix_use_runtimelinking" = yes; then
9678 shared_flag='${wl}-G'
9679 else
9680 shared_flag='${wl}-bM:SRE'
9685 export_dynamic_flag_spec='${wl}-bexpall'
9686 # It seems that -bexpall does not export symbols beginning with
9687 # underscore (_), so it is better to generate a list of symbols to export.
9688 always_export_symbols=yes
9689 if test "$aix_use_runtimelinking" = yes; then
9690 # Warning - without using the other runtime loading flags (-brtl),
9691 # -berok will link without error, but may produce a broken library.
9692 allow_undefined_flag='-berok'
9693 # Determine the default libpath from the value encoded in an
9694 # empty executable.
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9699 main ()
9703 return 0;
9705 _ACEOF
9706 if ac_fn_c_try_link "$LINENO"; then :
9708 lt_aix_libpath_sed='
9709 /Import File Strings/,/^$/ {
9710 /^0/ {
9711 s/^0 *\(.*\)$/\1/
9715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 # Check for a 64-bit object if we didn't find anything.
9717 if test -z "$aix_libpath"; then
9718 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 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"
9727 else
9728 if test "$host_cpu" = ia64; then
9729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9730 allow_undefined_flag="-z nodefs"
9731 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"
9732 else
9733 # Determine the default libpath from the value encoded in an
9734 # empty executable.
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9739 main ()
9743 return 0;
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9748 lt_aix_libpath_sed='
9749 /Import File Strings/,/^$/ {
9750 /^0/ {
9751 s/^0 *\(.*\)$/\1/
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 # Warning - without using the other run time loading flags,
9767 # -berok will link without error, but may produce a broken library.
9768 no_undefined_flag=' ${wl}-bernotok'
9769 allow_undefined_flag=' ${wl}-berok'
9770 if test "$with_gnu_ld" = yes; then
9771 # We only use this code for GNU lds that support --whole-archive.
9772 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9773 else
9774 # Exported symbols can be pulled into shared objects from archives
9775 whole_archive_flag_spec='$convenience'
9777 archive_cmds_need_lc=yes
9778 # This is similar to how AIX traditionally builds its shared libraries.
9779 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'
9784 amigaos*)
9785 case $host_cpu in
9786 powerpc)
9787 # see comment about AmigaOS4 .so support
9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds=''
9791 m68k)
9792 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)'
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_minus_L=yes
9796 esac
9799 bsdi[45]*)
9800 export_dynamic_flag_spec=-rdynamic
9803 cygwin* | mingw* | pw32* | cegcc*)
9804 # When not using gcc, we currently assume that we are using
9805 # Microsoft Visual C++.
9806 # hardcode_libdir_flag_spec is actually meaningless, as there is
9807 # no search path for DLLs.
9808 hardcode_libdir_flag_spec=' '
9809 allow_undefined_flag=unsupported
9810 # Tell ltmain to make .lib files, not .a files.
9811 libext=lib
9812 # Tell ltmain to make .dll files, not .so files.
9813 shrext_cmds=".dll"
9814 # FIXME: Setting linknames here is a bad hack.
9815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816 # The linker will automatically build a .lib file if we build a DLL.
9817 old_archive_from_new_cmds='true'
9818 # FIXME: Should let the user specify the lib program.
9819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820 fix_srcfile_path='`cygpath -w "$srcfile"`'
9821 enable_shared_with_static_runtimes=yes
9824 darwin* | rhapsody*)
9827 archive_cmds_need_lc=no
9828 hardcode_direct=no
9829 hardcode_automatic=yes
9830 hardcode_shlibpath_var=unsupported
9831 if test "$lt_cv_ld_force_load" = "yes"; then
9832 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\"`'
9833 else
9834 whole_archive_flag_spec=''
9836 link_all_deplibs=yes
9837 allow_undefined_flag="$_lt_dar_allow_undefined"
9838 case $cc_basename in
9839 ifort*) _lt_dar_can_shared=yes ;;
9840 *) _lt_dar_can_shared=$GCC ;;
9841 esac
9842 if test "$_lt_dar_can_shared" = "yes"; then
9843 output_verbose_link_cmd=func_echo_all
9844 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9845 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9846 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}"
9847 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}"
9849 else
9850 ld_shlibs=no
9855 dgux*)
9856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_libdir_flag_spec='-L$libdir'
9858 hardcode_shlibpath_var=no
9861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9862 # support. Future versions do this automatically, but an explicit c++rt0.o
9863 # does not break anything, and helps significantly (at the cost of a little
9864 # extra space).
9865 freebsd2.2*)
9866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9867 hardcode_libdir_flag_spec='-R$libdir'
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9872 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9873 freebsd2.*)
9874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_direct=yes
9876 hardcode_minus_L=yes
9877 hardcode_shlibpath_var=no
9880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9881 freebsd* | dragonfly*)
9882 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9883 hardcode_libdir_flag_spec='-R$libdir'
9884 hardcode_direct=yes
9885 hardcode_shlibpath_var=no
9888 hpux9*)
9889 if test "$GCC" = yes; then
9890 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'
9891 else
9892 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'
9894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9895 hardcode_libdir_separator=:
9896 hardcode_direct=yes
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L=yes
9901 export_dynamic_flag_spec='${wl}-E'
9904 hpux10*)
9905 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907 else
9908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910 if test "$with_gnu_ld" = no; then
9911 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9912 hardcode_libdir_flag_spec_ld='+b $libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_direct=yes
9915 hardcode_direct_absolute=yes
9916 export_dynamic_flag_spec='${wl}-E'
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9923 hpux11*)
9924 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925 case $host_cpu in
9926 hppa*64*)
9927 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929 ia64*)
9930 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935 esac
9936 else
9937 case $host_cpu in
9938 hppa*64*)
9939 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 ia64*)
9942 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9946 # Older versions of the 11.00 compiler do not understand -b yet
9947 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9949 $as_echo_n "checking if $CC understands -b... " >&6; }
9950 if ${lt_cv_prog_compiler__b+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 lt_cv_prog_compiler__b=no
9954 save_LDFLAGS="$LDFLAGS"
9955 LDFLAGS="$LDFLAGS -b"
9956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9958 # The linker can only warn and ignore the option if not recognized
9959 # So say no if there are warnings
9960 if test -s conftest.err; then
9961 # Append any errors to the config.log.
9962 cat conftest.err 1>&5
9963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965 if diff conftest.exp conftest.er2 >/dev/null; then
9966 lt_cv_prog_compiler__b=yes
9968 else
9969 lt_cv_prog_compiler__b=yes
9972 $RM -r conftest*
9973 LDFLAGS="$save_LDFLAGS"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9977 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9979 if test x"$lt_cv_prog_compiler__b" = xyes; then
9980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981 else
9982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9986 esac
9988 if test "$with_gnu_ld" = no; then
9989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990 hardcode_libdir_separator=:
9992 case $host_cpu in
9993 hppa*64*|ia64*)
9994 hardcode_direct=no
9995 hardcode_shlibpath_var=no
9998 hardcode_direct=yes
9999 hardcode_direct_absolute=yes
10000 export_dynamic_flag_spec='${wl}-E'
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10006 esac
10010 irix5* | irix6* | nonstopux*)
10011 if test "$GCC" = yes; then
10012 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'
10013 # Try to use the -exported_symbol ld option, if it does not
10014 # work, assume that -exports_file does not work either and
10015 # implicitly export all symbols.
10016 save_LDFLAGS="$LDFLAGS"
10017 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int foo(void) {}
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 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'
10026 rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LDFLAGS="$save_LDFLAGS"
10029 else
10030 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'
10031 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'
10033 archive_cmds_need_lc='no'
10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036 inherit_rpath=yes
10037 link_all_deplibs=yes
10040 netbsd*)
10041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10043 else
10044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10046 hardcode_libdir_flag_spec='-R$libdir'
10047 hardcode_direct=yes
10048 hardcode_shlibpath_var=no
10051 newsos6)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_direct=yes
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator=:
10056 hardcode_shlibpath_var=no
10059 *nto* | *qnx*)
10062 openbsd*)
10063 if test -f /usr/libexec/ld.so; then
10064 hardcode_direct=yes
10065 hardcode_shlibpath_var=no
10066 hardcode_direct_absolute=yes
10067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10071 export_dynamic_flag_spec='${wl}-E'
10072 else
10073 case $host_os in
10074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_libdir_flag_spec='-R$libdir'
10079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10082 esac
10084 else
10085 ld_shlibs=no
10089 os2*)
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_minus_L=yes
10092 allow_undefined_flag=unsupported
10093 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'
10094 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10097 osf3*)
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10101 else
10102 allow_undefined_flag=' -expect_unresolved \*'
10103 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'
10105 archive_cmds_need_lc='no'
10106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10107 hardcode_libdir_separator=:
10110 osf4* | osf5*) # as osf3* with the addition of -msym flag
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 else
10116 allow_undefined_flag=' -expect_unresolved \*'
10117 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'
10118 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~
10119 $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'
10121 # Both c and cxx compiler support -rpath directly
10122 hardcode_libdir_flag_spec='-rpath $libdir'
10124 archive_cmds_need_lc='no'
10125 hardcode_libdir_separator=:
10128 solaris*)
10129 no_undefined_flag=' -z defs'
10130 if test "$GCC" = yes; then
10131 wlarc='${wl}'
10132 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135 else
10136 case `$CC -V 2>&1` in
10137 *"Compilers 5.0"*)
10138 wlarc=''
10139 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10144 wlarc='${wl}'
10145 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10149 esac
10151 hardcode_libdir_flag_spec='-R$libdir'
10152 hardcode_shlibpath_var=no
10153 case $host_os in
10154 solaris2.[0-5] | solaris2.[0-5].*) ;;
10156 # The compiler driver will combine and reorder linker options,
10157 # but understands `-z linker_flag'. GCC discards it without `$wl',
10158 # but is careful enough not to reorder.
10159 # Supported since Solaris 2.6 (maybe 2.5.1?)
10160 if test "$GCC" = yes; then
10161 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10162 else
10163 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10166 esac
10167 link_all_deplibs=yes
10170 sunos4*)
10171 if test "x$host_vendor" = xsequent; then
10172 # Use $CC to link under sequent, because it throws in some extra .o
10173 # files that make .init and .fini sections work.
10174 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10175 else
10176 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_direct=yes
10180 hardcode_minus_L=yes
10181 hardcode_shlibpath_var=no
10184 sysv4)
10185 case $host_vendor in
10186 sni)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_direct=yes # is this really true???
10190 siemens)
10191 ## LD is ld it makes a PLAMLIB
10192 ## CC just makes a GrossModule.
10193 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10194 reload_cmds='$CC -r -o $output$reload_objs'
10195 hardcode_direct=no
10197 motorola)
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10201 esac
10202 runpath_var='LD_RUN_PATH'
10203 hardcode_shlibpath_var=no
10206 sysv4.3*)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_shlibpath_var=no
10209 export_dynamic_flag_spec='-Bexport'
10212 sysv4*MP*)
10213 if test -d /usr/nec; then
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var=no
10216 runpath_var=LD_RUN_PATH
10217 hardcode_runpath_var=yes
10218 ld_shlibs=yes
10222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10223 no_undefined_flag='${wl}-z,text'
10224 archive_cmds_need_lc=no
10225 hardcode_shlibpath_var=no
10226 runpath_var='LD_RUN_PATH'
10228 if test "$GCC" = yes; then
10229 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 else
10232 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 sysv5* | sco3.2v5* | sco5v6*)
10238 # Note: We can NOT use -z defs as we might desire, because we do not
10239 # link with -lc, and that would cause any symbols used from libc to
10240 # always be unresolved, which means just about no library would
10241 # ever link correctly. If we're not using GNU ld we use -z text
10242 # though, which does catch some bad symbols but isn't as heavy-handed
10243 # as -z defs.
10244 no_undefined_flag='${wl}-z,text'
10245 allow_undefined_flag='${wl}-z,nodefs'
10246 archive_cmds_need_lc=no
10247 hardcode_shlibpath_var=no
10248 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10249 hardcode_libdir_separator=':'
10250 link_all_deplibs=yes
10251 export_dynamic_flag_spec='${wl}-Bexport'
10252 runpath_var='LD_RUN_PATH'
10254 if test "$GCC" = yes; then
10255 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 else
10258 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 uts4*)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_libdir_flag_spec='-L$libdir'
10266 hardcode_shlibpath_var=no
10270 ld_shlibs=no
10272 esac
10274 if test x$host_vendor = xsni; then
10275 case $host in
10276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10277 export_dynamic_flag_spec='${wl}-Blargedynsym'
10279 esac
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10284 $as_echo "$ld_shlibs" >&6; }
10285 test "$ld_shlibs" = no && can_build_shared=no
10287 with_gnu_ld=$with_gnu_ld
10304 # Do we need to explicitly link libc?
10306 case "x$archive_cmds_need_lc" in
10307 x|xyes)
10308 # Assume -lc should be added
10309 archive_cmds_need_lc=yes
10311 if test "$enable_shared" = yes && test "$GCC" = yes; then
10312 case $archive_cmds in
10313 *'~'*)
10314 # FIXME: we may have to deal with multi-command sequences.
10316 '$CC '*)
10317 # Test whether the compiler implicitly links with -lc since on some
10318 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10319 # to ld, don't add -lc before -lgcc.
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10321 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10322 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 $RM conftest*
10326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } 2>conftest.err; then
10333 soname=conftest
10334 lib=conftest
10335 libobjs=conftest.$ac_objext
10336 deplibs=
10337 wl=$lt_prog_compiler_wl
10338 pic_flag=$lt_prog_compiler_pic
10339 compiler_flags=-v
10340 linker_flags=-v
10341 verstring=
10342 output_objdir=.
10343 libname=conftest
10344 lt_save_allow_undefined_flag=$allow_undefined_flag
10345 allow_undefined_flag=
10346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10347 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10348 ac_status=$?
10349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350 test $ac_status = 0; }
10351 then
10352 lt_cv_archive_cmds_need_lc=no
10353 else
10354 lt_cv_archive_cmds_need_lc=yes
10356 allow_undefined_flag=$lt_save_allow_undefined_flag
10357 else
10358 cat conftest.err 1>&5
10360 $RM conftest*
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10364 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10365 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10367 esac
10370 esac
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10531 if test "$GCC" = yes; then
10532 case $host_os in
10533 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10534 *) lt_awk_arg="/^libraries:/" ;;
10535 esac
10536 case $host_os in
10537 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10538 *) lt_sed_strip_eq="s,=/,/,g" ;;
10539 esac
10540 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10541 case $lt_search_path_spec in
10542 *\;*)
10543 # if the path contains ";" then we assume it to be the separator
10544 # otherwise default to the standard path separator (i.e. ":") - it is
10545 # assumed that no part of a normal pathname contains ";" but that should
10546 # okay in the real world where ";" in dirpaths is itself problematic.
10547 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10550 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10552 esac
10553 # Ok, now we have the path, separated by spaces, we can step through it
10554 # and add multilib dir if necessary.
10555 lt_tmp_lt_search_path_spec=
10556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557 for lt_sys_path in $lt_search_path_spec; do
10558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10560 else
10561 test -d "$lt_sys_path" && \
10562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10564 done
10565 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10566 BEGIN {RS=" "; FS="/|\n";} {
10567 lt_foo="";
10568 lt_count=0;
10569 for (lt_i = NF; lt_i > 0; lt_i--) {
10570 if ($lt_i != "" && $lt_i != ".") {
10571 if ($lt_i == "..") {
10572 lt_count++;
10573 } else {
10574 if (lt_count == 0) {
10575 lt_foo="/" $lt_i lt_foo;
10576 } else {
10577 lt_count--;
10582 if (lt_foo != "") { lt_freq[lt_foo]++; }
10583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10585 # AWK program above erroneously prepends '/' to C:/dos/paths
10586 # for these hosts.
10587 case $host_os in
10588 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10589 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10590 esac
10591 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10592 else
10593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10595 library_names_spec=
10596 libname_spec='lib$name'
10597 soname_spec=
10598 shrext_cmds=".so"
10599 postinstall_cmds=
10600 postuninstall_cmds=
10601 finish_cmds=
10602 finish_eval=
10603 shlibpath_var=
10604 shlibpath_overrides_runpath=unknown
10605 version_type=none
10606 dynamic_linker="$host_os ld.so"
10607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10608 need_lib_prefix=unknown
10609 hardcode_into_libs=no
10611 # when you set need_version to no, make sure it does not cause -set_version
10612 # flags to be left without arguments
10613 need_version=unknown
10615 case $host_os in
10616 aix3*)
10617 version_type=linux
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10619 shlibpath_var=LIBPATH
10621 # AIX 3 has no versioning support, so we append a major version to the name.
10622 soname_spec='${libname}${release}${shared_ext}$major'
10625 aix[4-9]*)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 hardcode_into_libs=yes
10630 if test "$host_cpu" = ia64; then
10631 # AIX 5 supports IA64
10632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 else
10635 # With GCC up to 2.95.x, collect2 would create an import file
10636 # for dependence libraries. The import file would start with
10637 # the line `#! .'. This would cause the generated library to
10638 # depend on `.', always an invalid library. This was fixed in
10639 # development snapshots of GCC prior to 3.0.
10640 case $host_os in
10641 aix4 | aix4.[01] | aix4.[01].*)
10642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10643 echo ' yes '
10644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10646 else
10647 can_build_shared=no
10650 esac
10651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10652 # soname into executable. Probably we can add versioning support to
10653 # collect2, so additional links can be useful in future.
10654 if test "$aix_use_runtimelinking" = yes; then
10655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10656 # instead of lib<name>.a to let people know that these are not
10657 # typical AIX shared libraries.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 else
10660 # We preserve .a as extension for shared libraries through AIX4.2
10661 # and later when we are not doing run time linking.
10662 library_names_spec='${libname}${release}.a $libname.a'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LIBPATH
10669 amigaos*)
10670 case $host_cpu in
10671 powerpc)
10672 # Since July 2007 AmigaOS4 officially supports .so libraries.
10673 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 m68k)
10677 library_names_spec='$libname.ixlibrary $libname.a'
10678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679 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'
10681 esac
10684 beos*)
10685 library_names_spec='${libname}${shared_ext}'
10686 dynamic_linker="$host_os ld.so"
10687 shlibpath_var=LIBRARY_PATH
10690 bsdi[45]*)
10691 version_type=linux
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10699 # the default ld.so.conf also contains /usr/contrib/lib and
10700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701 # libtool to hard-code these into programs
10704 cygwin* | mingw* | pw32* | cegcc*)
10705 version_type=windows
10706 shrext_cmds=".dll"
10707 need_version=no
10708 need_lib_prefix=no
10710 case $GCC,$host_os in
10711 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10712 library_names_spec='$libname.dll.a'
10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714 postinstall_cmds='base_file=`basename \${file}`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716 dldir=$destdir/`dirname \$dlpath`~
10717 test -d \$dldir || mkdir -p \$dldir~
10718 $install_prog $dir/$dlname \$dldir/$dlname~
10719 chmod a+x \$dldir/$dlname~
10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724 dlpath=$dir/\$dldll~
10725 $RM \$dlpath'
10726 shlibpath_overrides_runpath=yes
10728 case $host_os in
10729 cygwin*)
10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10735 mingw* | cegcc*)
10736 # MinGW DLLs use traditional 'lib' prefix
10737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739 pw32*)
10740 # pw32 DLLs use 'pw' prefix rather than 'lib'
10741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743 esac
10747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10749 esac
10750 dynamic_linker='Win32 ld.exe'
10751 # FIXME: first we should search . and the directory the executable is in
10752 shlibpath_var=PATH
10755 darwin* | rhapsody*)
10756 dynamic_linker="$host_os dyld"
10757 version_type=darwin
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10761 soname_spec='${libname}${release}${major}$shared_ext'
10762 shlibpath_overrides_runpath=yes
10763 shlibpath_var=DYLD_LIBRARY_PATH
10764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10770 dgux*)
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10779 freebsd* | dragonfly*)
10780 # DragonFly does not have aout. When/if they implement a new
10781 # versioning mechanism, adjust this.
10782 if test -x /usr/bin/objformat; then
10783 objformat=`/usr/bin/objformat`
10784 else
10785 case $host_os in
10786 freebsd[23].*) objformat=aout ;;
10787 *) objformat=elf ;;
10788 esac
10790 version_type=freebsd-$objformat
10791 case $version_type in
10792 freebsd-elf*)
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10794 need_version=no
10795 need_lib_prefix=no
10797 freebsd-*)
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10799 need_version=yes
10801 esac
10802 shlibpath_var=LD_LIBRARY_PATH
10803 case $host_os in
10804 freebsd2.*)
10805 shlibpath_overrides_runpath=yes
10807 freebsd3.[01]* | freebsdelf3.[01]*)
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10816 *) # from 4.6 on, and DragonFly
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10820 esac
10823 gnu*)
10824 version_type=linux
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 hardcode_into_libs=yes
10833 haiku*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 dynamic_linker="$host_os runtime_loader"
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10843 hardcode_into_libs=yes
10846 hpux9* | hpux10* | hpux11*)
10847 # Give a soname corresponding to the major version so that dld.sl refuses to
10848 # link against other versions.
10849 version_type=sunos
10850 need_lib_prefix=no
10851 need_version=no
10852 case $host_cpu in
10853 ia64*)
10854 shrext_cmds='.so'
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.so"
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 if test "X$HPUX_IA64_MODE" = X32; then
10862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10863 else
10864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10868 hppa*64*)
10869 shrext_cmds='.sl'
10870 hardcode_into_libs=yes
10871 dynamic_linker="$host_os dld.sl"
10872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10880 shrext_cmds='.sl'
10881 dynamic_linker="$host_os dld.sl"
10882 shlibpath_var=SHLIB_PATH
10883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10887 esac
10888 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10889 postinstall_cmds='chmod 555 $lib'
10890 # or fails outright, so override atomically:
10891 install_override_mode=555
10894 interix[3-9]*)
10895 version_type=linux
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=no
10903 hardcode_into_libs=yes
10906 irix5* | irix6* | nonstopux*)
10907 case $host_os in
10908 nonstopux*) version_type=nonstopux ;;
10910 if test "$lt_cv_prog_gnu_ld" = yes; then
10911 version_type=linux
10912 else
10913 version_type=irix
10914 fi ;;
10915 esac
10916 need_lib_prefix=no
10917 need_version=no
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10920 case $host_os in
10921 irix5* | nonstopux*)
10922 libsuff= shlibsuff=
10925 case $LD in # libtool.m4 will add one of these switches to LD
10926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10927 libsuff= shlibsuff= libmagic=32-bit;;
10928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10929 libsuff=32 shlibsuff=N32 libmagic=N32;;
10930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10931 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10932 *) libsuff= shlibsuff= libmagic=never-match;;
10933 esac
10935 esac
10936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10940 hardcode_into_libs=yes
10943 # No shared lib support for Linux oldld, aout, or coff.
10944 linux*oldld* | linux*aout* | linux*coff*)
10945 dynamic_linker=no
10948 # This must be Linux ELF.
10950 # uclinux* changes (here and below) have been submitted to the libtool
10951 # project, but have not yet been accepted: they are GCC-local changes
10952 # for the time being. (See
10953 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10954 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10955 version_type=linux
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=no
10964 # Some binutils ld are patched to set DT_RUNPATH
10965 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 lt_cv_shlibpath_overrides_runpath=no
10969 save_LDFLAGS=$LDFLAGS
10970 save_libdir=$libdir
10971 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10972 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10977 main ()
10981 return 0;
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10986 lt_cv_shlibpath_overrides_runpath=yes
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LDFLAGS=$save_LDFLAGS
10992 libdir=$save_libdir
10996 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10998 # This implies no fast_install, which is unacceptable.
10999 # Some rework will be needed to allow for fast_install
11000 # before this can be enabled.
11001 hardcode_into_libs=yes
11003 # Append ld.so.conf contents to the search path
11004 if test -f /etc/ld.so.conf; then
11005 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' ' '`
11006 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11009 # We used to test for /lib/ld.so.1 and disable shared libraries on
11010 # powerpc, because MkLinux only supported shared libraries with the
11011 # GNU dynamic linker. Since this was broken with cross compilers,
11012 # most powerpc-linux boxes support dynamic linking these days and
11013 # people can always --disable-shared, the test was removed, and we
11014 # assume the GNU/Linux dynamic linker is in use.
11015 dynamic_linker='GNU/Linux ld.so'
11018 netbsd*)
11019 version_type=sunos
11020 need_lib_prefix=no
11021 need_version=no
11022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11025 dynamic_linker='NetBSD (a.out) ld.so'
11026 else
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 dynamic_linker='NetBSD ld.elf_so'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11036 newsos6)
11037 version_type=linux
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=yes
11043 *nto* | *qnx*)
11044 version_type=qnx
11045 need_lib_prefix=no
11046 need_version=no
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 hardcode_into_libs=yes
11052 dynamic_linker='ldqnx.so'
11055 openbsd*)
11056 version_type=sunos
11057 sys_lib_dlsearch_path_spec="/usr/lib"
11058 need_lib_prefix=no
11059 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11060 case $host_os in
11061 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11062 *) need_version=no ;;
11063 esac
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11068 case $host_os in
11069 openbsd2.[89] | openbsd2.[89].*)
11070 shlibpath_overrides_runpath=no
11073 shlibpath_overrides_runpath=yes
11075 esac
11076 else
11077 shlibpath_overrides_runpath=yes
11081 os2*)
11082 libname_spec='$name'
11083 shrext_cmds=".dll"
11084 need_lib_prefix=no
11085 library_names_spec='$libname${shared_ext} $libname.a'
11086 dynamic_linker='OS/2 ld.exe'
11087 shlibpath_var=LIBPATH
11090 osf3* | osf4* | osf5*)
11091 version_type=osf
11092 need_lib_prefix=no
11093 need_version=no
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11098 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11101 rdos*)
11102 dynamic_linker=no
11105 solaris*)
11106 version_type=linux
11107 need_lib_prefix=no
11108 need_version=no
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11113 hardcode_into_libs=yes
11114 # ldd complains unless libraries are executable
11115 postinstall_cmds='chmod +x $lib'
11118 sunos4*)
11119 version_type=sunos
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes
11124 if test "$with_gnu_ld" = yes; then
11125 need_lib_prefix=no
11127 need_version=yes
11130 sysv4 | sysv4.3*)
11131 version_type=linux
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 case $host_vendor in
11136 sni)
11137 shlibpath_overrides_runpath=no
11138 need_lib_prefix=no
11139 runpath_var=LD_RUN_PATH
11141 siemens)
11142 need_lib_prefix=no
11144 motorola)
11145 need_lib_prefix=no
11146 need_version=no
11147 shlibpath_overrides_runpath=no
11148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11150 esac
11153 sysv4*MP*)
11154 if test -d /usr/nec ;then
11155 version_type=linux
11156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11157 soname_spec='$libname${shared_ext}.$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11163 version_type=freebsd-elf
11164 need_lib_prefix=no
11165 need_version=no
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes
11170 hardcode_into_libs=yes
11171 if test "$with_gnu_ld" = yes; then
11172 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11173 else
11174 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11175 case $host_os in
11176 sco3.2v5*)
11177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11179 esac
11181 sys_lib_dlsearch_path_spec='/usr/lib'
11184 tpf*)
11185 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11186 version_type=linux
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=no
11192 hardcode_into_libs=yes
11195 uts4*)
11196 version_type=linux
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 shlibpath_var=LD_LIBRARY_PATH
11203 dynamic_linker=no
11205 esac
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11207 $as_echo "$dynamic_linker" >&6; }
11208 test "$dynamic_linker" = no && can_build_shared=no
11210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11211 if test "$GCC" = yes; then
11212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11215 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11216 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11218 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11219 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11314 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11315 hardcode_action=
11316 if test -n "$hardcode_libdir_flag_spec" ||
11317 test -n "$runpath_var" ||
11318 test "X$hardcode_automatic" = "Xyes" ; then
11320 # We can hardcode non-existent directories.
11321 if test "$hardcode_direct" != no &&
11322 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11323 # have to relink, otherwise we might link with an installed library
11324 # when we should be linking with a yet-to-be-installed one
11325 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11326 test "$hardcode_minus_L" != no; then
11327 # Linking always hardcodes the temporary library directory.
11328 hardcode_action=relink
11329 else
11330 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11331 hardcode_action=immediate
11333 else
11334 # We cannot hardcode anything, or else we can only hardcode existing
11335 # directories.
11336 hardcode_action=unsupported
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11339 $as_echo "$hardcode_action" >&6; }
11341 if test "$hardcode_action" = relink ||
11342 test "$inherit_rpath" = yes; then
11343 # Fast installation is not supported
11344 enable_fast_install=no
11345 elif test "$shlibpath_overrides_runpath" = yes ||
11346 test "$enable_shared" = no; then
11347 # Fast installation is not necessary
11348 enable_fast_install=needless
11356 if test "x$enable_dlopen" != xyes; then
11357 enable_dlopen=unknown
11358 enable_dlopen_self=unknown
11359 enable_dlopen_self_static=unknown
11360 else
11361 lt_cv_dlopen=no
11362 lt_cv_dlopen_libs=
11364 case $host_os in
11365 beos*)
11366 lt_cv_dlopen="load_add_on"
11367 lt_cv_dlopen_libs=
11368 lt_cv_dlopen_self=yes
11371 mingw* | pw32* | cegcc*)
11372 lt_cv_dlopen="LoadLibrary"
11373 lt_cv_dlopen_libs=
11376 cygwin*)
11377 lt_cv_dlopen="dlopen"
11378 lt_cv_dlopen_libs=
11381 darwin*)
11382 # if libdl is installed we need to link against it
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11385 if ${ac_cv_lib_dl_dlopen+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldl $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dlopen ();
11401 main ()
11403 return dlopen ();
11405 return 0;
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dl_dlopen=yes
11410 else
11411 ac_cv_lib_dl_dlopen=no
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11421 else
11423 lt_cv_dlopen="dyld"
11424 lt_cv_dlopen_libs=
11425 lt_cv_dlopen_self=yes
11432 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11433 if test "x$ac_cv_func_shl_load" = xyes; then :
11434 lt_cv_dlopen="shl_load"
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11437 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11438 if ${ac_cv_lib_dld_shl_load+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-ldld $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char shl_load ();
11454 main ()
11456 return shl_load ();
11458 return 0;
11460 _ACEOF
11461 if ac_fn_c_try_link "$LINENO"; then :
11462 ac_cv_lib_dld_shl_load=yes
11463 else
11464 ac_cv_lib_dld_shl_load=no
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11471 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11472 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11473 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11474 else
11475 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11476 if test "x$ac_cv_func_dlopen" = xyes; then :
11477 lt_cv_dlopen="dlopen"
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11480 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11481 if ${ac_cv_lib_dl_dlopen+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 ac_check_lib_save_LIBS=$LIBS
11485 LIBS="-ldl $LIBS"
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char dlopen ();
11497 main ()
11499 return dlopen ();
11501 return 0;
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 ac_cv_lib_dl_dlopen=yes
11506 else
11507 ac_cv_lib_dl_dlopen=no
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11514 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11515 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11519 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11520 if ${ac_cv_lib_svld_dlopen+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-lsvld $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char dlopen ();
11536 main ()
11538 return dlopen ();
11540 return 0;
11542 _ACEOF
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ac_cv_lib_svld_dlopen=yes
11545 else
11546 ac_cv_lib_svld_dlopen=no
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11553 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11554 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11558 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11559 if ${ac_cv_lib_dld_dld_link+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 ac_check_lib_save_LIBS=$LIBS
11563 LIBS="-ldld $LIBS"
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char dld_link ();
11575 main ()
11577 return dld_link ();
11579 return 0;
11581 _ACEOF
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 ac_cv_lib_dld_dld_link=yes
11584 else
11585 ac_cv_lib_dld_dld_link=no
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LIBS=$ac_check_lib_save_LIBS
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11592 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11593 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11594 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11613 esac
11615 if test "x$lt_cv_dlopen" != xno; then
11616 enable_dlopen=yes
11617 else
11618 enable_dlopen=no
11621 case $lt_cv_dlopen in
11622 dlopen)
11623 save_CPPFLAGS="$CPPFLAGS"
11624 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11626 save_LDFLAGS="$LDFLAGS"
11627 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11629 save_LIBS="$LIBS"
11630 LIBS="$lt_cv_dlopen_libs $LIBS"
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11633 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11634 if ${lt_cv_dlopen_self+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 if test "$cross_compiling" = yes; then :
11638 lt_cv_dlopen_self=cross
11639 else
11640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11641 lt_status=$lt_dlunknown
11642 cat > conftest.$ac_ext <<_LT_EOF
11643 #line 11643 "configure"
11644 #include "confdefs.h"
11646 #if HAVE_DLFCN_H
11647 #include <dlfcn.h>
11648 #endif
11650 #include <stdio.h>
11652 #ifdef RTLD_GLOBAL
11653 # define LT_DLGLOBAL RTLD_GLOBAL
11654 #else
11655 # ifdef DL_GLOBAL
11656 # define LT_DLGLOBAL DL_GLOBAL
11657 # else
11658 # define LT_DLGLOBAL 0
11659 # endif
11660 #endif
11662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11663 find out it does not work in some platform. */
11664 #ifndef LT_DLLAZY_OR_NOW
11665 # ifdef RTLD_LAZY
11666 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11667 # else
11668 # ifdef DL_LAZY
11669 # define LT_DLLAZY_OR_NOW DL_LAZY
11670 # else
11671 # ifdef RTLD_NOW
11672 # define LT_DLLAZY_OR_NOW RTLD_NOW
11673 # else
11674 # ifdef DL_NOW
11675 # define LT_DLLAZY_OR_NOW DL_NOW
11676 # else
11677 # define LT_DLLAZY_OR_NOW 0
11678 # endif
11679 # endif
11680 # endif
11681 # endif
11682 #endif
11684 /* When -fvisbility=hidden is used, assume the code has been annotated
11685 correspondingly for the symbols needed. */
11686 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11687 void fnord () __attribute__((visibility("default")));
11688 #endif
11690 void fnord () { int i=42; }
11691 int main ()
11693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11694 int status = $lt_dlunknown;
11696 if (self)
11698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11699 else
11701 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11702 else puts (dlerror ());
11704 /* dlclose (self); */
11706 else
11707 puts (dlerror ());
11709 return status;
11711 _LT_EOF
11712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11713 (eval $ac_link) 2>&5
11714 ac_status=$?
11715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11716 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11717 (./conftest; exit; ) >&5 2>/dev/null
11718 lt_status=$?
11719 case x$lt_status in
11720 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11721 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11722 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11723 esac
11724 else :
11725 # compilation failed
11726 lt_cv_dlopen_self=no
11729 rm -fr conftest*
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11734 $as_echo "$lt_cv_dlopen_self" >&6; }
11736 if test "x$lt_cv_dlopen_self" = xyes; then
11737 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11739 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11740 if ${lt_cv_dlopen_self_static+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test "$cross_compiling" = yes; then :
11744 lt_cv_dlopen_self_static=cross
11745 else
11746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747 lt_status=$lt_dlunknown
11748 cat > conftest.$ac_ext <<_LT_EOF
11749 #line 11749 "configure"
11750 #include "confdefs.h"
11752 #if HAVE_DLFCN_H
11753 #include <dlfcn.h>
11754 #endif
11756 #include <stdio.h>
11758 #ifdef RTLD_GLOBAL
11759 # define LT_DLGLOBAL RTLD_GLOBAL
11760 #else
11761 # ifdef DL_GLOBAL
11762 # define LT_DLGLOBAL DL_GLOBAL
11763 # else
11764 # define LT_DLGLOBAL 0
11765 # endif
11766 #endif
11768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769 find out it does not work in some platform. */
11770 #ifndef LT_DLLAZY_OR_NOW
11771 # ifdef RTLD_LAZY
11772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11773 # else
11774 # ifdef DL_LAZY
11775 # define LT_DLLAZY_OR_NOW DL_LAZY
11776 # else
11777 # ifdef RTLD_NOW
11778 # define LT_DLLAZY_OR_NOW RTLD_NOW
11779 # else
11780 # ifdef DL_NOW
11781 # define LT_DLLAZY_OR_NOW DL_NOW
11782 # else
11783 # define LT_DLLAZY_OR_NOW 0
11784 # endif
11785 # endif
11786 # endif
11787 # endif
11788 #endif
11790 /* When -fvisbility=hidden is used, assume the code has been annotated
11791 correspondingly for the symbols needed. */
11792 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11793 void fnord () __attribute__((visibility("default")));
11794 #endif
11796 void fnord () { int i=42; }
11797 int main ()
11799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11800 int status = $lt_dlunknown;
11802 if (self)
11804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11805 else
11807 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11808 else puts (dlerror ());
11810 /* dlclose (self); */
11812 else
11813 puts (dlerror ());
11815 return status;
11817 _LT_EOF
11818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11819 (eval $ac_link) 2>&5
11820 ac_status=$?
11821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11823 (./conftest; exit; ) >&5 2>/dev/null
11824 lt_status=$?
11825 case x$lt_status in
11826 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11827 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11828 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11829 esac
11830 else :
11831 # compilation failed
11832 lt_cv_dlopen_self_static=no
11835 rm -fr conftest*
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11840 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11843 CPPFLAGS="$save_CPPFLAGS"
11844 LDFLAGS="$save_LDFLAGS"
11845 LIBS="$save_LIBS"
11847 esac
11849 case $lt_cv_dlopen_self in
11850 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11851 *) enable_dlopen_self=unknown ;;
11852 esac
11854 case $lt_cv_dlopen_self_static in
11855 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11856 *) enable_dlopen_self_static=unknown ;;
11857 esac
11876 striplib=
11877 old_striplib=
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11879 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11880 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11881 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11882 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11885 else
11886 # FIXME - insert some real tests, host_os isn't really good enough
11887 case $host_os in
11888 darwin*)
11889 if test -n "$STRIP" ; then
11890 striplib="$STRIP -x"
11891 old_striplib="$STRIP -S"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; }
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11903 esac
11917 # Report which library types will actually be built
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11919 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11921 $as_echo "$can_build_shared" >&6; }
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11924 $as_echo_n "checking whether to build shared libraries... " >&6; }
11925 test "$can_build_shared" = "no" && enable_shared=no
11927 # On AIX, shared libraries and static libraries use the same namespace, and
11928 # are all built from PIC.
11929 case $host_os in
11930 aix3*)
11931 test "$enable_shared" = yes && enable_static=no
11932 if test -n "$RANLIB"; then
11933 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11934 postinstall_cmds='$RANLIB $lib'
11938 aix[4-9]*)
11939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11940 test "$enable_shared" = yes && enable_static=no
11943 esac
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11945 $as_echo "$enable_shared" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11948 $as_echo_n "checking whether to build static libraries... " >&6; }
11949 # Make sure either enable_shared or enable_static is yes.
11950 test "$enable_shared" = yes || enable_static=yes
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11952 $as_echo "$enable_static" >&6; }
11958 ac_ext=c
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11964 CC="$lt_save_CC"
11978 ac_config_commands="$ac_config_commands libtool"
11983 # Only expand once:
11989 gdc_save_DFLAGS=$GDCFLAGS
11990 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11993 # Source file extension for D test sources.
11994 ac_ext=d
11996 # Object file extension for compiled D test sources.
11997 objext=o
11998 objext_D=$objext
12000 # Code to be used in simple compile tests
12001 lt_simple_compile_test_code="\
12002 module object;
12003 shared int some_variable = 0;
12006 # Code to be used in simple link tests
12007 lt_simple_link_test_code="\
12008 module object;
12009 extern(C) int main() { return 0; }
12012 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12019 # If no C compiler was specified, use CC.
12020 LTCC=${LTCC-"$CC"}
12022 # If no C compiler flags were specified, use CFLAGS.
12023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12025 # Allow CC to be a program name with arguments.
12026 compiler=$CC
12029 # save warnings/boilerplate of simple test code
12030 ac_outfile=conftest.$ac_objext
12031 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12032 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12033 _lt_compiler_boilerplate=`cat conftest.err`
12034 $RM conftest*
12036 ac_outfile=conftest.$ac_objext
12037 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12038 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12039 _lt_linker_boilerplate=`cat conftest.err`
12040 $RM -r conftest*
12043 # Allow CC to be a program name with arguments.
12044 lt_save_CC=$CC
12045 lt_save_CFLAGS=$CFLAGS
12046 lt_save_GCC=$GCC
12047 GCC=yes
12048 CC=${GDC-"gdc"}
12049 CFLAGS=$GDCFLAGS
12050 compiler=$CC
12051 compiler_D=$CC
12052 LD_D=$CC
12053 for cc_temp in $compiler""; do
12054 case $cc_temp in
12055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12057 \-*) ;;
12058 *) break;;
12059 esac
12060 done
12061 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12064 # GDC did not exist at the time GCC didn't implicitly link libc in.
12065 archive_cmds_need_lc_D=no
12067 old_archive_cmds_D=$old_archive_cmds
12068 reload_flag_D=$reload_flag
12069 reload_cmds_D=$reload_cmds
12071 ## CAVEAT EMPTOR:
12072 ## There is no encapsulation within the following macros, do not change
12073 ## the running order or otherwise move them around unless you know exactly
12074 ## what you are doing...
12075 if test -n "$compiler"; then
12077 lt_prog_compiler_no_builtin_flag_D=
12079 if test "$GCC" = yes; then
12080 case $cc_basename in
12081 nvcc*)
12082 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12084 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12085 esac
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12089 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 lt_cv_prog_compiler_rtti_exceptions=no
12093 ac_outfile=conftest.$ac_objext
12094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12095 lt_compiler_flag="-fno-rtti -fno-exceptions"
12096 # Insert the option either (1) after the last *FLAGS variable, or
12097 # (2) before a word containing "conftest.", or (3) at the end.
12098 # Note that $ac_compile itself does not contain backslashes and begins
12099 # with a dollar sign (not a hyphen), so the echo should work correctly.
12100 # The option is referenced via a variable to avoid confusing sed.
12101 lt_compile=`echo "$ac_compile" | $SED \
12102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104 -e 's:$: $lt_compiler_flag:'`
12105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12106 (eval "$lt_compile" 2>conftest.err)
12107 ac_status=$?
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 if (exit $ac_status) && test -s "$ac_outfile"; then
12111 # The compiler can only warn and ignore the option if not recognized
12112 # So say no if there are warnings other than the usual output.
12113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12116 lt_cv_prog_compiler_rtti_exceptions=yes
12119 $RM conftest*
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12126 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12127 else
12135 lt_prog_compiler_wl_D=
12136 lt_prog_compiler_pic_D=
12137 lt_prog_compiler_static_D=
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12140 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12142 if test "$GCC" = yes; then
12143 lt_prog_compiler_wl_D='-Wl,'
12144 lt_prog_compiler_static_D='-static'
12146 case $host_os in
12147 aix*)
12148 # All AIX code is PIC.
12149 if test "$host_cpu" = ia64; then
12150 # AIX 5 now supports IA64 processor
12151 lt_prog_compiler_static_D='-Bstatic'
12153 lt_prog_compiler_pic_D='-fPIC'
12156 amigaos*)
12157 case $host_cpu in
12158 powerpc)
12159 # see comment about AmigaOS4 .so support
12160 lt_prog_compiler_pic_D='-fPIC'
12162 m68k)
12163 # FIXME: we need at least 68020 code to build shared libraries, but
12164 # adding the `-m68020' flag to GCC prevents building anything better,
12165 # like `-m68040'.
12166 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12168 esac
12171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12172 # PIC is the default for these OSes.
12175 mingw* | cygwin* | pw32* | os2* | cegcc*)
12176 # This hack is so that the source file can tell whether it is being
12177 # built for inclusion in a dll (and should export symbols for example).
12178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12179 # (--disable-auto-import) libraries
12180 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12183 darwin* | rhapsody*)
12184 # PIC is the default on this platform
12185 # Common symbols not allowed in MH_DYLIB files
12186 lt_prog_compiler_pic_D='-fno-common'
12189 haiku*)
12190 # PIC is the default for Haiku.
12191 # The "-static" flag exists, but is broken.
12192 lt_prog_compiler_static_D=
12195 hpux*)
12196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12198 # sets the default TLS model and affects inlining.
12199 case $host_cpu in
12200 hppa*64*)
12201 # +Z the default
12204 lt_prog_compiler_pic_D='-fPIC'
12206 esac
12209 interix[3-9]*)
12210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12211 # Instead, we relocate shared libraries at runtime.
12214 msdosdjgpp*)
12215 # Just because we use GCC doesn't mean we suddenly get shared libraries
12216 # on systems that don't support them.
12217 lt_prog_compiler_can_build_shared_D=no
12218 enable_shared=no
12221 *nto* | *qnx*)
12222 # QNX uses GNU C++, but need to define -shared option too, otherwise
12223 # it will coredump.
12224 lt_prog_compiler_pic_D='-fPIC -shared'
12227 sysv4*MP*)
12228 if test -d /usr/nec; then
12229 lt_prog_compiler_pic_D=-Kconform_pic
12234 lt_prog_compiler_pic_D='-fPIC'
12236 esac
12238 case $cc_basename in
12239 nvcc*) # Cuda Compiler Driver 2.2
12240 lt_prog_compiler_wl_D='-Xlinker '
12241 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12243 esac
12244 else
12245 # PORTME Check for flag to pass linker flags through the system compiler.
12246 case $host_os in
12247 aix*)
12248 lt_prog_compiler_wl_D='-Wl,'
12249 if test "$host_cpu" = ia64; then
12250 # AIX 5 now supports IA64 processor
12251 lt_prog_compiler_static_D='-Bstatic'
12252 else
12253 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12257 mingw* | cygwin* | pw32* | os2* | cegcc*)
12258 # This hack is so that the source file can tell whether it is being
12259 # built for inclusion in a dll (and should export symbols for example).
12260 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12263 hpux9* | hpux10* | hpux11*)
12264 lt_prog_compiler_wl_D='-Wl,'
12265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12266 # not for PA HP-UX.
12267 case $host_cpu in
12268 hppa*64*|ia64*)
12269 # +Z the default
12272 lt_prog_compiler_pic_D='+Z'
12274 esac
12275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12276 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12279 irix5* | irix6* | nonstopux*)
12280 lt_prog_compiler_wl_D='-Wl,'
12281 # PIC (with -KPIC) is the default.
12282 lt_prog_compiler_static_D='-non_shared'
12285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12286 case $cc_basename in
12287 # old Intel for x86_64 which still supported -KPIC.
12288 ecc*)
12289 lt_prog_compiler_wl_D='-Wl,'
12290 lt_prog_compiler_pic_D='-KPIC'
12291 lt_prog_compiler_static_D='-static'
12293 # icc used to be incompatible with GCC.
12294 # ICC 10 doesn't accept -KPIC any more.
12295 icc* | ifort*)
12296 lt_prog_compiler_wl_D='-Wl,'
12297 lt_prog_compiler_pic_D='-fPIC'
12298 lt_prog_compiler_static_D='-static'
12300 # Lahey Fortran 8.1.
12301 lf95*)
12302 lt_prog_compiler_wl_D='-Wl,'
12303 lt_prog_compiler_pic_D='--shared'
12304 lt_prog_compiler_static_D='--static'
12306 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12307 # Portland Group compilers (*not* the Pentium gcc compiler,
12308 # which looks to be a dead project)
12309 lt_prog_compiler_wl_D='-Wl,'
12310 lt_prog_compiler_pic_D='-fpic'
12311 lt_prog_compiler_static_D='-Bstatic'
12313 ccc*)
12314 lt_prog_compiler_wl_D='-Wl,'
12315 # All Alpha code is PIC.
12316 lt_prog_compiler_static_D='-non_shared'
12318 xl* | bgxl* | bgf* | mpixl*)
12319 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12320 lt_prog_compiler_wl_D='-Wl,'
12321 lt_prog_compiler_pic_D='-qpic'
12322 lt_prog_compiler_static_D='-qstaticlink'
12325 case `$CC -V 2>&1 | sed 5q` in
12326 *Sun\ F* | *Sun*Fortran*)
12327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12328 lt_prog_compiler_pic_D='-KPIC'
12329 lt_prog_compiler_static_D='-Bstatic'
12330 lt_prog_compiler_wl_D=''
12332 *Sun\ C*)
12333 # Sun C 5.9
12334 lt_prog_compiler_pic_D='-KPIC'
12335 lt_prog_compiler_static_D='-Bstatic'
12336 lt_prog_compiler_wl_D='-Wl,'
12338 esac
12340 esac
12343 newsos6)
12344 lt_prog_compiler_pic_D='-KPIC'
12345 lt_prog_compiler_static_D='-Bstatic'
12348 *nto* | *qnx*)
12349 # QNX uses GNU C++, but need to define -shared option too, otherwise
12350 # it will coredump.
12351 lt_prog_compiler_pic_D='-fPIC -shared'
12354 osf3* | osf4* | osf5*)
12355 lt_prog_compiler_wl_D='-Wl,'
12356 # All OSF/1 code is PIC.
12357 lt_prog_compiler_static_D='-non_shared'
12360 rdos*)
12361 lt_prog_compiler_static_D='-non_shared'
12364 solaris*)
12365 lt_prog_compiler_pic_D='-KPIC'
12366 lt_prog_compiler_static_D='-Bstatic'
12367 case $cc_basename in
12368 f77* | f90* | f95*)
12369 lt_prog_compiler_wl_D='-Qoption ld ';;
12371 lt_prog_compiler_wl_D='-Wl,';;
12372 esac
12375 sunos4*)
12376 lt_prog_compiler_wl_D='-Qoption ld '
12377 lt_prog_compiler_pic_D='-PIC'
12378 lt_prog_compiler_static_D='-Bstatic'
12381 sysv4 | sysv4.2uw2* | sysv4.3*)
12382 lt_prog_compiler_wl_D='-Wl,'
12383 lt_prog_compiler_pic_D='-KPIC'
12384 lt_prog_compiler_static_D='-Bstatic'
12387 sysv4*MP*)
12388 if test -d /usr/nec ;then
12389 lt_prog_compiler_pic_D='-Kconform_pic'
12390 lt_prog_compiler_static_D='-Bstatic'
12394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12395 lt_prog_compiler_wl_D='-Wl,'
12396 lt_prog_compiler_pic_D='-KPIC'
12397 lt_prog_compiler_static_D='-Bstatic'
12400 unicos*)
12401 lt_prog_compiler_wl_D='-Wl,'
12402 lt_prog_compiler_can_build_shared_D=no
12405 uts4*)
12406 lt_prog_compiler_pic_D='-pic'
12407 lt_prog_compiler_static_D='-Bstatic'
12411 lt_prog_compiler_can_build_shared_D=no
12413 esac
12416 case $host_os in
12417 # For platforms which do not support PIC, -DPIC is meaningless:
12418 *djgpp*)
12419 lt_prog_compiler_pic_D=
12422 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12424 esac
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12426 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12431 # Check to make sure the PIC flag actually works.
12433 if test -n "$lt_prog_compiler_pic_D"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12435 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12436 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 lt_cv_prog_compiler_pic_works_D=no
12440 ac_outfile=conftest.$ac_objext
12441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12442 lt_compiler_flag="$lt_prog_compiler_pic_D"
12443 # Insert the option either (1) after the last *FLAGS variable, or
12444 # (2) before a word containing "conftest.", or (3) at the end.
12445 # Note that $ac_compile itself does not contain backslashes and begins
12446 # with a dollar sign (not a hyphen), so the echo should work correctly.
12447 # The option is referenced via a variable to avoid confusing sed.
12448 lt_compile=`echo "$ac_compile" | $SED \
12449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12451 -e 's:$: $lt_compiler_flag:'`
12452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12453 (eval "$lt_compile" 2>conftest.err)
12454 ac_status=$?
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 if (exit $ac_status) && test -s "$ac_outfile"; then
12458 # The compiler can only warn and ignore the option if not recognized
12459 # So say no if there are warnings other than the usual output.
12460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12463 lt_cv_prog_compiler_pic_works_D=yes
12466 $RM conftest*
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12470 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12472 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12473 case $lt_prog_compiler_pic_D in
12474 "" | " "*) ;;
12475 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12476 esac
12477 else
12478 lt_prog_compiler_pic_D=
12479 lt_prog_compiler_can_build_shared_D=no
12487 # Check to make sure the static flag actually works.
12489 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12492 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 lt_cv_prog_compiler_static_works_D=no
12496 save_LDFLAGS="$LDFLAGS"
12497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500 # The linker can only warn and ignore the option if not recognized
12501 # So say no if there are warnings
12502 if test -s conftest.err; then
12503 # Append any errors to the config.log.
12504 cat conftest.err 1>&5
12505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507 if diff conftest.exp conftest.er2 >/dev/null; then
12508 lt_cv_prog_compiler_static_works_D=yes
12510 else
12511 lt_cv_prog_compiler_static_works_D=yes
12514 $RM -r conftest*
12515 LDFLAGS="$save_LDFLAGS"
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12519 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12521 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12523 else
12524 lt_prog_compiler_static_D=
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12532 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 lt_cv_prog_compiler_c_o_D=no
12536 $RM -r conftest 2>/dev/null
12537 mkdir conftest
12538 cd conftest
12539 mkdir out
12540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12542 lt_compiler_flag="-o out/conftest2.$ac_objext"
12543 # Insert the option either (1) after the last *FLAGS variable, or
12544 # (2) before a word containing "conftest.", or (3) at the end.
12545 # Note that $ac_compile itself does not contain backslashes and begins
12546 # with a dollar sign (not a hyphen), so the echo should work correctly.
12547 lt_compile=`echo "$ac_compile" | $SED \
12548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12550 -e 's:$: $lt_compiler_flag:'`
12551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12552 (eval "$lt_compile" 2>out/conftest.err)
12553 ac_status=$?
12554 cat out/conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12557 then
12558 # The compiler can only warn and ignore the option if not recognized
12559 # So say no if there are warnings
12560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12563 lt_cv_prog_compiler_c_o_D=yes
12566 chmod u+w . 2>&5
12567 $RM conftest*
12568 # SGI C++ compiler will create directory out/ii_files/ for
12569 # template instantiation
12570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12571 $RM out/* && rmdir out
12572 cd ..
12573 $RM -r conftest
12574 $RM conftest*
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12578 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12584 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 lt_cv_prog_compiler_c_o_D=no
12588 $RM -r conftest 2>/dev/null
12589 mkdir conftest
12590 cd conftest
12591 mkdir out
12592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12594 lt_compiler_flag="-o out/conftest2.$ac_objext"
12595 # Insert the option either (1) after the last *FLAGS variable, or
12596 # (2) before a word containing "conftest.", or (3) at the end.
12597 # Note that $ac_compile itself does not contain backslashes and begins
12598 # with a dollar sign (not a hyphen), so the echo should work correctly.
12599 lt_compile=`echo "$ac_compile" | $SED \
12600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12602 -e 's:$: $lt_compiler_flag:'`
12603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12604 (eval "$lt_compile" 2>out/conftest.err)
12605 ac_status=$?
12606 cat out/conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12609 then
12610 # The compiler can only warn and ignore the option if not recognized
12611 # So say no if there are warnings
12612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12615 lt_cv_prog_compiler_c_o_D=yes
12618 chmod u+w . 2>&5
12619 $RM conftest*
12620 # SGI C++ compiler will create directory out/ii_files/ for
12621 # template instantiation
12622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12623 $RM out/* && rmdir out
12624 cd ..
12625 $RM -r conftest
12626 $RM conftest*
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12630 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12635 hard_links="nottested"
12636 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12637 # do not overwrite the value of need_locks provided by the user
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12639 $as_echo_n "checking if we can lock with hard links... " >&6; }
12640 hard_links=yes
12641 $RM conftest*
12642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12643 touch conftest.a
12644 ln conftest.a conftest.b 2>&5 || hard_links=no
12645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12647 $as_echo "$hard_links" >&6; }
12648 if test "$hard_links" = no; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12650 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12651 need_locks=warn
12653 else
12654 need_locks=no
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12662 runpath_var=
12663 allow_undefined_flag_D=
12664 always_export_symbols_D=no
12665 archive_cmds_D=
12666 archive_expsym_cmds_D=
12667 compiler_needs_object_D=no
12668 enable_shared_with_static_runtimes_D=no
12669 export_dynamic_flag_spec_D=
12670 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12671 hardcode_automatic_D=no
12672 hardcode_direct_D=no
12673 hardcode_direct_absolute_D=no
12674 hardcode_libdir_flag_spec_D=
12675 hardcode_libdir_flag_spec_ld_D=
12676 hardcode_libdir_separator_D=
12677 hardcode_minus_L_D=no
12678 hardcode_shlibpath_var_D=unsupported
12679 inherit_rpath_D=no
12680 link_all_deplibs_D=unknown
12681 module_cmds_D=
12682 module_expsym_cmds_D=
12683 old_archive_from_new_cmds_D=
12684 old_archive_from_expsyms_cmds_D=
12685 thread_safe_flag_spec_D=
12686 whole_archive_flag_spec_D=
12687 # include_expsyms should be a list of space-separated symbols to be *always*
12688 # included in the symbol list
12689 include_expsyms_D=
12690 # exclude_expsyms can be an extended regexp of symbols to exclude
12691 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12692 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12693 # as well as any symbol that contains `d'.
12694 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12695 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12696 # platforms (ab)use it in PIC code, but their linkers get confused if
12697 # the symbol is explicitly referenced. Since portable code cannot
12698 # rely on this symbol name, it's probably fine to never include it in
12699 # preloaded symbol tables.
12700 # Exclude shared library initialization/finalization symbols.
12701 extract_expsyms_cmds=
12703 case $host_os in
12704 cygwin* | mingw* | pw32* | cegcc*)
12705 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12706 # When not using gcc, we currently assume that we are using
12707 # Microsoft Visual C++.
12708 if test "$GCC" != yes; then
12709 with_gnu_ld=no
12712 interix*)
12713 # we just hope/assume this is gcc and not c89 (= MSVC++)
12714 with_gnu_ld=yes
12716 openbsd*)
12717 with_gnu_ld=no
12719 esac
12721 ld_shlibs_D=yes
12723 # On some targets, GNU ld is compatible enough with the native linker
12724 # that we're better off using the native interface for both.
12725 lt_use_gnu_ld_interface=no
12726 if test "$with_gnu_ld" = yes; then
12727 case $host_os in
12728 aix*)
12729 # The AIX port of GNU ld has always aspired to compatibility
12730 # with the native linker. However, as the warning in the GNU ld
12731 # block says, versions before 2.19.5* couldn't really create working
12732 # shared libraries, regardless of the interface used.
12733 case `$LD -v 2>&1` in
12734 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12735 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12736 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12738 lt_use_gnu_ld_interface=yes
12740 esac
12743 lt_use_gnu_ld_interface=yes
12745 esac
12748 if test "$lt_use_gnu_ld_interface" = yes; then
12749 # If archive_cmds runs LD, not CC, wlarc should be empty
12750 wlarc='${wl}'
12752 # Set some defaults for GNU ld with shared library support. These
12753 # are reset later if shared libraries are not supported. Putting them
12754 # here allows them to be overridden if necessary.
12755 runpath_var=LD_RUN_PATH
12756 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12757 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12758 # ancient GNU ld didn't support --whole-archive et. al.
12759 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12760 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12761 else
12762 whole_archive_flag_spec_D=
12764 supports_anon_versioning=no
12765 case `$LD -v 2>&1` in
12766 *GNU\ gold*) supports_anon_versioning=yes ;;
12767 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12768 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12769 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12770 *\ 2.11.*) ;; # other 2.11 versions
12771 *) supports_anon_versioning=yes ;;
12772 esac
12774 # See if GNU ld supports shared libraries.
12775 case $host_os in
12776 aix[3-9]*)
12777 # On AIX/PPC, the GNU linker is very broken
12778 if test "$host_cpu" != ia64; then
12779 ld_shlibs_D=no
12780 cat <<_LT_EOF 1>&2
12782 *** Warning: the GNU linker, at least up to release 2.19, is reported
12783 *** to be unable to reliably create shared libraries on AIX.
12784 *** Therefore, libtool is disabling shared libraries support. If you
12785 *** really care for shared libraries, you may want to install binutils
12786 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12787 *** You will then need to restart the configuration process.
12789 _LT_EOF
12793 amigaos*)
12794 case $host_cpu in
12795 powerpc)
12796 # see comment about AmigaOS4 .so support
12797 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798 archive_expsym_cmds_D=''
12800 m68k)
12801 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)'
12802 hardcode_libdir_flag_spec_D='-L$libdir'
12803 hardcode_minus_L_D=yes
12805 esac
12808 beos*)
12809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12810 allow_undefined_flag_D=unsupported
12811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12812 # support --undefined. This deserves some investigation. FIXME
12813 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 else
12815 ld_shlibs_D=no
12819 cygwin* | mingw* | pw32* | cegcc*)
12820 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12821 # as there is no search path for DLLs.
12822 hardcode_libdir_flag_spec_D='-L$libdir'
12823 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12824 allow_undefined_flag_D=unsupported
12825 always_export_symbols_D=no
12826 enable_shared_with_static_runtimes_D=yes
12827 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12829 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12830 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12831 # If the export-symbols file already is a .def file (1st line
12832 # is EXPORTS), use it as is; otherwise, prepend...
12833 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12834 cp $export_symbols $output_objdir/$soname.def;
12835 else
12836 echo EXPORTS > $output_objdir/$soname.def;
12837 cat $export_symbols >> $output_objdir/$soname.def;
12839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12840 else
12841 ld_shlibs_D=no
12845 haiku*)
12846 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847 link_all_deplibs_D=yes
12850 interix[3-9]*)
12851 hardcode_direct_D=no
12852 hardcode_shlibpath_var_D=no
12853 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12854 export_dynamic_flag_spec_D='${wl}-E'
12855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12856 # Instead, shared libraries are loaded at an image base (0x10000000 by
12857 # default) and relocated if they conflict, which is a slow very memory
12858 # consuming and fragmenting process. To avoid this, we pick a random,
12859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12861 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'
12862 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'
12865 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12866 tmp_diet=no
12867 if test "$host_os" = linux-dietlibc; then
12868 case $cc_basename in
12869 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12870 esac
12872 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12873 && test "$tmp_diet" = no
12874 then
12875 tmp_addflag=' $pic_flag'
12876 tmp_sharedflag='-shared'
12877 case $cc_basename,$host_cpu in
12878 pgcc*) # Portland Group C compiler
12879 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'
12880 tmp_addflag=' $pic_flag'
12882 pgf77* | pgf90* | pgf95* | pgfortran*)
12883 # Portland Group f77 and f90 compilers
12884 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'
12885 tmp_addflag=' $pic_flag -Mnomain' ;;
12886 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12887 tmp_addflag=' -i_dynamic' ;;
12888 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12889 tmp_addflag=' -i_dynamic -nofor_main' ;;
12890 ifc* | ifort*) # Intel Fortran compiler
12891 tmp_addflag=' -nofor_main' ;;
12892 lf95*) # Lahey Fortran 8.1
12893 whole_archive_flag_spec_D=
12894 tmp_sharedflag='--shared' ;;
12895 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12896 tmp_sharedflag='-qmkshrobj'
12897 tmp_addflag= ;;
12898 nvcc*) # Cuda Compiler Driver 2.2
12899 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'
12900 compiler_needs_object_D=yes
12902 esac
12903 case `$CC -V 2>&1 | sed 5q` in
12904 *Sun\ C*) # Sun C 5.9
12905 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'
12906 compiler_needs_object_D=yes
12907 tmp_sharedflag='-G' ;;
12908 *Sun\ F*) # Sun Fortran 8.3
12909 tmp_sharedflag='-G' ;;
12910 esac
12911 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12913 if test "x$supports_anon_versioning" = xyes; then
12914 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12916 echo "local: *; };" >> $output_objdir/$libname.ver~
12917 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12920 case $cc_basename in
12921 xlf* | bgf* | bgxlf* | mpixlf*)
12922 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12923 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12924 hardcode_libdir_flag_spec_D=
12925 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12926 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12927 if test "x$supports_anon_versioning" = xyes; then
12928 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12930 echo "local: *; };" >> $output_objdir/$libname.ver~
12931 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12934 esac
12935 else
12936 ld_shlibs_D=no
12940 netbsd*)
12941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12942 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12943 wlarc=
12944 else
12945 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950 solaris*)
12951 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12952 ld_shlibs_D=no
12953 cat <<_LT_EOF 1>&2
12955 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12956 *** create shared libraries on Solaris systems. Therefore, libtool
12957 *** is disabling shared libraries support. We urge you to upgrade GNU
12958 *** binutils to release 2.9.1 or newer. Another option is to modify
12959 *** your PATH or compiler configuration so that the native linker is
12960 *** used, and then restart.
12962 _LT_EOF
12963 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12964 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966 else
12967 ld_shlibs_D=no
12971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12972 case `$LD -v 2>&1` in
12973 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12974 ld_shlibs_D=no
12975 cat <<_LT_EOF 1>&2
12977 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12978 *** reliably create shared libraries on SCO systems. Therefore, libtool
12979 *** is disabling shared libraries support. We urge you to upgrade GNU
12980 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12981 *** your PATH or compiler configuration so that the native linker is
12982 *** used, and then restart.
12984 _LT_EOF
12987 # For security reasons, it is highly recommended that you always
12988 # use absolute paths for naming shared libraries, and exclude the
12989 # DT_RUNPATH tag from executables and libraries. But doing so
12990 # requires that you compile everything twice, which is a pain.
12991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12992 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12993 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12994 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12995 else
12996 ld_shlibs_D=no
12999 esac
13002 sunos4*)
13003 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13004 wlarc=
13005 hardcode_direct_D=yes
13006 hardcode_shlibpath_var_D=no
13010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13013 else
13014 ld_shlibs_D=no
13017 esac
13019 if test "$ld_shlibs_D" = no; then
13020 runpath_var=
13021 hardcode_libdir_flag_spec_D=
13022 export_dynamic_flag_spec_D=
13023 whole_archive_flag_spec_D=
13025 else
13026 # PORTME fill in a description of your system's linker (not GNU ld)
13027 case $host_os in
13028 aix3*)
13029 allow_undefined_flag_D=unsupported
13030 always_export_symbols_D=yes
13031 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'
13032 # Note: this linker hardcodes the directories in LIBPATH if there
13033 # are no directories specified by -L.
13034 hardcode_minus_L_D=yes
13035 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13036 # Neither direct hardcoding nor static linking is supported with a
13037 # broken collect2.
13038 hardcode_direct_D=unsupported
13042 aix[4-9]*)
13043 if test "$host_cpu" = ia64; then
13044 # On IA64, the linker does run time linking by default, so we don't
13045 # have to do anything special.
13046 aix_use_runtimelinking=no
13047 exp_sym_flag='-Bexport'
13048 no_entry_flag=""
13049 else
13050 # If we're using GNU nm, then we don't want the "-C" option.
13051 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13052 # Also, AIX nm treats weak defined symbols like other global
13053 # defined symbols, whereas GNU nm marks them as "W".
13054 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13055 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'
13056 else
13057 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'
13059 aix_use_runtimelinking=no
13061 # Test if we are trying to use run time linking or normal
13062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13063 # need to do runtime linking.
13064 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13065 for ld_flag in $LDFLAGS; do
13066 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13067 aix_use_runtimelinking=yes
13068 break
13070 done
13072 esac
13074 exp_sym_flag='-bexport'
13075 no_entry_flag='-bnoentry'
13078 # When large executables or shared objects are built, AIX ld can
13079 # have problems creating the table of contents. If linking a library
13080 # or program results in "error TOC overflow" add -mminimal-toc to
13081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13084 archive_cmds_D=''
13085 hardcode_direct_D=yes
13086 hardcode_direct_absolute_D=yes
13087 hardcode_libdir_separator_D=':'
13088 link_all_deplibs_D=yes
13089 file_list_spec_D='${wl}-f,'
13091 if test "$GCC" = yes; then
13092 case $host_os in aix4.[012]|aix4.[012].*)
13093 # We only want to do this on AIX 4.2 and lower, the check
13094 # below for broken collect2 doesn't work under 4.3+
13095 collect2name=`${CC} -print-prog-name=collect2`
13096 if test -f "$collect2name" &&
13097 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13098 then
13099 # We have reworked collect2
13101 else
13102 # We have old collect2
13103 hardcode_direct_D=unsupported
13104 # It fails to find uninstalled libraries when the uninstalled
13105 # path is not listed in the libpath. Setting hardcode_minus_L
13106 # to unsupported forces relinking
13107 hardcode_minus_L_D=yes
13108 hardcode_libdir_flag_spec_D='-L$libdir'
13109 hardcode_libdir_separator_D=
13112 esac
13113 shared_flag='-shared'
13114 if test "$aix_use_runtimelinking" = yes; then
13115 shared_flag="$shared_flag "'${wl}-G'
13117 else
13118 # not using gcc
13119 if test "$host_cpu" = ia64; then
13120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13121 # chokes on -Wl,-G. The following line is correct:
13122 shared_flag='-G'
13123 else
13124 if test "$aix_use_runtimelinking" = yes; then
13125 shared_flag='${wl}-G'
13126 else
13127 shared_flag='${wl}-bM:SRE'
13132 export_dynamic_flag_spec_D='${wl}-bexpall'
13133 # It seems that -bexpall does not export symbols beginning with
13134 # underscore (_), so it is better to generate a list of symbols to export.
13135 always_export_symbols_D=yes
13136 if test "$aix_use_runtimelinking" = yes; then
13137 # Warning - without using the other runtime loading flags (-brtl),
13138 # -berok will link without error, but may produce a broken library.
13139 allow_undefined_flag_D='-berok'
13140 # Determine the default libpath from the value encoded in an
13141 # empty executable.
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13146 main ()
13150 return 0;
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13155 lt_aix_libpath_sed='
13156 /Import File Strings/,/^$/ {
13157 /^0/ {
13158 s/^0 *\(.*\)$/\1/
13162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13163 # Check for a 64-bit object if we didn't find anything.
13164 if test -z "$aix_libpath"; then
13165 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13172 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13173 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"
13174 else
13175 if test "$host_cpu" = ia64; then
13176 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13177 allow_undefined_flag_D="-z nodefs"
13178 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"
13179 else
13180 # Determine the default libpath from the value encoded in an
13181 # empty executable.
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13186 main ()
13190 return 0;
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13195 lt_aix_libpath_sed='
13196 /Import File Strings/,/^$/ {
13197 /^0/ {
13198 s/^0 *\(.*\)$/\1/
13202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13203 # Check for a 64-bit object if we didn't find anything.
13204 if test -z "$aix_libpath"; then
13205 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13212 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13213 # Warning - without using the other run time loading flags,
13214 # -berok will link without error, but may produce a broken library.
13215 no_undefined_flag_D=' ${wl}-bernotok'
13216 allow_undefined_flag_D=' ${wl}-berok'
13217 if test "$with_gnu_ld" = yes; then
13218 # We only use this code for GNU lds that support --whole-archive.
13219 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13220 else
13221 # Exported symbols can be pulled into shared objects from archives
13222 whole_archive_flag_spec_D='$convenience'
13224 archive_cmds_need_lc_D=yes
13225 # This is similar to how AIX traditionally builds its shared libraries.
13226 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'
13231 amigaos*)
13232 case $host_cpu in
13233 powerpc)
13234 # see comment about AmigaOS4 .so support
13235 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236 archive_expsym_cmds_D=''
13238 m68k)
13239 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)'
13240 hardcode_libdir_flag_spec_D='-L$libdir'
13241 hardcode_minus_L_D=yes
13243 esac
13246 bsdi[45]*)
13247 export_dynamic_flag_spec_D=-rdynamic
13250 cygwin* | mingw* | pw32* | cegcc*)
13251 # When not using gcc, we currently assume that we are using
13252 # Microsoft Visual C++.
13253 # hardcode_libdir_flag_spec is actually meaningless, as there is
13254 # no search path for DLLs.
13255 hardcode_libdir_flag_spec_D=' '
13256 allow_undefined_flag_D=unsupported
13257 # Tell ltmain to make .lib files, not .a files.
13258 libext=lib
13259 # Tell ltmain to make .dll files, not .so files.
13260 shrext_cmds=".dll"
13261 # FIXME: Setting linknames here is a bad hack.
13262 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13263 # The linker will automatically build a .lib file if we build a DLL.
13264 old_archive_from_new_cmds_D='true'
13265 # FIXME: Should let the user specify the lib program.
13266 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13267 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13268 enable_shared_with_static_runtimes_D=yes
13271 darwin* | rhapsody*)
13274 archive_cmds_need_lc_D=no
13275 hardcode_direct_D=no
13276 hardcode_automatic_D=yes
13277 hardcode_shlibpath_var_D=unsupported
13278 if test "$lt_cv_ld_force_load" = "yes"; then
13279 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\"`'
13280 else
13281 whole_archive_flag_spec_D=''
13283 link_all_deplibs_D=yes
13284 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13285 case $cc_basename in
13286 ifort*) _lt_dar_can_shared=yes ;;
13287 *) _lt_dar_can_shared=$GCC ;;
13288 esac
13289 if test "$_lt_dar_can_shared" = "yes"; then
13290 output_verbose_link_cmd=func_echo_all
13291 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}"
13292 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13293 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}"
13294 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}"
13296 else
13297 ld_shlibs_D=no
13302 dgux*)
13303 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 hardcode_libdir_flag_spec_D='-L$libdir'
13305 hardcode_shlibpath_var_D=no
13308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13309 # support. Future versions do this automatically, but an explicit c++rt0.o
13310 # does not break anything, and helps significantly (at the cost of a little
13311 # extra space).
13312 freebsd2.2*)
13313 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13314 hardcode_libdir_flag_spec_D='-R$libdir'
13315 hardcode_direct_D=yes
13316 hardcode_shlibpath_var_D=no
13319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13320 freebsd2.*)
13321 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13322 hardcode_direct_D=yes
13323 hardcode_minus_L_D=yes
13324 hardcode_shlibpath_var_D=no
13327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13328 freebsd* | dragonfly*)
13329 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13330 hardcode_libdir_flag_spec_D='-R$libdir'
13331 hardcode_direct_D=yes
13332 hardcode_shlibpath_var_D=no
13335 hpux9*)
13336 if test "$GCC" = yes; then
13337 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'
13338 else
13339 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'
13341 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13342 hardcode_libdir_separator_D=:
13343 hardcode_direct_D=yes
13345 # hardcode_minus_L: Not really in the search PATH,
13346 # but as the default location of the library.
13347 hardcode_minus_L_D=yes
13348 export_dynamic_flag_spec_D='${wl}-E'
13351 hpux10*)
13352 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13353 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13354 else
13355 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13357 if test "$with_gnu_ld" = no; then
13358 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13359 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13360 hardcode_libdir_separator_D=:
13361 hardcode_direct_D=yes
13362 hardcode_direct_absolute_D=yes
13363 export_dynamic_flag_spec_D='${wl}-E'
13364 # hardcode_minus_L: Not really in the search PATH,
13365 # but as the default location of the library.
13366 hardcode_minus_L_D=yes
13370 hpux11*)
13371 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13372 case $host_cpu in
13373 hppa*64*)
13374 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13376 ia64*)
13377 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13380 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13382 esac
13383 else
13384 case $host_cpu in
13385 hppa*64*)
13386 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 ia64*)
13389 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13392 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13394 esac
13396 if test "$with_gnu_ld" = no; then
13397 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13398 hardcode_libdir_separator_D=:
13400 case $host_cpu in
13401 hppa*64*|ia64*)
13402 hardcode_direct_D=no
13403 hardcode_shlibpath_var_D=no
13406 hardcode_direct_D=yes
13407 hardcode_direct_absolute_D=yes
13408 export_dynamic_flag_spec_D='${wl}-E'
13410 # hardcode_minus_L: Not really in the search PATH,
13411 # but as the default location of the library.
13412 hardcode_minus_L_D=yes
13414 esac
13418 irix5* | irix6* | nonstopux*)
13419 if test "$GCC" = yes; then
13420 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'
13421 # Try to use the -exported_symbol ld option, if it does not
13422 # work, assume that -exports_file does not work either and
13423 # implicitly export all symbols.
13424 save_LDFLAGS="$LDFLAGS"
13425 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13428 int foo(void) {}
13429 _ACEOF
13430 if ac_fn_c_try_link "$LINENO"; then :
13431 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'
13434 rm -f core conftest.err conftest.$ac_objext \
13435 conftest$ac_exeext conftest.$ac_ext
13436 LDFLAGS="$save_LDFLAGS"
13437 else
13438 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'
13439 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'
13441 archive_cmds_need_lc_D='no'
13442 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13443 hardcode_libdir_separator_D=:
13444 inherit_rpath_D=yes
13445 link_all_deplibs_D=yes
13448 netbsd*)
13449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13450 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13451 else
13452 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13454 hardcode_libdir_flag_spec_D='-R$libdir'
13455 hardcode_direct_D=yes
13456 hardcode_shlibpath_var_D=no
13459 newsos6)
13460 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 hardcode_direct_D=yes
13462 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13463 hardcode_libdir_separator_D=:
13464 hardcode_shlibpath_var_D=no
13467 *nto* | *qnx*)
13470 openbsd*)
13471 if test -f /usr/libexec/ld.so; then
13472 hardcode_direct_D=yes
13473 hardcode_shlibpath_var_D=no
13474 hardcode_direct_absolute_D=yes
13475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13476 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13478 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13479 export_dynamic_flag_spec_D='${wl}-E'
13480 else
13481 case $host_os in
13482 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13483 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13484 hardcode_libdir_flag_spec_D='-R$libdir'
13487 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13488 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13490 esac
13492 else
13493 ld_shlibs_D=no
13497 os2*)
13498 hardcode_libdir_flag_spec_D='-L$libdir'
13499 hardcode_minus_L_D=yes
13500 allow_undefined_flag_D=unsupported
13501 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'
13502 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13505 osf3*)
13506 if test "$GCC" = yes; then
13507 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13508 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'
13509 else
13510 allow_undefined_flag_D=' -expect_unresolved \*'
13511 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'
13513 archive_cmds_need_lc_D='no'
13514 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13515 hardcode_libdir_separator_D=:
13518 osf4* | osf5*) # as osf3* with the addition of -msym flag
13519 if test "$GCC" = yes; then
13520 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13521 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'
13522 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13523 else
13524 allow_undefined_flag_D=' -expect_unresolved \*'
13525 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'
13526 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~
13527 $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'
13529 # Both c and cxx compiler support -rpath directly
13530 hardcode_libdir_flag_spec_D='-rpath $libdir'
13532 archive_cmds_need_lc_D='no'
13533 hardcode_libdir_separator_D=:
13536 solaris*)
13537 no_undefined_flag_D=' -z defs'
13538 if test "$GCC" = yes; then
13539 wlarc='${wl}'
13540 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13541 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13542 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13543 else
13544 case `$CC -V 2>&1` in
13545 *"Compilers 5.0"*)
13546 wlarc=''
13547 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13549 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13552 wlarc='${wl}'
13553 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13557 esac
13559 hardcode_libdir_flag_spec_D='-R$libdir'
13560 hardcode_shlibpath_var_D=no
13561 case $host_os in
13562 solaris2.[0-5] | solaris2.[0-5].*) ;;
13564 # The compiler driver will combine and reorder linker options,
13565 # but understands `-z linker_flag'. GCC discards it without `$wl',
13566 # but is careful enough not to reorder.
13567 # Supported since Solaris 2.6 (maybe 2.5.1?)
13568 if test "$GCC" = yes; then
13569 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13570 else
13571 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13574 esac
13575 link_all_deplibs_D=yes
13578 sunos4*)
13579 if test "x$host_vendor" = xsequent; then
13580 # Use $CC to link under sequent, because it throws in some extra .o
13581 # files that make .init and .fini sections work.
13582 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13583 else
13584 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_libdir_flag_spec_D='-L$libdir'
13587 hardcode_direct_D=yes
13588 hardcode_minus_L_D=yes
13589 hardcode_shlibpath_var_D=no
13592 sysv4)
13593 case $host_vendor in
13594 sni)
13595 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_direct_D=yes # is this really true???
13598 siemens)
13599 ## LD is ld it makes a PLAMLIB
13600 ## CC just makes a GrossModule.
13601 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13602 reload_cmds_D='$CC -r -o $output$reload_objs'
13603 hardcode_direct_D=no
13605 motorola)
13606 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13609 esac
13610 runpath_var='LD_RUN_PATH'
13611 hardcode_shlibpath_var_D=no
13614 sysv4.3*)
13615 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13616 hardcode_shlibpath_var_D=no
13617 export_dynamic_flag_spec_D='-Bexport'
13620 sysv4*MP*)
13621 if test -d /usr/nec; then
13622 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_shlibpath_var_D=no
13624 runpath_var=LD_RUN_PATH
13625 hardcode_runpath_var=yes
13626 ld_shlibs_D=yes
13630 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13631 no_undefined_flag_D='${wl}-z,text'
13632 archive_cmds_need_lc_D=no
13633 hardcode_shlibpath_var_D=no
13634 runpath_var='LD_RUN_PATH'
13636 if test "$GCC" = yes; then
13637 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13638 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 else
13640 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 sysv5* | sco3.2v5* | sco5v6*)
13646 # Note: We can NOT use -z defs as we might desire, because we do not
13647 # link with -lc, and that would cause any symbols used from libc to
13648 # always be unresolved, which means just about no library would
13649 # ever link correctly. If we're not using GNU ld we use -z text
13650 # though, which does catch some bad symbols but isn't as heavy-handed
13651 # as -z defs.
13652 no_undefined_flag_D='${wl}-z,text'
13653 allow_undefined_flag_D='${wl}-z,nodefs'
13654 archive_cmds_need_lc_D=no
13655 hardcode_shlibpath_var_D=no
13656 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13657 hardcode_libdir_separator_D=':'
13658 link_all_deplibs_D=yes
13659 export_dynamic_flag_spec_D='${wl}-Bexport'
13660 runpath_var='LD_RUN_PATH'
13662 if test "$GCC" = yes; then
13663 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13664 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665 else
13666 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 uts4*)
13672 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13673 hardcode_libdir_flag_spec_D='-L$libdir'
13674 hardcode_shlibpath_var_D=no
13678 ld_shlibs_D=no
13680 esac
13682 if test x$host_vendor = xsni; then
13683 case $host in
13684 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13685 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13687 esac
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13692 $as_echo "$ld_shlibs_D" >&6; }
13693 test "$ld_shlibs_D" = no && can_build_shared=no
13695 with_gnu_ld_D=$with_gnu_ld
13703 # Do we need to explicitly link libc?
13705 case "x$archive_cmds_need_lc_D" in
13706 x|xyes)
13707 # Assume -lc should be added
13708 archive_cmds_need_lc_D=yes
13710 if test "$enable_shared" = yes && test "$GCC" = yes; then
13711 case $archive_cmds_D in
13712 *'~'*)
13713 # FIXME: we may have to deal with multi-command sequences.
13715 '$CC '*)
13716 # Test whether the compiler implicitly links with -lc since on some
13717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13718 # to ld, don't add -lc before -lgcc.
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13720 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13721 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 $RM conftest*
13725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13728 (eval $ac_compile) 2>&5
13729 ac_status=$?
13730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13731 test $ac_status = 0; } 2>conftest.err; then
13732 soname=conftest
13733 lib=conftest
13734 libobjs=conftest.$ac_objext
13735 deplibs=
13736 wl=$lt_prog_compiler_wl_D
13737 pic_flag=$lt_prog_compiler_pic_D
13738 compiler_flags=-v
13739 linker_flags=-v
13740 verstring=
13741 output_objdir=.
13742 libname=conftest
13743 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13744 allow_undefined_flag_D=
13745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13746 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13747 ac_status=$?
13748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13749 test $ac_status = 0; }
13750 then
13751 lt_cv_archive_cmds_need_lc_D=no
13752 else
13753 lt_cv_archive_cmds_need_lc_D=yes
13755 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13756 else
13757 cat conftest.err 1>&5
13759 $RM conftest*
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13763 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13764 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13766 esac
13769 esac
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13835 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13836 hardcode_action_D=
13837 if test -n "$hardcode_libdir_flag_spec_D" ||
13838 test -n "$runpath_var_D" ||
13839 test "X$hardcode_automatic_D" = "Xyes" ; then
13841 # We can hardcode non-existent directories.
13842 if test "$hardcode_direct_D" != no &&
13843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13844 # have to relink, otherwise we might link with an installed library
13845 # when we should be linking with a yet-to-be-installed one
13846 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13847 test "$hardcode_minus_L_D" != no; then
13848 # Linking always hardcodes the temporary library directory.
13849 hardcode_action_D=relink
13850 else
13851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13852 hardcode_action_D=immediate
13854 else
13855 # We cannot hardcode anything, or else we can only hardcode existing
13856 # directories.
13857 hardcode_action_D=unsupported
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13860 $as_echo "$hardcode_action_D" >&6; }
13862 if test "$hardcode_action_D" = relink ||
13863 test "$inherit_rpath_D" = yes; then
13864 # Fast installation is not supported
13865 enable_fast_install=no
13866 elif test "$shlibpath_overrides_runpath" = yes ||
13867 test "$enable_shared" = no; then
13868 # Fast installation is not necessary
13869 enable_fast_install=needless
13880 ac_ext=c
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13887 GCC=$lt_save_GCC
13888 CC=$lt_save_CC
13889 CFLAGS=$lt_save_CFLAGS
13891 GDCFLAGS=$gdc_save_DFLAGS
13894 # libtool variables for Phobos shared and position-independent compiles.
13896 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13897 # creating shared objects. Default: -fversion=Shared.
13899 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13900 # creating position-independent objects. This varies with the target
13901 # hardware and operating system, but is often: -fPIC.
13903 # The distinction between pic and shared compilation flags is not present in
13904 # libtool, and so we make it here. How it is handled is that in shared
13905 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13906 # ensure that conditional compilation of shared runtime code is compiled in.
13907 # The original PIC flags are then used in the compilation of every object.
13909 # Why are objects destined for libgphobos.a compiled with -fPIC?
13910 # Because -fPIC is not harmful to use for objects destined for static
13911 # libraries. In addition, using -fPIC will allow the use of static
13912 # libgphobos.a in the creation of other D shared libraries.
13913 if test "$enable_shared" = yes; then
13914 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13915 phobos_compiler_shared_flag="-fversion=Shared"
13916 else
13917 phobos_compiler_pic_flag=
13918 phobos_compiler_shared_flag=
13923 # Override the libtool's pic_flag and pic_mode.
13924 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13925 # NB: this impacts --with-pic and --without-pic.
13926 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13927 pic_mode='default'
13929 # Determine what GCC version number to use in filesystem paths.
13931 get_gcc_base_ver="cat"
13933 # Check whether --with-gcc-major-version-only was given.
13934 if test "${with_gcc_major_version_only+set}" = set; then :
13935 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13936 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13944 # libphobos/libdruntime specific options and feature detection
13946 # These need to be absolute paths, yet at the same time need to
13947 # canonicalize only relative paths, because then amd will not unmount
13948 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13949 libphobos_builddir=`${PWDCMD-pwd}`
13950 case $srcdir in
13951 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13952 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13953 esac
13958 if test ${multilib} = yes; then
13959 multilib_arg="--enable-multilib"
13960 else
13961 multilib_arg=
13965 # Check whether --enable-werror was given.
13966 if test "${enable_werror+set}" = set; then :
13967 enableval=$enable_werror;
13970 WERROR_FLAG=""
13971 if test "x$enable_werror" = "xyes"; then
13972 WERROR_FLAG="-Werror"
13976 # Check whether --enable-druntime-gc was given.
13977 if test "${enable_druntime_gc+set}" = set; then :
13978 enableval=$enable_druntime_gc; enable_druntime_gc=no
13979 else
13980 enable_druntime_gc=yes
13984 if test "$enable_druntime_gc" = "yes"; then
13985 DRUNTIME_GC_ENABLE_TRUE=
13986 DRUNTIME_GC_ENABLE_FALSE='#'
13987 else
13988 DRUNTIME_GC_ENABLE_TRUE='#'
13989 DRUNTIME_GC_ENABLE_FALSE=
13994 druntime_target_cpu_parsed=""
13995 case "$target_cpu" in
13996 aarch64*)
13997 druntime_target_cpu_parsed="aarch64"
13999 arm*) druntime_target_cpu_parsed="arm"
14001 mips*) druntime_target_cpu_parsed="mips"
14003 powerpc) druntime_target_cpu_parsed="powerpc"
14005 powerpc64)
14006 druntime_target_cpu_parsed="powerpc64"
14008 i[34567]86|x86_64)
14009 druntime_target_cpu_parsed="x86"
14011 esac
14012 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14013 DRUNTIME_CPU_AARCH64_TRUE=
14014 DRUNTIME_CPU_AARCH64_FALSE='#'
14015 else
14016 DRUNTIME_CPU_AARCH64_TRUE='#'
14017 DRUNTIME_CPU_AARCH64_FALSE=
14020 if test "$druntime_target_cpu_parsed" = "arm"; then
14021 DRUNTIME_CPU_ARM_TRUE=
14022 DRUNTIME_CPU_ARM_FALSE='#'
14023 else
14024 DRUNTIME_CPU_ARM_TRUE='#'
14025 DRUNTIME_CPU_ARM_FALSE=
14028 if test "$druntime_target_cpu_parsed" = "mips"; then
14029 DRUNTIME_CPU_MIPS_TRUE=
14030 DRUNTIME_CPU_MIPS_FALSE='#'
14031 else
14032 DRUNTIME_CPU_MIPS_TRUE='#'
14033 DRUNTIME_CPU_MIPS_FALSE=
14036 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14037 DRUNTIME_CPU_POWERPC_TRUE=
14038 DRUNTIME_CPU_POWERPC_FALSE='#'
14039 else
14040 DRUNTIME_CPU_POWERPC_TRUE='#'
14041 DRUNTIME_CPU_POWERPC_FALSE=
14044 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14045 DRUNTIME_CPU_POWERPC64_TRUE=
14046 DRUNTIME_CPU_POWERPC64_FALSE='#'
14047 else
14048 DRUNTIME_CPU_POWERPC64_TRUE='#'
14049 DRUNTIME_CPU_POWERPC64_FALSE=
14052 if test "$druntime_target_cpu_parsed" = "x86"; then
14053 DRUNTIME_CPU_X86_TRUE=
14054 DRUNTIME_CPU_X86_FALSE='#'
14055 else
14056 DRUNTIME_CPU_X86_TRUE='#'
14057 DRUNTIME_CPU_X86_FALSE=
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14063 $as_echo_n "checking for target OS... " >&6; }
14064 if ${druntime_cv_target_os+:} false; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14070 $as_echo "$druntime_cv_target_os" >&6; }
14071 if test -z "$druntime_cv_target_os"; then :
14072 as_fn_error $? "can't detect target OS" "$LINENO" 5
14077 # Check whether --enable-unix was given.
14078 if test "${enable_unix+set}" = set; then :
14079 enableval=$enable_unix; :
14080 else
14081 enable_unix=auto
14085 case "$druntime_cv_target_os" in
14086 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14087 esac
14088 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14089 enable_unix=yes
14091 if test "$enable_unix" = "yes"; then
14092 DRUNTIME_OS_UNIX_TRUE=
14093 DRUNTIME_OS_UNIX_FALSE='#'
14094 else
14095 DRUNTIME_OS_UNIX_TRUE='#'
14096 DRUNTIME_OS_UNIX_FALSE=
14103 druntime_target_os_parsed=""
14104 case "$druntime_cv_target_os" in
14105 aix*) druntime_target_os_parsed="aix"
14107 *android*)
14108 druntime_target_os_parsed="android"
14110 darwin*) druntime_target_os_parsed="darwin"
14112 dragonfly*)
14113 druntime_target_os_parsed="dragonflybsd"
14115 freebsd*|k*bsd*-gnu)
14116 druntime_target_os_parsed="freebsd"
14118 openbsd*)
14119 druntime_target_os_parsed="openbsd"
14121 netbsd*)
14122 druntime_target_os_parsed="netbsd"
14124 linux*) druntime_target_os_parsed="linux"
14126 mingw*) druntime_target_os_parsed="mingw"
14128 *solaris*) druntime_target_os_parsed="solaris"
14129 esac
14130 if test "$druntime_target_os_parsed" = "aix"; then
14131 DRUNTIME_OS_AIX_TRUE=
14132 DRUNTIME_OS_AIX_FALSE='#'
14133 else
14134 DRUNTIME_OS_AIX_TRUE='#'
14135 DRUNTIME_OS_AIX_FALSE=
14138 if test "$druntime_target_os_parsed" = "android"; then
14139 DRUNTIME_OS_ANDROID_TRUE=
14140 DRUNTIME_OS_ANDROID_FALSE='#'
14141 else
14142 DRUNTIME_OS_ANDROID_TRUE='#'
14143 DRUNTIME_OS_ANDROID_FALSE=
14146 if test "$druntime_target_os_parsed" = "darwin"; then
14147 DRUNTIME_OS_DARWIN_TRUE=
14148 DRUNTIME_OS_DARWIN_FALSE='#'
14149 else
14150 DRUNTIME_OS_DARWIN_TRUE='#'
14151 DRUNTIME_OS_DARWIN_FALSE=
14154 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14155 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14156 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14157 else
14158 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14159 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14162 if test "$druntime_target_os_parsed" = "freebsd"; then
14163 DRUNTIME_OS_FREEBSD_TRUE=
14164 DRUNTIME_OS_FREEBSD_FALSE='#'
14165 else
14166 DRUNTIME_OS_FREEBSD_TRUE='#'
14167 DRUNTIME_OS_FREEBSD_FALSE=
14170 if test "$druntime_target_os_parsed" = "netbsd"; then
14171 DRUNTIME_OS_NETBSD_TRUE=
14172 DRUNTIME_OS_NETBSD_FALSE='#'
14173 else
14174 DRUNTIME_OS_NETBSD_TRUE='#'
14175 DRUNTIME_OS_NETBSD_FALSE=
14178 if test "$druntime_target_os_parsed" = "openbsd"; then
14179 DRUNTIME_OS_OPENBSD_TRUE=
14180 DRUNTIME_OS_OPENBSD_FALSE='#'
14181 else
14182 DRUNTIME_OS_OPENBSD_TRUE='#'
14183 DRUNTIME_OS_OPENBSD_FALSE=
14186 if test "$druntime_target_os_parsed" = "linux"; then
14187 DRUNTIME_OS_LINUX_TRUE=
14188 DRUNTIME_OS_LINUX_FALSE='#'
14189 else
14190 DRUNTIME_OS_LINUX_TRUE='#'
14191 DRUNTIME_OS_LINUX_FALSE=
14194 if test "$druntime_target_os_parsed" = "mingw"; then
14195 DRUNTIME_OS_MINGW_TRUE=
14196 DRUNTIME_OS_MINGW_FALSE='#'
14197 else
14198 DRUNTIME_OS_MINGW_TRUE='#'
14199 DRUNTIME_OS_MINGW_FALSE=
14202 if test "$druntime_target_os_parsed" = "solaris"; then
14203 DRUNTIME_OS_SOLARIS_TRUE=
14204 DRUNTIME_OS_SOLARIS_FALSE='#'
14205 else
14206 DRUNTIME_OS_SOLARIS_TRUE='#'
14207 DRUNTIME_OS_SOLARIS_FALSE=
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14214 $as_echo_n "checking for thread model used by GDC... " >&6; }
14215 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14217 $as_echo "$d_thread_model" >&6; }
14219 # Map from thread model to thread interface.
14221 case $d_thread_model in
14222 aix) DCFG_THREAD_MODEL="Posix" ;;
14223 lynx) DCFG_THREAD_MODEL="Posix" ;;
14224 posix) DCFG_THREAD_MODEL="Posix" ;;
14225 single) DCFG_THREAD_MODEL="Single" ;;
14226 win32) DCFG_THREAD_MODEL="Win32" ;;
14227 # TODO: These targets need porting.
14228 dce|mipssde|rtems|tpf|vxworks)
14229 DCFG_THREAD_MODEL="Single" ;;
14230 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14231 esac
14236 ac_ext=c
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14243 $as_echo_n "checking for ARM unwinder... " >&6; }
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 #include <unwind.h>
14248 main ()
14251 #if __ARM_EABI_UNWINDER__
14252 #error Yes, it is.
14253 #endif
14256 return 0;
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261 $as_echo "no" >&6; }
14262 DCFG_ARM_EABI_UNWINDER=false
14263 else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14266 DCFG_ARM_EABI_UNWINDER=true
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14271 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14272 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14273 else
14274 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14278 ac_ext=c
14279 ac_cpp='$CPP $CPPFLAGS'
14280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286 ac_ext=c
14287 ac_cpp='$CPP $CPPFLAGS'
14288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14293 $as_echo_n "checking for minfo section bracketing... " >&6; }
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 void* module_info_ptr __attribute__((section ("minfo")));
14298 extern void* __start_minfo __attribute__((visibility ("hidden")));
14299 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14301 int main()
14303 // Never run, just to prevent compiler from optimizing access
14304 return &__start_minfo == &__stop_minfo;
14307 _ACEOF
14308 if ac_fn_c_try_link "$LINENO"; then :
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310 $as_echo "yes" >&6; }
14311 DCFG_MINFO_BRACKETING=true
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315 DCFG_MINFO_BRACKETING=false
14317 rm -f core conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14320 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14321 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14322 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14323 else
14324 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14325 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14328 ac_ext=c
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14336 ac_ext=c
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14342 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14344 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14345 DCFG_DLPI_TLS_MODID=true
14346 else
14347 DCFG_DLPI_TLS_MODID=false
14351 ac_ext=c
14352 ac_cpp='$CPP $CPPFLAGS'
14353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359 case $target in
14360 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14361 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14362 # relocs. Work around by disabling TLS transitions. Not necessary
14363 # on 32-bit x86, but cannot be distinguished reliably in specs.
14364 druntime_ld_prog=`$CC -print-prog-name=ld`
14365 druntime_ld_gld=no
14366 druntime_ld_relax_transtls=no
14367 if test -n "$druntime_ld_prog" \
14368 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14369 druntime_ld_gld=yes
14370 else
14371 echo 'int main (void) { return 0; }' > conftest.c
14372 save_LDFLAGS="$LDFLAGS"
14373 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14374 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14375 druntime_ld_relax_transtls=yes
14377 LDFLAGS="$save_LDFLAGS"
14378 rm -f conftest.c conftest
14380 if test "$druntime_ld_relax_transtls" = "yes"; then
14381 OS_LINK_SPEC='-z relax=transtls'
14384 esac
14388 ac_ext=c
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394 DCFG_HAVE_QSORT_R=false
14395 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14396 if test "x$ac_cv_func_qsort_r" = xyes; then :
14397 DCFG_HAVE_QSORT_R=true
14401 ac_ext=c
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14411 gdc_save_DFLAGS=$GDCFLAGS
14412 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14414 ac_ext=d
14415 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14416 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=yes
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14420 $as_echo_n "checking for library containing malloc... " >&6; }
14421 if ${ac_cv_search_malloc+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 ac_func_search_save_LIBS=$LIBS
14425 cat > conftest.$ac_ext <<_ACEOF
14426 module mod;
14427 extern(C) int malloc();
14429 extern(C) int main() {
14430 malloc(); return 0;
14432 _ACEOF
14433 for ac_lib in '' c; do
14434 if test -z "$ac_lib"; then
14435 ac_res="none required"
14436 else
14437 ac_res=-l$ac_lib
14438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14440 if ac_fn_d_try_link "$LINENO"; then :
14441 ac_cv_search_malloc=$ac_res
14443 rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext
14445 if ${ac_cv_search_malloc+:} false; then :
14446 break
14448 done
14449 if ${ac_cv_search_malloc+:} false; then :
14451 else
14452 ac_cv_search_malloc=no
14454 rm conftest.$ac_ext
14455 LIBS=$ac_func_search_save_LIBS
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14458 $as_echo "$ac_cv_search_malloc" >&6; }
14459 ac_res=$ac_cv_search_malloc
14460 if test "$ac_res" != no; then :
14461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466 enable_thread_lib=yes
14467 # Check whether --enable-thread-lib was given.
14468 if test "${enable_thread_lib+set}" = set; then :
14469 enableval=$enable_thread_lib;
14473 if test "x$enable_thread_lib" = "xyes"; then :
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14476 $as_echo_n "checking for library containing pthread_create... " >&6; }
14477 if ${ac_cv_search_pthread_create+:} false; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 ac_func_search_save_LIBS=$LIBS
14481 cat > conftest.$ac_ext <<_ACEOF
14482 module mod;
14483 extern(C) int pthread_create();
14485 extern(C) int main() {
14486 pthread_create(); return 0;
14488 _ACEOF
14489 for ac_lib in '' pthread; do
14490 if test -z "$ac_lib"; then
14491 ac_res="none required"
14492 else
14493 ac_res=-l$ac_lib
14494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14496 if ac_fn_d_try_link "$LINENO"; then :
14497 ac_cv_search_pthread_create=$ac_res
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext
14501 if ${ac_cv_search_pthread_create+:} false; then :
14502 break
14504 done
14505 if ${ac_cv_search_pthread_create+:} false; then :
14507 else
14508 ac_cv_search_pthread_create=no
14510 rm conftest.$ac_ext
14511 LIBS=$ac_func_search_save_LIBS
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14514 $as_echo "$ac_cv_search_pthread_create" >&6; }
14515 ac_res=$ac_cv_search_pthread_create
14516 if test "$ac_res" != no; then :
14517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14522 else
14524 if test "x$enable_thread_lib" = "xno"; then :
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14527 $as_echo_n "checking for thread library... " >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14529 $as_echo "disabled" >&6; }
14531 else
14533 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14535 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14536 if eval \${$as_ac_Lib+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 ac_check_lib_save_LIBS=$LIBS
14540 LIBS="-l$enable_thread_lib $LIBS"
14541 cat > conftest.$ac_ext <<_ACEOF
14542 module mod;
14543 extern(C) int pthread_create();
14545 extern(C) int main() {
14546 pthread_create(); return 0;
14548 _ACEOF
14549 if ac_fn_d_try_link "$LINENO"; then :
14550 eval "$as_ac_Lib=yes"
14551 else
14552 eval "$as_ac_Lib=no"
14554 rm -f core conftest.err conftest.$ac_objext \
14555 conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_lib_save_LIBS
14558 eval ac_res=\$$as_ac_Lib
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14560 $as_echo "$ac_res" >&6; }
14561 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14562 cat >>confdefs.h <<_ACEOF
14563 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14564 _ACEOF
14566 LIBS="-l$enable_thread_lib $LIBS"
14568 else
14570 as_fn_error $? "Thread library not found" "$LINENO" 5
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14580 $as_echo_n "checking for library containing cosf... " >&6; }
14581 if ${ac_cv_search_cosf+:} false; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 ac_func_search_save_LIBS=$LIBS
14585 cat > conftest.$ac_ext <<_ACEOF
14586 module mod;
14587 extern(C) int cosf();
14589 extern(C) int main() {
14590 cosf(); return 0;
14592 _ACEOF
14593 for ac_lib in '' m; do
14594 if test -z "$ac_lib"; then
14595 ac_res="none required"
14596 else
14597 ac_res=-l$ac_lib
14598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14600 if ac_fn_d_try_link "$LINENO"; then :
14601 ac_cv_search_cosf=$ac_res
14603 rm -f core conftest.err conftest.$ac_objext \
14604 conftest$ac_exeext
14605 if ${ac_cv_search_cosf+:} false; then :
14606 break
14608 done
14609 if ${ac_cv_search_cosf+:} false; then :
14611 else
14612 ac_cv_search_cosf=no
14614 rm conftest.$ac_ext
14615 LIBS=$ac_func_search_save_LIBS
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14618 $as_echo "$ac_cv_search_cosf" >&6; }
14619 ac_res=$ac_cv_search_cosf
14620 if test "$ac_res" != no; then :
14621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14626 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14627 if ${ac_cv_search_clock_gettime+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 ac_func_search_save_LIBS=$LIBS
14631 cat > conftest.$ac_ext <<_ACEOF
14632 module mod;
14633 extern(C) int clock_gettime();
14635 extern(C) int main() {
14636 clock_gettime(); return 0;
14638 _ACEOF
14639 for ac_lib in '' rt; do
14640 if test -z "$ac_lib"; then
14641 ac_res="none required"
14642 else
14643 ac_res=-l$ac_lib
14644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14646 if ac_fn_d_try_link "$LINENO"; then :
14647 ac_cv_search_clock_gettime=$ac_res
14649 rm -f core conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext
14651 if ${ac_cv_search_clock_gettime+:} false; then :
14652 break
14654 done
14655 if ${ac_cv_search_clock_gettime+:} false; then :
14657 else
14658 ac_cv_search_clock_gettime=no
14660 rm conftest.$ac_ext
14661 LIBS=$ac_func_search_save_LIBS
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14664 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14665 ac_res=$ac_cv_search_clock_gettime
14666 if test "$ac_res" != no; then :
14667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14672 # This checks to see if the host supports the compiler-generated builtins
14673 # for atomic operations for various integral sizes. Note, this is intended
14674 # to be an all-or-nothing switch, so all the atomic operations that are
14675 # used should be checked.
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14677 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14678 if ${druntime_cv_atomic_byte+:} false; then :
14679 $as_echo_n "(cached) " >&6
14680 else
14682 cat > conftest.$ac_ext <<_ACEOF
14683 module mod;
14684 import gcc.builtins;
14686 extern(C) int main() {
14688 shared(byte) c1;
14689 byte c2, c3;
14690 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14691 __atomic_load_1(&c1, 5);
14692 __atomic_store_1(&c1, c2, 5);
14693 return 0;
14696 _ACEOF
14697 if ac_fn_d_try_link "$LINENO"; then :
14698 druntime_cv_atomic_byte=yes
14699 else
14700 druntime_cv_atomic_byte=no
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14708 $as_echo "$druntime_cv_atomic_byte" >&6; }
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14711 $as_echo_n "checking for atomic builtins for short... " >&6; }
14712 if ${druntime_cv_atomic_short+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14716 cat > conftest.$ac_ext <<_ACEOF
14717 module mod;
14718 import gcc.builtins;
14720 extern(C) int main() {
14722 shared(short) c1;
14723 short c2, c3;
14724 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14725 __atomic_load_2(&c1, 5);
14726 __atomic_store_2(&c1, c2, 5);
14727 return 0;
14730 _ACEOF
14731 if ac_fn_d_try_link "$LINENO"; then :
14732 druntime_cv_atomic_short=yes
14733 else
14734 druntime_cv_atomic_short=no
14736 rm -f core conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14742 $as_echo "$druntime_cv_atomic_short" >&6; }
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14745 $as_echo_n "checking for atomic builtins for int... " >&6; }
14746 if ${druntime_cv_atomic_int+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14750 cat > conftest.$ac_ext <<_ACEOF
14751 module mod;
14752 import gcc.builtins;
14754 extern(C) int main() {
14756 shared(int) c1;
14757 int c2, c3;
14758 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14759 __atomic_load_4(&c1, 5);
14760 __atomic_store_4(&c1, c2, 5);
14761 return 0;
14764 _ACEOF
14765 if ac_fn_d_try_link "$LINENO"; then :
14766 druntime_cv_atomic_int=yes
14767 else
14768 druntime_cv_atomic_int=no
14770 rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14776 $as_echo "$druntime_cv_atomic_int" >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14779 $as_echo_n "checking for atomic builtins for long... " >&6; }
14780 if ${druntime_cv_atomic_long+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782 else
14784 cat > conftest.$ac_ext <<_ACEOF
14785 module mod;
14786 import gcc.builtins;
14788 extern(C) int main() {
14790 shared(long) c1;
14791 long c2, c3;
14792 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14793 __atomic_load_8(&c1, 5);
14794 __atomic_store_8(&c1, c2, 5);
14795 return 0;
14798 _ACEOF
14799 if ac_fn_d_try_link "$LINENO"; then :
14800 druntime_cv_atomic_long=yes
14801 else
14802 druntime_cv_atomic_long=no
14804 rm -f core conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14810 $as_echo "$druntime_cv_atomic_long" >&6; }
14812 # Have atomic builtin support if all but the long test above passes.
14813 DCFG_HAVE_ATOMIC_BUILTINS=false
14814 if test "$druntime_cv_atomic_byte" = yes \
14815 && test "$druntime_cv_atomic_short" = yes \
14816 && test "$druntime_cv_atomic_int" = yes; then \
14817 DCFG_HAVE_ATOMIC_BUILTINS=true
14820 # Have 64-bit atomic support if the long test above passes.
14821 DCFG_HAVE_64BIT_ATOMICS=false
14822 if test "$druntime_cv_atomic_long" = yes; then
14823 DCFG_HAVE_64BIT_ATOMICS=true
14829 ac_ext=c
14830 ac_cpp='$CPP $CPPFLAGS'
14831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14836 GDCFLAGS=$gdc_save_DFLAGS
14841 # Check whether --with-libatomic was given.
14842 if test "${with_libatomic+set}" = set; then :
14843 withval=$with_libatomic;
14847 DCFG_HAVE_LIBATOMIC=false
14848 LIBATOMIC=
14849 if test "x$with_libatomic" != "xno"; then :
14851 DCFG_HAVE_LIBATOMIC=true
14852 LIBATOMIC=../../libatomic/libatomic_convenience.la
14854 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14857 $as_echo_n "checking for libatomic... " >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14859 $as_echo "disabled" >&6; }
14867 ac_ext=c
14868 ac_cpp='$CPP $CPPFLAGS'
14869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14873 BACKTRACE_SUPPORTED=false
14874 BACKTRACE_USES_MALLOC=false
14875 BACKTRACE_SUPPORTS_THREADS=false
14876 LIBBACKTRACE=""
14879 # Check whether --with-libbacktrace was given.
14880 if test "${with_libbacktrace+set}" = set; then :
14881 withval=$with_libbacktrace;
14885 if test "x$with_libbacktrace" != "xno"; then :
14887 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14889 gdc_save_CPPFLAGS=$CPPFLAGS
14890 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14892 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14893 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14894 have_libbacktrace_h=true
14895 else
14896 have_libbacktrace_h=false
14901 if $have_libbacktrace_h; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14903 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14907 #include <backtrace-supported.h>
14908 #if BACKTRACE_SUPPORTED
14909 FOUND_LIBBACKTRACE_RESULT_GDC
14910 #endif
14912 _ACEOF
14913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14914 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14915 BACKTRACE_SUPPORTED=true
14916 else
14917 BACKTRACE_SUPPORTED=false
14919 rm -f conftest*
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14922 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14925 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 #include <backtrace-supported.h>
14930 #if BACKTRACE_USES_MALLOC
14931 FOUND_LIBBACKTRACE_RESULT_GDC
14932 #endif
14934 _ACEOF
14935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14936 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14937 BACKTRACE_USES_MALLOC=true
14938 else
14939 BACKTRACE_USES_MALLOC=false
14941 rm -f conftest*
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14944 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14947 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14951 #include <backtrace-supported.h>
14952 #if BACKTRACE_SUPPORTS_THREADS
14953 FOUND_LIBBACKTRACE_RESULT_GDC
14954 #endif
14956 _ACEOF
14957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14958 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14959 BACKTRACE_SUPPORTS_THREADS=true
14960 else
14961 BACKTRACE_SUPPORTS_THREADS=false
14963 rm -f conftest*
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14966 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14968 CPPFLAGS=$gdc_save_CPPFLAGS
14970 else
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14973 $as_echo_n "checking for libbacktrace... " >&6; }
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14975 $as_echo "disabled" >&6; }
14983 ac_ext=c
14984 ac_cpp='$CPP $CPPFLAGS'
14985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14991 # Libtool has already checked this, so re-use the inferred dlopen lib.
14992 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14994 LIBS="$LIBS $lt_cv_dlopen_libs"
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15000 $as_echo_n "checking for socket libraries... " >&6; }
15001 if ${druntime_cv_lib_sockets+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003 else
15004 druntime_cv_lib_sockets=
15005 druntime_check_both=no
15006 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15007 if test "x$ac_cv_func_connect" = xyes; then :
15008 druntime_check_socket=no
15009 else
15010 druntime_check_socket=yes
15013 if test "$druntime_check_socket" = "yes"; then
15014 unset ac_cv_func_connect
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15016 $as_echo_n "checking for main in -lsocket... " >&6; }
15017 if ${ac_cv_lib_socket_main+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lsocket $LIBS"
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15027 main ()
15029 return main ();
15031 return 0;
15033 _ACEOF
15034 if ac_fn_c_try_link "$LINENO"; then :
15035 ac_cv_lib_socket_main=yes
15036 else
15037 ac_cv_lib_socket_main=no
15039 rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15041 LIBS=$ac_check_lib_save_LIBS
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15044 $as_echo "$ac_cv_lib_socket_main" >&6; }
15045 if test "x$ac_cv_lib_socket_main" = xyes; then :
15046 druntime_cv_lib_sockets="-lsocket"
15047 else
15048 druntime_check_both=yes
15052 if test "$druntime_check_both" = "yes"; then
15053 druntime_old_libs=$LIBS
15054 LIBS="$LIBS -lsocket -lnsl"
15055 unset ac_cv_func_accept
15056 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15057 if test "x$ac_cv_func_accept" = xyes; then :
15058 druntime_check_nsl=no
15059 druntime_cv_lib_sockets="-lsocket -lnsl"
15062 unset ac_cv_func_accept
15063 LIBS=$druntime_old_libs
15065 unset ac_cv_func_gethostbyname
15066 druntime_old_libs="$LIBS"
15067 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15068 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15072 $as_echo_n "checking for main in -lnsl... " >&6; }
15073 if ${ac_cv_lib_nsl_main+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 ac_check_lib_save_LIBS=$LIBS
15077 LIBS="-lnsl $LIBS"
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15083 main ()
15085 return main ();
15087 return 0;
15089 _ACEOF
15090 if ac_fn_c_try_link "$LINENO"; then :
15091 ac_cv_lib_nsl_main=yes
15092 else
15093 ac_cv_lib_nsl_main=no
15095 rm -f core conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15100 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15101 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15102 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15110 $as_echo "$druntime_cv_lib_sockets" >&6; }
15111 LIBS="$LIBS $druntime_cv_lib_sockets"
15114 ac_ext=c
15115 ac_cpp='$CPP $CPPFLAGS'
15116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15120 LIBZ=""
15123 # Check whether --with-target-system-zlib was given.
15124 if test "${with_target_system_zlib+set}" = set; then :
15125 withval=$with_target_system_zlib;
15126 else
15127 with_target_system_zlib=no
15131 case "$with_target_system_zlib" in
15132 yes|no|auto) ;;
15133 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15134 esac
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15137 $as_echo_n "checking for system zlib... " >&6; }
15138 save_LIBS=$LIBS
15139 LIBS="$LIBS -lz"
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 #include <zlib.h>
15144 main ()
15146 gzopen("none", "rb")
15148 return 0;
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"; then :
15153 if test "$cross_compiling" = yes; then :
15154 system_zlib_found=no
15156 else
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15160 #include <zlib.h>
15161 int main() {
15162 gzFile file = gzopen("none", "rb");
15163 return 0;
15166 _ACEOF
15167 if ac_fn_c_try_run "$LINENO"; then :
15168 system_zlib_found=yes
15169 else
15170 system_zlib_found=no
15172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15173 conftest.$ac_objext conftest.beam conftest.$ac_ext
15177 else
15178 system_zlib_found=no
15180 rm -f core conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$save_LIBS
15184 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15186 $as_echo "found" >&6; }
15187 LIBS="$LIBS -lz"
15188 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15189 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15190 else
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15192 $as_echo "just compiled" >&6; }
15193 LIBZ=../../zlib/libz_convenience.la
15197 ac_ext=c
15198 ac_cpp='$CPP $CPPFLAGS'
15199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15208 $as_echo_n "checking D GCC version... " >&6; }
15209 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15211 $as_echo "$gcc_version" >&6; }
15215 # Check whether --with-cross-host was given.
15216 if test "${with_cross_host+set}" = set; then :
15217 withval=$with_cross_host;
15221 libphobos_toolexecdir=no
15222 libphobos_toolexeclibdir=no
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15225 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15226 # Check whether --enable-version-specific-runtime-libs was given.
15227 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15228 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15229 yes) version_specific_libs=yes ;;
15230 no) version_specific_libs=no ;;
15231 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15232 esac
15233 else
15234 version_specific_libs=no
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15238 $as_echo "$version_specific_libs" >&6; }
15240 # Version-specific runtime libs processing.
15241 if test $version_specific_libs = yes; then
15242 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15243 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15244 else
15245 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15246 # Install a library built with a cross compiler in tooldir, not libdir.
15247 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15248 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15249 libphobos_toolexeclibdir='${toolexecdir}/lib'
15250 else
15251 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15252 libphobos_toolexeclibdir='${libdir}'
15254 multi_os_directory=`$GDC -print-multi-os-directory`
15255 case $multi_os_directory in
15256 .) ;; # Avoid trailing /.
15257 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15258 esac
15263 # Default case for install directory for D sources files.
15264 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15269 $as_echo_n "checking for --enable-libphobos... " >&6; }
15270 # Check whether --enable-libphobos was given.
15271 if test "${enable_libphobos+set}" = set; then :
15272 enableval=$enable_libphobos;
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15276 $as_echo "$enable_libphobos" >&6; }
15278 # See if supported.
15279 unset LIBPHOBOS_SUPPORTED
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15281 $as_echo_n "checking for host support for libphobos... " >&6; }
15282 . ${srcdir}/configure.tgt
15283 case ${host} in
15284 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15285 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15286 # relatively low linelength limit.
15287 as_prog=`$CC -print-prog-name=as`
15288 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15289 druntime_cv_use_gas=yes;
15290 else
15291 druntime_cv_use_gas=no;
15293 rm -f a.out
15294 if test x$druntime_cv_use_gas = xno; then
15295 LIBPHOBOS_SUPPORTED=no
15297 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15298 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15299 LIBPHOBOS_SUPPORTED=no
15302 esac
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15304 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15306 # Decide if it's usable.
15307 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15308 *:no) use_libphobos=no ;;
15309 *:yes) use_libphobos=yes ;;
15310 yes:*) use_libphobos=yes ;;
15311 *:*) use_libphobos=no ;;
15312 esac
15313 if test x$use_libphobos = xyes; then
15314 ENABLE_LIBPHOBOS_TRUE=
15315 ENABLE_LIBPHOBOS_FALSE='#'
15316 else
15317 ENABLE_LIBPHOBOS_TRUE='#'
15318 ENABLE_LIBPHOBOS_FALSE=
15322 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15323 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15324 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15325 else
15326 DRTSTUFF_SPEC=/dev/null
15330 # Add dependencies for libgphobos.spec file
15331 SPEC_PHOBOS_DEPS="$LIBS"
15334 # Libdruntime / phobos soname version
15335 libtool_VERSION=76:3:0
15338 # Set default flags (after DRUNTIME_WERROR!)
15339 if test -z "$GDCFLAGS"; then
15340 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15344 if test -z "$GDCFLAGSX"; then
15345 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15349 # Sanity check for the cross-compilation case:
15350 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15351 if test "x$ac_cv_header_stdio_h" = xyes; then :
15353 else
15354 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15359 ac_config_files="$ac_config_files Makefile"
15362 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15364 ac_config_files="$ac_config_files src/libgphobos.spec"
15366 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15369 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15370 # that multilib installs will end up installed in the correct place.
15371 # The testsuite needs it for multilib-aware ABI baseline files.
15372 # To work around this not being passed down from config-ml.in ->
15373 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15374 # append it here. Only modify Makefiles that have just been created.
15376 # Also, get rid of this simulated-VPATH thing that automake does.
15377 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15380 cat >confcache <<\_ACEOF
15381 # This file is a shell script that caches the results of configure
15382 # tests run on this system so they can be shared between configure
15383 # scripts and configure runs, see configure's option --config-cache.
15384 # It is not useful on other systems. If it contains results you don't
15385 # want to keep, you may remove or edit it.
15387 # config.status only pays attention to the cache file if you give it
15388 # the --recheck option to rerun configure.
15390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15392 # following values.
15394 _ACEOF
15396 # The following way of writing the cache mishandles newlines in values,
15397 # but we know of no workaround that is simple, portable, and efficient.
15398 # So, we kill variables containing newlines.
15399 # Ultrix sh set writes to stderr and can't be redirected directly,
15400 # and sets the high bit in the cache file unless we assign to the vars.
15402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15403 eval ac_val=\$$ac_var
15404 case $ac_val in #(
15405 *${as_nl}*)
15406 case $ac_var in #(
15407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15409 esac
15410 case $ac_var in #(
15411 _ | IFS | as_nl) ;; #(
15412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15413 *) { eval $ac_var=; unset $ac_var;} ;;
15414 esac ;;
15415 esac
15416 done
15418 (set) 2>&1 |
15419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15420 *${as_nl}ac_space=\ *)
15421 # `set' does not quote correctly, so add quotes: double-quote
15422 # substitution turns \\\\ into \\, and sed turns \\ into \.
15423 sed -n \
15424 "s/'/'\\\\''/g;
15425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15426 ;; #(
15428 # `set' quotes correctly as required by POSIX, so do not add quotes.
15429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15431 esac |
15432 sort
15434 sed '
15435 /^ac_cv_env_/b end
15436 t clear
15437 :clear
15438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15439 t end
15440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15441 :end' >>confcache
15442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15443 if test -w "$cache_file"; then
15444 if test "x$cache_file" != "x/dev/null"; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15446 $as_echo "$as_me: updating cache $cache_file" >&6;}
15447 if test ! -f "$cache_file" || test -h "$cache_file"; then
15448 cat confcache >"$cache_file"
15449 else
15450 case $cache_file in #(
15451 */* | ?:*)
15452 mv -f confcache "$cache_file"$$ &&
15453 mv -f "$cache_file"$$ "$cache_file" ;; #(
15455 mv -f confcache "$cache_file" ;;
15456 esac
15459 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15464 rm -f confcache
15466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15467 # Let make expand exec_prefix.
15468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15470 DEFS=-DHAVE_CONFIG_H
15472 ac_libobjs=
15473 ac_ltlibobjs=
15475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15476 # 1. Remove the extension, and $U if already installed.
15477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15480 # will be set to the directory where LIBOBJS objects are built.
15481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15483 done
15484 LIBOBJS=$ac_libobjs
15486 LTLIBOBJS=$ac_ltlibobjs
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15490 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15491 if test -n "$am_sleep_pid"; then
15492 # Hide warnings about reused PIDs.
15493 wait $am_sleep_pid 2>/dev/null
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15496 $as_echo "done" >&6; }
15497 if test -n "$EXEEXT"; then
15498 am__EXEEXT_TRUE=
15499 am__EXEEXT_FALSE='#'
15500 else
15501 am__EXEEXT_TRUE='#'
15502 am__EXEEXT_FALSE=
15505 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15506 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15509 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15510 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15513 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15514 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15517 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15518 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15521 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15522 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15525 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15526 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15529 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15530 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15533 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15534 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15537 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15538 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15541 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15542 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15545 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15546 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15549 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15550 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15553 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15554 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15557 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15558 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15561 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15562 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15566 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15569 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15570 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15574 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15578 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15582 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15586 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15590 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 : "${CONFIG_STATUS=./config.status}"
15595 ac_write_fail=0
15596 ac_clean_files_save=$ac_clean_files
15597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15600 as_write_fail=0
15601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15602 #! $SHELL
15603 # Generated by $as_me.
15604 # Run this file to recreate the current configuration.
15605 # Compiler output produced by configure, useful for debugging
15606 # configure, is in config.log if it exists.
15608 debug=false
15609 ac_cs_recheck=false
15610 ac_cs_silent=false
15612 SHELL=\${CONFIG_SHELL-$SHELL}
15613 export SHELL
15614 _ASEOF
15615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15616 ## -------------------- ##
15617 ## M4sh Initialization. ##
15618 ## -------------------- ##
15620 # Be more Bourne compatible
15621 DUALCASE=1; export DUALCASE # for MKS sh
15622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15623 emulate sh
15624 NULLCMD=:
15625 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15626 # is contrary to our usage. Disable this feature.
15627 alias -g '${1+"$@"}'='"$@"'
15628 setopt NO_GLOB_SUBST
15629 else
15630 case `(set -o) 2>/dev/null` in #(
15631 *posix*) :
15632 set -o posix ;; #(
15633 *) :
15635 esac
15639 as_nl='
15641 export as_nl
15642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15646 # Prefer a ksh shell builtin over an external printf program on Solaris,
15647 # but without wasting forks for bash or zsh.
15648 if test -z "$BASH_VERSION$ZSH_VERSION" \
15649 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15650 as_echo='print -r --'
15651 as_echo_n='print -rn --'
15652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15653 as_echo='printf %s\n'
15654 as_echo_n='printf %s'
15655 else
15656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15658 as_echo_n='/usr/ucb/echo -n'
15659 else
15660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15661 as_echo_n_body='eval
15662 arg=$1;
15663 case $arg in #(
15664 *"$as_nl"*)
15665 expr "X$arg" : "X\\(.*\\)$as_nl";
15666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15667 esac;
15668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15670 export as_echo_n_body
15671 as_echo_n='sh -c $as_echo_n_body as_echo'
15673 export as_echo_body
15674 as_echo='sh -c $as_echo_body as_echo'
15677 # The user is always right.
15678 if test "${PATH_SEPARATOR+set}" != set; then
15679 PATH_SEPARATOR=:
15680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15682 PATH_SEPARATOR=';'
15687 # IFS
15688 # We need space, tab and new line, in precisely that order. Quoting is
15689 # there to prevent editors from complaining about space-tab.
15690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15691 # splitting by setting IFS to empty value.)
15692 IFS=" "" $as_nl"
15694 # Find who we are. Look in the path if we contain no directory separator.
15695 as_myself=
15696 case $0 in #((
15697 *[\\/]* ) as_myself=$0 ;;
15698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699 for as_dir in $PATH
15701 IFS=$as_save_IFS
15702 test -z "$as_dir" && as_dir=.
15703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15704 done
15705 IFS=$as_save_IFS
15708 esac
15709 # We did not find ourselves, most probably we were run as `sh COMMAND'
15710 # in which case we are not to be found in the path.
15711 if test "x$as_myself" = x; then
15712 as_myself=$0
15714 if test ! -f "$as_myself"; then
15715 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15716 exit 1
15719 # Unset variables that we do not need and which cause bugs (e.g. in
15720 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15721 # suppresses any "Segmentation fault" message there. '((' could
15722 # trigger a bug in pdksh 5.2.14.
15723 for as_var in BASH_ENV ENV MAIL MAILPATH
15724 do eval test x\${$as_var+set} = xset \
15725 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15726 done
15727 PS1='$ '
15728 PS2='> '
15729 PS4='+ '
15731 # NLS nuisances.
15732 LC_ALL=C
15733 export LC_ALL
15734 LANGUAGE=C
15735 export LANGUAGE
15737 # CDPATH.
15738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15741 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15742 # ----------------------------------------
15743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15745 # script with STATUS, using 1 if that was 0.
15746 as_fn_error ()
15748 as_status=$1; test $as_status -eq 0 && as_status=1
15749 if test "$4"; then
15750 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15751 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15753 $as_echo "$as_me: error: $2" >&2
15754 as_fn_exit $as_status
15755 } # as_fn_error
15758 # as_fn_set_status STATUS
15759 # -----------------------
15760 # Set $? to STATUS, without forking.
15761 as_fn_set_status ()
15763 return $1
15764 } # as_fn_set_status
15766 # as_fn_exit STATUS
15767 # -----------------
15768 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15769 as_fn_exit ()
15771 set +e
15772 as_fn_set_status $1
15773 exit $1
15774 } # as_fn_exit
15776 # as_fn_unset VAR
15777 # ---------------
15778 # Portably unset VAR.
15779 as_fn_unset ()
15781 { eval $1=; unset $1;}
15783 as_unset=as_fn_unset
15784 # as_fn_append VAR VALUE
15785 # ----------------------
15786 # Append the text in VALUE to the end of the definition contained in VAR. Take
15787 # advantage of any shell optimizations that allow amortized linear growth over
15788 # repeated appends, instead of the typical quadratic growth present in naive
15789 # implementations.
15790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15791 eval 'as_fn_append ()
15793 eval $1+=\$2
15795 else
15796 as_fn_append ()
15798 eval $1=\$$1\$2
15800 fi # as_fn_append
15802 # as_fn_arith ARG...
15803 # ------------------
15804 # Perform arithmetic evaluation on the ARGs, and store the result in the
15805 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15806 # must be portable across $(()) and expr.
15807 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15808 eval 'as_fn_arith ()
15810 as_val=$(( $* ))
15812 else
15813 as_fn_arith ()
15815 as_val=`expr "$@" || test $? -eq 1`
15817 fi # as_fn_arith
15820 if expr a : '\(a\)' >/dev/null 2>&1 &&
15821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15822 as_expr=expr
15823 else
15824 as_expr=false
15827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15828 as_basename=basename
15829 else
15830 as_basename=false
15833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15834 as_dirname=dirname
15835 else
15836 as_dirname=false
15839 as_me=`$as_basename -- "$0" ||
15840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15841 X"$0" : 'X\(//\)$' \| \
15842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X/"$0" |
15844 sed '/^.*\/\([^/][^/]*\)\/*$/{
15845 s//\1/
15848 /^X\/\(\/\/\)$/{
15849 s//\1/
15852 /^X\/\(\/\).*/{
15853 s//\1/
15856 s/.*/./; q'`
15858 # Avoid depending upon Character Ranges.
15859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15862 as_cr_digits='0123456789'
15863 as_cr_alnum=$as_cr_Letters$as_cr_digits
15865 ECHO_C= ECHO_N= ECHO_T=
15866 case `echo -n x` in #(((((
15867 -n*)
15868 case `echo 'xy\c'` in
15869 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15870 xy) ECHO_C='\c';;
15871 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15872 ECHO_T=' ';;
15873 esac;;
15875 ECHO_N='-n';;
15876 esac
15878 rm -f conf$$ conf$$.exe conf$$.file
15879 if test -d conf$$.dir; then
15880 rm -f conf$$.dir/conf$$.file
15881 else
15882 rm -f conf$$.dir
15883 mkdir conf$$.dir 2>/dev/null
15885 if (echo >conf$$.file) 2>/dev/null; then
15886 if ln -s conf$$.file conf$$ 2>/dev/null; then
15887 as_ln_s='ln -s'
15888 # ... but there are two gotchas:
15889 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15890 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15891 # In both cases, we have to default to `cp -pR'.
15892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15893 as_ln_s='cp -pR'
15894 elif ln conf$$.file conf$$ 2>/dev/null; then
15895 as_ln_s=ln
15896 else
15897 as_ln_s='cp -pR'
15899 else
15900 as_ln_s='cp -pR'
15902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15903 rmdir conf$$.dir 2>/dev/null
15906 # as_fn_mkdir_p
15907 # -------------
15908 # Create "$as_dir" as a directory, including parents if necessary.
15909 as_fn_mkdir_p ()
15912 case $as_dir in #(
15913 -*) as_dir=./$as_dir;;
15914 esac
15915 test -d "$as_dir" || eval $as_mkdir_p || {
15916 as_dirs=
15917 while :; do
15918 case $as_dir in #(
15919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15920 *) as_qdir=$as_dir;;
15921 esac
15922 as_dirs="'$as_qdir' $as_dirs"
15923 as_dir=`$as_dirname -- "$as_dir" ||
15924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15925 X"$as_dir" : 'X\(//\)[^/]' \| \
15926 X"$as_dir" : 'X\(//\)$' \| \
15927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15928 $as_echo X"$as_dir" |
15929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15930 s//\1/
15933 /^X\(\/\/\)[^/].*/{
15934 s//\1/
15937 /^X\(\/\/\)$/{
15938 s//\1/
15941 /^X\(\/\).*/{
15942 s//\1/
15945 s/.*/./; q'`
15946 test -d "$as_dir" && break
15947 done
15948 test -z "$as_dirs" || eval "mkdir $as_dirs"
15949 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15952 } # as_fn_mkdir_p
15953 if mkdir -p . 2>/dev/null; then
15954 as_mkdir_p='mkdir -p "$as_dir"'
15955 else
15956 test -d ./-p && rmdir ./-p
15957 as_mkdir_p=false
15961 # as_fn_executable_p FILE
15962 # -----------------------
15963 # Test if FILE is an executable regular file.
15964 as_fn_executable_p ()
15966 test -f "$1" && test -x "$1"
15967 } # as_fn_executable_p
15968 as_test_x='test -x'
15969 as_executable_p=as_fn_executable_p
15971 # Sed expression to map a string onto a valid CPP name.
15972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15974 # Sed expression to map a string onto a valid variable name.
15975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15978 exec 6>&1
15979 ## ----------------------------------- ##
15980 ## Main body of $CONFIG_STATUS script. ##
15981 ## ----------------------------------- ##
15982 _ASEOF
15983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15986 # Save the log message, to keep $0 and so on meaningful, and to
15987 # report actual input values of CONFIG_FILES etc. instead of their
15988 # values after options handling.
15989 ac_log="
15990 This file was extended by package-unused $as_me version-unused, which was
15991 generated by GNU Autoconf 2.69. Invocation command line was
15993 CONFIG_FILES = $CONFIG_FILES
15994 CONFIG_HEADERS = $CONFIG_HEADERS
15995 CONFIG_LINKS = $CONFIG_LINKS
15996 CONFIG_COMMANDS = $CONFIG_COMMANDS
15997 $ $0 $@
15999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16002 _ACEOF
16004 case $ac_config_files in *"
16005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16006 esac
16008 case $ac_config_headers in *"
16009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16010 esac
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 # Files that config.status was made for.
16015 config_files="$ac_config_files"
16016 config_headers="$ac_config_headers"
16017 config_commands="$ac_config_commands"
16019 _ACEOF
16021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16022 ac_cs_usage="\
16023 \`$as_me' instantiates files and other configuration actions
16024 from templates according to the current configuration. Unless the files
16025 and actions are specified as TAGs, all are instantiated by default.
16027 Usage: $0 [OPTION]... [TAG]...
16029 -h, --help print this help, then exit
16030 -V, --version print version number and configuration settings, then exit
16031 --config print configuration, then exit
16032 -q, --quiet, --silent
16033 do not print progress messages
16034 -d, --debug don't remove temporary files
16035 --recheck update $as_me by reconfiguring in the same conditions
16036 --file=FILE[:TEMPLATE]
16037 instantiate the configuration file FILE
16038 --header=FILE[:TEMPLATE]
16039 instantiate the configuration header FILE
16041 Configuration files:
16042 $config_files
16044 Configuration headers:
16045 $config_headers
16047 Configuration commands:
16048 $config_commands
16050 Report bugs to the package provider."
16052 _ACEOF
16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16055 ac_cs_version="\\
16056 package-unused config.status version-unused
16057 configured by $0, generated by GNU Autoconf 2.69,
16058 with options \\"\$ac_cs_config\\"
16060 Copyright (C) 2012 Free Software Foundation, Inc.
16061 This config.status script is free software; the Free Software Foundation
16062 gives unlimited permission to copy, distribute and modify it."
16064 ac_pwd='$ac_pwd'
16065 srcdir='$srcdir'
16066 INSTALL='$INSTALL'
16067 MKDIR_P='$MKDIR_P'
16068 AWK='$AWK'
16069 test -n "\$AWK" || AWK=awk
16070 _ACEOF
16072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16073 # The default lists apply if the user does not specify any file.
16074 ac_need_defaults=:
16075 while test $# != 0
16077 case $1 in
16078 --*=?*)
16079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16081 ac_shift=:
16083 --*=)
16084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16085 ac_optarg=
16086 ac_shift=:
16089 ac_option=$1
16090 ac_optarg=$2
16091 ac_shift=shift
16093 esac
16095 case $ac_option in
16096 # Handling of the options.
16097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16098 ac_cs_recheck=: ;;
16099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16100 $as_echo "$ac_cs_version"; exit ;;
16101 --config | --confi | --conf | --con | --co | --c )
16102 $as_echo "$ac_cs_config"; exit ;;
16103 --debug | --debu | --deb | --de | --d | -d )
16104 debug=: ;;
16105 --file | --fil | --fi | --f )
16106 $ac_shift
16107 case $ac_optarg in
16108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16109 '') as_fn_error $? "missing file argument" ;;
16110 esac
16111 as_fn_append CONFIG_FILES " '$ac_optarg'"
16112 ac_need_defaults=false;;
16113 --header | --heade | --head | --hea )
16114 $ac_shift
16115 case $ac_optarg in
16116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16117 esac
16118 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16119 ac_need_defaults=false;;
16120 --he | --h)
16121 # Conflict between --help and --header
16122 as_fn_error $? "ambiguous option: \`$1'
16123 Try \`$0 --help' for more information.";;
16124 --help | --hel | -h )
16125 $as_echo "$ac_cs_usage"; exit ;;
16126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16128 ac_cs_silent=: ;;
16130 # This is an error.
16131 -*) as_fn_error $? "unrecognized option: \`$1'
16132 Try \`$0 --help' for more information." ;;
16134 *) as_fn_append ac_config_targets " $1"
16135 ac_need_defaults=false ;;
16137 esac
16138 shift
16139 done
16141 ac_configure_extra_args=
16143 if $ac_cs_silent; then
16144 exec 6>/dev/null
16145 ac_configure_extra_args="$ac_configure_extra_args --silent"
16148 _ACEOF
16149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150 if \$ac_cs_recheck; then
16151 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16152 shift
16153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16154 CONFIG_SHELL='$SHELL'
16155 export CONFIG_SHELL
16156 exec "\$@"
16159 _ACEOF
16160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16161 exec 5>>config.log
16163 echo
16164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16165 ## Running $as_me. ##
16166 _ASBOX
16167 $as_echo "$ac_log"
16168 } >&5
16170 _ACEOF
16171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173 # INIT-COMMANDS
16176 srcdir="$srcdir"
16177 host="$host"
16178 target="$target"
16179 with_multisubdir="$with_multisubdir"
16180 with_multisrctop="$with_multisrctop"
16181 with_target_subdir="$with_target_subdir"
16182 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16183 multi_basedir="$multi_basedir"
16184 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16185 CC="$CC"
16186 CXX="$CXX"
16187 GFORTRAN="$GFORTRAN"
16188 GDC="$GDC"
16191 # The HP-UX ksh and POSIX shell print the target directory to stdout
16192 # if CDPATH is set.
16193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16195 sed_quote_subst='$sed_quote_subst'
16196 double_quote_subst='$double_quote_subst'
16197 delay_variable_subst='$delay_variable_subst'
16198 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16199 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16200 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16201 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16202 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16203 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16204 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16205 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16206 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16207 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16208 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16209 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16210 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16211 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16212 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16213 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16214 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16215 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16216 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16217 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16218 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16219 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16220 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16221 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16222 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16223 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16224 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16225 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16226 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16227 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16228 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16229 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16230 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16231 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16232 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16233 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16234 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16235 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16236 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16237 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16238 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16239 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16240 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16241 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16242 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16243 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16244 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16245 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16246 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"`'
16247 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16248 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16249 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16250 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16251 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16252 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16253 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16254 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16255 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16256 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16257 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16258 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16259 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16260 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16261 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16262 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16263 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16264 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16265 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16266 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16267 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16268 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16269 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16270 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16271 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16272 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16273 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16274 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16275 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16276 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16277 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16278 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16279 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16280 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16281 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16282 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16283 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16284 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16285 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16286 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16287 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16288 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16289 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16290 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16291 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16292 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16293 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16294 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16295 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16296 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16297 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16298 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16299 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16300 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16301 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16302 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16303 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16304 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16305 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16306 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16307 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16308 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16309 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16310 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16311 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16312 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16313 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16314 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16315 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16316 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16317 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16318 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16319 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16320 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16321 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16322 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16323 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16324 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16325 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16326 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16327 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16328 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16329 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16330 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16331 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16332 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16333 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16334 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16335 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16336 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16337 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16338 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16339 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16340 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16341 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16342 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16343 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16344 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16345 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16346 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16347 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16348 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16349 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16350 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16351 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16352 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16353 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16354 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16355 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16356 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16357 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16358 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16359 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16360 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16362 LTCC='$LTCC'
16363 LTCFLAGS='$LTCFLAGS'
16364 compiler='$compiler_DEFAULT'
16366 # A function that is used when there is no print builtin or printf.
16367 func_fallback_echo ()
16369 eval 'cat <<_LTECHO_EOF
16371 _LTECHO_EOF'
16374 # Quote evaled strings.
16375 for var in SHELL \
16376 ECHO \
16377 SED \
16378 GREP \
16379 EGREP \
16380 FGREP \
16381 LD \
16382 NM \
16383 LN_S \
16384 lt_SP2NL \
16385 lt_NL2SP \
16386 reload_flag \
16387 OBJDUMP \
16388 deplibs_check_method \
16389 file_magic_cmd \
16390 AR \
16391 AR_FLAGS \
16392 STRIP \
16393 RANLIB \
16394 CC \
16395 CFLAGS \
16396 compiler \
16397 lt_cv_sys_global_symbol_pipe \
16398 lt_cv_sys_global_symbol_to_cdecl \
16399 lt_cv_sys_global_symbol_to_c_name_address \
16400 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16401 lt_prog_compiler_no_builtin_flag \
16402 lt_prog_compiler_wl \
16403 lt_prog_compiler_pic \
16404 lt_prog_compiler_static \
16405 lt_cv_prog_compiler_c_o \
16406 need_locks \
16407 DSYMUTIL \
16408 NMEDIT \
16409 LIPO \
16410 OTOOL \
16411 OTOOL64 \
16412 shrext_cmds \
16413 export_dynamic_flag_spec \
16414 whole_archive_flag_spec \
16415 compiler_needs_object \
16416 with_gnu_ld \
16417 allow_undefined_flag \
16418 no_undefined_flag \
16419 hardcode_libdir_flag_spec \
16420 hardcode_libdir_flag_spec_ld \
16421 hardcode_libdir_separator \
16422 fix_srcfile_path \
16423 exclude_expsyms \
16424 include_expsyms \
16425 file_list_spec \
16426 variables_saved_for_relink \
16427 libname_spec \
16428 library_names_spec \
16429 soname_spec \
16430 install_override_mode \
16431 finish_eval \
16432 old_striplib \
16433 striplib \
16434 LD_D \
16435 reload_flag_D \
16436 compiler_D \
16437 lt_prog_compiler_no_builtin_flag_D \
16438 lt_prog_compiler_wl_D \
16439 lt_prog_compiler_pic_D \
16440 lt_prog_compiler_static_D \
16441 lt_cv_prog_compiler_c_o_D \
16442 export_dynamic_flag_spec_D \
16443 whole_archive_flag_spec_D \
16444 compiler_needs_object_D \
16445 with_gnu_ld_D \
16446 allow_undefined_flag_D \
16447 no_undefined_flag_D \
16448 hardcode_libdir_flag_spec_D \
16449 hardcode_libdir_flag_spec_ld_D \
16450 hardcode_libdir_separator_D \
16451 fix_srcfile_path_D \
16452 exclude_expsyms_D \
16453 include_expsyms_D \
16454 file_list_spec_D; do
16455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16456 *[\\\\\\\`\\"\\\$]*)
16457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16462 esac
16463 done
16465 # Double-quote double-evaled strings.
16466 for var in reload_cmds \
16467 old_postinstall_cmds \
16468 old_postuninstall_cmds \
16469 old_archive_cmds \
16470 extract_expsyms_cmds \
16471 old_archive_from_new_cmds \
16472 old_archive_from_expsyms_cmds \
16473 archive_cmds \
16474 archive_expsym_cmds \
16475 module_cmds \
16476 module_expsym_cmds \
16477 export_symbols_cmds \
16478 prelink_cmds \
16479 postinstall_cmds \
16480 postuninstall_cmds \
16481 finish_cmds \
16482 sys_lib_search_path_spec \
16483 sys_lib_dlsearch_path_spec \
16484 reload_cmds_D \
16485 old_archive_cmds_D \
16486 old_archive_from_new_cmds_D \
16487 old_archive_from_expsyms_cmds_D \
16488 archive_cmds_D \
16489 archive_expsym_cmds_D \
16490 module_cmds_D \
16491 module_expsym_cmds_D \
16492 export_symbols_cmds_D \
16493 prelink_cmds_D; do
16494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16495 *[\\\\\\\`\\"\\\$]*)
16496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16501 esac
16502 done
16504 ac_aux_dir='$ac_aux_dir'
16505 xsi_shell='$xsi_shell'
16506 lt_shell_append='$lt_shell_append'
16508 # See if we are running on zsh, and set the options which allow our
16509 # commands through without removal of \ escapes INIT.
16510 if test -n "\${ZSH_VERSION+set}" ; then
16511 setopt NO_GLOB_SUBST
16515 PACKAGE='$PACKAGE'
16516 VERSION='$VERSION'
16517 TIMESTAMP='$TIMESTAMP'
16518 RM='$RM'
16519 ofile='$ofile'
16526 _ACEOF
16528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16530 # Handling of arguments.
16531 for ac_config_target in $ac_config_targets
16533 case $ac_config_target in
16534 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16535 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16536 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16538 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16539 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16540 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16541 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16542 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16543 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16544 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16546 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16547 esac
16548 done
16551 # If the user did not use the arguments to specify the items to instantiate,
16552 # then the envvar interface is used. Set only those that are not.
16553 # We use the long form for the default assignment because of an extremely
16554 # bizarre bug on SunOS 4.1.3.
16555 if $ac_need_defaults; then
16556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16561 # Have a temporary directory for convenience. Make it in the build tree
16562 # simply because there is no reason against having it here, and in addition,
16563 # creating and moving files from /tmp can sometimes cause problems.
16564 # Hook for its removal unless debugging.
16565 # Note that there is a small window in which the directory will not be cleaned:
16566 # after its creation but before its name has been assigned to `$tmp'.
16567 $debug ||
16569 tmp= ac_tmp=
16570 trap 'exit_status=$?
16571 : "${ac_tmp:=$tmp}"
16572 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16574 trap 'as_fn_exit 1' 1 2 13 15
16576 # Create a (secure) tmp directory for tmp files.
16579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16580 test -d "$tmp"
16581 } ||
16583 tmp=./conf$$-$RANDOM
16584 (umask 077 && mkdir "$tmp")
16585 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16586 ac_tmp=$tmp
16588 # Set up the scripts for CONFIG_FILES section.
16589 # No need to generate them if there are no CONFIG_FILES.
16590 # This happens for instance with `./config.status config.h'.
16591 if test -n "$CONFIG_FILES"; then
16593 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16594 ac_cs_awk_getline=:
16595 ac_cs_awk_pipe_init=
16596 ac_cs_awk_read_file='
16597 while ((getline aline < (F[key])) > 0)
16598 print(aline)
16599 close(F[key])'
16600 ac_cs_awk_pipe_fini=
16601 else
16602 ac_cs_awk_getline=false
16603 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16604 ac_cs_awk_read_file='
16605 print "|#_!!_#|"
16606 print "cat " F[key] " &&"
16607 '$ac_cs_awk_pipe_init
16608 # The final `:' finishes the AND list.
16609 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16611 ac_cr=`echo X | tr X '\015'`
16612 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16613 # But we know of no other shell where ac_cr would be empty at this
16614 # point, so we can use a bashism as a fallback.
16615 if test "x$ac_cr" = x; then
16616 eval ac_cr=\$\'\\r\'
16618 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16619 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16620 ac_cs_awk_cr='\\r'
16621 else
16622 ac_cs_awk_cr=$ac_cr
16625 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16626 _ACEOF
16628 # Create commands to substitute file output variables.
16630 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16631 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16632 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16633 echo "_ACAWK" &&
16634 echo "_ACEOF"
16635 } >conf$$files.sh &&
16636 . ./conf$$files.sh ||
16637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16638 rm -f conf$$files.sh
16641 echo "cat >conf$$subs.awk <<_ACEOF" &&
16642 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16643 echo "_ACEOF"
16644 } >conf$$subs.sh ||
16645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16646 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16647 ac_delim='%!_!# '
16648 for ac_last_try in false false false false false :; do
16649 . ./conf$$subs.sh ||
16650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16652 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16653 if test $ac_delim_n = $ac_delim_num; then
16654 break
16655 elif $ac_last_try; then
16656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16657 else
16658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16660 done
16661 rm -f conf$$subs.sh
16663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16664 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16665 _ACEOF
16666 sed -n '
16668 s/^/S["/; s/!.*/"]=/
16671 s/^[^!]*!//
16672 :repl
16673 t repl
16674 s/'"$ac_delim"'$//
16675 t delim
16678 s/\(.\{148\}\)..*/\1/
16679 t more1
16680 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16683 b repl
16684 :more1
16685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16688 s/.\{148\}//
16689 t nl
16690 :delim
16692 s/\(.\{148\}\)..*/\1/
16693 t more2
16694 s/["\\]/\\&/g; s/^/"/; s/$/"/
16697 :more2
16698 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16701 s/.\{148\}//
16702 t delim
16703 ' <conf$$subs.awk | sed '
16704 /^[^""]/{
16706 s/\n//
16708 ' >>$CONFIG_STATUS || ac_write_fail=1
16709 rm -f conf$$subs.awk
16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711 _ACAWK
16712 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16713 for (key in S) S_is_set[key] = 1
16714 FS = "\a"
16715 \$ac_cs_awk_pipe_init
16718 line = $ 0
16719 nfields = split(line, field, "@")
16720 substed = 0
16721 len = length(field[1])
16722 for (i = 2; i < nfields; i++) {
16723 key = field[i]
16724 keylen = length(key)
16725 if (S_is_set[key]) {
16726 value = S[key]
16727 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16728 len += length(value) + length(field[++i])
16729 substed = 1
16730 } else
16731 len += 1 + keylen
16733 if (nfields == 3 && !substed) {
16734 key = field[2]
16735 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16736 \$ac_cs_awk_read_file
16737 next
16740 print line
16742 \$ac_cs_awk_pipe_fini
16743 _ACAWK
16744 _ACEOF
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16748 else
16750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16752 _ACEOF
16754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16756 # trailing colons and then remove the whole line if VPATH becomes empty
16757 # (actually we leave an empty line to preserve line numbers).
16758 if test "x$srcdir" = x.; then
16759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16761 s///
16762 s/^/:/
16763 s/[ ]*$/:/
16764 s/:\$(srcdir):/:/g
16765 s/:\${srcdir}:/:/g
16766 s/:@srcdir@:/:/g
16767 s/^:*//
16768 s/:*$//
16770 s/\(=[ ]*\).*/\1/
16772 s/\n//
16773 s/^[^=]*=[ ]*$//
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 fi # test -n "$CONFIG_FILES"
16780 # Set up the scripts for CONFIG_HEADERS section.
16781 # No need to generate them if there are no CONFIG_HEADERS.
16782 # This happens for instance with `./config.status Makefile'.
16783 if test -n "$CONFIG_HEADERS"; then
16784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16785 BEGIN {
16786 _ACEOF
16788 # Transform confdefs.h into an awk script `defines.awk', embedded as
16789 # here-document in config.status, that substitutes the proper values into
16790 # config.h.in to produce config.h.
16792 # Create a delimiter string that does not exist in confdefs.h, to ease
16793 # handling of long lines.
16794 ac_delim='%!_!# '
16795 for ac_last_try in false false :; do
16796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16797 if test -z "$ac_tt"; then
16798 break
16799 elif $ac_last_try; then
16800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16801 else
16802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16804 done
16806 # For the awk script, D is an array of macro values keyed by name,
16807 # likewise P contains macro parameters if any. Preserve backslash
16808 # newline sequences.
16810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16811 sed -n '
16812 s/.\{148\}/&'"$ac_delim"'/g
16813 t rset
16814 :rset
16815 s/^[ ]*#[ ]*define[ ][ ]*/ /
16816 t def
16818 :def
16819 s/\\$//
16820 t bsnl
16821 s/["\\]/\\&/g
16822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16823 D["\1"]=" \3"/p
16824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16826 :bsnl
16827 s/["\\]/\\&/g
16828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16829 D["\1"]=" \3\\\\\\n"\\/p
16830 t cont
16831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16832 t cont
16834 :cont
16836 s/.\{148\}/&'"$ac_delim"'/g
16837 t clear
16838 :clear
16839 s/\\$//
16840 t bsnlc
16841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16843 :bsnlc
16844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16845 b cont
16846 ' <confdefs.h | sed '
16847 s/'"$ac_delim"'/"\\\
16848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16851 for (key in D) D_is_set[key] = 1
16852 FS = "\a"
16854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16855 line = \$ 0
16856 split(line, arg, " ")
16857 if (arg[1] == "#") {
16858 defundef = arg[2]
16859 mac1 = arg[3]
16860 } else {
16861 defundef = substr(arg[1], 2)
16862 mac1 = arg[2]
16864 split(mac1, mac2, "(") #)
16865 macro = mac2[1]
16866 prefix = substr(line, 1, index(line, defundef) - 1)
16867 if (D_is_set[macro]) {
16868 # Preserve the white space surrounding the "#".
16869 print prefix "define", macro P[macro] D[macro]
16870 next
16871 } else {
16872 # Replace #undef with comments. This is necessary, for example,
16873 # in the case of _POSIX_SOURCE, which is predefined and required
16874 # on some systems where configure will not decide to define it.
16875 if (defundef == "undef") {
16876 print "/*", prefix defundef, macro, "*/"
16877 next
16881 { print }
16882 _ACAWK
16883 _ACEOF
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16886 fi # test -n "$CONFIG_HEADERS"
16889 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16890 shift
16891 for ac_tag
16893 case $ac_tag in
16894 :[FHLC]) ac_mode=$ac_tag; continue;;
16895 esac
16896 case $ac_mode$ac_tag in
16897 :[FHL]*:*);;
16898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16899 :[FH]-) ac_tag=-:-;;
16900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16901 esac
16902 ac_save_IFS=$IFS
16903 IFS=:
16904 set x $ac_tag
16905 IFS=$ac_save_IFS
16906 shift
16907 ac_file=$1
16908 shift
16910 case $ac_mode in
16911 :L) ac_source=$1;;
16912 :[FH])
16913 ac_file_inputs=
16914 for ac_f
16916 case $ac_f in
16917 -) ac_f="$ac_tmp/stdin";;
16918 *) # Look for the file first in the build tree, then in the source tree
16919 # (if the path is not absolute). The absolute path cannot be DOS-style,
16920 # because $ac_f cannot contain `:'.
16921 test -f "$ac_f" ||
16922 case $ac_f in
16923 [\\/$]*) false;;
16924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16925 esac ||
16926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16927 esac
16928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16929 as_fn_append ac_file_inputs " '$ac_f'"
16930 done
16932 # Let's still pretend it is `configure' which instantiates (i.e., don't
16933 # use $as_me), people would be surprised to read:
16934 # /* config.h. Generated by config.status. */
16935 configure_input='Generated from '`
16936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16937 `' by configure.'
16938 if test x"$ac_file" != x-; then
16939 configure_input="$ac_file. $configure_input"
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16941 $as_echo "$as_me: creating $ac_file" >&6;}
16943 # Neutralize special characters interpreted by sed in replacement strings.
16944 case $configure_input in #(
16945 *\&* | *\|* | *\\* )
16946 ac_sed_conf_input=`$as_echo "$configure_input" |
16947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16948 *) ac_sed_conf_input=$configure_input;;
16949 esac
16951 case $ac_tag in
16952 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16954 esac
16956 esac
16958 ac_dir=`$as_dirname -- "$ac_file" ||
16959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$ac_file" : 'X\(//\)[^/]' \| \
16961 X"$ac_file" : 'X\(//\)$' \| \
16962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16963 $as_echo X"$ac_file" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 s//\1/
16968 /^X\(\/\/\)[^/].*/{
16969 s//\1/
16972 /^X\(\/\/\)$/{
16973 s//\1/
16976 /^X\(\/\).*/{
16977 s//\1/
16980 s/.*/./; q'`
16981 as_dir="$ac_dir"; as_fn_mkdir_p
16982 ac_builddir=.
16984 case "$ac_dir" in
16985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16988 # A ".." for each directory in $ac_dir_suffix.
16989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16990 case $ac_top_builddir_sub in
16991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16993 esac ;;
16994 esac
16995 ac_abs_top_builddir=$ac_pwd
16996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16997 # for backward compatibility:
16998 ac_top_builddir=$ac_top_build_prefix
17000 case $srcdir in
17001 .) # We are building in place.
17002 ac_srcdir=.
17003 ac_top_srcdir=$ac_top_builddir_sub
17004 ac_abs_top_srcdir=$ac_pwd ;;
17005 [\\/]* | ?:[\\/]* ) # Absolute name.
17006 ac_srcdir=$srcdir$ac_dir_suffix;
17007 ac_top_srcdir=$srcdir
17008 ac_abs_top_srcdir=$srcdir ;;
17009 *) # Relative name.
17010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17011 ac_top_srcdir=$ac_top_build_prefix$srcdir
17012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17013 esac
17014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17017 case $ac_mode in
17020 # CONFIG_FILE
17023 case $INSTALL in
17024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17026 esac
17027 ac_MKDIR_P=$MKDIR_P
17028 case $MKDIR_P in
17029 [\\/$]* | ?:[\\/]* ) ;;
17030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17031 esac
17032 _ACEOF
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 # If the template does not know about datarootdir, expand it.
17036 # FIXME: This hack should be removed a few years after 2.60.
17037 ac_datarootdir_hack=; ac_datarootdir_seen=
17038 ac_sed_dataroot='
17039 /datarootdir/ {
17043 /@datadir@/p
17044 /@docdir@/p
17045 /@infodir@/p
17046 /@localedir@/p
17047 /@mandir@/p'
17048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17049 *datarootdir*) ac_datarootdir_seen=yes;;
17050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17053 _ACEOF
17054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055 ac_datarootdir_hack='
17056 s&@datadir@&$datadir&g
17057 s&@docdir@&$docdir&g
17058 s&@infodir@&$infodir&g
17059 s&@localedir@&$localedir&g
17060 s&@mandir@&$mandir&g
17061 s&\\\${datarootdir}&$datarootdir&g' ;;
17062 esac
17063 _ACEOF
17065 # Neutralize VPATH when `$srcdir' = `.'.
17066 # Shell code in configure.ac might set extrasub.
17067 # FIXME: do we really want to maintain this feature?
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069 ac_sed_extra="$ac_vpsub
17070 $extrasub
17071 _ACEOF
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17075 s|@configure_input@|$ac_sed_conf_input|;t t
17076 s&@top_builddir@&$ac_top_builddir_sub&;t t
17077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17078 s&@srcdir@&$ac_srcdir&;t t
17079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17080 s&@top_srcdir@&$ac_top_srcdir&;t t
17081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17082 s&@builddir@&$ac_builddir&;t t
17083 s&@abs_builddir@&$ac_abs_builddir&;t t
17084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17085 s&@INSTALL@&$ac_INSTALL&;t t
17086 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17087 $ac_datarootdir_hack
17089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17090 if $ac_cs_awk_getline; then
17091 $AWK -f "$ac_tmp/subs.awk"
17092 else
17093 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17094 fi \
17095 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17098 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17100 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17102 which seems to be undefined. Please make sure it is defined" >&5
17103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17104 which seems to be undefined. Please make sure it is defined" >&2;}
17106 rm -f "$ac_tmp/stdin"
17107 case $ac_file in
17108 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17109 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17110 esac \
17111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17115 # CONFIG_HEADER
17117 if test x"$ac_file" != x-; then
17119 $as_echo "/* $configure_input */" \
17120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17121 } >"$ac_tmp/config.h" \
17122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17123 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17126 else
17127 rm -f "$ac_file"
17128 mv "$ac_tmp/config.h" "$ac_file" \
17129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17131 else
17132 $as_echo "/* $configure_input */" \
17133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17134 || as_fn_error $? "could not create -" "$LINENO" 5
17136 # Compute "$ac_file"'s index in $config_headers.
17137 _am_arg="$ac_file"
17138 _am_stamp_count=1
17139 for _am_header in $config_headers :; do
17140 case $_am_header in
17141 $_am_arg | $_am_arg:* )
17142 break ;;
17144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17145 esac
17146 done
17147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17149 X"$_am_arg" : 'X\(//\)[^/]' \| \
17150 X"$_am_arg" : 'X\(//\)$' \| \
17151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17152 $as_echo X"$_am_arg" |
17153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17154 s//\1/
17157 /^X\(\/\/\)[^/].*/{
17158 s//\1/
17161 /^X\(\/\/\)$/{
17162 s//\1/
17165 /^X\(\/\).*/{
17166 s//\1/
17169 s/.*/./; q'`/stamp-h$_am_stamp_count
17172 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17173 $as_echo "$as_me: executing $ac_file commands" >&6;}
17175 esac
17178 case $ac_file$ac_mode in
17179 "default-1":C)
17180 # Only add multilib support code if we just rebuilt the top-level
17181 # Makefile.
17182 case " $CONFIG_FILES " in
17183 *" Makefile "*)
17184 ac_file=Makefile . ${multi_basedir}/config-ml.in
17186 esac ;;
17187 "libtool":C)
17189 # See if we are running on zsh, and set the options which allow our
17190 # commands through without removal of \ escapes.
17191 if test -n "${ZSH_VERSION+set}" ; then
17192 setopt NO_GLOB_SUBST
17195 cfgfile="${ofile}T"
17196 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17197 $RM "$cfgfile"
17199 cat <<_LT_EOF >> "$cfgfile"
17200 #! $SHELL
17202 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17203 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17208 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17209 # Written by Gordon Matzigkeit, 1996
17211 # This file is part of GNU Libtool.
17213 # GNU Libtool is free software; you can redistribute it and/or
17214 # modify it under the terms of the GNU General Public License as
17215 # published by the Free Software Foundation; either version 2 of
17216 # the License, or (at your option) any later version.
17218 # As a special exception to the GNU General Public License,
17219 # if you distribute this file as part of a program or library that
17220 # is built using GNU Libtool, you may include this file under the
17221 # same distribution terms that you use for the rest of that program.
17223 # GNU Libtool is distributed in the hope that it will be useful,
17224 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17226 # GNU General Public License for more details.
17228 # You should have received a copy of the GNU General Public License
17229 # along with GNU Libtool; see the file COPYING. If not, a copy
17230 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17231 # obtained by writing to the Free Software Foundation, Inc.,
17232 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17235 # The names of the tagged configurations supported by this script.
17236 available_tags="D "
17238 # ### BEGIN LIBTOOL CONFIG
17240 # Which release of libtool.m4 was used?
17241 macro_version=$macro_version
17242 macro_revision=$macro_revision
17244 # Whether or not to build shared libraries.
17245 build_libtool_libs=$enable_shared
17247 # Whether or not to build static libraries.
17248 build_old_libs=$enable_static
17250 # What type of objects to build.
17251 pic_mode=$pic_mode
17253 # Whether or not to optimize for fast installation.
17254 fast_install=$enable_fast_install
17256 # Shell to use when invoking shell scripts.
17257 SHELL=$lt_SHELL
17259 # An echo program that protects backslashes.
17260 ECHO=$lt_ECHO
17262 # The host system.
17263 host_alias=$host_alias
17264 host=$host
17265 host_os=$host_os
17267 # The build system.
17268 build_alias=$build_alias
17269 build=$build
17270 build_os=$build_os
17272 # A sed program that does not truncate output.
17273 SED=$lt_SED
17275 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17276 Xsed="\$SED -e 1s/^X//"
17278 # A grep program that handles long lines.
17279 GREP=$lt_GREP
17281 # An ERE matcher.
17282 EGREP=$lt_EGREP
17284 # A literal string matcher.
17285 FGREP=$lt_FGREP
17287 # A BSD- or MS-compatible name lister.
17288 NM=$lt_NM
17290 # Whether we need soft or hard links.
17291 LN_S=$lt_LN_S
17293 # What is the maximum length of a command?
17294 max_cmd_len=$max_cmd_len
17296 # Object file suffix (normally "o").
17297 objext=$ac_objext
17299 # Executable file suffix (normally "").
17300 exeext=$exeext
17302 # whether the shell understands "unset".
17303 lt_unset=$lt_unset
17305 # turn spaces into newlines.
17306 SP2NL=$lt_lt_SP2NL
17308 # turn newlines into spaces.
17309 NL2SP=$lt_lt_NL2SP
17311 # An object symbol dumper.
17312 OBJDUMP=$lt_OBJDUMP
17314 # Method to check whether dependent libraries are shared objects.
17315 deplibs_check_method=$lt_deplibs_check_method
17317 # Command to use when deplibs_check_method == "file_magic".
17318 file_magic_cmd=$lt_file_magic_cmd
17320 # The archiver.
17321 AR=$lt_AR
17322 AR_FLAGS=$lt_AR_FLAGS
17324 # A symbol stripping program.
17325 STRIP=$lt_STRIP
17327 # Commands used to install an old-style archive.
17328 RANLIB=$lt_RANLIB
17329 old_postinstall_cmds=$lt_old_postinstall_cmds
17330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17332 # Whether to use a lock for old archive extraction.
17333 lock_old_archive_extraction=$lock_old_archive_extraction
17335 # A C compiler.
17336 LTCC=$lt_CC
17338 # LTCC compiler flags.
17339 LTCFLAGS=$lt_CFLAGS
17341 # Take the output of nm and produce a listing of raw symbols and C names.
17342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17344 # Transform the output of nm in a proper C declaration.
17345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17347 # Transform the output of nm in a C name address pair.
17348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17350 # Transform the output of nm in a C name address pair when lib prefix is needed.
17351 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17353 # The name of the directory that contains temporary libtool files.
17354 objdir=$objdir
17356 # Used to examine libraries when file_magic_cmd begins with "file".
17357 MAGIC_CMD=$MAGIC_CMD
17359 # Must we lock files when doing compilation?
17360 need_locks=$lt_need_locks
17362 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17363 DSYMUTIL=$lt_DSYMUTIL
17365 # Tool to change global to local symbols on Mac OS X.
17366 NMEDIT=$lt_NMEDIT
17368 # Tool to manipulate fat objects and archives on Mac OS X.
17369 LIPO=$lt_LIPO
17371 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17372 OTOOL=$lt_OTOOL
17374 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17375 OTOOL64=$lt_OTOOL64
17377 # Old archive suffix (normally "a").
17378 libext=$libext
17380 # Shared library suffix (normally ".so").
17381 shrext_cmds=$lt_shrext_cmds
17383 # The commands to extract the exported symbol list from a shared archive.
17384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17386 # Variables whose values should be saved in libtool wrapper scripts and
17387 # restored at link time.
17388 variables_saved_for_relink=$lt_variables_saved_for_relink
17390 # Do we need the "lib" prefix for modules?
17391 need_lib_prefix=$need_lib_prefix
17393 # Do we need a version for libraries?
17394 need_version=$need_version
17396 # Library versioning type.
17397 version_type=$version_type
17399 # Shared library runtime path variable.
17400 runpath_var=$runpath_var
17402 # Shared library path variable.
17403 shlibpath_var=$shlibpath_var
17405 # Is shlibpath searched before the hard-coded library search path?
17406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17408 # Format of library name prefix.
17409 libname_spec=$lt_libname_spec
17411 # List of archive names. First name is the real one, the rest are links.
17412 # The last name is the one that the linker finds with -lNAME
17413 library_names_spec=$lt_library_names_spec
17415 # The coded name of the library, if different from the real name.
17416 soname_spec=$lt_soname_spec
17418 # Permission mode override for installation of shared libraries.
17419 install_override_mode=$lt_install_override_mode
17421 # Command to use after installation of a shared archive.
17422 postinstall_cmds=$lt_postinstall_cmds
17424 # Command to use after uninstallation of a shared archive.
17425 postuninstall_cmds=$lt_postuninstall_cmds
17427 # Commands used to finish a libtool library installation in a directory.
17428 finish_cmds=$lt_finish_cmds
17430 # As "finish_cmds", except a single script fragment to be evaled but
17431 # not shown.
17432 finish_eval=$lt_finish_eval
17434 # Whether we should hardcode library paths into libraries.
17435 hardcode_into_libs=$hardcode_into_libs
17437 # Compile-time system search path for libraries.
17438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17440 # Run-time system search path for libraries.
17441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17443 # Whether dlopen is supported.
17444 dlopen_support=$enable_dlopen
17446 # Whether dlopen of programs is supported.
17447 dlopen_self=$enable_dlopen_self
17449 # Whether dlopen of statically linked programs is supported.
17450 dlopen_self_static=$enable_dlopen_self_static
17452 # Commands to strip libraries.
17453 old_striplib=$lt_old_striplib
17454 striplib=$lt_striplib
17457 # The linker used to build libraries.
17458 LD=$lt_LD
17460 # How to create reloadable object files.
17461 reload_flag=$lt_reload_flag
17462 reload_cmds=$lt_reload_cmds
17464 # Commands used to build an old-style archive.
17465 old_archive_cmds=$lt_old_archive_cmds
17467 # A language specific compiler.
17468 CC=$lt_compiler
17470 # Is the compiler the GNU compiler?
17471 with_gcc=$GCC
17473 # Compiler flag to turn off builtin functions.
17474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17476 # How to pass a linker flag through the compiler.
17477 wl=$lt_lt_prog_compiler_wl
17479 # Additional compiler flags for building library objects.
17480 pic_flag=$lt_lt_prog_compiler_pic
17482 # Compiler flag to prevent dynamic linking.
17483 link_static_flag=$lt_lt_prog_compiler_static
17485 # Does compiler simultaneously support -c and -o options?
17486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17488 # Whether or not to add -lc for building shared libraries.
17489 build_libtool_need_lc=$archive_cmds_need_lc
17491 # Whether or not to disallow shared libs when runtime libs are static.
17492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17494 # Compiler flag to allow reflexive dlopens.
17495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17497 # Compiler flag to generate shared objects directly from archives.
17498 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17500 # Whether the compiler copes with passing no objects directly.
17501 compiler_needs_object=$lt_compiler_needs_object
17503 # Create an old-style archive from a shared archive.
17504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17506 # Create a temporary old-style archive to link instead of a shared archive.
17507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17509 # Commands used to build a shared archive.
17510 archive_cmds=$lt_archive_cmds
17511 archive_expsym_cmds=$lt_archive_expsym_cmds
17513 # Commands used to build a loadable module if different from building
17514 # a shared archive.
17515 module_cmds=$lt_module_cmds
17516 module_expsym_cmds=$lt_module_expsym_cmds
17518 # Whether we are building with GNU ld or not.
17519 with_gnu_ld=$lt_with_gnu_ld
17521 # Flag that allows shared libraries with undefined symbols to be built.
17522 allow_undefined_flag=$lt_allow_undefined_flag
17524 # Flag that enforces no undefined symbols.
17525 no_undefined_flag=$lt_no_undefined_flag
17527 # Flag to hardcode \$libdir into a binary during linking.
17528 # This must work even if \$libdir does not exist
17529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17531 # If ld is used when linking, flag to hardcode \$libdir into a binary
17532 # during linking. This must work even if \$libdir does not exist.
17533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17535 # Whether we need a single "-rpath" flag with a separated argument.
17536 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17539 # DIR into the resulting binary.
17540 hardcode_direct=$hardcode_direct
17542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17543 # DIR into the resulting binary and the resulting library dependency is
17544 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17545 # library is relocated.
17546 hardcode_direct_absolute=$hardcode_direct_absolute
17548 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17549 # into the resulting binary.
17550 hardcode_minus_L=$hardcode_minus_L
17552 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17553 # into the resulting binary.
17554 hardcode_shlibpath_var=$hardcode_shlibpath_var
17556 # Set to "yes" if building a shared library automatically hardcodes DIR
17557 # into the library and all subsequent libraries and executables linked
17558 # against it.
17559 hardcode_automatic=$hardcode_automatic
17561 # Set to yes if linker adds runtime paths of dependent libraries
17562 # to runtime path list.
17563 inherit_rpath=$inherit_rpath
17565 # Whether libtool must link a program against all its dependency libraries.
17566 link_all_deplibs=$link_all_deplibs
17568 # Fix the shell variable \$srcfile for the compiler.
17569 fix_srcfile_path=$lt_fix_srcfile_path
17571 # Set to "yes" if exported symbols are required.
17572 always_export_symbols=$always_export_symbols
17574 # The commands to list exported symbols.
17575 export_symbols_cmds=$lt_export_symbols_cmds
17577 # Symbols that should not be listed in the preloaded symbols.
17578 exclude_expsyms=$lt_exclude_expsyms
17580 # Symbols that must always be exported.
17581 include_expsyms=$lt_include_expsyms
17583 # Commands necessary for linking programs (against libraries) with templates.
17584 prelink_cmds=$lt_prelink_cmds
17586 # Specify filename containing input files.
17587 file_list_spec=$lt_file_list_spec
17589 # How to hardcode a shared library path into an executable.
17590 hardcode_action=$hardcode_action
17592 # ### END LIBTOOL CONFIG
17594 _LT_EOF
17596 case $host_os in
17597 aix3*)
17598 cat <<\_LT_EOF >> "$cfgfile"
17599 # AIX sometimes has problems with the GCC collect2 program. For some
17600 # reason, if we set the COLLECT_NAMES environment variable, the problems
17601 # vanish in a puff of smoke.
17602 if test "X${COLLECT_NAMES+set}" != Xset; then
17603 COLLECT_NAMES=
17604 export COLLECT_NAMES
17606 _LT_EOF
17608 esac
17611 ltmain="$ac_aux_dir/ltmain.sh"
17614 # We use sed instead of cat because bash on DJGPP gets confused if
17615 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17616 # text mode, it properly converts lines to CR/LF. This bash problem
17617 # is reportedly fixed, but why not run on old versions too?
17618 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17619 || (rm -f "$cfgfile"; exit 1)
17621 case $xsi_shell in
17622 yes)
17623 cat << \_LT_EOF >> "$cfgfile"
17625 # func_dirname file append nondir_replacement
17626 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17627 # otherwise set result to NONDIR_REPLACEMENT.
17628 func_dirname ()
17630 case ${1} in
17631 */*) func_dirname_result="${1%/*}${2}" ;;
17632 * ) func_dirname_result="${3}" ;;
17633 esac
17636 # func_basename file
17637 func_basename ()
17639 func_basename_result="${1##*/}"
17642 # func_dirname_and_basename file append nondir_replacement
17643 # perform func_basename and func_dirname in a single function
17644 # call:
17645 # dirname: Compute the dirname of FILE. If nonempty,
17646 # add APPEND to the result, otherwise set result
17647 # to NONDIR_REPLACEMENT.
17648 # value returned in "$func_dirname_result"
17649 # basename: Compute filename of FILE.
17650 # value retuned in "$func_basename_result"
17651 # Implementation must be kept synchronized with func_dirname
17652 # and func_basename. For efficiency, we do not delegate to
17653 # those functions but instead duplicate the functionality here.
17654 func_dirname_and_basename ()
17656 case ${1} in
17657 */*) func_dirname_result="${1%/*}${2}" ;;
17658 * ) func_dirname_result="${3}" ;;
17659 esac
17660 func_basename_result="${1##*/}"
17663 # func_stripname prefix suffix name
17664 # strip PREFIX and SUFFIX off of NAME.
17665 # PREFIX and SUFFIX must not contain globbing or regex special
17666 # characters, hashes, percent signs, but SUFFIX may contain a leading
17667 # dot (in which case that matches only a dot).
17668 func_stripname ()
17670 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17671 # positional parameters, so assign one to ordinary parameter first.
17672 func_stripname_result=${3}
17673 func_stripname_result=${func_stripname_result#"${1}"}
17674 func_stripname_result=${func_stripname_result%"${2}"}
17677 # func_opt_split
17678 func_opt_split ()
17680 func_opt_split_opt=${1%%=*}
17681 func_opt_split_arg=${1#*=}
17684 # func_lo2o object
17685 func_lo2o ()
17687 case ${1} in
17688 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17689 *) func_lo2o_result=${1} ;;
17690 esac
17693 # func_xform libobj-or-source
17694 func_xform ()
17696 func_xform_result=${1%.*}.lo
17699 # func_arith arithmetic-term...
17700 func_arith ()
17702 func_arith_result=$(( $* ))
17705 # func_len string
17706 # STRING may not start with a hyphen.
17707 func_len ()
17709 func_len_result=${#1}
17712 _LT_EOF
17714 *) # Bourne compatible functions.
17715 cat << \_LT_EOF >> "$cfgfile"
17717 # func_dirname file append nondir_replacement
17718 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17719 # otherwise set result to NONDIR_REPLACEMENT.
17720 func_dirname ()
17722 # Extract subdirectory from the argument.
17723 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17724 if test "X$func_dirname_result" = "X${1}"; then
17725 func_dirname_result="${3}"
17726 else
17727 func_dirname_result="$func_dirname_result${2}"
17731 # func_basename file
17732 func_basename ()
17734 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17738 # func_stripname prefix suffix name
17739 # strip PREFIX and SUFFIX off of NAME.
17740 # PREFIX and SUFFIX must not contain globbing or regex special
17741 # characters, hashes, percent signs, but SUFFIX may contain a leading
17742 # dot (in which case that matches only a dot).
17743 # func_strip_suffix prefix name
17744 func_stripname ()
17746 case ${2} in
17747 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17748 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17749 esac
17752 # sed scripts:
17753 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17754 my_sed_long_arg='1s/^-[^=]*=//'
17756 # func_opt_split
17757 func_opt_split ()
17759 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17760 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17763 # func_lo2o object
17764 func_lo2o ()
17766 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17769 # func_xform libobj-or-source
17770 func_xform ()
17772 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17775 # func_arith arithmetic-term...
17776 func_arith ()
17778 func_arith_result=`expr "$@"`
17781 # func_len string
17782 # STRING may not start with a hyphen.
17783 func_len ()
17785 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17788 _LT_EOF
17789 esac
17791 case $lt_shell_append in
17792 yes)
17793 cat << \_LT_EOF >> "$cfgfile"
17795 # func_append var value
17796 # Append VALUE to the end of shell variable VAR.
17797 func_append ()
17799 eval "$1+=\$2"
17801 _LT_EOF
17804 cat << \_LT_EOF >> "$cfgfile"
17806 # func_append var value
17807 # Append VALUE to the end of shell variable VAR.
17808 func_append ()
17810 eval "$1=\$$1\$2"
17813 _LT_EOF
17815 esac
17818 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17819 || (rm -f "$cfgfile"; exit 1)
17821 mv -f "$cfgfile" "$ofile" ||
17822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17823 chmod +x "$ofile"
17826 cat <<_LT_EOF >> "$ofile"
17828 # ### BEGIN LIBTOOL TAG CONFIG: D
17830 # The linker used to build libraries.
17831 LD=$lt_LD_D
17833 # How to create reloadable object files.
17834 reload_flag=$lt_reload_flag_D
17835 reload_cmds=$lt_reload_cmds_D
17837 # Commands used to build an old-style archive.
17838 old_archive_cmds=$lt_old_archive_cmds_D
17840 # A language specific compiler.
17841 CC=$lt_compiler_D
17843 # Is the compiler the GNU compiler?
17844 with_gcc=$GCC_D
17846 # Compiler flag to turn off builtin functions.
17847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17849 # How to pass a linker flag through the compiler.
17850 wl=$lt_lt_prog_compiler_wl_D
17852 # Additional compiler flags for building library objects.
17853 pic_flag=$lt_lt_prog_compiler_pic_D
17855 # Compiler flag to prevent dynamic linking.
17856 link_static_flag=$lt_lt_prog_compiler_static_D
17858 # Does compiler simultaneously support -c and -o options?
17859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17861 # Whether or not to add -lc for building shared libraries.
17862 build_libtool_need_lc=$archive_cmds_need_lc_D
17864 # Whether or not to disallow shared libs when runtime libs are static.
17865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17867 # Compiler flag to allow reflexive dlopens.
17868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17870 # Compiler flag to generate shared objects directly from archives.
17871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17873 # Whether the compiler copes with passing no objects directly.
17874 compiler_needs_object=$lt_compiler_needs_object_D
17876 # Create an old-style archive from a shared archive.
17877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17879 # Create a temporary old-style archive to link instead of a shared archive.
17880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17882 # Commands used to build a shared archive.
17883 archive_cmds=$lt_archive_cmds_D
17884 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17886 # Commands used to build a loadable module if different from building
17887 # a shared archive.
17888 module_cmds=$lt_module_cmds_D
17889 module_expsym_cmds=$lt_module_expsym_cmds_D
17891 # Whether we are building with GNU ld or not.
17892 with_gnu_ld=$lt_with_gnu_ld_D
17894 # Flag that allows shared libraries with undefined symbols to be built.
17895 allow_undefined_flag=$lt_allow_undefined_flag_D
17897 # Flag that enforces no undefined symbols.
17898 no_undefined_flag=$lt_no_undefined_flag_D
17900 # Flag to hardcode \$libdir into a binary during linking.
17901 # This must work even if \$libdir does not exist
17902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17904 # If ld is used when linking, flag to hardcode \$libdir into a binary
17905 # during linking. This must work even if \$libdir does not exist.
17906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17908 # Whether we need a single "-rpath" flag with a separated argument.
17909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17912 # DIR into the resulting binary.
17913 hardcode_direct=$hardcode_direct_D
17915 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17916 # DIR into the resulting binary and the resulting library dependency is
17917 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17918 # library is relocated.
17919 hardcode_direct_absolute=$hardcode_direct_absolute_D
17921 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17922 # into the resulting binary.
17923 hardcode_minus_L=$hardcode_minus_L_D
17925 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17926 # into the resulting binary.
17927 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17929 # Set to "yes" if building a shared library automatically hardcodes DIR
17930 # into the library and all subsequent libraries and executables linked
17931 # against it.
17932 hardcode_automatic=$hardcode_automatic_D
17934 # Set to yes if linker adds runtime paths of dependent libraries
17935 # to runtime path list.
17936 inherit_rpath=$inherit_rpath_D
17938 # Whether libtool must link a program against all its dependency libraries.
17939 link_all_deplibs=$link_all_deplibs_D
17941 # Fix the shell variable \$srcfile for the compiler.
17942 fix_srcfile_path=$lt_fix_srcfile_path_D
17944 # Set to "yes" if exported symbols are required.
17945 always_export_symbols=$always_export_symbols_D
17947 # The commands to list exported symbols.
17948 export_symbols_cmds=$lt_export_symbols_cmds_D
17950 # Symbols that should not be listed in the preloaded symbols.
17951 exclude_expsyms=$lt_exclude_expsyms_D
17953 # Symbols that must always be exported.
17954 include_expsyms=$lt_include_expsyms_D
17956 # Commands necessary for linking programs (against libraries) with templates.
17957 prelink_cmds=$lt_prelink_cmds_D
17959 # Specify filename containing input files.
17960 file_list_spec=$lt_file_list_spec_D
17962 # How to hardcode a shared library path into an executable.
17963 hardcode_action=$hardcode_action_D
17965 # ### END LIBTOOL TAG CONFIG: D
17966 _LT_EOF
17969 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17970 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17971 s!`test -f '$<' || echo '$(srcdir)/'`!!
17972 _EOF
17973 sed -f vpsed$$ $ac_file > tmp$$
17974 mv tmp$$ $ac_file
17975 rm vpsed$$
17976 echo 'MULTISUBDIR =' >> $ac_file
17977 ml_norecursion=yes
17978 . ${multi_basedir}/config-ml.in
17979 { ml_norecursion=; unset ml_norecursion;}
17981 "src/Makefile":F) cat > vpsed$$ << \_EOF
17982 s!`test -f '$<' || echo '$(srcdir)/'`!!
17983 _EOF
17984 sed -f vpsed$$ $ac_file > tmp$$
17985 mv tmp$$ $ac_file
17986 rm vpsed$$
17987 echo 'MULTISUBDIR =' >> $ac_file
17988 ml_norecursion=yes
17989 . ${multi_basedir}/config-ml.in
17990 { ml_norecursion=; unset ml_norecursion;}
17992 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17993 s!`test -f '$<' || echo '$(srcdir)/'`!!
17994 _EOF
17995 sed -f vpsed$$ $ac_file > tmp$$
17996 mv tmp$$ $ac_file
17997 rm vpsed$$
17998 echo 'MULTISUBDIR =' >> $ac_file
17999 ml_norecursion=yes
18000 . ${multi_basedir}/config-ml.in
18001 { ml_norecursion=; unset ml_norecursion;}
18004 esac
18005 done # for ac_tag
18008 as_fn_exit 0
18009 _ACEOF
18010 ac_clean_files=$ac_clean_files_save
18012 test $ac_write_fail = 0 ||
18013 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18016 # configure is writing to config.log, and then calls config.status.
18017 # config.status does its own redirection, appending to config.log.
18018 # Unfortunately, on DOS this fails, as config.log is still kept open
18019 # by configure, so config.status won't be able to write to it; its
18020 # output is simply discarded. So we exec the FD to /dev/null,
18021 # effectively closing config.log, so it can be properly (re)opened and
18022 # appended to by config.status. When coming back to configure, we
18023 # need to make the FD available again.
18024 if test "$no_create" != yes; then
18025 ac_cs_success=:
18026 ac_config_status_args=
18027 test "$silent" = yes &&
18028 ac_config_status_args="$ac_config_status_args --quiet"
18029 exec 5>/dev/null
18030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18031 exec 5>>config.log
18032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18033 # would make configure fail if this is the last instruction.
18034 $ac_cs_success || as_fn_exit 1
18036 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18038 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}