]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
use more get_range_query
[thirdparty/gcc.git] / libphobos / configure
CommitLineData
b4c522fa
IB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
0b6e3127 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
b4c522fa 7#
b4c522fa
IB
8#
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## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
79fi
80
81
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
b4c522fa
IB
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
b4c522fa
IB
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
b4c522fa
IB
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
235d1c46 199test \$(( 1 + 1 )) = 2 || exit 1
b4c522fa
IB
200
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\" \\
235d1c46 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
b4c522fa
IB
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
b4c522fa
IB
266fi
267
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."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
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/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
b4c522fa
IB
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.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
b4c522fa
IB
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
22e05272 415# script with STATUS, using 1 if that was 0.
b4c522fa
IB
416as_fn_error ()
417{
22e05272
JM
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
b4c522fa 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
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 '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
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; }
495
22e05272
JM
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
b4c522fa
IB
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
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `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;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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.
22e05272 534 # In both cases, we have to default to `cp -pR'.
b4c522fa 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
b4c522fa
IB
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
b4c522fa
IB
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
b4c522fa
IB
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
b4c522fa
IB
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
b4c522fa
IB
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b4c522fa
IB
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_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"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
38c3017f 636WARN_DFLAGS
85041a5b 637libtool_VERSION
b4c522fa 638SPEC_PHOBOS_DEPS
c0dbfbd7 639CHECKING_DFLAGS
261bd78d
IB
640ENABLE_LIBDRUNTIME_ONLY_FALSE
641ENABLE_LIBDRUNTIME_ONLY_TRUE
bca0a321
RO
642ENABLE_LIBPHOBOS_FALSE
643ENABLE_LIBPHOBOS_TRUE
b4c522fa 644gdc_include_dir
ac67752d
IB
645libphobos_toolexeclibdir
646libphobos_toolexecdir
b4c522fa 647gcc_version
bb50312e 648LIBZ
b4c522fa
IB
649BACKTRACE_SUPPORTS_THREADS
650BACKTRACE_USES_MALLOC
651BACKTRACE_SUPPORTED
652LIBBACKTRACE
653LIBATOMIC
654DCFG_HAVE_LIBATOMIC
655DCFG_HAVE_64BIT_ATOMICS
656DCFG_HAVE_ATOMIC_BUILTINS
36d7f151 657DCFG_HAVE_QSORT_R
ba838aa6 658OS_LINK_SPEC
235d1c46 659DCFG_DLPI_TLS_MODID
0b6e3127
RO
660DRUNTIME_OS_MINFO_BRACKETING_FALSE
661DRUNTIME_OS_MINFO_BRACKETING_TRUE
b4c522fa
IB
662DCFG_MINFO_BRACKETING
663DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665DCFG_ARM_EABI_UNWINDER
666DCFG_THREAD_MODEL
72c136c9
IB
667DRUNTIME_OS_POSIX_FALSE
668DRUNTIME_OS_POSIX_TRUE
b4c522fa
IB
669DRUNTIME_OS_SOLARIS_FALSE
670DRUNTIME_OS_SOLARIS_TRUE
671DRUNTIME_OS_MINGW_FALSE
672DRUNTIME_OS_MINGW_TRUE
673DRUNTIME_OS_LINUX_FALSE
674DRUNTIME_OS_LINUX_TRUE
675DRUNTIME_OS_OPENBSD_FALSE
676DRUNTIME_OS_OPENBSD_TRUE
677DRUNTIME_OS_NETBSD_FALSE
678DRUNTIME_OS_NETBSD_TRUE
679DRUNTIME_OS_FREEBSD_FALSE
680DRUNTIME_OS_FREEBSD_TRUE
681DRUNTIME_OS_DRAGONFLYBSD_FALSE
682DRUNTIME_OS_DRAGONFLYBSD_TRUE
683DRUNTIME_OS_DARWIN_FALSE
684DRUNTIME_OS_DARWIN_TRUE
685DRUNTIME_OS_ANDROID_FALSE
686DRUNTIME_OS_ANDROID_TRUE
687DRUNTIME_OS_AIX_FALSE
688DRUNTIME_OS_AIX_TRUE
88e508f9
RD
689DRUNTIME_CPU_S390_FALSE
690DRUNTIME_CPU_S390_TRUE
691DRUNTIME_CPU_SYSTEMZ_FALSE
692DRUNTIME_CPU_SYSTEMZ_TRUE
2493e718
IB
693DRUNTIME_CPU_X86_FALSE
694DRUNTIME_CPU_X86_TRUE
2493e718
IB
695DRUNTIME_CPU_POWERPC_FALSE
696DRUNTIME_CPU_POWERPC_TRUE
697DRUNTIME_CPU_MIPS_FALSE
698DRUNTIME_CPU_MIPS_TRUE
699DRUNTIME_CPU_ARM_FALSE
700DRUNTIME_CPU_ARM_TRUE
701DRUNTIME_CPU_AARCH64_FALSE
702DRUNTIME_CPU_AARCH64_TRUE
d118ec22 703SECTION_FLAGS
b4c522fa
IB
704libphobos_srcdir
705libphobos_builddir
706get_gcc_base_ver
707phobos_compiler_shared_flag
708phobos_compiler_pic_flag
fdfcb535
IB
709phobos_lt_pic_flag
710enable_static
711enable_shared
b4c522fa
IB
712OTOOL64
713OTOOL
714LIPO
715NMEDIT
716DSYMUTIL
717OBJDUMP
718LN_S
719NM
720ac_ct_DUMPBIN
721DUMPBIN
722LD
723FGREP
b4c522fa
IB
724SED
725LIBTOOL
726CFLAGS_FOR_BUILD
727CC_FOR_BUILD
728AR
5dbab7b3 729DCFG_ENABLE_CET
0ed75760 730CET_DFLAGS
08c1d39d 731CET_FLAGS
b4c522fa
IB
732RANLIB
733MAINT
734MAINTAINER_MODE_FALSE
735MAINTAINER_MODE_TRUE
736GDCFLAGS
737GDC
738CCASFLAGS
739CCAS
22e05272
JM
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
b4c522fa
IB
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
235d1c46
RO
767EGREP
768GREP
769CPP
770OBJEXT
771EXEEXT
772ac_ct_CC
773CPPFLAGS
774LDFLAGS
775CFLAGS
776CC
b4c522fa
IB
777target_os
778target_vendor
779target_cpu
780target
781host_os
782host_vendor
783host_cpu
784host
785build_os
786build_vendor
787build_cpu
788build
789multi_basedir
790target_alias
791host_alias
792build_alias
793LIBS
794ECHO_T
795ECHO_N
796ECHO_C
797DEFS
798mandir
799localedir
800libdir
801psdir
802pdfdir
803dvidir
804htmldir
805infodir
806docdir
807oldincludedir
808includedir
809localstatedir
810sharedstatedir
811sysconfdir
812datadir
813datarootdir
814libexecdir
815sbindir
816bindir
817program_transform_name
818prefix
819exec_prefix
820PACKAGE_URL
821PACKAGE_BUGREPORT
822PACKAGE_STRING
823PACKAGE_VERSION
824PACKAGE_TARNAME
825PACKAGE_NAME
826PATH_SEPARATOR
827SHELL'
0b6e3127 828ac_subst_files='DRTSTUFF_SPEC'
b4c522fa
IB
829ac_user_opts='
830enable_option_checking
831enable_multilib
22e05272 832enable_silent_rules
b4c522fa 833enable_maintainer_mode
08c1d39d 834enable_cet
b4c522fa
IB
835enable_shared
836enable_static
837with_pic
838enable_fast_install
839with_gnu_ld
840enable_libtool_lock
841with_gcc_major_version_only
842enable_werror
b4c522fa
IB
843with_libatomic
844with_libbacktrace
845with_target_system_zlib
846with_cross_host
ac67752d 847enable_version_specific_runtime_libs
e8e66971 848with_toolexeclibdir
bca0a321 849enable_libphobos
371d1011 850with_libphobos_druntime_only
c0dbfbd7 851enable_libphobos_checking
b4c522fa
IB
852'
853 ac_precious_vars='build_alias
854host_alias
855target_alias
235d1c46
RO
856CC
857CFLAGS
858LDFLAGS
859LIBS
860CPPFLAGS
861CPP'
b4c522fa
IB
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
22e05272
JM
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
b4c522fa
IB
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 971 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 997 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1201 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1217 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
22e05272
JM
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
b4c522fa
IB
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b4c522fa
IB
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b4c522fa
IB
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1274 as_fn_error $? "missing argument to $ac_option"
b4c522fa
IB
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
22e05272 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
b4c522fa
IB
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
d8b1f499 1289 libdir localedir mandir
b4c522fa
IB
1290do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
22e05272 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b4c522fa
IB
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
b4c522fa
IB
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1331 as_fn_error $? "working directory cannot be determined"
b4c522fa 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1333 as_fn_error $? "pwd does not report name of working directory"
b4c522fa
IB
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b4c522fa
IB
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
22e05272 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b4c522fa
IB
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
22e05272 1416 -q, --quiet, --silent do not print \`checking ...' messages
b4c522fa
IB
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of package-unused version-unused:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-multilib build many library versions (default)
22e05272
JM
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
4c1a5d8b 1487 --enable-cet enable Intel CET in target libraries [default=auto]
b4c522fa
IB
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-werror turns on -Werror [default=no]
ac67752d
IB
1494 --enable-version-specific-runtime-libs
1495 Specify that runtime libraries should be installed
1496 in a compiler-specific directory
bca0a321 1497 --enable-libphobos Enable libphobos
c0dbfbd7
IB
1498 --enable-libphobos-checking[=LIST]
1499 enable expensive run-time checks. With LIST, enable
1500 only specific categories of checks. Categories are:
e9251fea
IB
1501 yes,no,all,none,release. Flags are: assert,valgrind
1502 or other strings
b4c522fa
IB
1503
1504Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-pic try to use only PIC/non-PIC objects [default=use
1508 both]
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-gcc-major-version-only
1511 use only GCC major number in filesystem paths
1512 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1513 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1514 auto)
bb50312e 1515 --with-target-system-zlib={yes,no,auto}
b4c522fa
IB
1516 use installed libz (default: no)
1517 --with-cross-host=HOST configuring with a cross compiler
e8e66971
MR
1518 --with-toolexeclibdir=DIR
1519 install libraries built with a cross compiler within
1520 DIR
261bd78d
IB
1521 --with-libphobos-druntime-only={yes,no,auto}
1522 build only the druntime library (default: auto)
b4c522fa
IB
1523
1524Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b4c522fa 1531 you have headers in a nonstandard directory <include dir>
235d1c46 1532 CPP C preprocessor
b4c522fa
IB
1533 CCAS assembler compiler command (defaults to CC)
1534 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1535 GDC D compiler command
1536 GDCFLAGS D compiler flags
b4c522fa
IB
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to the package provider.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1553
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
1569
1570case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583esac
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1599fi
1600
1601test -n "$ac_init_help" && exit $ac_status
1602if $ac_init_version; then
1603 cat <<\_ACEOF
1604package-unused configure version-unused
22e05272 1605generated by GNU Autoconf 2.69
b4c522fa 1606
0b6e3127 1607Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
1611 exit
1612fi
1613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
1617
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
22e05272
JM
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
b4c522fa
IB
1653
1654} # ac_fn_c_try_compile
1655
235d1c46
RO
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
b4c522fa
IB
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
b4c522fa
IB
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
235d1c46 1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
b4c522fa
IB
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b4c522fa 1679 test ! -s conftest.err
235d1c46 1680 }; then :
b4c522fa
IB
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
235d1c46 1686 ac_retval=1
b4c522fa 1687fi
22e05272
JM
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
b4c522fa 1690
235d1c46 1691} # ac_fn_c_try_cpp
b4c522fa 1692
235d1c46
RO
1693# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1696# the include files in INCLUDES and setting the cache variable VAR
1697# accordingly.
1698ac_fn_c_check_header_mongrel ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if eval \${$3+:} false; then :
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710else
1711 # Is the header compilable?
1712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1713$as_echo_n "checking $2 usability... " >&6; }
1714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h. */
1716$4
1717#include <$2>
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720 ac_header_compiler=yes
1721else
1722 ac_header_compiler=no
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1726$as_echo "$ac_header_compiler" >&6; }
1727
1728# Is the header present?
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1730$as_echo_n "checking $2 presence... " >&6; }
1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h. */
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_cpp "$LINENO"; then :
1736 ac_header_preproc=yes
1737else
1738 ac_header_preproc=no
1739fi
1740rm -f conftest.err conftest.i conftest.$ac_ext
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1742$as_echo "$ac_header_preproc" >&6; }
1743
1744# So? What about this header?
1745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1746 yes:no: )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1748$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 ;;
1752 no:yes:* )
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1754$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1756$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1758$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1760$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 ;;
1764esac
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
1767if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769else
1770 eval "$3=\$ac_header_compiler"
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775fi
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_mongrel
1779
1780# ac_fn_c_try_run LINENO
1781# ----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783# that executables *can* be run.
1784ac_fn_c_try_run ()
b4c522fa
IB
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b4c522fa
IB
1787 if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
235d1c46 1794 (eval "$ac_link") 2>&5
b4c522fa 1795 ac_status=$?
b4c522fa 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
b4c522fa
IB
1808 ac_retval=0
1809else
235d1c46
RO
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
235d1c46 1814 ac_retval=$ac_status
b4c522fa 1815fi
b4c522fa 1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
b4c522fa 1819
235d1c46 1820} # ac_fn_c_try_run
b4c522fa
IB
1821
1822# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823# -------------------------------------------------------
1824# Tests whether HEADER exists and can be compiled using the include files in
1825# INCLUDES, setting the cache variable VAR accordingly.
1826ac_fn_c_check_header_compile ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
22e05272 1831if eval \${$3+:} false; then :
b4c522fa
IB
1832 $as_echo_n "(cached) " >&6
1833else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836$4
1837#include <$2>
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841else
1842 eval "$3=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
22e05272 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1850
1851} # ac_fn_c_check_header_compile
1852
235d1c46
RO
1853# ac_fn_d_try_compile LINENO
1854# --------------------------
1855# Try to compile conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_d_try_compile ()
b4c522fa
IB
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46
RO
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
b4c522fa
IB
1861case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
235d1c46 1867 (eval "$ac_compile") 2>conftest.err
b4c522fa
IB
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1875 test $ac_status = 0; } && {
1876 test -z "$ac_d_werror_flag" ||
b4c522fa 1877 test ! -s conftest.err
235d1c46 1878 } && test -s conftest.$ac_objext; then :
b4c522fa
IB
1879 ac_retval=0
1880else
1881 $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
235d1c46 1884 ac_retval=1
b4c522fa 1885fi
22e05272
JM
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
b4c522fa 1888
235d1c46 1889} # ac_fn_d_try_compile
b4c522fa 1890
235d1c46
RO
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
b4c522fa
IB
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1897 rm -f conftest.$ac_objext conftest$ac_exeext
b4c522fa
IB
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
235d1c46 1905 (eval "$ac_link") 2>conftest.err
b4c522fa 1906 ac_status=$?
235d1c46
RO
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
b4c522fa 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
b4c522fa
IB
1920 ac_retval=0
1921else
235d1c46 1922 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
235d1c46 1925 ac_retval=1
b4c522fa 1926fi
235d1c46
RO
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
b4c522fa 1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
b4c522fa 1934
235d1c46 1935} # ac_fn_c_try_link
b4c522fa
IB
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
22e05272 1945if eval \${$3+:} false; then :
b4c522fa
IB
1946 $as_echo_n "(cached) " >&6
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991else
1992 eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
22e05272 2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
2001
2002} # ac_fn_c_check_func
2003
235d1c46
RO
2004# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005# ----------------------------------------------------
2006# Tries to find if the field MEMBER exists in type AGGR, after including
2007# INCLUDES, setting cache variable VAR accordingly.
2008ac_fn_c_check_member ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012$as_echo_n "checking for $2.$3... " >&6; }
2013if eval \${$4+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018$5
2019int
2020main ()
2021{
2022static $2 ac_aggr;
2023if (ac_aggr.$3)
2024return 0;
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034$5
2035int
2036main ()
2037{
2038static $2 ac_aggr;
2039if (sizeof ac_aggr.$3)
2040return 0;
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047else
2048 eval "$4=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054eval ac_res=\$$4
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059} # ac_fn_c_check_member
2060
2061# ac_fn_d_try_link LINENO
2062# -----------------------
2063# Try to link conftest.$ac_ext, and return whether this succeeded.
b4c522fa
IB
2064ac_fn_d_try_link ()
2065{
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext conftest$ac_exeext
2068 if { { ac_try="$ac_link"
2069case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072esac
2073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074$as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>conftest.err
2076 ac_status=$?
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2081 fi
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_d_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest$ac_exeext && {
2087 test "$cross_compiling" = yes ||
22e05272 2088 test -x conftest$ac_exeext
b4c522fa
IB
2089 }; then :
2090 ac_retval=0
2091else
2092 $as_echo "$as_me: failed program was:" >&5
2093sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_retval=1
2096fi
2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099 # interfere with the next link command; also delete a directory that is
2100 # left behind by Apple's compiler. We do this before executing the actions.
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 as_fn_set_status $ac_retval
b4c522fa
IB
2104
2105} # ac_fn_d_try_link
b4c522fa
IB
2106cat >config.log <<_ACEOF
2107This file contains any messages produced by compilers while
2108running configure, to aid debugging if configure makes a mistake.
2109
2110It was created by package-unused $as_me version-unused, which was
22e05272 2111generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
2112
2113 $ $0 $@
2114
2115_ACEOF
2116exec 5>>config.log
2117{
2118cat <<_ASUNAME
2119## --------- ##
2120## Platform. ##
2121## --------- ##
2122
2123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131
2132/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2133/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2136/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2137/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2138/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139
2140_ASUNAME
2141
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 $as_echo "PATH: $as_dir"
2148 done
2149IFS=$as_save_IFS
2150
2151} >&5
2152
2153cat >&5 <<_ACEOF
2154
2155
2156## ----------- ##
2157## Core tests. ##
2158## ----------- ##
2159
2160_ACEOF
2161
2162
2163# Keep a trace of the command line.
2164# Strip out --no-create and --no-recursion so they do not pile up.
2165# Strip out --silent because we don't want to record it for future runs.
2166# Also quote any args containing shell meta-characters.
2167# Make two passes to allow for proper duplicate-argument suppression.
2168ac_configure_args=
2169ac_configure_args0=
2170ac_configure_args1=
2171ac_must_keep_next=false
2172for ac_pass in 1 2
2173do
2174 for ac_arg
2175 do
2176 case $ac_arg in
2177 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179 | -silent | --silent | --silen | --sile | --sil)
2180 continue ;;
2181 *\'*)
2182 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 esac
2184 case $ac_pass in
2185 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186 2)
2187 as_fn_append ac_configure_args1 " '$ac_arg'"
2188 if test $ac_must_keep_next = true; then
2189 ac_must_keep_next=false # Got value, back to normal.
2190 else
2191 case $ac_arg in
2192 *=* | --config-cache | -C | -disable-* | --disable-* \
2193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195 | -with-* | --with-* | -without-* | --without-* | --x)
2196 case "$ac_configure_args0 " in
2197 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198 esac
2199 ;;
2200 -* ) ac_must_keep_next=true ;;
2201 esac
2202 fi
2203 as_fn_append ac_configure_args " '$ac_arg'"
2204 ;;
2205 esac
2206 done
2207done
2208{ ac_configure_args0=; unset ac_configure_args0;}
2209{ ac_configure_args1=; unset ac_configure_args1;}
2210
2211# When interrupted or exit'd, cleanup temporary files, and complete
2212# config.log. We remove comments because anyway the quotes in there
2213# would cause problems or look ugly.
2214# WARNING: Use '\'' to represent an apostrophe within the trap.
2215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216trap 'exit_status=$?
2217 # Save into config.log some information that might help in debugging.
2218 {
2219 echo
2220
22e05272 2221 $as_echo "## ---------------- ##
b4c522fa 2222## Cache variables. ##
22e05272 2223## ---------------- ##"
b4c522fa
IB
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2226(
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2249 *)
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 ;;
2252 esac |
2253 sort
2254)
2255 echo
2256
22e05272 2257 $as_echo "## ----------------- ##
b4c522fa 2258## Output variables. ##
22e05272 2259## ----------------- ##"
b4c522fa
IB
2260 echo
2261 for ac_var in $ac_subst_vars
2262 do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2270
2271 if test -n "$ac_subst_files"; then
22e05272 2272 $as_echo "## ------------------- ##
b4c522fa 2273## File substitutions. ##
22e05272 2274## ------------------- ##"
b4c522fa
IB
2275 echo
2276 for ac_var in $ac_subst_files
2277 do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 esac
2282 $as_echo "$ac_var='\''$ac_val'\''"
2283 done | sort
2284 echo
2285 fi
2286
2287 if test -s confdefs.h; then
22e05272 2288 $as_echo "## ----------- ##
b4c522fa 2289## confdefs.h. ##
22e05272 2290## ----------- ##"
b4c522fa
IB
2291 echo
2292 cat confdefs.h
2293 echo
2294 fi
2295 test "$ac_signal" != 0 &&
2296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2302' 0
2303for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
2309rm -f -r conftest* confdefs.h
2310
2311$as_echo "/* confdefs.h */" > confdefs.h
2312
2313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
2339
2340# Let the site file select an alternate cache file if it wants to.
2341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
2344if test -n "$CONFIG_SITE"; then
22e05272
JM
2345 # We do not want a PATH search for config.site.
2346 case $CONFIG_SITE in #((
2347 -*) ac_site_file1=./$CONFIG_SITE;;
2348 */*) ac_site_file1=$CONFIG_SITE;;
2349 *) ac_site_file1=./$CONFIG_SITE;;
2350 esac
b4c522fa
IB
2351elif test "x$prefix" != xNONE; then
2352 ac_site_file1=$prefix/share/config.site
2353 ac_site_file2=$prefix/etc/config.site
2354else
2355 ac_site_file1=$ac_default_prefix/share/config.site
2356 ac_site_file2=$ac_default_prefix/etc/config.site
2357fi
2358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359do
2360 test "x$ac_site_file" = xNONE && continue
22e05272 2361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b4c522fa
IB
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2365 . "$ac_site_file" \
2366 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368as_fn_error $? "failed to load site script $ac_site_file
2369See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2370 fi
2371done
2372
2373if test -r "$cache_file"; then
22e05272
JM
2374 # Some versions of bash will fail to source /dev/null (special files
2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b4c522fa
IB
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378$as_echo "$as_me: loading cache $cache_file" >&6;}
2379 case $cache_file in
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2382 esac
2383 fi
2384else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386$as_echo "$as_me: creating cache $cache_file" >&6;}
2387 >$cache_file
2388fi
2389
2390# Check that the precious variables saved in the cache have kept the same
2391# value.
2392ac_cache_corrupted=false
2393for ac_var in $ac_precious_vars; do
2394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395 eval ac_new_set=\$ac_env_${ac_var}_set
2396 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397 eval ac_new_val=\$ac_env_${ac_var}_value
2398 case $ac_old_set,$ac_new_set in
2399 set,)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,set)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,);;
2408 *)
2409 if test "x$ac_old_val" != "x$ac_new_val"; then
2410 # differences in whitespace do not lead to failure.
2411 ac_old_val_w=`echo x $ac_old_val`
2412 ac_new_val_w=`echo x $ac_new_val`
2413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416 ac_cache_corrupted=:
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420 eval $ac_var=\$ac_old_val
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2423$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2425$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2426 fi;;
2427 esac
2428 # Pass precious variables to config.status.
2429 if test "$ac_new_set" = set; then
2430 case $ac_new_val in
2431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 *) ac_arg=$ac_var=$ac_new_val ;;
2433 esac
2434 case " $ac_configure_args " in
2435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2436 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437 esac
2438 fi
2439done
2440if $ac_cache_corrupted; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2445 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b4c522fa
IB
2446fi
2447## -------------------- ##
2448## Main body of script. ##
2449## -------------------- ##
2450
2451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459
2460
2461
2462ac_config_headers="$ac_config_headers config.h"
2463
2464
2465# Default to --enable-multilib
2466# Check whether --enable-multilib was given.
2467if test "${enable_multilib+set}" = set; then :
2468 enableval=$enable_multilib; case "$enableval" in
2469 yes) multilib=yes ;;
2470 no) multilib=no ;;
22e05272 2471 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
b4c522fa
IB
2472 esac
2473else
2474 multilib=yes
2475fi
2476
2477
2478# We may get other options which we leave undocumented:
2479# --with-target-subdir, --with-multisrctop, --with-multisubdir
2480# See config-ml.in if you want the gory details.
2481
2482if test "$srcdir" = "."; then
2483 if test "$with_target_subdir" != "."; then
2484 multi_basedir="$srcdir/$with_multisrctop../.."
2485 else
2486 multi_basedir="$srcdir/$with_multisrctop.."
2487 fi
2488else
2489 multi_basedir="$srcdir/.."
2490fi
2491
2492
2493# Even if the default multilib is not a cross compilation,
2494# it may be that some of the other multilibs are.
2495if test $cross_compiling = no && test $multilib = yes \
2496 && test "x${with_multisubdir}" != x ; then
2497 cross_compiling=maybe
2498fi
2499
2500ac_config_commands="$ac_config_commands default-1"
2501
2502ac_aux_dir=
2503for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2504 if test -f "$ac_dir/install-sh"; then
2505 ac_aux_dir=$ac_dir
2506 ac_install_sh="$ac_aux_dir/install-sh -c"
2507 break
2508 elif test -f "$ac_dir/install.sh"; then
2509 ac_aux_dir=$ac_dir
2510 ac_install_sh="$ac_aux_dir/install.sh -c"
2511 break
2512 elif test -f "$ac_dir/shtool"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/shtool install -c"
2515 break
2516 fi
b4c522fa
IB
2517done
2518if test -z "$ac_aux_dir"; then
22e05272 2519 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b4c522fa
IB
2520fi
2521
2522# These three variables are undocumented and unsupported,
2523# and are intended to be withdrawn in a future Autoconf release.
2524# They can cause serious problems if a builder's source tree is in a directory
2525# whose full name contains unusual characters.
2526ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2527ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2528ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2529
2530
2531# Make sure we can run config.sub.
2532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2533 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b4c522fa
IB
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2536$as_echo_n "checking build system type... " >&6; }
22e05272 2537if ${ac_cv_build+:} false; then :
b4c522fa
IB
2538 $as_echo_n "(cached) " >&6
2539else
2540 ac_build_alias=$build_alias
2541test "x$ac_build_alias" = x &&
2542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2543test "x$ac_build_alias" = x &&
22e05272 2544 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b4c522fa 2545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b4c522fa
IB
2547
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2550$as_echo "$ac_cv_build" >&6; }
2551case $ac_cv_build in
2552*-*-*) ;;
22e05272 2553*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b4c522fa
IB
2554esac
2555build=$ac_cv_build
2556ac_save_IFS=$IFS; IFS='-'
2557set x $ac_cv_build
2558shift
2559build_cpu=$1
2560build_vendor=$2
2561shift; shift
2562# Remember, the first character of IFS is used to create $*,
2563# except with old shells:
2564build_os=$*
2565IFS=$ac_save_IFS
2566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2567
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2570$as_echo_n "checking host system type... " >&6; }
22e05272 2571if ${ac_cv_host+:} false; then :
b4c522fa
IB
2572 $as_echo_n "(cached) " >&6
2573else
2574 if test "x$host_alias" = x; then
2575 ac_cv_host=$ac_cv_build
2576else
2577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b4c522fa
IB
2579fi
2580
2581fi
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2583$as_echo "$ac_cv_host" >&6; }
2584case $ac_cv_host in
2585*-*-*) ;;
22e05272 2586*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b4c522fa
IB
2587esac
2588host=$ac_cv_host
2589ac_save_IFS=$IFS; IFS='-'
2590set x $ac_cv_host
2591shift
2592host_cpu=$1
2593host_vendor=$2
2594shift; shift
2595# Remember, the first character of IFS is used to create $*,
2596# except with old shells:
2597host_os=$*
2598IFS=$ac_save_IFS
2599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2600
2601
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2603$as_echo_n "checking target system type... " >&6; }
22e05272 2604if ${ac_cv_target+:} false; then :
b4c522fa
IB
2605 $as_echo_n "(cached) " >&6
2606else
2607 if test "x$target_alias" = x; then
2608 ac_cv_target=$ac_cv_host
2609else
2610 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b4c522fa
IB
2612fi
2613
2614fi
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2616$as_echo "$ac_cv_target" >&6; }
2617case $ac_cv_target in
2618*-*-*) ;;
22e05272 2619*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b4c522fa
IB
2620esac
2621target=$ac_cv_target
2622ac_save_IFS=$IFS; IFS='-'
2623set x $ac_cv_target
2624shift
2625target_cpu=$1
2626target_vendor=$2
2627shift; shift
2628# Remember, the first character of IFS is used to create $*,
2629# except with old shells:
2630target_os=$*
2631IFS=$ac_save_IFS
2632case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2633
2634
2635# The aliases save the names the user supplied, while $host etc.
2636# will get canonicalized.
2637test -n "$target_alias" &&
2638 test "$program_prefix$program_suffix$program_transform_name" = \
2639 NONENONEs,x,x, &&
2640 program_prefix=${target_alias}-
2641
235d1c46
RO
2642# Expand $ac_aux_dir to an absolute path.
2643am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa 2644
235d1c46
RO
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}gcc; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2656 $as_echo_n "(cached) " >&6
2657else
235d1c46
RO
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
235d1c46
RO
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
b4c522fa
IB
2673 done
2674IFS=$as_save_IFS
2675
b4c522fa 2676fi
b4c522fa 2677fi
235d1c46
RO
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681$as_echo "$CC" >&6; }
2682else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
b4c522fa 2686
b4c522fa 2687
b4c522fa 2688fi
235d1c46
RO
2689if test -z "$ac_cv_prog_CC"; then
2690 ac_ct_CC=$CC
2691 # Extract the first word of "gcc", so it can be a program name with args.
2692set dummy gcc; ac_word=$2
b4c522fa
IB
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2695if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2696 $as_echo_n "(cached) " >&6
2697else
235d1c46
RO
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2708 ac_cv_prog_ac_ct_CC="gcc"
b4c522fa
IB
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713 done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
235d1c46
RO
2718ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719if test -n "$ac_ct_CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2721$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
2722else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
235d1c46
RO
2727 if test "x$ac_ct_CC" = x; then
2728 CC=""
2729 else
2730 case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736 CC=$ac_ct_CC
2737 fi
2738else
2739 CC="$ac_cv_prog_CC"
b4c522fa 2740fi
235d1c46
RO
2741
2742if test -z "$CC"; then
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2745set dummy ${ac_tool_prefix}cc; ac_word=$2
b4c522fa
IB
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2748if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2749 $as_echo_n "(cached) " >&6
2750else
235d1c46
RO
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2761 ac_cv_prog_CC="${ac_tool_prefix}cc"
b4c522fa
IB
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765done
2766 done
2767IFS=$as_save_IFS
2768
2769fi
2770fi
235d1c46
RO
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
b4c522fa
IB
2775else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
b4c522fa 2780
b4c522fa
IB
2781 fi
2782fi
235d1c46
RO
2783if test -z "$CC"; then
2784 # Extract the first word of "cc", so it can be a program name with args.
2785set dummy cc; ac_word=$2
b4c522fa
IB
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2788if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2789 $as_echo_n "(cached) " >&6
2790else
235d1c46
RO
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa 2793else
235d1c46 2794 ac_prog_rejected=no
b4c522fa
IB
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46
RO
2802 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2803 ac_prog_rejected=yes
2804 continue
2805 fi
2806 ac_cv_prog_CC="cc"
b4c522fa
IB
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810done
2811 done
2812IFS=$as_save_IFS
2813
235d1c46
RO
2814if test $ac_prog_rejected = yes; then
2815 # We found a bogon in the path, so make sure we never use it.
2816 set dummy $ac_cv_prog_CC
2817 shift
2818 if test $# != 0; then
2819 # We chose a different compiler from the bogus one.
2820 # However, it has the same basename, so the bogon will be chosen
2821 # first if we set CC to just the basename; use the full file name.
2822 shift
2823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2824 fi
b4c522fa
IB
2825fi
2826fi
235d1c46
RO
2827fi
2828CC=$ac_cv_prog_CC
2829if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831$as_echo "$CC" >&6; }
b4c522fa
IB
2832else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
b4c522fa
IB
2835fi
2836
2837
22e05272 2838fi
235d1c46
RO
2839if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 for ac_prog in cl.exe
2842 do
2843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4c522fa
IB
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2847if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2848 $as_echo_n "(cached) " >&6
2849else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2860 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864done
2865 done
2866IFS=$as_save_IFS
2867
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
2874else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877fi
2878
2879
235d1c46
RO
2880 test -n "$CC" && break
2881 done
b4c522fa 2882fi
235d1c46 2883if test -z "$CC"; then
b4c522fa 2884 ac_ct_CC=$CC
235d1c46
RO
2885 for ac_prog in cl.exe
2886do
2887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2888set dummy $ac_prog; ac_word=$2
b4c522fa
IB
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2891if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2892 $as_echo_n "(cached) " >&6
2893else
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2904 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908done
2909 done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915if test -n "$ac_ct_CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917$as_echo "$ac_ct_CC" >&6; }
2918else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
235d1c46
RO
2922
2923
2924 test -n "$ac_ct_CC" && break
2925done
b4c522fa
IB
2926
2927 if test "x$ac_ct_CC" = x; then
2928 CC=""
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931yes:)
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934ac_tool_warned=yes ;;
2935esac
2936 CC=$ac_ct_CC
2937 fi
2938fi
2939
2940fi
2941
2942
2943test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2945as_fn_error $? "no acceptable C compiler found in \$PATH
2946See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2947
2948# Provide some information about the compiler.
2949$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2950set X $ac_compile
2951ac_compiler=$2
2952for ac_option in --version -v -V -qversion; do
2953 { { ac_try="$ac_compiler $ac_option >&5"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961 ac_status=$?
2962 if test -s conftest.err; then
2963 sed '10a\
2964... rest of stderr output deleted ...
2965 10q' conftest.err >conftest.er1
2966 cat conftest.er1 >&5
b4c522fa 2967 fi
22e05272 2968 rm -f conftest.er1 conftest.err
b4c522fa
IB
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971done
2972
2973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h. */
2975
2976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984ac_clean_files_save=$ac_clean_files
22e05272 2985ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b4c522fa
IB
2986# Try to create an executable without -o first, disregard a.out.
2987# It will help us diagnose broken compilers, and finding out an intuition
2988# of exeext.
22e05272
JM
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2990$as_echo_n "checking whether the C compiler works... " >&6; }
b4c522fa
IB
2991ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992
2993# The possible output files:
2994ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2995
2996ac_rmfiles=
2997for ac_file in $ac_files
2998do
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 esac
3003done
3004rm -f $ac_rmfiles
3005
3006if { { ac_try="$ac_link_default"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012$as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link_default") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019# in a Makefile. We should not override ac_cv_exeext if it was cached,
3020# so that the user can short-circuit this test for compilers unknown to
3021# Autoconf.
3022for ac_file in $ac_files ''
3023do
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3027 ;;
3028 [ab].out )
3029 # We found the default executable, but exeext='' is most
3030 # certainly right.
3031 break;;
3032 *.* )
3033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034 then :; else
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036 fi
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3041 # actually working.
3042 break;;
3043 * )
3044 break;;
3045 esac
3046done
3047test "$ac_cv_exeext" = no && ac_cv_exeext=
3048
3049else
3050 ac_file=''
3051fi
b4c522fa 3052if test -z "$ac_file"; then :
22e05272
JM
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055$as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3060as_fn_error 77 "C compiler cannot create executables
3061See \`config.log' for more details" "$LINENO" 5; }
3062else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064$as_echo "yes" >&6; }
b4c522fa 3065fi
22e05272
JM
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067$as_echo_n "checking for C compiler default output file name... " >&6; }
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069$as_echo "$ac_file" >&6; }
b4c522fa
IB
3070ac_exeext=$ac_cv_exeext
3071
22e05272 3072rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b4c522fa 3073ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3075$as_echo_n "checking for suffix of executables... " >&6; }
3076if { { ac_try="$ac_link"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3089# work properly (i.e., refer to `conftest.exe'), while it won't with
3090# `rm'.
3091for ac_file in conftest.exe conftest conftest.*; do
3092 test -f "$ac_file" || continue
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 break;;
3097 * ) break;;
3098 esac
3099done
3100else
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3103as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3104See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 3105fi
22e05272 3106rm -f conftest conftest$ac_cv_exeext
b4c522fa
IB
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3108$as_echo "$ac_cv_exeext" >&6; }
3109
3110rm -f conftest.$ac_ext
3111EXEEXT=$ac_cv_exeext
3112ac_exeext=$EXEEXT
22e05272
JM
3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h. */
3115#include <stdio.h>
3116int
3117main ()
3118{
3119FILE *f = fopen ("conftest.out", "w");
3120 return ferror (f) || fclose (f) != 0;
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126ac_clean_files="$ac_clean_files conftest.out"
3127# Check that the compiler produces executables we can run. If not, either
3128# the compiler is broken, or we cross compile.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3130$as_echo_n "checking whether we are cross compiling... " >&6; }
3131if test "$cross_compiling" != yes; then
3132 { { ac_try="$ac_link"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }
3143 if { ac_try='./conftest$ac_cv_exeext'
3144 { { case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; }; then
3154 cross_compiling=no
3155 else
3156 if test "$cross_compiling" = maybe; then
3157 cross_compiling=yes
3158 else
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161as_fn_error $? "cannot run C compiled programs.
3162If you meant to cross compile, use \`--host'.
3163See \`config.log' for more details" "$LINENO" 5; }
3164 fi
3165 fi
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3168$as_echo "$cross_compiling" >&6; }
3169
3170rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3171ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3174if ${ac_cv_objext+:} false; then :
b4c522fa
IB
3175 $as_echo_n "(cached) " >&6
3176else
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h. */
3179
3180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188rm -f conftest.o conftest.obj
3189if { { ac_try="$ac_compile"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compile") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 for ac_file in conftest.o conftest.obj conftest.*; do
3201 test -f "$ac_file" || continue;
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 break;;
3206 esac
3207done
3208else
3209 $as_echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3214as_fn_error $? "cannot compute suffix of object files: cannot compile
3215See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3216fi
3217rm -f conftest.$ac_cv_objext conftest.$ac_ext
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220$as_echo "$ac_cv_objext" >&6; }
3221OBJEXT=$ac_cv_objext
3222ac_objext=$OBJEXT
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3224$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3225if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
3226 $as_echo_n "(cached) " >&6
3227else
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230
3231int
3232main ()
3233{
3234#ifndef __GNUC__
3235 choke me
3236#endif
3237
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_compiler_gnu=yes
3244else
3245 ac_compiler_gnu=no
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248ac_cv_c_compiler_gnu=$ac_compiler_gnu
3249
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3252$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3253if test $ac_compiler_gnu = yes; then
3254 GCC=yes
3255else
3256 GCC=
3257fi
3258ac_test_CFLAGS=${CFLAGS+set}
3259ac_save_CFLAGS=$CFLAGS
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3261$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3262if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
3263 $as_echo_n "(cached) " >&6
3264else
3265 ac_save_c_werror_flag=$ac_c_werror_flag
3266 ac_c_werror_flag=yes
3267 ac_cv_prog_cc_g=no
3268 CFLAGS="-g"
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h. */
3271
3272int
3273main ()
3274{
3275
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280if ac_fn_c_try_compile "$LINENO"; then :
3281 ac_cv_prog_cc_g=yes
3282else
3283 CFLAGS=""
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295if ac_fn_c_try_compile "$LINENO"; then :
3296
3297else
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_g=yes
3313fi
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315fi
3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3322$as_echo "$ac_cv_prog_cc_g" >&6; }
3323if test "$ac_test_CFLAGS" = set; then
3324 CFLAGS=$ac_save_CFLAGS
3325elif test $ac_cv_prog_cc_g = yes; then
3326 if test "$GCC" = yes; then
3327 CFLAGS="-g -O2"
3328 else
3329 CFLAGS="-g"
3330 fi
3331else
3332 if test "$GCC" = yes; then
3333 CFLAGS="-O2"
3334 else
3335 CFLAGS=
3336 fi
3337fi
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3339$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3340if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
3341 $as_echo_n "(cached) " >&6
3342else
3343 ac_cv_prog_cc_c89=no
3344ac_save_CC=$CC
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h. */
3347#include <stdarg.h>
3348#include <stdio.h>
22e05272 3349struct stat;
b4c522fa
IB
3350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3351struct buf { int x; };
3352FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353static char *e (p, i)
3354 char **p;
3355 int i;
3356{
3357 return p[i];
3358}
3359static char *f (char * (*g) (char **, int), char **p, ...)
3360{
3361 char *s;
3362 va_list v;
3363 va_start (v,p);
3364 s = g (p, va_arg (v,int));
3365 va_end (v);
3366 return s;
3367}
3368
3369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3370 function prototypes and stuff, but not '\xHH' hex character constants.
3371 These don't provoke an error unfortunately, instead are silently treated
3372 as 'x'. The following induces an error, until -std is added to get
3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3374 array size at least. It's necessary to write '\x00'==0 to get something
3375 that's true only with -std. */
3376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379 inside strings and character constants. */
3380#define FOO(x) 'x'
3381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383int test (int i, double x);
3384struct s1 {int (*f) (int a);};
3385struct s2 {int (*f) (double a);};
3386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387int argc;
3388char **argv;
3389int
3390main ()
3391{
3392return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399do
3400 CC="$ac_save_CC $ac_arg"
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_cv_prog_cc_c89=$ac_arg
3403fi
3404rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406done
3407rm -f conftest.$ac_ext
3408CC=$ac_save_CC
3409
3410fi
3411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413 x)
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3415$as_echo "none needed" >&6; } ;;
3416 xno)
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3418$as_echo "unsupported" >&6; } ;;
3419 *)
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3422$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3423esac
3424if test "x$ac_cv_prog_cc_c89" != xno; then :
3425
3426fi
3427
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
22e05272
JM
3434ac_ext=c
3435ac_cpp='$CPP $CPPFLAGS'
3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3440$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3441if ${am_cv_prog_cc_c_o+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h. */
3446
3447int
3448main ()
3449{
3450
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455 # Make sure it works both with $CC and with simple cc.
3456 # Following AC_PROG_CC_C_O, we do the test twice because some
3457 # compilers refuse to overwrite an existing .o file with -o,
3458 # though they will create one.
3459 am_cv_prog_cc_c_o=yes
3460 for am_i in 1 2; do
3461 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3462 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } \
3466 && test -f conftest2.$ac_objext; then
3467 : OK
3468 else
3469 am_cv_prog_cc_c_o=no
3470 break
3471 fi
3472 done
3473 rm -f core conftest*
3474 unset am_i
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3477$as_echo "$am_cv_prog_cc_c_o" >&6; }
3478if test "$am_cv_prog_cc_c_o" != yes; then
3479 # Losing compiler, so override with the script.
3480 # FIXME: It is wrong to rewrite CC.
3481 # But if we don't then we get into trouble of one sort or another.
3482 # A longer-term fix would be to have automake use am__CC in this case,
3483 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3484 CC="$am_aux_dir/compile $CC"
3485fi
3486ac_ext=c
3487ac_cpp='$CPP $CPPFLAGS'
3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491
3492
b4c522fa
IB
3493
3494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
235d1c46
RO
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3500$as_echo_n "checking how to run the C preprocessor... " >&6; }
3501# On Suns, sometimes $CPP names a directory.
3502if test -n "$CPP" && test -d "$CPP"; then
3503 CPP=
3504fi
3505if test -z "$CPP"; then
3506 if ${ac_cv_prog_CPP+:} false; then :
b4c522fa
IB
3507 $as_echo_n "(cached) " >&6
3508else
235d1c46
RO
3509 # Double quotes because CPP needs to be expanded
3510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3511 do
3512 ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
b4c522fa 3514do
235d1c46
RO
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528 Syntax error
3529_ACEOF
3530if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3531
b4c522fa 3532else
235d1c46
RO
3533 # Broken: fails on valid input.
3534continue
b4c522fa 3535fi
235d1c46 3536rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3537
235d1c46
RO
3538 # OK, works on sane cases. Now check whether nonexistent headers
3539 # can be detected and how.
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h. */
3542#include <ac_nonexistent.h>
3543_ACEOF
3544if ac_fn_c_try_cpp "$LINENO"; then :
3545 # Broken: success on invalid input.
3546continue
b4c522fa 3547else
235d1c46
RO
3548 # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
3552rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3553
235d1c46
RO
3554done
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.i conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then :
3558 break
b4c522fa 3559fi
235d1c46
RO
3560
3561 done
3562 ac_cv_prog_CPP=$CPP
3563
b4c522fa 3564fi
235d1c46 3565 CPP=$ac_cv_prog_CPP
b4c522fa 3566else
235d1c46 3567 ac_cv_prog_CPP=$CPP
b4c522fa 3568fi
235d1c46
RO
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3570$as_echo "$CPP" >&6; }
3571ac_preproc_ok=false
3572for ac_c_preproc_warn_flag in '' yes
3573do
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
3582#ifdef __STDC__
3583# include <limits.h>
3584#else
3585# include <assert.h>
3586#endif
3587 Syntax error
3588_ACEOF
3589if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3590
b4c522fa 3591else
235d1c46
RO
3592 # Broken: fails on valid input.
3593continue
b4c522fa 3594fi
235d1c46 3595rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3596
235d1c46
RO
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h. */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if ac_fn_c_try_cpp "$LINENO"; then :
3604 # Broken: success on invalid input.
3605continue
b4c522fa 3606else
235d1c46
RO
3607 # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
3611rm -f conftest.err conftest.i conftest.$ac_ext
3612
b4c522fa 3613done
235d1c46
RO
3614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615rm -f conftest.i conftest.err conftest.$ac_ext
3616if $ac_preproc_ok; then :
b4c522fa 3617
b4c522fa 3618else
235d1c46
RO
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3622See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3623fi
3624
235d1c46
RO
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa 3630
235d1c46
RO
3631
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3633$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3634if ${ac_cv_path_GREP+:} false; then :
b4c522fa
IB
3635 $as_echo_n "(cached) " >&6
3636else
235d1c46
RO
3637 if test -z "$GREP"; then
3638 ac_path_GREP_found=false
3639 # Loop through the user's path and test for each of PROGNAME-LIST
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
b4c522fa
IB
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
235d1c46 3645 for ac_prog in grep ggrep; do
b4c522fa 3646 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3647 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3648 as_fn_executable_p "$ac_path_GREP" || continue
3649# Check for GNU ac_path_GREP and select it if it is found.
3650 # Check for GNU $ac_path_GREP
3651case `"$ac_path_GREP" --version 2>&1` in
3652*GNU*)
3653 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3654*)
3655 ac_count=0
3656 $as_echo_n 0123456789 >"conftest.in"
3657 while :
3658 do
3659 cat "conftest.in" "conftest.in" >"conftest.tmp"
3660 mv "conftest.tmp" "conftest.in"
3661 cp "conftest.in" "conftest.nl"
3662 $as_echo 'GREP' >> "conftest.nl"
3663 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3665 as_fn_arith $ac_count + 1 && ac_count=$as_val
3666 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3667 # Best one so far, save it but keep looking for a better one
3668 ac_cv_path_GREP="$ac_path_GREP"
3669 ac_path_GREP_max=$ac_count
3670 fi
3671 # 10*(2^10) chars as input seems more than enough
3672 test $ac_count -gt 10 && break
b4c522fa 3673 done
235d1c46
RO
3674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3675esac
b4c522fa 3676
235d1c46
RO
3677 $ac_path_GREP_found && break 3
3678 done
3679 done
3680 done
3681IFS=$as_save_IFS
3682 if test -z "$ac_cv_path_GREP"; then
3683 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3684 fi
b4c522fa 3685else
235d1c46 3686 ac_cv_path_GREP=$GREP
b4c522fa
IB
3687fi
3688
b4c522fa 3689fi
235d1c46
RO
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3691$as_echo "$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3693
3694
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3696$as_echo_n "checking for egrep... " >&6; }
3697if ${ac_cv_path_EGREP+:} false; then :
b4c522fa
IB
3698 $as_echo_n "(cached) " >&6
3699else
235d1c46
RO
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3702 else
3703 if test -z "$EGREP"; then
3704 ac_path_EGREP_found=false
3705 # Loop through the user's path and test for each of PROGNAME-LIST
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708do
b4c522fa
IB
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
235d1c46 3711 for ac_prog in egrep; do
b4c522fa 3712 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714 as_fn_executable_p "$ac_path_EGREP" || continue
3715# Check for GNU ac_path_EGREP and select it if it is found.
3716 # Check for GNU $ac_path_EGREP
3717case `"$ac_path_EGREP" --version 2>&1` in
3718*GNU*)
3719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3720*)
3721 ac_count=0
3722 $as_echo_n 0123456789 >"conftest.in"
3723 while :
3724 do
3725 cat "conftest.in" "conftest.in" >"conftest.tmp"
3726 mv "conftest.tmp" "conftest.in"
3727 cp "conftest.in" "conftest.nl"
3728 $as_echo 'EGREP' >> "conftest.nl"
3729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3731 as_fn_arith $ac_count + 1 && ac_count=$as_val
3732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733 # Best one so far, save it but keep looking for a better one
3734 ac_cv_path_EGREP="$ac_path_EGREP"
3735 ac_path_EGREP_max=$ac_count
3736 fi
3737 # 10*(2^10) chars as input seems more than enough
3738 test $ac_count -gt 10 && break
b4c522fa 3739 done
235d1c46
RO
3740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741esac
b4c522fa 3742
235d1c46
RO
3743 $ac_path_EGREP_found && break 3
3744 done
b4c522fa 3745 done
b4c522fa
IB
3746 done
3747IFS=$as_save_IFS
235d1c46
RO
3748 if test -z "$ac_cv_path_EGREP"; then
3749 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3750 fi
235d1c46
RO
3751else
3752 ac_cv_path_EGREP=$EGREP
b4c522fa
IB
3753fi
3754
235d1c46 3755 fi
b4c522fa 3756fi
235d1c46
RO
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3758$as_echo "$ac_cv_path_EGREP" >&6; }
3759 EGREP="$ac_cv_path_EGREP"
b4c522fa
IB
3760
3761
235d1c46
RO
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3763$as_echo_n "checking for ANSI C header files... " >&6; }
3764if ${ac_cv_header_stdc+:} false; then :
b4c522fa
IB
3765 $as_echo_n "(cached) " >&6
3766else
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h. */
235d1c46
RO
3769#include <stdlib.h>
3770#include <stdarg.h>
3771#include <string.h>
3772#include <float.h>
b4c522fa
IB
3773
3774int
3775main ()
3776{
b4c522fa
IB
3777
3778 ;
3779 return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
235d1c46 3783 ac_cv_header_stdc=yes
b4c522fa 3784else
235d1c46 3785 ac_cv_header_stdc=no
b4c522fa
IB
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b4c522fa 3788
235d1c46
RO
3789if test $ac_cv_header_stdc = yes; then
3790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793#include <string.h>
3794
3795_ACEOF
3796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 $EGREP "memchr" >/dev/null 2>&1; then :
3798
b4c522fa 3799else
235d1c46 3800 ac_cv_header_stdc=no
b4c522fa 3801fi
235d1c46 3802rm -f conftest*
b4c522fa 3803
235d1c46
RO
3804fi
3805
3806if test $ac_cv_header_stdc = yes; then
3807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h. */
3810#include <stdlib.h>
b4c522fa 3811
b4c522fa 3812_ACEOF
235d1c46
RO
3813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 $EGREP "free" >/dev/null 2>&1; then :
3815
b4c522fa 3816else
235d1c46
RO
3817 ac_cv_header_stdc=no
3818fi
3819rm -f conftest*
3820
3821fi
3822
3823if test $ac_cv_header_stdc = yes; then
3824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3825 if test "$cross_compiling" = yes; then :
3826 :
3827else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 3829/* end confdefs.h. */
235d1c46
RO
3830#include <ctype.h>
3831#include <stdlib.h>
3832#if ((' ' & 0x0FF) == 0x020)
3833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835#else
3836# define ISLOWER(c) \
3837 (('a' <= (c) && (c) <= 'i') \
3838 || ('j' <= (c) && (c) <= 'r') \
3839 || ('s' <= (c) && (c) <= 'z'))
3840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3841#endif
b4c522fa 3842
235d1c46 3843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b4c522fa
IB
3844int
3845main ()
3846{
235d1c46
RO
3847 int i;
3848 for (i = 0; i < 256; i++)
3849 if (XOR (islower (i), ISLOWER (i))
3850 || toupper (i) != TOUPPER (i))
3851 return 2;
b4c522fa
IB
3852 return 0;
3853}
3854_ACEOF
235d1c46 3855if ac_fn_c_try_run "$LINENO"; then :
b4c522fa
IB
3856
3857else
235d1c46 3858 ac_cv_header_stdc=no
b4c522fa 3859fi
235d1c46
RO
3860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3861 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa 3862fi
235d1c46 3863
b4c522fa 3864fi
b4c522fa 3865fi
235d1c46
RO
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3867$as_echo "$ac_cv_header_stdc" >&6; }
3868if test $ac_cv_header_stdc = yes; then
b4c522fa 3869
235d1c46 3870$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b4c522fa 3871
235d1c46 3872fi
b4c522fa 3873
235d1c46
RO
3874# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3875for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3876 inttypes.h stdint.h unistd.h
3877do :
3878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3879ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3880"
3881if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3882 cat >>confdefs.h <<_ACEOF
3883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b4c522fa 3884_ACEOF
235d1c46 3885
b4c522fa 3886fi
235d1c46 3887
b4c522fa 3888done
b4c522fa 3889
b4c522fa 3890
235d1c46
RO
3891
3892 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3893if test "x$ac_cv_header_minix_config_h" = xyes; then :
3894 MINIX=yes
3895else
3896 MINIX=
b4c522fa
IB
3897fi
3898
b4c522fa 3899
235d1c46
RO
3900 if test "$MINIX" = yes; then
3901
3902$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3903
3904
3905$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3906
3907
3908$as_echo "#define _MINIX 1" >>confdefs.h
3909
3910 fi
3911
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3914$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3915if ${ac_cv_safe_to_define___extensions__+:} false; then :
22e05272
JM
3916 $as_echo_n "(cached) " >&6
3917else
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h. */
3920
235d1c46
RO
3921# define __EXTENSIONS__ 1
3922 $ac_includes_default
22e05272
JM
3923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
235d1c46
RO
3931if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_safe_to_define___extensions__=yes
3933else
3934 ac_cv_safe_to_define___extensions__=no
22e05272 3935fi
235d1c46 3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 3937fi
235d1c46
RO
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3939$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3940 test $ac_cv_safe_to_define___extensions__ = yes &&
3941 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22e05272 3942
235d1c46 3943 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
22e05272 3944
235d1c46
RO
3945 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3946
3947 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3948
3949 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3950
3951
3952
3953target_alias=${target_alias-$target}
3954
3955
3956# 1.11.1: Require that version of automake.
3957# foreign: Don't require README, INSTALL, NEWS, etc.
3958# no-define: Don't define PACKAGE and VERSION.
3959# no-dependencies: Don't generate automatic dependencies.
3960# (because it breaks when using bootstrap-lean, since some of the
3961# headers are gone at "make install" time).
3962# subdir-objects: Build objects in sub-directories.
3963# -Wall: Issue all automake warnings.
3964# -Wno-portability: Don't warn about constructs supported by GNU make.
3965# (because GCC requires GNU make anyhow).
3966# -Wno-override: Overrides used in testsuite.
3967am__api_version='1.15'
3968
3969# Find a good install program. We prefer a C program (faster),
3970# so one script is as good as another. But avoid the broken or
3971# incompatible versions:
3972# SysV /etc/install, /usr/sbin/install
3973# SunOS /usr/etc/install
3974# IRIX /sbin/install
3975# AIX /bin/install
3976# AmigaOS /C/install, which installs bootblocks on floppy discs
3977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3980# OS/2's system install, which has a completely different semantic
3981# ./install, which can be erroneously created by make from ./install.sh.
3982# Reject install programs that cannot install multiple files.
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3984$as_echo_n "checking for a BSD-compatible install... " >&6; }
3985if test -z "$INSTALL"; then
3986if ${ac_cv_path_install+:} false; then :
b4c522fa
IB
3987 $as_echo_n "(cached) " >&6
3988else
235d1c46 3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
3990for as_dir in $PATH
3991do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
235d1c46
RO
3994 # Account for people who put trailing slashes in PATH elements.
3995case $as_dir/ in #((
3996 ./ | .// | /[cC]/* | \
3997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3998 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3999 /usr/ucb/* ) ;;
4000 *)
4001 # OSF1 and SCO ODT 3.0 have their own names for install.
4002 # Don't use installbsd from OSF since it installs stuff as root
4003 # by default.
4004 for ac_prog in ginstall scoinst install; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4007 if test $ac_prog = install &&
4008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009 # AIX install. It has an incompatible calling convention.
4010 :
4011 elif test $ac_prog = install &&
4012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4013 # program-specific install script used by HP pwplus--don't use.
4014 :
4015 else
4016 rm -rf conftest.one conftest.two conftest.dir
4017 echo one > conftest.one
4018 echo two > conftest.two
4019 mkdir conftest.dir
4020 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4021 test -s conftest.one && test -s conftest.two &&
4022 test -s conftest.dir/conftest.one &&
4023 test -s conftest.dir/conftest.two
4024 then
4025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4026 break 3
4027 fi
4028 fi
4029 fi
4030 done
4031 done
4032 ;;
4033esac
4034
b4c522fa
IB
4035 done
4036IFS=$as_save_IFS
4037
235d1c46
RO
4038rm -rf conftest.one conftest.two conftest.dir
4039
b4c522fa 4040fi
235d1c46
RO
4041 if test "${ac_cv_path_install+set}" = set; then
4042 INSTALL=$ac_cv_path_install
4043 else
4044 # As a last resort, use the slow shell script. Don't cache a
4045 # value for INSTALL within a source directory, because that will
4046 # break other packages using the cache if that directory is
4047 # removed, or if the value is a relative name.
4048 INSTALL=$ac_install_sh
4049 fi
b4c522fa 4050fi
235d1c46
RO
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4052$as_echo "$INSTALL" >&6; }
4053
4054# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4055# It thinks the first close brace ends the variable substitution.
4056test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4057
4058test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4059
4060test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4063$as_echo_n "checking whether build environment is sane... " >&6; }
4064# Reject unsafe characters in $srcdir or the absolute working directory
4065# name. Accept space and tab only in the latter.
4066am_lf='
4067'
4068case `pwd` in
4069 *[\\\"\#\$\&\'\`$am_lf]*)
4070 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4071esac
4072case $srcdir in
4073 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4074 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4075esac
4076
4077# Do 'set' in a subshell so we don't clobber the current shell's
4078# arguments. Must try -L first in case configure is actually a
4079# symlink; some systems play weird games with the mod time of symlinks
4080# (eg FreeBSD returns the mod time of the symlink's containing
4081# directory).
4082if (
4083 am_has_slept=no
4084 for am_try in 1 2; do
4085 echo "timestamp, slept: $am_has_slept" > conftest.file
4086 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4087 if test "$*" = "X"; then
4088 # -L didn't work.
4089 set X `ls -t "$srcdir/configure" conftest.file`
4090 fi
4091 if test "$*" != "X $srcdir/configure conftest.file" \
4092 && test "$*" != "X conftest.file $srcdir/configure"; then
4093
4094 # If neither matched, then we have a broken ls. This can happen
4095 # if, for instance, CONFIG_SHELL is bash and it inherits a
4096 # broken ls alias from the environment. This has actually
4097 # happened. Such a system could not be considered "sane".
4098 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4099 alias in your environment" "$LINENO" 5
4100 fi
4101 if test "$2" = conftest.file || test $am_try -eq 2; then
4102 break
4103 fi
4104 # Just in case.
4105 sleep 1
4106 am_has_slept=yes
4107 done
4108 test "$2" = conftest.file
4109 )
4110then
4111 # Ok.
4112 :
b4c522fa 4113else
235d1c46
RO
4114 as_fn_error $? "newly created file is older than distributed files!
4115Check your system clock" "$LINENO" 5
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4118$as_echo "yes" >&6; }
4119# If we didn't sleep, we still need to ensure time stamps of config.status and
4120# generated files are strictly newer.
4121am_sleep_pid=
4122if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4123 ( sleep 1 ) &
4124 am_sleep_pid=$!
b4c522fa
IB
4125fi
4126
235d1c46
RO
4127rm -f conftest.file
4128
4129test "$program_prefix" != NONE &&
4130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4131# Use a double $ so make ignores it.
4132test "$program_suffix" != NONE &&
4133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4134# Double any \ or $.
4135# By default was `s,x,x', remove it if useless.
4136ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4137program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b4c522fa 4138
235d1c46
RO
4139if test x"${MISSING+set}" != xset; then
4140 case $am_aux_dir in
4141 *\ * | *\ *)
4142 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4143 *)
4144 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4145 esac
b4c522fa 4146fi
235d1c46
RO
4147# Use eval to expand $SHELL
4148if eval "$MISSING --is-lightweight"; then
4149 am_missing_run="$MISSING "
4150else
4151 am_missing_run=
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4153$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4154fi
4155
4156if test x"${install_sh+set}" != xset; then
4157 case $am_aux_dir in
4158 *\ * | *\ *)
4159 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4160 *)
4161 install_sh="\${SHELL} $am_aux_dir/install-sh"
4162 esac
4163fi
4164
4165# Installed binaries are usually stripped using 'strip' when the user
4166# run "make install-strip". However 'strip' might not be the right
4167# tool to use in cross-compilation environments, therefore Automake
4168# will honor the 'STRIP' environment variable to overrule this program.
4169if test "$cross_compiling" != no; then
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172set dummy ${ac_tool_prefix}strip; ac_word=$2
b4c522fa
IB
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4175if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
4176 $as_echo_n "(cached) " >&6
4177else
235d1c46
RO
4178 if test -n "$STRIP"; then
4179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b4c522fa
IB
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b4c522fa
IB
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192done
4193 done
4194IFS=$as_save_IFS
4195
4196fi
4197fi
235d1c46
RO
4198STRIP=$ac_cv_prog_STRIP
4199if test -n "$STRIP"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4201$as_echo "$STRIP" >&6; }
b4c522fa
IB
4202else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
4205fi
4206
b4c522fa 4207
235d1c46
RO
4208fi
4209if test -z "$ac_cv_prog_STRIP"; then
4210 ac_ct_STRIP=$STRIP
4211 # Extract the first word of "strip", so it can be a program name with args.
4212set dummy strip; ac_word=$2
b4c522fa
IB
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4215if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
4216 $as_echo_n "(cached) " >&6
4217else
235d1c46
RO
4218 if test -n "$ac_ct_STRIP"; then
4219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
b4c522fa
IB
4220else
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4228 ac_cv_prog_ac_ct_STRIP="strip"
b4c522fa
IB
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232done
4233 done
4234IFS=$as_save_IFS
4235
4236fi
4237fi
235d1c46
RO
4238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4239if test -n "$ac_ct_STRIP"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4241$as_echo "$ac_ct_STRIP" >&6; }
b4c522fa
IB
4242else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246
235d1c46
RO
4247 if test "x$ac_ct_STRIP" = x; then
4248 STRIP=":"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251yes:)
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254ac_tool_warned=yes ;;
4255esac
4256 STRIP=$ac_ct_STRIP
b4c522fa 4257 fi
b4c522fa 4258else
235d1c46 4259 STRIP="$ac_cv_prog_STRIP"
b4c522fa
IB
4260fi
4261
b4c522fa 4262fi
235d1c46 4263INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b4c522fa 4264
235d1c46
RO
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4266$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4267if test -z "$MKDIR_P"; then
4268 if ${ac_cv_path_mkdir+:} false; then :
b4c522fa
IB
4269 $as_echo_n "(cached) " >&6
4270else
235d1c46
RO
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
b4c522fa
IB
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
235d1c46
RO
4276 for ac_prog in mkdir gmkdir; do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4279 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4280 'mkdir (GNU coreutils) '* | \
4281 'mkdir (coreutils) '* | \
4282 'mkdir (fileutils) '4.1*)
4283 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4284 break 3;;
4285 esac
4286 done
4287 done
b4c522fa
IB
4288 done
4289IFS=$as_save_IFS
4290
4291fi
b4c522fa 4292
235d1c46
RO
4293 test -d ./--version && rmdir ./--version
4294 if test "${ac_cv_path_mkdir+set}" = set; then
4295 MKDIR_P="$ac_cv_path_mkdir -p"
4296 else
4297 # As a last resort, use the slow shell script. Don't cache a
4298 # value for MKDIR_P within a source directory, because that will
4299 # break other packages using the cache if that directory is
4300 # removed, or if the value is a relative name.
4301 MKDIR_P="$ac_install_sh -d"
4302 fi
b4c522fa 4303fi
235d1c46
RO
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4305$as_echo "$MKDIR_P" >&6; }
4306
4307for ac_prog in gawk mawk nawk awk
4308do
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310set dummy $ac_prog; ac_word=$2
b4c522fa
IB
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4313if ${ac_cv_prog_AWK+:} false; then :
b4c522fa
IB
4314 $as_echo_n "(cached) " >&6
4315else
235d1c46
RO
4316 if test -n "$AWK"; then
4317 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b4c522fa
IB
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4326 ac_cv_prog_AWK="$ac_prog"
b4c522fa
IB
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331 done
4332IFS=$as_save_IFS
4333
4334fi
4335fi
235d1c46
RO
4336AWK=$ac_cv_prog_AWK
4337if test -n "$AWK"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4339$as_echo "$AWK" >&6; }
b4c522fa
IB
4340else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343fi
4344
b4c522fa 4345
235d1c46
RO
4346 test -n "$AWK" && break
4347done
b4c522fa
IB
4348
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4350$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4351set x ${MAKE-make}
4352ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4353if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
4354 $as_echo_n "(cached) " >&6
4355else
4356 cat >conftest.make <<\_ACEOF
4357SHELL = /bin/sh
4358all:
4359 @echo '@@@%%%=$(MAKE)=@@@%%%'
4360_ACEOF
22e05272 4361# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
4362case `${MAKE-make} -f conftest.make 2>/dev/null` in
4363 *@@@%%%=?*=@@@%%%*)
4364 eval ac_cv_prog_make_${ac_make}_set=yes;;
4365 *)
4366 eval ac_cv_prog_make_${ac_make}_set=no;;
4367esac
4368rm -f conftest.make
4369fi
4370if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372$as_echo "yes" >&6; }
4373 SET_MAKE=
4374else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377 SET_MAKE="MAKE=${MAKE-make}"
4378fi
4379
235d1c46
RO
4380rm -rf .tst 2>/dev/null
4381mkdir .tst 2>/dev/null
4382if test -d .tst; then
4383 am__leading_dot=.
4384else
4385 am__leading_dot=_
4386fi
4387rmdir .tst 2>/dev/null
b4c522fa 4388
235d1c46
RO
4389# Check whether --enable-silent-rules was given.
4390if test "${enable_silent_rules+set}" = set; then :
4391 enableval=$enable_silent_rules;
4392fi
b4c522fa 4393
235d1c46
RO
4394case $enable_silent_rules in # (((
4395 yes) AM_DEFAULT_VERBOSITY=0;;
4396 no) AM_DEFAULT_VERBOSITY=1;;
4397 *) AM_DEFAULT_VERBOSITY=1;;
b4c522fa 4398esac
235d1c46
RO
4399am_make=${MAKE-make}
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4401$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4402if ${am_cv_make_support_nested_variables+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404else
4405 if $as_echo 'TRUE=$(BAR$(V))
4406BAR0=false
4407BAR1=true
4408V=1
4409am__doit:
4410 @$(TRUE)
4411.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4412 am_cv_make_support_nested_variables=yes
4413else
4414 am_cv_make_support_nested_variables=no
4415fi
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4418$as_echo "$am_cv_make_support_nested_variables" >&6; }
4419if test $am_cv_make_support_nested_variables = yes; then
4420 AM_V='$(V)'
4421 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4422else
4423 AM_V=$AM_DEFAULT_VERBOSITY
4424 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4425fi
4426AM_BACKSLASH='\'
b4c522fa 4427
235d1c46
RO
4428if test "`cd $srcdir && pwd`" != "`pwd`"; then
4429 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4430 # is not polluted with repeated "-I."
4431 am__isrc=' -I$(srcdir)'
4432 # test to see if srcdir already configured
4433 if test -f $srcdir/config.status; then
4434 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4435 fi
4436fi
b4c522fa 4437
235d1c46
RO
4438# test whether we have cygpath
4439if test -z "$CYGPATH_W"; then
4440 if (cygpath --version) >/dev/null 2>/dev/null; then
4441 CYGPATH_W='cygpath -w'
4442 else
4443 CYGPATH_W=echo
4444 fi
4445fi
b4c522fa 4446
b4c522fa 4447
235d1c46
RO
4448# Define the identity of the package.
4449 PACKAGE='libphobos'
4450 VERSION='version-unused'
b4c522fa
IB
4451
4452
235d1c46 4453# Some tools Automake needs.
b4c522fa 4454
235d1c46 4455ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b4c522fa
IB
4456
4457
235d1c46 4458AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
b4c522fa
IB
4459
4460
235d1c46 4461AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
b4c522fa
IB
4462
4463
235d1c46 4464AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
b4c522fa
IB
4465
4466
235d1c46 4467MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
b4c522fa 4468
235d1c46
RO
4469# For better backward compatibility. To be removed once Automake 1.9.x
4470# dies out for good. For more background, see:
4471# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4472# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4473mkdir_p='$(MKDIR_P)'
b4c522fa 4474
235d1c46
RO
4475# We need awk for the "check" target (and possibly the TAP driver). The
4476# system "awk" is bad on some platforms.
4477# Always define AMTAR for backward compatibility. Yes, it's still used
4478# in the wild :-( We should find a proper way to deprecate it ...
4479AMTAR='$${TAR-tar}'
b4c522fa 4480
b4c522fa 4481
235d1c46
RO
4482# We'll loop over all known methods to create a tar archive until one works.
4483_am_tools='gnutar pax cpio none'
b4c522fa 4484
235d1c46 4485am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b4c522fa 4486
b4c522fa 4487
b4c522fa 4488
b4c522fa 4489
b4c522fa 4490
b4c522fa 4491
235d1c46
RO
4492# POSIX will say in a future version that running "rm -f" with no argument
4493# is OK; and we want to be able to make that assumption in our Makefile
4494# recipes. So use an aggressive probe to check that the usage we want is
4495# actually supported "in the wild" to an acceptable degree.
4496# See automake bug#10828.
4497# To make any issue more visible, cause the running configure to be aborted
4498# by default if the 'rm' program in use doesn't match our expectations; the
4499# user can still override this though.
4500if rm -f && rm -fr && rm -rf; then : OK; else
4501 cat >&2 <<'END'
4502Oops!
4503
4504Your 'rm' program seems unable to run without file operands specified
4505on the command line, even when the '-f' option is present. This is contrary
4506to the behaviour of most rm programs out there, and not conforming with
4507the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
b4c522fa 4508
235d1c46
RO
4509Please tell bug-automake@gnu.org about your system, including the value
4510of your $PATH and any error possibly output before this message. This
4511can help us improve future automake versions.
b4c522fa 4512
235d1c46
RO
4513END
4514 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4515 echo 'Configuration will proceed anyway, since you have set the' >&2
4516 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4517 echo >&2
4518 else
4519 cat >&2 <<'END'
4520Aborting the configuration process, to ensure you take notice of the issue.
b4c522fa 4521
235d1c46
RO
4522You can download and install GNU coreutils to get an 'rm' implementation
4523that behaves properly: <http://www.gnu.org/software/coreutils/>.
b4c522fa 4524
235d1c46
RO
4525If you want to complete the configuration process using your problematic
4526'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4527to "yes", and re-run configure.
b4c522fa 4528
235d1c46
RO
4529END
4530 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4531 fi
4532fi
b4c522fa
IB
4533
4534
4535
4536
235d1c46 4537# By default we simply use the C compiler to build assembly code.
b4c522fa 4538
235d1c46
RO
4539test "${CCAS+set}" = set || CCAS=$CC
4540test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
b4c522fa
IB
4541
4542
4543
235d1c46
RO
4544ac_ext=c
4545ac_cpp='$CPP $CPPFLAGS'
4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549if test -n "$ac_tool_prefix"; then
4550 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4551set dummy ${ac_tool_prefix}gcc; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4555 $as_echo_n "(cached) " >&6
4556else
235d1c46
RO
4557 if test -n "$CC"; then
4558 ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
b4c522fa 4565 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571done
b4c522fa
IB
4572 done
4573IFS=$as_save_IFS
b4c522fa
IB
4574
4575fi
235d1c46
RO
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4580$as_echo "$CC" >&6; }
4581else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
b4c522fa
IB
4585
4586
235d1c46
RO
4587fi
4588if test -z "$ac_cv_prog_CC"; then
4589 ac_ct_CC=$CC
4590 # Extract the first word of "gcc", so it can be a program name with args.
4591set dummy gcc; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4595 $as_echo_n "(cached) " >&6
4596else
235d1c46
RO
4597 if test -n "$ac_ct_CC"; then
4598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
b4c522fa
IB
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
b4c522fa 4605 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_CC="gcc"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
b4c522fa
IB
4612 done
4613IFS=$as_save_IFS
235d1c46
RO
4614
4615fi
4616fi
4617ac_ct_CC=$ac_cv_prog_ac_ct_CC
4618if test -n "$ac_ct_CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4620$as_echo "$ac_ct_CC" >&6; }
b4c522fa 4621else
235d1c46
RO
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
b4c522fa
IB
4624fi
4625
235d1c46
RO
4626 if test "x$ac_ct_CC" = x; then
4627 CC=""
4628 else
4629 case $cross_compiling:$ac_tool_warned in
4630yes:)
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633ac_tool_warned=yes ;;
4634esac
4635 CC=$ac_ct_CC
4636 fi
4637else
4638 CC="$ac_cv_prog_CC"
b4c522fa 4639fi
b4c522fa 4640
235d1c46
RO
4641if test -z "$CC"; then
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4644set dummy ${ac_tool_prefix}cc; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4648 $as_echo_n "(cached) " >&6
4649else
235d1c46
RO
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
b4c522fa
IB
4655do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
b4c522fa 4658 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_CC="${ac_tool_prefix}cc"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664done
b4c522fa
IB
4665 done
4666IFS=$as_save_IFS
b4c522fa 4667
b4c522fa 4668fi
235d1c46
RO
4669fi
4670CC=$ac_cv_prog_CC
4671if test -n "$CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673$as_echo "$CC" >&6; }
4674else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
b4c522fa
IB
4678
4679
235d1c46
RO
4680 fi
4681fi
4682if test -z "$CC"; then
4683 # Extract the first word of "cc", so it can be a program name with args.
4684set dummy cc; ac_word=$2
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686$as_echo_n "checking for $ac_word... " >&6; }
4687if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4688 $as_echo_n "(cached) " >&6
4689else
235d1c46
RO
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4692else
4693 ac_prog_rejected=no
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
b4c522fa
IB
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
b4c522fa 4699 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4702 ac_prog_rejected=yes
4703 continue
4704 fi
4705 ac_cv_prog_CC="cc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
b4c522fa
IB
4710 done
4711IFS=$as_save_IFS
b4c522fa 4712
235d1c46
RO
4713if test $ac_prog_rejected = yes; then
4714 # We found a bogon in the path, so make sure we never use it.
4715 set dummy $ac_cv_prog_CC
4716 shift
4717 if test $# != 0; then
4718 # We chose a different compiler from the bogus one.
4719 # However, it has the same basename, so the bogon will be chosen
4720 # first if we set CC to just the basename; use the full file name.
4721 shift
4722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4723 fi
b4c522fa 4724fi
b4c522fa
IB
4725fi
4726fi
235d1c46
RO
4727CC=$ac_cv_prog_CC
4728if test -n "$CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4730$as_echo "$CC" >&6; }
b4c522fa
IB
4731else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
4734fi
b4c522fa
IB
4735
4736
b4c522fa 4737fi
235d1c46
RO
4738if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 for ac_prog in cl.exe
b4c522fa
IB
4741 do
4742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4746if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4747 $as_echo_n "(cached) " >&6
4748else
235d1c46
RO
4749 if test -n "$CC"; then
4750 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764 done
4765IFS=$as_save_IFS
4766
4767fi
4768fi
235d1c46
RO
4769CC=$ac_cv_prog_CC
4770if test -n "$CC"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4772$as_echo "$CC" >&6; }
b4c522fa
IB
4773else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
235d1c46 4779 test -n "$CC" && break
b4c522fa
IB
4780 done
4781fi
235d1c46
RO
4782if test -z "$CC"; then
4783 ac_ct_CC=$CC
4784 for ac_prog in cl.exe
b4c522fa
IB
4785do
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787set dummy $ac_prog; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4790if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4791 $as_echo_n "(cached) " >&6
4792else
235d1c46
RO
4793 if test -n "$ac_ct_CC"; then
4794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4803 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807done
4808 done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
235d1c46
RO
4813ac_ct_CC=$ac_cv_prog_ac_ct_CC
4814if test -n "$ac_ct_CC"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4816$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
4817else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822
235d1c46 4823 test -n "$ac_ct_CC" && break
b4c522fa
IB
4824done
4825
235d1c46
RO
4826 if test "x$ac_ct_CC" = x; then
4827 CC=""
b4c522fa
IB
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830yes:)
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833ac_tool_warned=yes ;;
4834esac
235d1c46 4835 CC=$ac_ct_CC
b4c522fa
IB
4836 fi
4837fi
4838
b4c522fa 4839fi
b4c522fa
IB
4840
4841
235d1c46
RO
4842test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4844as_fn_error $? "no acceptable C compiler found in \$PATH
4845See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 4846
235d1c46
RO
4847# Provide some information about the compiler.
4848$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4849set X $ac_compile
4850ac_compiler=$2
4851for ac_option in --version -v -V -qversion; do
4852 { { ac_try="$ac_compiler $ac_option >&5"
4853case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856esac
4857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4858$as_echo "$ac_try_echo"; } >&5
4859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4860 ac_status=$?
4861 if test -s conftest.err; then
4862 sed '10a\
4863... rest of stderr output deleted ...
4864 10q' conftest.err >conftest.er1
4865 cat conftest.er1 >&5
4866 fi
4867 rm -f conftest.er1 conftest.err
4868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4869 test $ac_status = 0; }
4870done
b4c522fa 4871
235d1c46
RO
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4873$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4874if ${ac_cv_c_compiler_gnu+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876else
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878/* end confdefs.h. */
b4c522fa 4879
235d1c46
RO
4880int
4881main ()
4882{
4883#ifndef __GNUC__
4884 choke me
4885#endif
b4c522fa 4886
235d1c46
RO
4887 ;
4888 return 0;
4889}
4890_ACEOF
4891if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_compiler_gnu=yes
b4c522fa 4893else
235d1c46 4894 ac_compiler_gnu=no
b4c522fa 4895fi
235d1c46
RO
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897ac_cv_c_compiler_gnu=$ac_compiler_gnu
b4c522fa 4898
235d1c46
RO
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4901$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4902if test $ac_compiler_gnu = yes; then
4903 GCC=yes
b4c522fa 4904else
235d1c46 4905 GCC=
b4c522fa 4906fi
235d1c46
RO
4907ac_test_CFLAGS=${CFLAGS+set}
4908ac_save_CFLAGS=$CFLAGS
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4910$as_echo_n "checking whether $CC accepts -g... " >&6; }
4911if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
4912 $as_echo_n "(cached) " >&6
4913else
235d1c46
RO
4914 ac_save_c_werror_flag=$ac_c_werror_flag
4915 ac_c_werror_flag=yes
4916 ac_cv_prog_cc_g=no
4917 CFLAGS="-g"
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h. */
b4c522fa 4920
235d1c46
RO
4921int
4922main ()
4923{
b4c522fa 4924
235d1c46
RO
4925 ;
4926 return 0;
4927}
4928_ACEOF
4929if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_prog_cc_g=yes
4931else
4932 CFLAGS=""
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h. */
b4c522fa 4935
235d1c46
RO
4936int
4937main ()
4938{
b4c522fa 4939
235d1c46
RO
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944if ac_fn_c_try_compile "$LINENO"; then :
b4c522fa 4945
235d1c46
RO
4946else
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4948 CFLAGS="-g"
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h. */
b4c522fa 4951
235d1c46
RO
4952int
4953main ()
4954{
b4c522fa 4955
235d1c46
RO
4956 ;
4957 return 0;
4958}
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"; then :
4961 ac_cv_prog_cc_g=yes
4962fi
4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 ac_c_werror_flag=$ac_save_c_werror_flag
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4971$as_echo "$ac_cv_prog_cc_g" >&6; }
4972if test "$ac_test_CFLAGS" = set; then
4973 CFLAGS=$ac_save_CFLAGS
4974elif test $ac_cv_prog_cc_g = yes; then
4975 if test "$GCC" = yes; then
4976 CFLAGS="-g -O2"
4977 else
4978 CFLAGS="-g"
4979 fi
4980else
4981 if test "$GCC" = yes; then
4982 CFLAGS="-O2"
4983 else
4984 CFLAGS=
4985 fi
4986fi
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4988$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4989if ${ac_cv_prog_cc_c89+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991else
4992 ac_cv_prog_cc_c89=no
4993ac_save_CC=$CC
4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h. */
4996#include <stdarg.h>
4997#include <stdio.h>
4998struct stat;
4999/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5000struct buf { int x; };
5001FILE * (*rcsopen) (struct buf *, struct stat *, int);
5002static char *e (p, i)
5003 char **p;
5004 int i;
5005{
5006 return p[i];
5007}
5008static char *f (char * (*g) (char **, int), char **p, ...)
5009{
5010 char *s;
5011 va_list v;
5012 va_start (v,p);
5013 s = g (p, va_arg (v,int));
5014 va_end (v);
5015 return s;
5016}
5017
5018/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5019 function prototypes and stuff, but not '\xHH' hex character constants.
5020 These don't provoke an error unfortunately, instead are silently treated
5021 as 'x'. The following induces an error, until -std is added to get
5022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5023 array size at least. It's necessary to write '\x00'==0 to get something
5024 that's true only with -std. */
5025int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5026
5027/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5028 inside strings and character constants. */
5029#define FOO(x) 'x'
5030int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5031
5032int test (int i, double x);
5033struct s1 {int (*f) (int a);};
5034struct s2 {int (*f) (double a);};
5035int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5036int argc;
5037char **argv;
5038int
5039main ()
5040{
5041return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048do
5049 CC="$ac_save_CC $ac_arg"
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_prog_cc_c89=$ac_arg
5052fi
5053rm -f core conftest.err conftest.$ac_objext
5054 test "x$ac_cv_prog_cc_c89" != "xno" && break
5055done
5056rm -f conftest.$ac_ext
5057CC=$ac_save_CC
5058
5059fi
5060# AC_CACHE_VAL
5061case "x$ac_cv_prog_cc_c89" in
5062 x)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5064$as_echo "none needed" >&6; } ;;
5065 xno)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5067$as_echo "unsupported" >&6; } ;;
5068 *)
5069 CC="$CC $ac_cv_prog_cc_c89"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5071$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5072esac
5073if test "x$ac_cv_prog_cc_c89" != xno; then :
5074
5075fi
5076
5077ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082
5083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5089$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5090if ${am_cv_prog_cc_c_o+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092else
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095
5096int
5097main ()
5098{
5099
5100 ;
5101 return 0;
5102}
5103_ACEOF
5104 # Make sure it works both with $CC and with simple cc.
5105 # Following AC_PROG_CC_C_O, we do the test twice because some
5106 # compilers refuse to overwrite an existing .o file with -o,
5107 # though they will create one.
5108 am_cv_prog_cc_c_o=yes
5109 for am_i in 1 2; do
5110 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5111 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } \
5115 && test -f conftest2.$ac_objext; then
5116 : OK
5117 else
5118 am_cv_prog_cc_c_o=no
5119 break
5120 fi
5121 done
5122 rm -f core conftest*
5123 unset am_i
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5126$as_echo "$am_cv_prog_cc_c_o" >&6; }
5127if test "$am_cv_prog_cc_c_o" != yes; then
5128 # Losing compiler, so override with the script.
5129 # FIXME: It is wrong to rewrite CC.
5130 # But if we don't then we get into trouble of one sort or another.
5131 # A longer-term fix would be to have automake use am__CC in this case,
5132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5133 CC="$am_aux_dir/compile $CC"
5134fi
5135ac_ext=c
5136ac_cpp='$CPP $CPPFLAGS'
5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141
5142ac_ext=d
5143ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5144ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=yes
5146if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}gdc; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
5151if ${ac_cv_prog_GDC+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153else
5154 if test -n "$GDC"; then
5155 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168done
5169 done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174GDC=$ac_cv_prog_GDC
5175if test -n "$GDC"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5177$as_echo "$GDC" >&6; }
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183
5184fi
5185if test -z "$ac_cv_prog_GDC"; then
5186 ac_ct_GDC=$GDC
5187 # Extract the first word of "gdc", so it can be a program name with args.
5188set dummy gdc; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193else
5194 if test -n "$ac_ct_GDC"; then
5195 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_GDC="gdc"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209 done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5215if test -n "$ac_ct_GDC"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5217$as_echo "$ac_ct_GDC" >&6; }
5218else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223 if test "x$ac_ct_GDC" = x; then
5224 GDC=""
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232 GDC=$ac_ct_GDC
5233 fi
5234else
5235 GDC="$ac_cv_prog_GDC"
5236fi
5237
5238if test -z "$GDC"; then
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5241set dummy ${ac_tool_prefix}gdc; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if ${ac_cv_prog_GDC+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246else
5247 if test -n "$GDC"; then
5248 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262 done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267GDC=$ac_cv_prog_GDC
5268if test -n "$GDC"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5270$as_echo "$GDC" >&6; }
5271else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276
5277 fi
5278fi
5279if test -z "$GDC"; then
5280 # Extract the first word of "gdc", so it can be a program name with args.
5281set dummy gdc; ac_word=$2
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283$as_echo_n "checking for $ac_word... " >&6; }
5284if ${ac_cv_prog_GDC+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286else
5287 if test -n "$GDC"; then
5288 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5289else
5290 ac_prog_rejected=no
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5299 ac_prog_rejected=yes
5300 continue
5301 fi
5302 ac_cv_prog_GDC="gdc"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306done
5307 done
5308IFS=$as_save_IFS
5309
5310if test $ac_prog_rejected = yes; then
5311 # We found a bogon in the path, so make sure we never use it.
5312 set dummy $ac_cv_prog_GDC
5313 shift
5314 if test $# != 0; then
5315 # We chose a different compiler from the bogus one.
5316 # However, it has the same basename, so the bogon will be chosen
5317 # first if we set GDC to just the basename; use the full file name.
5318 shift
5319 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5320 fi
5321fi
5322fi
5323fi
5324GDC=$ac_cv_prog_GDC
5325if test -n "$GDC"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5327$as_echo "$GDC" >&6; }
5328else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331fi
5332
5333
5334fi
5335
5336
5337# Provide some information about the compiler.
5338$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5339set X $ac_compile
5340ac_compiler=$2
5341{ { ac_try="$ac_compiler --version >&5"
5342case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345esac
5346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5347$as_echo "$ac_try_echo"; } >&5
5348 (eval "$ac_compiler --version >&5") 2>conftest.err
5349 ac_status=$?
5350 if test -s conftest.err; then
5351 sed '10a\
5352... rest of stderr output deleted ...
5353 10q' conftest.err >conftest.er1
5354 cat conftest.er1 >&5
5355 fi
5356 rm -f conftest.er1 conftest.err
5357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5358 test $ac_status = 0; }
5359ac_ext=c
5360ac_cpp='$CPP $CPPFLAGS'
5361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5367$as_echo_n "checking for absolute libphobos source path... " >&6; }
5368if ${phobos_cv_abs_srcdir+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370else
5371 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5374$as_echo "$phobos_cv_abs_srcdir" >&6; }
5375 if test -d "$phobos_cv_abs_srcdir"; then :
5376
5377else
5378 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5379fi
5380
5381
5382
5383
5384 gdc_save_DFLAGS=$GDCFLAGS
02dbf5d1 5385 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
235d1c46
RO
5386
5387 ac_ext=d
5388ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5389ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=yes
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5393$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5394 cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 5395module object;
235d1c46
RO
5396
5397
5398extern(C) int main() {
5399 return 0;
5400}
5401_ACEOF
5402if ac_fn_d_try_compile "$LINENO"; then :
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404$as_echo "yes" >&6; }
5405else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 ac_ext=c
5412ac_cpp='$CPP $CPPFLAGS'
5413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418 GDCFLAGS=$gdc_save_DFLAGS
5419
5420
5421
5422
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5426$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5427 # Check whether --enable-maintainer-mode was given.
5428if test "${enable_maintainer_mode+set}" = set; then :
5429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5430else
5431 USE_MAINTAINER_MODE=no
5432fi
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5435$as_echo "$USE_MAINTAINER_MODE" >&6; }
5436 if test $USE_MAINTAINER_MODE = yes; then
5437 MAINTAINER_MODE_TRUE=
5438 MAINTAINER_MODE_FALSE='#'
5439else
5440 MAINTAINER_MODE_TRUE='#'
5441 MAINTAINER_MODE_FALSE=
5442fi
5443
5444 MAINT=$MAINTAINER_MODE_TRUE
5445
5446
5447if test -n "$ac_tool_prefix"; then
5448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5449set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if ${ac_cv_prog_RANLIB+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454else
5455 if test -n "$RANLIB"; then
5456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469done
5470 done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475RANLIB=$ac_cv_prog_RANLIB
5476if test -n "$RANLIB"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5478$as_echo "$RANLIB" >&6; }
5479else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484
5485fi
5486if test -z "$ac_cv_prog_RANLIB"; then
5487 ac_ct_RANLIB=$RANLIB
5488 # Extract the first word of "ranlib", so it can be a program name with args.
5489set dummy ranlib; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494else
5495 if test -n "$ac_ct_RANLIB"; then
5496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_ac_ct_RANLIB="ranlib"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509done
5510 done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5516if test -n "$ac_ct_RANLIB"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5518$as_echo "$ac_ct_RANLIB" >&6; }
5519else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524 if test "x$ac_ct_RANLIB" = x; then
5525 RANLIB=":"
5526 else
5527 case $cross_compiling:$ac_tool_warned in
5528yes:)
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5531ac_tool_warned=yes ;;
5532esac
5533 RANLIB=$ac_ct_RANLIB
5534 fi
5535else
5536 RANLIB="$ac_cv_prog_RANLIB"
5537fi
5538
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5541$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5542set x ${MAKE-make}
5543ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5544if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546else
5547 cat >conftest.make <<\_ACEOF
5548SHELL = /bin/sh
5549all:
5550 @echo '@@@%%%=$(MAKE)=@@@%%%'
5551_ACEOF
5552# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5553case `${MAKE-make} -f conftest.make 2>/dev/null` in
5554 *@@@%%%=?*=@@@%%%*)
5555 eval ac_cv_prog_make_${ac_make}_set=yes;;
5556 *)
5557 eval ac_cv_prog_make_${ac_make}_set=no;;
5558esac
5559rm -f conftest.make
5560fi
5561if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563$as_echo "yes" >&6; }
5564 SET_MAKE=
5565else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568 SET_MAKE="MAKE=${MAKE-make}"
5569fi
5570
5571
08c1d39d
L
5572# Add CET specific flags if CET is enabled
5573 # Check whether --enable-cet was given.
5574if test "${enable_cet+set}" = set; then :
5575 enableval=$enable_cet;
5576 case "$enableval" in
5577 yes|no|auto) ;;
5578 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5579 esac
5580
5581else
4c1a5d8b 5582 enable_cet=auto
08c1d39d
L
5583fi
5584
5585
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5587$as_echo_n "checking for CET support... " >&6; }
5588
9051b548 5589# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
08c1d39d
L
5590case "$host" in
5591 i[34567]86-*-linux* | x86_64-*-linux*)
5592 case "$enable_cet" in
5593 auto)
5594 # Check if target supports multi-byte NOPs
285d81be 5595 # and if compiler and assembler support CET insn.
9051b548 5596 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 5597 CFLAGS="$CFLAGS -fcf-protection"
08c1d39d
L
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h. */
5600
5601int
5602main ()
5603{
5604
5605#if !defined(__SSE2__)
5606#error target does not support multi-byte NOPs
5607#else
5608asm ("setssbsy");
5609#endif
5610
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616 enable_cet=yes
5617else
5618 enable_cet=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 5621 CFLAGS="$cet_save_CFLAGS"
08c1d39d
L
5622 ;;
5623 yes)
5624 # Check if assembler supports CET.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627
5628int
5629main ()
5630{
5631asm ("setssbsy");
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637
5638else
5639 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 ;;
5643 esac
5644 ;;
5645 *)
5646 enable_cet=no
5647 ;;
5648esac
5649if test x$enable_cet = xyes; then
5650 CET_FLAGS="-fcf-protection -mshstk"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658
0ed75760 5659# To ensure that runtime code for CET is compiled in, add in D version flags.
5dbab7b3
IB
5660if test x$enable_cet = xyes; then :
5661
0ed75760 5662 CET_DFLAGS="$CET_FLAGS -fversion=CET"
5dbab7b3
IB
5663 DCFG_ENABLE_CET=true
5664
5665else
5666
5667 CET_DFLAGS=
5668 DCFG_ENABLE_CET=false
285d81be 5669
0ed75760 5670fi
08c1d39d 5671
5dbab7b3
IB
5672
5673
235d1c46
RO
5674# This should be inherited in the recursive make, but ensure it is defined.
5675test "$AR" || AR=ar
5676
5677
5678CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5679
5680
5681
5682# Enable libtool
5683case `pwd` in
5684 *\ * | *\ *)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5686$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5687esac
5688
5689
5690
5691macro_version='2.2.7a'
5692macro_revision='1.3134'
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706ltmain="$ac_aux_dir/ltmain.sh"
5707
5708# Backslashify metacharacters that are still active within
5709# double-quoted strings.
5710sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5711
5712# Same as above, but do not quote variable references.
5713double_quote_subst='s/\(["`\\]\)/\\\1/g'
5714
5715# Sed substitution to delay expansion of an escaped shell variable in a
5716# double_quote_subst'ed string.
5717delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5718
5719# Sed substitution to delay expansion of an escaped single quote.
5720delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5721
5722# Sed substitution to avoid accidental globbing in evaled expressions
5723no_glob_subst='s/\*/\\\*/g'
5724
5725ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5726ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5727ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5730$as_echo_n "checking how to print strings... " >&6; }
5731# Test print first, because it will be a builtin if present.
5732if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5733 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5734 ECHO='print -r --'
5735elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5736 ECHO='printf %s\n'
5737else
5738 # Use this function as a fallback that always works.
5739 func_fallback_echo ()
5740 {
5741 eval 'cat <<_LTECHO_EOF
5742$1
5743_LTECHO_EOF'
5744 }
5745 ECHO='func_fallback_echo'
5746fi
5747
5748# func_echo_all arg...
5749# Invoke $ECHO with all args, space-separated.
5750func_echo_all ()
5751{
5752 $ECHO ""
5753}
5754
5755case "$ECHO" in
5756 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5757$as_echo "printf" >&6; } ;;
5758 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5759$as_echo "print -r" >&6; } ;;
5760 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5761$as_echo "cat" >&6; } ;;
5762esac
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5778$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5779if ${ac_cv_path_SED+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781else
5782 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5783 for ac_i in 1 2 3 4 5 6 7; do
5784 ac_script="$ac_script$as_nl$ac_script"
5785 done
5786 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5787 { ac_script=; unset ac_script;}
5788 if test -z "$SED"; then
5789 ac_path_SED_found=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_prog in sed gsed; do
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5799 as_fn_executable_p "$ac_path_SED" || continue
5800# Check for GNU ac_path_SED and select it if it is found.
5801 # Check for GNU $ac_path_SED
5802case `"$ac_path_SED" --version 2>&1` in
5803*GNU*)
5804 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5805*)
5806 ac_count=0
5807 $as_echo_n 0123456789 >"conftest.in"
5808 while :
5809 do
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 $as_echo '' >> "conftest.nl"
5814 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_SED_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_SED="$ac_path_SED"
5820 ac_path_SED_max=$ac_count
5821 fi
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826esac
5827
5828 $ac_path_SED_found && break 3
5829 done
5830 done
5831 done
5832IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_SED"; then
5834 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5835 fi
5836else
5837 ac_cv_path_SED=$SED
5838fi
5839
5840fi
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5842$as_echo "$ac_cv_path_SED" >&6; }
5843 SED="$ac_cv_path_SED"
5844 rm -f conftest.sed
5845
5846test -z "$SED" && SED=sed
5847Xsed="$SED -e 1s/^X//"
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5860$as_echo_n "checking for fgrep... " >&6; }
5861if ${ac_cv_path_FGREP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5865 then ac_cv_path_FGREP="$GREP -F"
5866 else
5867 if test -z "$FGREP"; then
5868 ac_path_FGREP_found=false
5869 # Loop through the user's path and test for each of PROGNAME-LIST
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_prog in fgrep; do
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5878 as_fn_executable_p "$ac_path_FGREP" || continue
5879# Check for GNU ac_path_FGREP and select it if it is found.
5880 # Check for GNU $ac_path_FGREP
5881case `"$ac_path_FGREP" --version 2>&1` in
5882*GNU*)
5883 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5884*)
5885 ac_count=0
5886 $as_echo_n 0123456789 >"conftest.in"
5887 while :
5888 do
5889 cat "conftest.in" "conftest.in" >"conftest.tmp"
5890 mv "conftest.tmp" "conftest.in"
5891 cp "conftest.in" "conftest.nl"
5892 $as_echo 'FGREP' >> "conftest.nl"
5893 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5895 as_fn_arith $ac_count + 1 && ac_count=$as_val
5896 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5897 # Best one so far, save it but keep looking for a better one
5898 ac_cv_path_FGREP="$ac_path_FGREP"
5899 ac_path_FGREP_max=$ac_count
5900 fi
5901 # 10*(2^10) chars as input seems more than enough
5902 test $ac_count -gt 10 && break
5903 done
5904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5905esac
5906
5907 $ac_path_FGREP_found && break 3
5908 done
5909 done
5910 done
5911IFS=$as_save_IFS
5912 if test -z "$ac_cv_path_FGREP"; then
5913 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5914 fi
5915else
5916 ac_cv_path_FGREP=$FGREP
5917fi
5918
5919 fi
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5922$as_echo "$ac_cv_path_FGREP" >&6; }
5923 FGREP="$ac_cv_path_FGREP"
5924
5925
5926test -z "$GREP" && GREP=grep
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946# Check whether --with-gnu-ld was given.
5947if test "${with_gnu_ld+set}" = set; then :
5948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5949else
5950 with_gnu_ld=no
5951fi
5952
5953ac_prog=ld
5954if test "$GCC" = yes; then
5955 # Check if gcc -print-prog-name=ld gives a path.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5957$as_echo_n "checking for ld used by $CC... " >&6; }
5958 case $host in
5959 *-*-mingw*)
5960 # gcc leaves a trailing carriage return which upsets mingw
5961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5962 *)
5963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5964 esac
5965 case $ac_prog in
5966 # Accept absolute paths.
5967 [\\/]* | ?:[\\/]*)
5968 re_direlt='/[^/][^/]*/\.\./'
5969 # Canonicalize the pathname of ld
5970 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5971 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5972 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5973 done
5974 test -z "$LD" && LD="$ac_prog"
5975 ;;
5976 "")
5977 # If it fails, then pretend we aren't using GCC.
5978 ac_prog=ld
5979 ;;
5980 *)
5981 # If it is relative, then search for the first ld in PATH.
5982 with_gnu_ld=unknown
5983 ;;
5984 esac
5985elif test "$with_gnu_ld" = yes; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5987$as_echo_n "checking for GNU ld... " >&6; }
5988else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5990$as_echo_n "checking for non-GNU ld... " >&6; }
5991fi
5992if ${lt_cv_path_LD+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994else
5995 if test -z "$LD"; then
5996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5997 for ac_dir in $PATH; do
5998 IFS="$lt_save_ifs"
5999 test -z "$ac_dir" && ac_dir=.
6000 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6001 lt_cv_path_LD="$ac_dir/$ac_prog"
6002 # Check to see if the program is GNU ld. I'd rather use --version,
6003 # but apparently some variants of GNU ld only accept -v.
6004 # Break only if it was the GNU/non-GNU ld that we prefer.
6005 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6006 *GNU* | *'with BFD'*)
6007 test "$with_gnu_ld" != no && break
6008 ;;
6009 *)
6010 test "$with_gnu_ld" != yes && break
6011 ;;
6012 esac
6013 fi
6014 done
6015 IFS="$lt_save_ifs"
6016else
6017 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6018fi
6019fi
6020
6021LD="$lt_cv_path_LD"
6022if test -n "$LD"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6024$as_echo "$LD" >&6; }
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6031$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6032if ${lt_cv_prog_gnu_ld+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034else
6035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6036case `$LD -v 2>&1 </dev/null` in
6037*GNU* | *'with BFD'*)
6038 lt_cv_prog_gnu_ld=yes
6039 ;;
6040*)
6041 lt_cv_prog_gnu_ld=no
6042 ;;
6043esac
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6046$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6047with_gnu_ld=$lt_cv_prog_gnu_ld
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6058$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6059if ${lt_cv_path_NM+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test -n "$NM"; then
ab422974
NA
6063 # Let the user override the nm to test.
6064 lt_nm_to_check="$NM"
6065 else
6066 lt_nm_to_check="${ac_tool_prefix}nm"
6067 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6068 lt_nm_to_check="$lt_nm_to_check nm"
6069 fi
6070 fi
f3307109 6071 for lt_tmp_nm in "$lt_nm_to_check"; do
ab422974
NA
6072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6073 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6074 IFS="$lt_save_ifs"
6075 test -z "$ac_dir" && ac_dir=.
f3307109
NA
6076 # Strip out any user-provided options from the nm to test twice,
6077 # the first time to test to see if nm (rather than its options) has
6078 # an explicit path, the second time to yield a file which can be
6079 # nm'ed itself.
6080 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6081 case "$tmp_nm_path" in
ab422974
NA
6082 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6083 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6084 esac
f3307109
NA
6085 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6086 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
ab422974
NA
6087 # Check to see if the nm accepts a BSD-compat flag.
6088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6089 # nm: unknown option "B" ignored
f3307109 6090 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
6091 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6092 break
6093 ;;
6094 *)
f3307109 6095 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
6096 *$tmp_nm*)
6097 lt_cv_path_NM="$tmp_nm -p"
6098 break
6099 ;;
6100 *)
6101 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6102 continue # so that we can try to find one that supports BSD flags
6103 ;;
6104 esac
6105 ;;
6106 esac
6107 fi
6108 done
6109 IFS="$lt_save_ifs"
6110 done
6111 : ${lt_cv_path_NM=no}
235d1c46
RO
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6114$as_echo "$lt_cv_path_NM" >&6; }
6115if test "$lt_cv_path_NM" != "no"; then
6116 NM="$lt_cv_path_NM"
6117else
6118 # Didn't find any BSD compatible name lister, look for dumpbin.
6119 if test -n "$DUMPBIN"; then :
6120 # Let the user override the test.
6121 else
6122 if test -n "$ac_tool_prefix"; then
6123 for ac_prog in dumpbin "link -dump"
6124 do
6125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_DUMPBIN+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131else
6132 if test -n "$DUMPBIN"; then
6133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146done
6147 done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152DUMPBIN=$ac_cv_prog_DUMPBIN
6153if test -n "$DUMPBIN"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6155$as_echo "$DUMPBIN" >&6; }
6156else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161
6162 test -n "$DUMPBIN" && break
6163 done
6164fi
6165if test -z "$DUMPBIN"; then
6166 ac_ct_DUMPBIN=$DUMPBIN
6167 for ac_prog in dumpbin "link -dump"
6168do
6169 # Extract the first word of "$ac_prog", so it can be a program name with args.
6170set dummy $ac_prog; ac_word=$2
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 if test -n "$ac_ct_DUMPBIN"; then
6177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190done
6191 done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6197if test -n "$ac_ct_DUMPBIN"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6199$as_echo "$ac_ct_DUMPBIN" >&6; }
6200else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203fi
6204
6205
6206 test -n "$ac_ct_DUMPBIN" && break
6207done
6208
6209 if test "x$ac_ct_DUMPBIN" = x; then
6210 DUMPBIN=":"
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216ac_tool_warned=yes ;;
6217esac
6218 DUMPBIN=$ac_ct_DUMPBIN
6219 fi
6220fi
6221
6222 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6223 *COFF*)
6224 DUMPBIN="$DUMPBIN -symbols"
6225 ;;
6226 *)
6227 DUMPBIN=:
6228 ;;
6229 esac
6230 fi
6231
6232 if test "$DUMPBIN" != ":"; then
6233 NM="$DUMPBIN"
6234 fi
6235fi
6236test -z "$NM" && NM=nm
6237
6238
6239
6240
6241
6242
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6244$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6245if ${lt_cv_nm_interface+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247else
6248 lt_cv_nm_interface="BSD nm"
6249 echo "int some_variable = 0;" > conftest.$ac_ext
6250 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6251 (eval "$ac_compile" 2>conftest.err)
6252 cat conftest.err >&5
6253 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6255 cat conftest.err >&5
6256 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6257 cat conftest.out >&5
6258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6259 lt_cv_nm_interface="MS dumpbin"
6260 fi
6261 rm -f conftest*
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6264$as_echo "$lt_cv_nm_interface" >&6; }
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6267$as_echo_n "checking whether ln -s works... " >&6; }
6268LN_S=$as_ln_s
6269if test "$LN_S" = "ln -s"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271$as_echo "yes" >&6; }
6272else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6274$as_echo "no, using $LN_S" >&6; }
6275fi
6276
6277# find the maximum length of command line arguments
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6279$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6280if ${lt_cv_sys_max_cmd_len+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282else
6283 i=0
6284 teststring="ABCD"
6285
6286 case $build_os in
6287 msdosdjgpp*)
6288 # On DJGPP, this test can blow up pretty badly due to problems in libc
6289 # (any single argument exceeding 2000 bytes causes a buffer overrun
6290 # during glob expansion). Even if it were fixed, the result of this
6291 # check would be larger than it should be.
6292 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6293 ;;
6294
6295 gnu*)
6296 # Under GNU Hurd, this test is not required because there is
6297 # no limit to the length of command line arguments.
6298 # Libtool will interpret -1 as no limit whatsoever
6299 lt_cv_sys_max_cmd_len=-1;
6300 ;;
6301
6302 cygwin* | mingw* | cegcc*)
6303 # On Win9x/ME, this test blows up -- it succeeds, but takes
6304 # about 5 minutes as the teststring grows exponentially.
6305 # Worse, since 9x/ME are not pre-emptively multitasking,
6306 # you end up with a "frozen" computer, even though with patience
6307 # the test eventually succeeds (with a max line length of 256k).
6308 # Instead, let's just punt: use the minimum linelength reported by
6309 # all of the supported platforms: 8192 (on NT/2K/XP).
6310 lt_cv_sys_max_cmd_len=8192;
6311 ;;
6312
6313 mint*)
6314 # On MiNT this can take a long time and run out of memory.
6315 lt_cv_sys_max_cmd_len=8192;
6316 ;;
6317
6318 amigaos*)
6319 # On AmigaOS with pdksh, this test takes hours, literally.
6320 # So we just punt and use a minimum line length of 8192.
6321 lt_cv_sys_max_cmd_len=8192;
6322 ;;
6323
6324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6325 # This has been around since 386BSD, at least. Likely further.
6326 if test -x /sbin/sysctl; then
6327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6328 elif test -x /usr/sbin/sysctl; then
6329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6330 else
6331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6332 fi
6333 # And add a safety zone
6334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6336 ;;
6337
6338 interix*)
6339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6340 lt_cv_sys_max_cmd_len=196608
6341 ;;
6342
6343 osf*)
6344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6346 # nice to cause kernel panics so lets avoid the loop below.
6347 # First set a reasonable default.
6348 lt_cv_sys_max_cmd_len=16384
6349 #
6350 if test -x /sbin/sysconfig; then
6351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6353 esac
6354 fi
6355 ;;
6356 sco3.2v5*)
6357 lt_cv_sys_max_cmd_len=102400
6358 ;;
6359 sysv5* | sco5v6* | sysv4.2uw2*)
6360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6361 if test -n "$kargmax"; then
6362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6363 else
6364 lt_cv_sys_max_cmd_len=32768
6365 fi
6366 ;;
6367 *)
6368 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6369 if test -n "$lt_cv_sys_max_cmd_len"; then
6370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6372 else
6373 # Make teststring a little bigger before we do anything with it.
6374 # a 1K string should be a reasonable start.
6375 for i in 1 2 3 4 5 6 7 8 ; do
6376 teststring=$teststring$teststring
6377 done
6378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6379 # If test is not a shell built-in, we'll probably end up computing a
6380 # maximum length that is only half of the actual maximum length, but
6381 # we can't tell.
6382 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6383 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6384 test $i != 17 # 1/2 MB should be enough
6385 do
6386 i=`expr $i + 1`
b4c522fa
IB
6387 teststring=$teststring$teststring
6388 done
6389 # Only check the string length outside the loop.
6390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6391 teststring=
6392 # Add a significant safety factor because C++ compilers can tack on
6393 # massive amounts of additional arguments before passing them to the
6394 # linker. It appears as though 1/2 is a usable value.
6395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6396 fi
6397 ;;
6398 esac
6399
6400fi
6401
6402if test -n $lt_cv_sys_max_cmd_len ; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6404$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6405else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6407$as_echo "none" >&6; }
6408fi
6409max_cmd_len=$lt_cv_sys_max_cmd_len
6410
6411
6412
6413
6414
6415
6416: ${CP="cp -f"}
6417: ${MV="mv -f"}
6418: ${RM="rm -f"}
6419
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6421$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6422# Try some XSI features
6423xsi_shell=no
6424( _lt_dummy="a/b/c"
6425 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6426 = c,a/b,, \
6427 && eval 'test $(( 1 + 1 )) -eq 2 \
6428 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6429 && xsi_shell=yes
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6431$as_echo "$xsi_shell" >&6; }
6432
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6435$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6436lt_shell_append=no
6437( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6438 >/dev/null 2>&1 \
6439 && lt_shell_append=yes
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6441$as_echo "$lt_shell_append" >&6; }
6442
6443
6444if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6445 lt_unset=unset
6446else
6447 lt_unset=false
6448fi
6449
6450
6451
6452
6453
6454# test EBCDIC or ASCII
6455case `echo X|tr X '\101'` in
6456 A) # ASCII based system
6457 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6458 lt_SP2NL='tr \040 \012'
6459 lt_NL2SP='tr \015\012 \040\040'
6460 ;;
6461 *) # EBCDIC based system
6462 lt_SP2NL='tr \100 \n'
6463 lt_NL2SP='tr \r\n \100\100'
6464 ;;
6465esac
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6476$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6477if ${lt_cv_ld_reload_flag+:} false; then :
b4c522fa
IB
6478 $as_echo_n "(cached) " >&6
6479else
6480 lt_cv_ld_reload_flag='-r'
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6483$as_echo "$lt_cv_ld_reload_flag" >&6; }
6484reload_flag=$lt_cv_ld_reload_flag
6485case $reload_flag in
6486"" | " "*) ;;
6487*) reload_flag=" $reload_flag" ;;
6488esac
6489reload_cmds='$LD$reload_flag -o $output$reload_objs'
6490case $host_os in
6491 darwin*)
6492 if test "$GCC" = yes; then
6493 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6494 else
6495 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6496 fi
6497 ;;
6498esac
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}objdump; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6513if ${ac_cv_prog_OBJDUMP+:} false; then :
b4c522fa
IB
6514 $as_echo_n "(cached) " >&6
6515else
6516 if test -n "$OBJDUMP"; then
6517 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6526 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531 done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536OBJDUMP=$ac_cv_prog_OBJDUMP
6537if test -n "$OBJDUMP"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6539$as_echo "$OBJDUMP" >&6; }
6540else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545
6546fi
6547if test -z "$ac_cv_prog_OBJDUMP"; then
6548 ac_ct_OBJDUMP=$OBJDUMP
6549 # Extract the first word of "objdump", so it can be a program name with args.
6550set dummy objdump; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6553if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b4c522fa
IB
6554 $as_echo_n "(cached) " >&6
6555else
6556 if test -n "$ac_ct_OBJDUMP"; then
6557 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6566 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570done
6571 done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6577if test -n "$ac_ct_OBJDUMP"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6579$as_echo "$ac_ct_OBJDUMP" >&6; }
6580else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585 if test "x$ac_ct_OBJDUMP" = x; then
6586 OBJDUMP="false"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589yes:)
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592ac_tool_warned=yes ;;
6593esac
6594 OBJDUMP=$ac_ct_OBJDUMP
6595 fi
6596else
6597 OBJDUMP="$ac_cv_prog_OBJDUMP"
6598fi
6599
6600test -z "$OBJDUMP" && OBJDUMP=objdump
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6611$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6612if ${lt_cv_deplibs_check_method+:} false; then :
b4c522fa
IB
6613 $as_echo_n "(cached) " >&6
6614else
6615 lt_cv_file_magic_cmd='$MAGIC_CMD'
6616lt_cv_file_magic_test_file=
6617lt_cv_deplibs_check_method='unknown'
6618# Need to set the preceding variable on all platforms that support
6619# interlibrary dependencies.
6620# 'none' -- dependencies not supported.
6621# `unknown' -- same as none, but documents that we really don't know.
6622# 'pass_all' -- all dependencies passed with no checks.
6623# 'test_compile' -- check by making test program.
6624# 'file_magic [[regex]]' -- check by looking for files in library path
6625# which responds to the $file_magic_cmd with a given extended regex.
6626# If you have `file' or equivalent on your system and you're not sure
6627# whether `pass_all' will *always* work, you probably want this one.
6628
6629case $host_os in
6630aix[4-9]*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634beos*)
6635 lt_cv_deplibs_check_method=pass_all
6636 ;;
6637
6638bsdi[45]*)
6639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6640 lt_cv_file_magic_cmd='/usr/bin/file -L'
6641 lt_cv_file_magic_test_file=/shlib/libc.so
6642 ;;
6643
6644cygwin*)
6645 # func_win32_libid is a shell function defined in ltmain.sh
6646 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6647 lt_cv_file_magic_cmd='func_win32_libid'
6648 ;;
6649
6650mingw* | pw32*)
6651 # Base MSYS/MinGW do not provide the 'file' command needed by
6652 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6653 # unless we find 'file', for example because we are cross-compiling.
6654 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6655 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6656 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6657 lt_cv_file_magic_cmd='func_win32_libid'
6658 else
6659 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6660 lt_cv_file_magic_cmd='$OBJDUMP -f'
6661 fi
6662 ;;
6663
6664cegcc*)
6665 # use the weaker test based on 'objdump'. See mingw*.
6666 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6667 lt_cv_file_magic_cmd='$OBJDUMP -f'
6668 ;;
6669
6670darwin* | rhapsody*)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673
6674freebsd* | dragonfly*)
6675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676 case $host_cpu in
6677 i*86 )
6678 # Not sure whether the presence of OpenBSD here was a mistake.
6679 # Let's accept both of them until this is cleared up.
6680 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6681 lt_cv_file_magic_cmd=/usr/bin/file
6682 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6683 ;;
6684 esac
6685 else
6686 lt_cv_deplibs_check_method=pass_all
6687 fi
6688 ;;
6689
6690gnu*)
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
6693
6694haiku*)
6695 lt_cv_deplibs_check_method=pass_all
6696 ;;
6697
6698hpux10.20* | hpux11*)
6699 lt_cv_file_magic_cmd=/usr/bin/file
6700 case $host_cpu in
6701 ia64*)
6702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6703 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6704 ;;
6705 hppa*64*)
6706 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]'
6707 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6708 ;;
6709 *)
6710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6711 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6712 ;;
6713 esac
6714 ;;
6715
6716interix[3-9]*)
6717 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6719 ;;
6720
6721irix5* | irix6* | nonstopux*)
6722 case $LD in
6723 *-32|*"-32 ") libmagic=32-bit;;
6724 *-n32|*"-n32 ") libmagic=N32;;
6725 *-64|*"-64 ") libmagic=64-bit;;
6726 *) libmagic=never-match;;
6727 esac
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730
6731# This must be Linux ELF.
e9085da5 6732linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736netbsd*)
6737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6739 else
6740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6741 fi
6742 ;;
6743
6744newos6*)
6745 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6746 lt_cv_file_magic_cmd=/usr/bin/file
6747 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6748 ;;
6749
6750*nto* | *qnx*)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754openbsd*)
6755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6757 else
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6759 fi
6760 ;;
6761
6762osf3* | osf4* | osf5*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765
6766rdos*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769
6770solaris*)
6771 lt_cv_deplibs_check_method=pass_all
6772 ;;
6773
6774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6775 lt_cv_deplibs_check_method=pass_all
6776 ;;
6777
6778sysv4 | sysv4.3*)
6779 case $host_vendor in
6780 motorola)
6781 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]'
6782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6783 ;;
6784 ncr)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787 sequent)
6788 lt_cv_file_magic_cmd='/bin/file'
6789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6790 ;;
6791 sni)
6792 lt_cv_file_magic_cmd='/bin/file'
6793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6794 lt_cv_file_magic_test_file=/lib/libc.so
6795 ;;
6796 siemens)
6797 lt_cv_deplibs_check_method=pass_all
6798 ;;
6799 pc)
6800 lt_cv_deplibs_check_method=pass_all
6801 ;;
6802 esac
6803 ;;
6804
6805tpf*)
6806 lt_cv_deplibs_check_method=pass_all
6807 ;;
0ecd0f1c
OH
6808vxworks*)
6809 # Assume VxWorks cross toolchains are built on Linux, possibly
6810 # as canadian for Windows hosts.
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
b4c522fa
IB
6813esac
6814
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817$as_echo "$lt_cv_deplibs_check_method" >&6; }
6818file_magic_cmd=$lt_cv_file_magic_cmd
6819deplibs_check_method=$lt_cv_deplibs_check_method
6820test -z "$deplibs_check_method" && deplibs_check_method=unknown
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
126f707e
L
6833plugin_option=
6834plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6835for plugin in $plugin_names; do
6836 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6837 if test x$plugin_so = x$plugin; then
6838 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6839 fi
6840 if test x$plugin_so != x$plugin; then
6841 plugin_option="--plugin $plugin_so"
6842 break
6843 fi
6844done
6845
b4c522fa
IB
6846if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}ar; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6851if ${ac_cv_prog_AR+:} false; then :
b4c522fa
IB
6852 $as_echo_n "(cached) " >&6
6853else
6854 if test -n "$AR"; then
6855 ac_cv_prog_AR="$AR" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6864 ac_cv_prog_AR="${ac_tool_prefix}ar"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874AR=$ac_cv_prog_AR
6875if test -n "$AR"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6877$as_echo "$AR" >&6; }
6878else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883
6884fi
6885if test -z "$ac_cv_prog_AR"; then
6886 ac_ct_AR=$AR
6887 # Extract the first word of "ar", so it can be a program name with args.
6888set dummy ar; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6891if ${ac_cv_prog_ac_ct_AR+:} false; then :
b4c522fa
IB
6892 $as_echo_n "(cached) " >&6
6893else
6894 if test -n "$ac_ct_AR"; then
6895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6904 ac_cv_prog_ac_ct_AR="ar"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909 done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_AR=$ac_cv_prog_ac_ct_AR
6915if test -n "$ac_ct_AR"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6917$as_echo "$ac_ct_AR" >&6; }
6918else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923 if test "x$ac_ct_AR" = x; then
6924 AR="false"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927yes:)
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930ac_tool_warned=yes ;;
6931esac
6932 AR=$ac_ct_AR
6933 fi
6934else
6935 AR="$ac_cv_prog_AR"
6936fi
6937
6938test -z "$AR" && AR=ar
126f707e
L
6939if test -n "$plugin_option"; then
6940 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
6941 touch conftest.c
6942 $AR $plugin_option rc conftest.a conftest.c
6943 if test "$?" != 0; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6945$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6946 else
6947 AR="$AR $plugin_option"
6948 fi
6949 rm -f conftest.*
126f707e
L
6950 fi
6951fi
b4c522fa
IB
6952test -z "$AR_FLAGS" && AR_FLAGS=cru
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6966set dummy ${ac_tool_prefix}strip; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6969if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
6970 $as_echo_n "(cached) " >&6
6971else
6972 if test -n "$STRIP"; then
6973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987 done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992STRIP=$ac_cv_prog_STRIP
6993if test -n "$STRIP"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6995$as_echo "$STRIP" >&6; }
6996else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001
7002fi
7003if test -z "$ac_cv_prog_STRIP"; then
7004 ac_ct_STRIP=$STRIP
7005 # Extract the first word of "strip", so it can be a program name with args.
7006set dummy strip; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7009if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
7010 $as_echo_n "(cached) " >&6
7011else
7012 if test -n "$ac_ct_STRIP"; then
7013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7022 ac_cv_prog_ac_ct_STRIP="strip"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027 done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7033if test -n "$ac_ct_STRIP"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7035$as_echo "$ac_ct_STRIP" >&6; }
7036else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041 if test "x$ac_ct_STRIP" = x; then
7042 STRIP=":"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045yes:)
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050 STRIP=$ac_ct_STRIP
7051 fi
7052else
7053 STRIP="$ac_cv_prog_STRIP"
7054fi
7055
7056test -z "$STRIP" && STRIP=:
7057
7058
7059
7060
7061
7062
7063if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7065set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7068if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
7069 $as_echo_n "(cached) " >&6
7070else
7071 if test -n "$RANLIB"; then
7072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086 done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091RANLIB=$ac_cv_prog_RANLIB
7092if test -n "$RANLIB"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7094$as_echo "$RANLIB" >&6; }
7095else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100
7101fi
7102if test -z "$ac_cv_prog_RANLIB"; then
7103 ac_ct_RANLIB=$RANLIB
7104 # Extract the first word of "ranlib", so it can be a program name with args.
7105set dummy ranlib; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7108if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
7109 $as_echo_n "(cached) " >&6
7110else
7111 if test -n "$ac_ct_RANLIB"; then
7112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7121 ac_cv_prog_ac_ct_RANLIB="ranlib"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126 done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7132if test -n "$ac_ct_RANLIB"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7134$as_echo "$ac_ct_RANLIB" >&6; }
7135else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140 if test "x$ac_ct_RANLIB" = x; then
7141 RANLIB=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144yes:)
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147ac_tool_warned=yes ;;
7148esac
7149 RANLIB=$ac_ct_RANLIB
7150 fi
7151else
7152 RANLIB="$ac_cv_prog_RANLIB"
7153fi
7154
7155test -z "$RANLIB" && RANLIB=:
126f707e
L
7156if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7157 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7158 RANLIB="$RANLIB $plugin_option"
7159 fi
7160fi
b4c522fa
IB
7161
7162
7163
7164
7165
7166
7167# Determine commands to create old-style static archives.
7168old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7169old_postinstall_cmds='chmod 644 $oldlib'
7170old_postuninstall_cmds=
7171
7172if test -n "$RANLIB"; then
7173 case $host_os in
7174 openbsd*)
7175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7176 ;;
7177 *)
7178 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7179 ;;
7180 esac
7181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7182fi
7183
7184case $host_os in
7185 darwin*)
7186 lock_old_archive_extraction=yes ;;
7187 *)
7188 lock_old_archive_extraction=no ;;
7189esac
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229# If no C compiler was specified, use CC.
7230LTCC=${LTCC-"$CC"}
7231
7232# If no C compiler flags were specified, use CFLAGS.
7233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7234
7235# Allow CC to be a program name with arguments.
7236compiler=$CC
7237
7238
7239# Check for command to grab the raw symbol name followed by C symbol from nm.
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7241$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7242if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b4c522fa
IB
7243 $as_echo_n "(cached) " >&6
7244else
7245
7246# These are sane defaults that work on at least a few old systems.
7247# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7248
7249# Character class describing NM global symbol codes.
7250symcode='[BCDEGRST]'
7251
7252# Regexp to match symbols that can be accessed directly from C.
7253sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7254
7255# Define system-specific variables.
7256case $host_os in
7257aix*)
7258 symcode='[BCDT]'
7259 ;;
7260cygwin* | mingw* | pw32* | cegcc*)
7261 symcode='[ABCDGISTW]'
7262 ;;
7263hpux*)
7264 if test "$host_cpu" = ia64; then
7265 symcode='[ABCDEGRST]'
7266 fi
7267 ;;
7268irix* | nonstopux*)
7269 symcode='[BCDEGRST]'
7270 ;;
7271osf*)
7272 symcode='[BCDEGQRST]'
7273 ;;
7274solaris*)
dc17ceb3 7275 symcode='[BCDRT]'
b4c522fa
IB
7276 ;;
7277sco3.2v5*)
7278 symcode='[DT]'
7279 ;;
7280sysv4.2uw2*)
7281 symcode='[DT]'
7282 ;;
7283sysv5* | sco5v6* | unixware* | OpenUNIX*)
7284 symcode='[ABDT]'
7285 ;;
7286sysv4)
7287 symcode='[DFNSTU]'
7288 ;;
7289esac
7290
7291# If we're using GNU nm, then use its standard symbol codes.
7292case `$NM -V 2>&1` in
7293*GNU* | *'with BFD'*)
7294 symcode='[ABCDGIRSTW]' ;;
7295esac
7296
7297# Transform an extracted symbol line into a proper C declaration.
7298# Some systems (esp. on ia64) link data and code symbols differently,
7299# so use this general approach.
7300lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7301
7302# Transform an extracted symbol line into symbol name and symbol address
7303lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7304lt_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'"
7305
7306# Handle CRLF in mingw tool chain
7307opt_cr=
7308case $build_os in
7309mingw*)
7310 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7311 ;;
7312esac
7313
7314# Try without a prefix underscore, then with it.
7315for ac_symprfx in "" "_"; do
7316
7317 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7318 symxfrm="\\1 $ac_symprfx\\2 \\2"
7319
7320 # Write the raw and C identifiers.
7321 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7322 # Fake it for dumpbin and say T for any non-static function
7323 # and D for any global variable.
7324 # Also find C++ and __fastcall symbols from MSVC++,
7325 # which start with @ or ?.
7326 lt_cv_sys_global_symbol_pipe="$AWK '"\
7327" {last_section=section; section=\$ 3};"\
7328" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7329" \$ 0!~/External *\|/{next};"\
7330" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7331" {if(hide[section]) next};"\
7332" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7333" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7334" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7335" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7336" ' prfx=^$ac_symprfx"
7337 else
7338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7339 fi
7340
7341 # Check to see that the pipe works correctly.
7342 pipe_works=no
7343
7344 rm -f conftest*
7345 cat > conftest.$ac_ext <<_LT_EOF
7346#ifdef __cplusplus
7347extern "C" {
7348#endif
7349char nm_test_var;
7350void nm_test_func(void);
7351void nm_test_func(void){}
7352#ifdef __cplusplus
7353}
7354#endif
7355int main(){nm_test_var='a';nm_test_func();return(0);}
7356_LT_EOF
7357
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7359 (eval $ac_compile) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; }; then
7363 # Now try to grab the symbols.
7364 nlist=conftest.nm
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7366 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; } && test -s "$nlist"; then
7370 # Try sorting and uniquifying the output.
7371 if sort "$nlist" | uniq > "$nlist"T; then
7372 mv -f "$nlist"T "$nlist"
7373 else
7374 rm -f "$nlist"T
7375 fi
7376
7377 # Make sure that we snagged all the symbols we need.
7378 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7379 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7380 cat <<_LT_EOF > conftest.$ac_ext
7381#ifdef __cplusplus
7382extern "C" {
7383#endif
7384
7385_LT_EOF
7386 # Now generate the symbol file.
7387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7388
7389 cat <<_LT_EOF >> conftest.$ac_ext
7390
7391/* The mapping between symbol names and symbols. */
7392const struct {
7393 const char *name;
7394 void *address;
7395}
7396lt__PROGRAM__LTX_preloaded_symbols[] =
7397{
7398 { "@PROGRAM@", (void *) 0 },
7399_LT_EOF
7400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7401 cat <<\_LT_EOF >> conftest.$ac_ext
7402 {0, (void *) 0}
7403};
7404
7405/* This works around a problem in FreeBSD linker */
7406#ifdef FREEBSD_WORKAROUND
7407static const void *lt_preloaded_setup() {
7408 return lt__PROGRAM__LTX_preloaded_symbols;
7409}
7410#endif
7411
7412#ifdef __cplusplus
7413}
7414#endif
7415_LT_EOF
7416 # Now try linking the two files.
7417 mv conftest.$ac_objext conftstm.$ac_objext
7418 lt_save_LIBS="$LIBS"
7419 lt_save_CFLAGS="$CFLAGS"
7420 LIBS="conftstm.$ac_objext"
7421 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7423 (eval $ac_link) 2>&5
7424 ac_status=$?
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7427 pipe_works=yes
7428 fi
7429 LIBS="$lt_save_LIBS"
7430 CFLAGS="$lt_save_CFLAGS"
7431 else
7432 echo "cannot find nm_test_func in $nlist" >&5
7433 fi
7434 else
7435 echo "cannot find nm_test_var in $nlist" >&5
7436 fi
7437 else
7438 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7439 fi
7440 else
7441 echo "$progname: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7443 fi
7444 rm -rf conftest* conftst*
7445
7446 # Do not use the global_symbol_pipe unless it works.
7447 if test "$pipe_works" = yes; then
7448 break
7449 else
7450 lt_cv_sys_global_symbol_pipe=
7451 fi
7452done
7453
7454fi
7455
7456if test -z "$lt_cv_sys_global_symbol_pipe"; then
7457 lt_cv_sys_global_symbol_to_cdecl=
7458fi
7459if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7461$as_echo "failed" >&6; }
7462else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7464$as_echo "ok" >&6; }
7465fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
b4c522fa
IB
7486
7487
7488# Check whether --enable-libtool-lock was given.
7489if test "${enable_libtool_lock+set}" = set; then :
7490 enableval=$enable_libtool_lock;
7491fi
7492
7493test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7494
7495# Some flags need to be propagated to the compiler or linker for good
7496# libtool support.
7497case $host in
7498ia64-*-hpux*)
7499 # Find out which ABI we are using.
7500 echo 'int i;' > conftest.$ac_ext
7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502 (eval $ac_compile) 2>&5
7503 ac_status=$?
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; }; then
7506 case `/usr/bin/file conftest.$ac_objext` in
7507 *ELF-32*)
7508 HPUX_IA64_MODE="32"
7509 ;;
7510 *ELF-64*)
7511 HPUX_IA64_MODE="64"
7512 ;;
7513 esac
7514 fi
7515 rm -rf conftest*
7516 ;;
7517*-*-irix6*)
7518 # Find out which ABI we are using.
7519 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521 (eval $ac_compile) 2>&5
7522 ac_status=$?
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; then
7525 if test "$lt_cv_prog_gnu_ld" = yes; then
7526 case `/usr/bin/file conftest.$ac_objext` in
7527 *32-bit*)
7528 LD="${LD-ld} -melf32bsmip"
7529 ;;
7530 *N32*)
7531 LD="${LD-ld} -melf32bmipn32"
7532 ;;
7533 *64-bit*)
7534 LD="${LD-ld} -melf64bmip"
7535 ;;
7536 esac
7537 else
7538 case `/usr/bin/file conftest.$ac_objext` in
7539 *32-bit*)
7540 LD="${LD-ld} -32"
7541 ;;
7542 *N32*)
7543 LD="${LD-ld} -n32"
7544 ;;
7545 *64-bit*)
7546 LD="${LD-ld} -64"
7547 ;;
7548 esac
7549 fi
7550 fi
7551 rm -rf conftest*
7552 ;;
7553
7554x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7555s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7556 # Find out which ABI we are using.
7557 echo 'int i;' > conftest.$ac_ext
7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559 (eval $ac_compile) 2>&5
7560 ac_status=$?
7561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; }; then
7563 case `/usr/bin/file conftest.o` in
7564 *32-bit*)
7565 case $host in
7566 x86_64-*kfreebsd*-gnu)
7567 LD="${LD-ld} -m elf_i386_fbsd"
7568 ;;
7569 x86_64-*linux*)
7570 case `/usr/bin/file conftest.o` in
7571 *x86-64*)
7572 LD="${LD-ld} -m elf32_x86_64"
7573 ;;
7574 *)
7575 LD="${LD-ld} -m elf_i386"
7576 ;;
7577 esac
7578 ;;
7579 powerpc64le-*linux*)
7580 LD="${LD-ld} -m elf32lppclinux"
7581 ;;
7582 powerpc64-*linux*)
7583 LD="${LD-ld} -m elf32ppclinux"
7584 ;;
7585 s390x-*linux*)
7586 LD="${LD-ld} -m elf_s390"
7587 ;;
7588 sparc64-*linux*)
7589 LD="${LD-ld} -m elf32_sparc"
7590 ;;
7591 esac
7592 ;;
7593 *64-bit*)
7594 case $host in
7595 x86_64-*kfreebsd*-gnu)
7596 LD="${LD-ld} -m elf_x86_64_fbsd"
7597 ;;
7598 x86_64-*linux*)
7599 LD="${LD-ld} -m elf_x86_64"
7600 ;;
7601 powerpcle-*linux*)
7602 LD="${LD-ld} -m elf64lppc"
7603 ;;
7604 powerpc-*linux*)
7605 LD="${LD-ld} -m elf64ppc"
7606 ;;
7607 s390*-*linux*|s390*-*tpf*)
7608 LD="${LD-ld} -m elf64_s390"
7609 ;;
7610 sparc*-*linux*)
7611 LD="${LD-ld} -m elf64_sparc"
7612 ;;
7613 esac
7614 ;;
7615 esac
7616 fi
7617 rm -rf conftest*
7618 ;;
7619
7620*-*-sco3.2v5*)
7621 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7622 SAVE_CFLAGS="$CFLAGS"
7623 CFLAGS="$CFLAGS -belf"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7625$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7626if ${lt_cv_cc_needs_belf+:} false; then :
b4c522fa
IB
7627 $as_echo_n "(cached) " >&6
7628else
7629 ac_ext=c
7630ac_cpp='$CPP $CPPFLAGS'
7631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637
7638int
7639main ()
7640{
7641
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646if ac_fn_c_try_link "$LINENO"; then :
7647 lt_cv_cc_needs_belf=yes
7648else
7649 lt_cv_cc_needs_belf=no
7650fi
7651rm -f core conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653 ac_ext=c
7654ac_cpp='$CPP $CPPFLAGS'
7655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659fi
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7661$as_echo "$lt_cv_cc_needs_belf" >&6; }
7662 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7663 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7664 CFLAGS="$SAVE_CFLAGS"
7665 fi
7666 ;;
7667sparc*-*solaris*)
7668 # Find out which ABI we are using.
7669 echo 'int i;' > conftest.$ac_ext
7670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7671 (eval $ac_compile) 2>&5
7672 ac_status=$?
7673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7674 test $ac_status = 0; }; then
7675 case `/usr/bin/file conftest.o` in
7676 *64-bit*)
7677 case $lt_cv_prog_gnu_ld in
7678 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7679 *)
7680 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7681 LD="${LD-ld} -64"
7682 fi
7683 ;;
7684 esac
7685 ;;
7686 esac
7687 fi
7688 rm -rf conftest*
7689 ;;
7690esac
7691
7692need_locks="$enable_libtool_lock"
7693
7694
7695 case $host_os in
7696 rhapsody* | darwin*)
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7699set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7702if ${ac_cv_prog_DSYMUTIL+:} false; then :
b4c522fa
IB
7703 $as_echo_n "(cached) " >&6
7704else
7705 if test -n "$DSYMUTIL"; then
7706 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7715 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720 done
7721IFS=$as_save_IFS
7722
7723fi
7724fi
7725DSYMUTIL=$ac_cv_prog_DSYMUTIL
7726if test -n "$DSYMUTIL"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7728$as_echo "$DSYMUTIL" >&6; }
7729else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731$as_echo "no" >&6; }
7732fi
7733
7734
7735fi
7736if test -z "$ac_cv_prog_DSYMUTIL"; then
7737 ac_ct_DSYMUTIL=$DSYMUTIL
7738 # Extract the first word of "dsymutil", so it can be a program name with args.
7739set dummy dsymutil; ac_word=$2
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7742if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b4c522fa
IB
7743 $as_echo_n "(cached) " >&6
7744else
7745 if test -n "$ac_ct_DSYMUTIL"; then
7746 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7755 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b4c522fa
IB
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759done
7760 done
7761IFS=$as_save_IFS
7762
7763fi
7764fi
235d1c46
RO
7765ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7766if test -n "$ac_ct_DSYMUTIL"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7768$as_echo "$ac_ct_DSYMUTIL" >&6; }
b4c522fa
IB
7769else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771$as_echo "no" >&6; }
7772fi
7773
235d1c46
RO
7774 if test "x$ac_ct_DSYMUTIL" = x; then
7775 DSYMUTIL=":"
b4c522fa
IB
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778yes:)
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781ac_tool_warned=yes ;;
7782esac
235d1c46 7783 DSYMUTIL=$ac_ct_DSYMUTIL
b4c522fa
IB
7784 fi
7785else
235d1c46 7786 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b4c522fa
IB
7787fi
7788
7789 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7790 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7791set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b4c522fa
IB
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7794if ${ac_cv_prog_NMEDIT+:} false; then :
b4c522fa
IB
7795 $as_echo_n "(cached) " >&6
7796else
235d1c46
RO
7797 if test -n "$NMEDIT"; then
7798 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b4c522fa
IB
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7807 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b4c522fa
IB
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812 done
7813IFS=$as_save_IFS
7814
7815fi
7816fi
235d1c46
RO
7817NMEDIT=$ac_cv_prog_NMEDIT
7818if test -n "$NMEDIT"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7820$as_echo "$NMEDIT" >&6; }
b4c522fa
IB
7821else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824fi
7825
7826
7827fi
235d1c46
RO
7828if test -z "$ac_cv_prog_NMEDIT"; then
7829 ac_ct_NMEDIT=$NMEDIT
7830 # Extract the first word of "nmedit", so it can be a program name with args.
7831set dummy nmedit; ac_word=$2
b4c522fa
IB
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7834if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b4c522fa
IB
7835 $as_echo_n "(cached) " >&6
7836else
235d1c46
RO
7837 if test -n "$ac_ct_NMEDIT"; then
7838 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b4c522fa
IB
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7847 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b4c522fa
IB
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851done
7852 done
7853IFS=$as_save_IFS
7854
7855fi
7856fi
235d1c46
RO
7857ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7858if test -n "$ac_ct_NMEDIT"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7860$as_echo "$ac_ct_NMEDIT" >&6; }
b4c522fa
IB
7861else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863$as_echo "no" >&6; }
7864fi
7865
235d1c46
RO
7866 if test "x$ac_ct_NMEDIT" = x; then
7867 NMEDIT=":"
b4c522fa
IB
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870yes:)
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873ac_tool_warned=yes ;;
7874esac
235d1c46 7875 NMEDIT=$ac_ct_NMEDIT
b4c522fa
IB
7876 fi
7877else
235d1c46 7878 NMEDIT="$ac_cv_prog_NMEDIT"
b4c522fa
IB
7879fi
7880
7881 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7882 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7883set dummy ${ac_tool_prefix}lipo; ac_word=$2
b4c522fa
IB
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7886if ${ac_cv_prog_LIPO+:} false; then :
b4c522fa
IB
7887 $as_echo_n "(cached) " >&6
7888else
235d1c46
RO
7889 if test -n "$LIPO"; then
7890 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b4c522fa
IB
7891else
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7899 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b4c522fa
IB
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903done
7904 done
7905IFS=$as_save_IFS
7906
7907fi
7908fi
235d1c46
RO
7909LIPO=$ac_cv_prog_LIPO
7910if test -n "$LIPO"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7912$as_echo "$LIPO" >&6; }
b4c522fa
IB
7913else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915$as_echo "no" >&6; }
7916fi
7917
7918
7919fi
235d1c46
RO
7920if test -z "$ac_cv_prog_LIPO"; then
7921 ac_ct_LIPO=$LIPO
7922 # Extract the first word of "lipo", so it can be a program name with args.
7923set dummy lipo; ac_word=$2
b4c522fa
IB
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7926if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
b4c522fa
IB
7927 $as_echo_n "(cached) " >&6
7928else
235d1c46
RO
7929 if test -n "$ac_ct_LIPO"; then
7930 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b4c522fa
IB
7931else
7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7939 ac_cv_prog_ac_ct_LIPO="lipo"
b4c522fa
IB
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943done
7944 done
7945IFS=$as_save_IFS
7946
7947fi
7948fi
235d1c46
RO
7949ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7950if test -n "$ac_ct_LIPO"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7952$as_echo "$ac_ct_LIPO" >&6; }
b4c522fa
IB
7953else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
7956fi
7957
235d1c46
RO
7958 if test "x$ac_ct_LIPO" = x; then
7959 LIPO=":"
b4c522fa
IB
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962yes:)
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965ac_tool_warned=yes ;;
7966esac
235d1c46 7967 LIPO=$ac_ct_LIPO
b4c522fa
IB
7968 fi
7969else
235d1c46 7970 LIPO="$ac_cv_prog_LIPO"
b4c522fa
IB
7971fi
7972
235d1c46
RO
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7975set dummy ${ac_tool_prefix}otool; ac_word=$2
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977$as_echo_n "checking for $ac_word... " >&6; }
7978if ${ac_cv_prog_OTOOL+:} false; then :
b4c522fa
IB
7979 $as_echo_n "(cached) " >&6
7980else
235d1c46
RO
7981 if test -n "$OTOOL"; then
7982 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b4c522fa 7983else
235d1c46
RO
7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995done
7996 done
7997IFS=$as_save_IFS
b4c522fa 7998
b4c522fa 7999fi
b4c522fa 8000fi
235d1c46
RO
8001OTOOL=$ac_cv_prog_OTOOL
8002if test -n "$OTOOL"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8004$as_echo "$OTOOL" >&6; }
b4c522fa 8005else
235d1c46
RO
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007$as_echo "no" >&6; }
b4c522fa 8008fi
b4c522fa 8009
235d1c46 8010
b4c522fa 8011fi
235d1c46
RO
8012if test -z "$ac_cv_prog_OTOOL"; then
8013 ac_ct_OTOOL=$OTOOL
8014 # Extract the first word of "otool", so it can be a program name with args.
8015set dummy otool; ac_word=$2
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017$as_echo_n "checking for $ac_word... " >&6; }
8018if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b4c522fa
IB
8019 $as_echo_n "(cached) " >&6
8020else
235d1c46
RO
8021 if test -n "$ac_ct_OTOOL"; then
8022 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8023else
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
b4c522fa 8026do
235d1c46
RO
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_ac_ct_OTOOL="otool"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035done
8036 done
8037IFS=$as_save_IFS
b4c522fa 8038
235d1c46
RO
8039fi
8040fi
8041ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8042if test -n "$ac_ct_OTOOL"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8044$as_echo "$ac_ct_OTOOL" >&6; }
b4c522fa 8045else
235d1c46
RO
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047$as_echo "no" >&6; }
b4c522fa 8048fi
b4c522fa 8049
235d1c46
RO
8050 if test "x$ac_ct_OTOOL" = x; then
8051 OTOOL=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054yes:)
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057ac_tool_warned=yes ;;
8058esac
8059 OTOOL=$ac_ct_OTOOL
8060 fi
b4c522fa 8061else
235d1c46 8062 OTOOL="$ac_cv_prog_OTOOL"
b4c522fa 8063fi
b4c522fa 8064
235d1c46
RO
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8067set dummy ${ac_tool_prefix}otool64; ac_word=$2
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if ${ac_cv_prog_OTOOL64+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072else
8073 if test -n "$OTOOL64"; then
8074 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
b4c522fa 8087done
235d1c46
RO
8088 done
8089IFS=$as_save_IFS
8090
8091fi
8092fi
8093OTOOL64=$ac_cv_prog_OTOOL64
8094if test -n "$OTOOL64"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8096$as_echo "$OTOOL64" >&6; }
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
b4c522fa
IB
8100fi
8101
b4c522fa
IB
8102
8103fi
235d1c46
RO
8104if test -z "$ac_cv_prog_OTOOL64"; then
8105 ac_ct_OTOOL64=$OTOOL64
8106 # Extract the first word of "otool64", so it can be a program name with args.
8107set dummy otool64; ac_word=$2
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109$as_echo_n "checking for $ac_word... " >&6; }
8110if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8111 $as_echo_n "(cached) " >&6
b4c522fa 8112else
235d1c46
RO
8113 if test -n "$ac_ct_OTOOL64"; then
8114 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
b4c522fa 8118do
235d1c46
RO
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_ac_ct_OTOOL64="otool64"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8126 fi
8127done
8128 done
8129IFS=$as_save_IFS
b4c522fa 8130
b4c522fa 8131fi
235d1c46
RO
8132fi
8133ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8134if test -n "$ac_ct_OTOOL64"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8136$as_echo "$ac_ct_OTOOL64" >&6; }
b4c522fa 8137else
235d1c46
RO
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
b4c522fa 8140fi
b4c522fa 8141
235d1c46
RO
8142 if test "x$ac_ct_OTOOL64" = x; then
8143 OTOOL64=":"
8144 else
8145 case $cross_compiling:$ac_tool_warned in
8146yes:)
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149ac_tool_warned=yes ;;
8150esac
8151 OTOOL64=$ac_ct_OTOOL64
8152 fi
b4c522fa 8153else
235d1c46 8154 OTOOL64="$ac_cv_prog_OTOOL64"
b4c522fa
IB
8155fi
8156
b4c522fa
IB
8157
8158
b4c522fa 8159
b4c522fa 8160
b4c522fa 8161
b4c522fa 8162
b4c522fa 8163
b4c522fa 8164
b4c522fa 8165
b4c522fa 8166
b4c522fa 8167
b4c522fa 8168
b4c522fa 8169
235d1c46
RO
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8184$as_echo_n "checking for -single_module linker flag... " >&6; }
8185if ${lt_cv_apple_cc_single_mod+:} false; then :
8186 $as_echo_n "(cached) " >&6
b4c522fa 8187else
235d1c46
RO
8188 lt_cv_apple_cc_single_mod=no
8189 if test -z "${LT_MULTI_MODULE}"; then
8190 # By default we will add the -single_module flag. You can override
8191 # by either setting the environment variable LT_MULTI_MODULE
8192 # non-empty at configure time, or by adding -multi_module to the
8193 # link flags.
8194 rm -rf libconftest.dylib*
8195 echo "int foo(void){return 1;}" > conftest.c
8196 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8197-dynamiclib -Wl,-single_module conftest.c" >&5
8198 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8199 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8200 _lt_result=$?
8201 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8202 lt_cv_apple_cc_single_mod=yes
8203 else
8204 cat conftest.err >&5
8205 fi
8206 rm -rf libconftest.dylib*
8207 rm -f conftest.*
8208 fi
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8211$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8213$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8214if ${lt_cv_ld_exported_symbols_list+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216else
8217 lt_cv_ld_exported_symbols_list=no
8218 save_LDFLAGS=$LDFLAGS
8219 echo "_main" > conftest.sym
8220 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 8222/* end confdefs.h. */
b4c522fa 8223
b4c522fa
IB
8224int
8225main ()
8226{
235d1c46
RO
8227
8228 ;
b4c522fa
IB
8229 return 0;
8230}
8231_ACEOF
235d1c46
RO
8232if ac_fn_c_try_link "$LINENO"; then :
8233 lt_cv_ld_exported_symbols_list=yes
b4c522fa 8234else
235d1c46 8235 lt_cv_ld_exported_symbols_list=no
b4c522fa 8236fi
235d1c46
RO
8237rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LDFLAGS="$save_LDFLAGS"
b4c522fa
IB
8240
8241fi
235d1c46
RO
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8243$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8245$as_echo_n "checking for -force_load linker flag... " >&6; }
8246if ${lt_cv_ld_force_load+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248else
8249 lt_cv_ld_force_load=no
8250 cat > conftest.c << _LT_EOF
8251int forced_loaded() { return 2;}
8252_LT_EOF
8253 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8254 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8255 echo "$AR cru libconftest.a conftest.o" >&5
8256 $AR cru libconftest.a conftest.o 2>&5
8257 cat > conftest.c << _LT_EOF
8258int main() { return 0;}
8259_LT_EOF
8260 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8261 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8262 _lt_result=$?
8263 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8264 lt_cv_ld_force_load=yes
8265 else
8266 cat conftest.err >&5
8267 fi
8268 rm -f conftest.err libconftest.a conftest conftest.c
8269 rm -rf conftest.dSYM
b4c522fa
IB
8270
8271fi
235d1c46
RO
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8273$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
8274 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8275 # build without first building modern cctools / linker.
8276 case $host_cpu-$host_os in
8277 *-rhapsody* | *-darwin1.[012])
235d1c46 8278 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 8279 *-darwin1.*)
235d1c46 8280 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
8281 *-darwin*)
8282 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8283 # deployment target is forced to an earlier version.
8284 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8285 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8286 ;;
235d1c46 8287 10.[012][,.]*)
1352bc88
IS
8288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8289 ;;
8290 *)
8291 ;;
8292 esac
235d1c46
RO
8293 ;;
8294 esac
8295 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8296 _lt_dar_single_mod='$single_module'
8297 fi
8298 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8299 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8300 else
8301 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8302 fi
8303 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8304 _lt_dsymutil='~$DSYMUTIL $lib || :'
8305 else
8306 _lt_dsymutil=
8307 fi
8308 ;;
8309 esac
b4c522fa
IB
8310
8311for ac_header in dlfcn.h
8312do :
8313 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8314"
22e05272 8315if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b4c522fa
IB
8316 cat >>confdefs.h <<_ACEOF
8317#define HAVE_DLFCN_H 1
8318_ACEOF
8319
8320fi
8321
8322done
8323
8324
8325
8326
8327
8328# Set options
8329enable_dlopen=yes
8330
8331
8332
8333
8334 enable_win32_dll=no
8335
8336
8337 # Check whether --enable-shared was given.
8338if test "${enable_shared+set}" = set; then :
8339 enableval=$enable_shared; p=${PACKAGE-default}
8340 case $enableval in
8341 yes) enable_shared=yes ;;
8342 no) enable_shared=no ;;
8343 *)
8344 enable_shared=no
8345 # Look at the argument we got. We use all the common list separators.
8346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8347 for pkg in $enableval; do
8348 IFS="$lt_save_ifs"
8349 if test "X$pkg" = "X$p"; then
8350 enable_shared=yes
8351 fi
8352 done
8353 IFS="$lt_save_ifs"
8354 ;;
8355 esac
8356else
8357 enable_shared=yes
8358fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368 # Check whether --enable-static was given.
8369if test "${enable_static+set}" = set; then :
8370 enableval=$enable_static; p=${PACKAGE-default}
8371 case $enableval in
8372 yes) enable_static=yes ;;
8373 no) enable_static=no ;;
8374 *)
8375 enable_static=no
8376 # Look at the argument we got. We use all the common list separators.
8377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8378 for pkg in $enableval; do
8379 IFS="$lt_save_ifs"
8380 if test "X$pkg" = "X$p"; then
8381 enable_static=yes
8382 fi
8383 done
8384 IFS="$lt_save_ifs"
8385 ;;
8386 esac
8387else
8388 enable_static=yes
8389fi
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400# Check whether --with-pic was given.
8401if test "${with_pic+set}" = set; then :
8402 withval=$with_pic; pic_mode="$withval"
8403else
8404 pic_mode=default
8405fi
8406
8407
8408test -z "$pic_mode" && pic_mode=default
8409
8410
8411
8412
8413
8414
8415
8416 # Check whether --enable-fast-install was given.
8417if test "${enable_fast_install+set}" = set; then :
8418 enableval=$enable_fast_install; p=${PACKAGE-default}
8419 case $enableval in
8420 yes) enable_fast_install=yes ;;
8421 no) enable_fast_install=no ;;
8422 *)
8423 enable_fast_install=no
8424 # Look at the argument we got. We use all the common list separators.
8425 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8426 for pkg in $enableval; do
8427 IFS="$lt_save_ifs"
8428 if test "X$pkg" = "X$p"; then
8429 enable_fast_install=yes
8430 fi
8431 done
8432 IFS="$lt_save_ifs"
8433 ;;
8434 esac
8435else
8436 enable_fast_install=yes
8437fi
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449# This can be used to rebuild libtool when needed
8450LIBTOOL_DEPS="$ltmain"
8451
8452# Always use our own libtool.
8453LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480test -z "$LN_S" && LN_S="ln -s"
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495if test -n "${ZSH_VERSION+set}" ; then
8496 setopt NO_GLOB_SUBST
8497fi
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8500$as_echo_n "checking for objdir... " >&6; }
22e05272 8501if ${lt_cv_objdir+:} false; then :
b4c522fa
IB
8502 $as_echo_n "(cached) " >&6
8503else
8504 rm -f .libs 2>/dev/null
8505mkdir .libs 2>/dev/null
8506if test -d .libs; then
8507 lt_cv_objdir=.libs
8508else
8509 # MS-DOS does not allow filenames that begin with a dot.
8510 lt_cv_objdir=_libs
8511fi
8512rmdir .libs 2>/dev/null
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8515$as_echo "$lt_cv_objdir" >&6; }
8516objdir=$lt_cv_objdir
8517
8518
8519
8520
8521
8522cat >>confdefs.h <<_ACEOF
8523#define LT_OBJDIR "$lt_cv_objdir/"
8524_ACEOF
8525
8526
8527
8528
8529case $host_os in
8530aix3*)
8531 # AIX sometimes has problems with the GCC collect2 program. For some
8532 # reason, if we set the COLLECT_NAMES environment variable, the problems
8533 # vanish in a puff of smoke.
8534 if test "X${COLLECT_NAMES+set}" != Xset; then
8535 COLLECT_NAMES=
8536 export COLLECT_NAMES
8537 fi
8538 ;;
8539esac
8540
8541# Global variables:
8542ofile=libtool
8543can_build_shared=yes
8544
8545# All known linkers require a `.a' archive for static linking (except MSVC,
8546# which needs '.lib').
8547libext=a
8548
8549with_gnu_ld="$lt_cv_prog_gnu_ld"
8550
8551old_CC="$CC"
8552old_CFLAGS="$CFLAGS"
8553
8554# Set sane defaults for various variables
8555test -z "$CC" && CC=cc
8556test -z "$LTCC" && LTCC=$CC
8557test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8558test -z "$LD" && LD=ld
8559test -z "$ac_objext" && ac_objext=o
8560
8561for cc_temp in $compiler""; do
8562 case $cc_temp in
8563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8565 \-*) ;;
8566 *) break;;
8567 esac
8568done
8569cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8570
8571
8572# Only perform the check for file, if the check method requires it
8573test -z "$MAGIC_CMD" && MAGIC_CMD=file
8574case $deplibs_check_method in
8575file_magic*)
8576 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8578$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8579if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8580 $as_echo_n "(cached) " >&6
8581else
8582 case $MAGIC_CMD in
8583[\\/*] | ?:[\\/]*)
8584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8585 ;;
8586*)
8587 lt_save_MAGIC_CMD="$MAGIC_CMD"
8588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8590 for ac_dir in $ac_dummy; do
8591 IFS="$lt_save_ifs"
8592 test -z "$ac_dir" && ac_dir=.
8593 if test -f $ac_dir/${ac_tool_prefix}file; then
8594 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8595 if test -n "$file_magic_test_file"; then
8596 case $deplibs_check_method in
8597 "file_magic "*)
8598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8601 $EGREP "$file_magic_regex" > /dev/null; then
8602 :
8603 else
8604 cat <<_LT_EOF 1>&2
8605
8606*** Warning: the command libtool uses to detect shared libraries,
8607*** $file_magic_cmd, produces output that libtool cannot recognize.
8608*** The result is that libtool may fail to recognize shared libraries
8609*** as such. This will affect the creation of libtool libraries that
8610*** depend on shared libraries, but programs linked with such libtool
8611*** libraries will work regardless of this problem. Nevertheless, you
8612*** may want to report the problem to your system manager and/or to
8613*** bug-libtool@gnu.org
8614
8615_LT_EOF
8616 fi ;;
8617 esac
8618 fi
8619 break
8620 fi
8621 done
8622 IFS="$lt_save_ifs"
8623 MAGIC_CMD="$lt_save_MAGIC_CMD"
8624 ;;
8625esac
8626fi
8627
8628MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8629if test -n "$MAGIC_CMD"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8631$as_echo "$MAGIC_CMD" >&6; }
8632else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635fi
8636
8637
8638
8639
8640
8641if test -z "$lt_cv_path_MAGIC_CMD"; then
8642 if test -n "$ac_tool_prefix"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8644$as_echo_n "checking for file... " >&6; }
22e05272 8645if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8646 $as_echo_n "(cached) " >&6
8647else
8648 case $MAGIC_CMD in
8649[\\/*] | ?:[\\/]*)
8650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8651 ;;
8652*)
8653 lt_save_MAGIC_CMD="$MAGIC_CMD"
8654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8655 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8656 for ac_dir in $ac_dummy; do
8657 IFS="$lt_save_ifs"
8658 test -z "$ac_dir" && ac_dir=.
8659 if test -f $ac_dir/file; then
8660 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8661 if test -n "$file_magic_test_file"; then
8662 case $deplibs_check_method in
8663 "file_magic "*)
8664 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8667 $EGREP "$file_magic_regex" > /dev/null; then
8668 :
8669 else
8670 cat <<_LT_EOF 1>&2
8671
8672*** Warning: the command libtool uses to detect shared libraries,
8673*** $file_magic_cmd, produces output that libtool cannot recognize.
8674*** The result is that libtool may fail to recognize shared libraries
8675*** as such. This will affect the creation of libtool libraries that
8676*** depend on shared libraries, but programs linked with such libtool
8677*** libraries will work regardless of this problem. Nevertheless, you
8678*** may want to report the problem to your system manager and/or to
8679*** bug-libtool@gnu.org
8680
8681_LT_EOF
8682 fi ;;
8683 esac
8684 fi
8685 break
8686 fi
8687 done
8688 IFS="$lt_save_ifs"
8689 MAGIC_CMD="$lt_save_MAGIC_CMD"
8690 ;;
8691esac
8692fi
8693
8694MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8695if test -n "$MAGIC_CMD"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8697$as_echo "$MAGIC_CMD" >&6; }
8698else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700$as_echo "no" >&6; }
8701fi
8702
8703
8704 else
8705 MAGIC_CMD=:
8706 fi
8707fi
8708
8709 fi
8710 ;;
8711esac
8712
8713# Use C for the default configuration in the libtool script
8714
8715lt_save_CC="$CC"
8716ac_ext=c
8717ac_cpp='$CPP $CPPFLAGS'
8718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720ac_compiler_gnu=$ac_cv_c_compiler_gnu
8721
8722
8723# Source file extension for C test sources.
8724ac_ext=c
8725
8726# Object file extension for compiled C test sources.
8727objext=o
8728objext=$objext
8729
8730# Code to be used in simple compile tests
8731lt_simple_compile_test_code="int some_variable = 0;"
8732
8733# Code to be used in simple link tests
8734lt_simple_link_test_code='int main(){return(0);}'
8735
8736
8737
8738
8739
8740
8741
8742# If no C compiler was specified, use CC.
8743LTCC=${LTCC-"$CC"}
8744
8745# If no C compiler flags were specified, use CFLAGS.
8746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8747
8748# Allow CC to be a program name with arguments.
8749compiler=$CC
8750
8751# Save the default compiler, since it gets overwritten when the other
8752# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8753compiler_DEFAULT=$CC
8754
8755# save warnings/boilerplate of simple test code
8756ac_outfile=conftest.$ac_objext
8757echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8758eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8759_lt_compiler_boilerplate=`cat conftest.err`
8760$RM conftest*
8761
8762ac_outfile=conftest.$ac_objext
8763echo "$lt_simple_link_test_code" >conftest.$ac_ext
8764eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8765_lt_linker_boilerplate=`cat conftest.err`
8766$RM -r conftest*
8767
8768
8769## CAVEAT EMPTOR:
8770## There is no encapsulation within the following macros, do not change
8771## the running order or otherwise move them around unless you know exactly
8772## what you are doing...
8773if test -n "$compiler"; then
8774
8775lt_prog_compiler_no_builtin_flag=
8776
8777if test "$GCC" = yes; then
8778 case $cc_basename in
8779 nvcc*)
8780 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8781 *)
8782 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8783 esac
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8786$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8787if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
8788 $as_echo_n "(cached) " >&6
8789else
8790 lt_cv_prog_compiler_rtti_exceptions=no
8791 ac_outfile=conftest.$ac_objext
8792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8793 lt_compiler_flag="-fno-rtti -fno-exceptions"
8794 # Insert the option either (1) after the last *FLAGS variable, or
8795 # (2) before a word containing "conftest.", or (3) at the end.
8796 # Note that $ac_compile itself does not contain backslashes and begins
8797 # with a dollar sign (not a hyphen), so the echo should work correctly.
8798 # The option is referenced via a variable to avoid confusing sed.
8799 lt_compile=`echo "$ac_compile" | $SED \
8800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802 -e 's:$: $lt_compiler_flag:'`
8803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8804 (eval "$lt_compile" 2>conftest.err)
8805 ac_status=$?
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 if (exit $ac_status) && test -s "$ac_outfile"; then
8809 # The compiler can only warn and ignore the option if not recognized
8810 # So say no if there are warnings other than the usual output.
8811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8814 lt_cv_prog_compiler_rtti_exceptions=yes
8815 fi
8816 fi
8817 $RM conftest*
8818
8819fi
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8821$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8822
8823if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8824 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8825else
8826 :
8827fi
8828
8829fi
8830
8831
8832
8833
8834
8835
8836 lt_prog_compiler_wl=
8837lt_prog_compiler_pic=
8838lt_prog_compiler_static=
8839
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8841$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8842
8843 if test "$GCC" = yes; then
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_static='-static'
8846
8847 case $host_os in
8848 aix*)
8849 # All AIX code is PIC.
8850 if test "$host_cpu" = ia64; then
8851 # AIX 5 now supports IA64 processor
8852 lt_prog_compiler_static='-Bstatic'
8853 fi
8854 lt_prog_compiler_pic='-fPIC'
8855 ;;
8856
8857 amigaos*)
8858 case $host_cpu in
8859 powerpc)
8860 # see comment about AmigaOS4 .so support
8861 lt_prog_compiler_pic='-fPIC'
8862 ;;
8863 m68k)
8864 # FIXME: we need at least 68020 code to build shared libraries, but
8865 # adding the `-m68020' flag to GCC prevents building anything better,
8866 # like `-m68040'.
8867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8868 ;;
8869 esac
8870 ;;
8871
8872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8873 # PIC is the default for these OSes.
8874 ;;
8875
8876 mingw* | cygwin* | pw32* | os2* | cegcc*)
8877 # This hack is so that the source file can tell whether it is being
8878 # built for inclusion in a dll (and should export symbols for example).
8879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8880 # (--disable-auto-import) libraries
8881 lt_prog_compiler_pic='-DDLL_EXPORT'
8882 ;;
8883
8884 darwin* | rhapsody*)
8885 # PIC is the default on this platform
8886 # Common symbols not allowed in MH_DYLIB files
8887 lt_prog_compiler_pic='-fno-common'
8888 ;;
8889
8890 haiku*)
8891 # PIC is the default for Haiku.
8892 # The "-static" flag exists, but is broken.
8893 lt_prog_compiler_static=
8894 ;;
8895
8896 hpux*)
8897 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8898 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8899 # sets the default TLS model and affects inlining.
8900 case $host_cpu in
8901 hppa*64*)
8902 # +Z the default
8903 ;;
8904 *)
8905 lt_prog_compiler_pic='-fPIC'
8906 ;;
8907 esac
8908 ;;
8909
8910 interix[3-9]*)
8911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8912 # Instead, we relocate shared libraries at runtime.
8913 ;;
8914
8915 msdosdjgpp*)
8916 # Just because we use GCC doesn't mean we suddenly get shared libraries
8917 # on systems that don't support them.
8918 lt_prog_compiler_can_build_shared=no
8919 enable_shared=no
8920 ;;
8921
8922 *nto* | *qnx*)
8923 # QNX uses GNU C++, but need to define -shared option too, otherwise
8924 # it will coredump.
8925 lt_prog_compiler_pic='-fPIC -shared'
8926 ;;
8927
8928 sysv4*MP*)
8929 if test -d /usr/nec; then
8930 lt_prog_compiler_pic=-Kconform_pic
8931 fi
8932 ;;
8933
8934 *)
8935 lt_prog_compiler_pic='-fPIC'
8936 ;;
8937 esac
8938
8939 case $cc_basename in
8940 nvcc*) # Cuda Compiler Driver 2.2
8941 lt_prog_compiler_wl='-Xlinker '
8942 lt_prog_compiler_pic='-Xcompiler -fPIC'
8943 ;;
8944 esac
8945 else
8946 # PORTME Check for flag to pass linker flags through the system compiler.
8947 case $host_os in
8948 aix*)
8949 lt_prog_compiler_wl='-Wl,'
8950 if test "$host_cpu" = ia64; then
8951 # AIX 5 now supports IA64 processor
8952 lt_prog_compiler_static='-Bstatic'
8953 else
8954 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8955 fi
8956 ;;
8957
8958 mingw* | cygwin* | pw32* | os2* | cegcc*)
8959 # This hack is so that the source file can tell whether it is being
8960 # built for inclusion in a dll (and should export symbols for example).
8961 lt_prog_compiler_pic='-DDLL_EXPORT'
8962 ;;
8963
8964 hpux9* | hpux10* | hpux11*)
8965 lt_prog_compiler_wl='-Wl,'
8966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8967 # not for PA HP-UX.
8968 case $host_cpu in
8969 hppa*64*|ia64*)
8970 # +Z the default
8971 ;;
8972 *)
8973 lt_prog_compiler_pic='+Z'
8974 ;;
8975 esac
8976 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8977 lt_prog_compiler_static='${wl}-a ${wl}archive'
8978 ;;
8979
8980 irix5* | irix6* | nonstopux*)
8981 lt_prog_compiler_wl='-Wl,'
8982 # PIC (with -KPIC) is the default.
8983 lt_prog_compiler_static='-non_shared'
8984 ;;
8985
8986 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8987 case $cc_basename in
8988 # old Intel for x86_64 which still supported -KPIC.
8989 ecc*)
8990 lt_prog_compiler_wl='-Wl,'
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-static'
8993 ;;
8994 # icc used to be incompatible with GCC.
8995 # ICC 10 doesn't accept -KPIC any more.
8996 icc* | ifort*)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-fPIC'
8999 lt_prog_compiler_static='-static'
9000 ;;
9001 # Lahey Fortran 8.1.
9002 lf95*)
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='--shared'
9005 lt_prog_compiler_static='--static'
9006 ;;
9007 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9008 # Portland Group compilers (*not* the Pentium gcc compiler,
9009 # which looks to be a dead project)
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-fpic'
9012 lt_prog_compiler_static='-Bstatic'
9013 ;;
9014 ccc*)
9015 lt_prog_compiler_wl='-Wl,'
9016 # All Alpha code is PIC.
9017 lt_prog_compiler_static='-non_shared'
9018 ;;
9019 xl* | bgxl* | bgf* | mpixl*)
9020 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-qpic'
9023 lt_prog_compiler_static='-qstaticlink'
9024 ;;
9025 *)
9026 case `$CC -V 2>&1 | sed 5q` in
9027 *Sun\ F* | *Sun*Fortran*)
9028 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9029 lt_prog_compiler_pic='-KPIC'
9030 lt_prog_compiler_static='-Bstatic'
9031 lt_prog_compiler_wl=''
9032 ;;
9033 *Sun\ C*)
9034 # Sun C 5.9
9035 lt_prog_compiler_pic='-KPIC'
9036 lt_prog_compiler_static='-Bstatic'
9037 lt_prog_compiler_wl='-Wl,'
9038 ;;
9039 esac
9040 ;;
9041 esac
9042 ;;
9043
9044 newsos6)
9045 lt_prog_compiler_pic='-KPIC'
9046 lt_prog_compiler_static='-Bstatic'
9047 ;;
9048
9049 *nto* | *qnx*)
9050 # QNX uses GNU C++, but need to define -shared option too, otherwise
9051 # it will coredump.
9052 lt_prog_compiler_pic='-fPIC -shared'
9053 ;;
9054
9055 osf3* | osf4* | osf5*)
9056 lt_prog_compiler_wl='-Wl,'
9057 # All OSF/1 code is PIC.
9058 lt_prog_compiler_static='-non_shared'
9059 ;;
9060
9061 rdos*)
9062 lt_prog_compiler_static='-non_shared'
9063 ;;
9064
9065 solaris*)
9066 lt_prog_compiler_pic='-KPIC'
9067 lt_prog_compiler_static='-Bstatic'
9068 case $cc_basename in
9069 f77* | f90* | f95*)
9070 lt_prog_compiler_wl='-Qoption ld ';;
9071 *)
9072 lt_prog_compiler_wl='-Wl,';;
9073 esac
9074 ;;
9075
9076 sunos4*)
9077 lt_prog_compiler_wl='-Qoption ld '
9078 lt_prog_compiler_pic='-PIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 ;;
9081
9082 sysv4 | sysv4.2uw2* | sysv4.3*)
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_pic='-KPIC'
9085 lt_prog_compiler_static='-Bstatic'
9086 ;;
9087
9088 sysv4*MP*)
9089 if test -d /usr/nec ;then
9090 lt_prog_compiler_pic='-Kconform_pic'
9091 lt_prog_compiler_static='-Bstatic'
9092 fi
9093 ;;
9094
9095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-Bstatic'
9099 ;;
9100
9101 unicos*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_can_build_shared=no
9104 ;;
9105
9106 uts4*)
9107 lt_prog_compiler_pic='-pic'
9108 lt_prog_compiler_static='-Bstatic'
9109 ;;
9110
9111 *)
9112 lt_prog_compiler_can_build_shared=no
9113 ;;
9114 esac
9115 fi
9116
9117case $host_os in
9118 # For platforms which do not support PIC, -DPIC is meaningless:
9119 *djgpp*)
9120 lt_prog_compiler_pic=
9121 ;;
9122 *)
9123 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9124 ;;
9125esac
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9127$as_echo "$lt_prog_compiler_pic" >&6; }
9128
9129
9130
9131
9132
9133
9134#
9135# Check to make sure the PIC flag actually works.
9136#
9137if test -n "$lt_prog_compiler_pic"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9139$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9140if ${lt_cv_prog_compiler_pic_works+:} false; then :
b4c522fa
IB
9141 $as_echo_n "(cached) " >&6
9142else
9143 lt_cv_prog_compiler_pic_works=no
9144 ac_outfile=conftest.$ac_objext
9145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9146 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9147 # Insert the option either (1) after the last *FLAGS variable, or
9148 # (2) before a word containing "conftest.", or (3) at the end.
9149 # Note that $ac_compile itself does not contain backslashes and begins
9150 # with a dollar sign (not a hyphen), so the echo should work correctly.
9151 # The option is referenced via a variable to avoid confusing sed.
9152 lt_compile=`echo "$ac_compile" | $SED \
9153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9155 -e 's:$: $lt_compiler_flag:'`
9156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9157 (eval "$lt_compile" 2>conftest.err)
9158 ac_status=$?
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 if (exit $ac_status) && test -s "$ac_outfile"; then
9162 # The compiler can only warn and ignore the option if not recognized
9163 # So say no if there are warnings other than the usual output.
9164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9167 lt_cv_prog_compiler_pic_works=yes
9168 fi
9169 fi
9170 $RM conftest*
9171
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9174$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9175
9176if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9177 case $lt_prog_compiler_pic in
9178 "" | " "*) ;;
9179 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9180 esac
9181else
9182 lt_prog_compiler_pic=
9183 lt_prog_compiler_can_build_shared=no
9184fi
9185
9186fi
9187
9188
9189
9190
9191
9192
9193#
9194# Check to make sure the static flag actually works.
9195#
9196wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9198$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9199if ${lt_cv_prog_compiler_static_works+:} false; then :
b4c522fa
IB
9200 $as_echo_n "(cached) " >&6
9201else
9202 lt_cv_prog_compiler_static_works=no
9203 save_LDFLAGS="$LDFLAGS"
9204 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9205 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9207 # The linker can only warn and ignore the option if not recognized
9208 # So say no if there are warnings
9209 if test -s conftest.err; then
9210 # Append any errors to the config.log.
9211 cat conftest.err 1>&5
9212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9214 if diff conftest.exp conftest.er2 >/dev/null; then
9215 lt_cv_prog_compiler_static_works=yes
9216 fi
9217 else
9218 lt_cv_prog_compiler_static_works=yes
9219 fi
9220 fi
9221 $RM -r conftest*
9222 LDFLAGS="$save_LDFLAGS"
9223
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9226$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9227
9228if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9229 :
9230else
9231 lt_prog_compiler_static=
9232fi
9233
9234
9235
9236
9237
9238
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9241$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9242if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9243 $as_echo_n "(cached) " >&6
9244else
9245 lt_cv_prog_compiler_c_o=no
9246 $RM -r conftest 2>/dev/null
9247 mkdir conftest
9248 cd conftest
9249 mkdir out
9250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9251
9252 lt_compiler_flag="-o out/conftest2.$ac_objext"
9253 # Insert the option either (1) after the last *FLAGS variable, or
9254 # (2) before a word containing "conftest.", or (3) at the end.
9255 # Note that $ac_compile itself does not contain backslashes and begins
9256 # with a dollar sign (not a hyphen), so the echo should work correctly.
9257 lt_compile=`echo "$ac_compile" | $SED \
9258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9260 -e 's:$: $lt_compiler_flag:'`
9261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9262 (eval "$lt_compile" 2>out/conftest.err)
9263 ac_status=$?
9264 cat out/conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9267 then
9268 # The compiler can only warn and ignore the option if not recognized
9269 # So say no if there are warnings
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler_c_o=yes
9274 fi
9275 fi
9276 chmod u+w . 2>&5
9277 $RM conftest*
9278 # SGI C++ compiler will create directory out/ii_files/ for
9279 # template instantiation
9280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9281 $RM out/* && rmdir out
9282 cd ..
9283 $RM -r conftest
9284 $RM conftest*
9285
9286fi
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9288$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9289
9290
9291
9292
9293
9294
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9296$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9297if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9298 $as_echo_n "(cached) " >&6
9299else
9300 lt_cv_prog_compiler_c_o=no
9301 $RM -r conftest 2>/dev/null
9302 mkdir conftest
9303 cd conftest
9304 mkdir out
9305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306
9307 lt_compiler_flag="-o out/conftest2.$ac_objext"
9308 # Insert the option either (1) after the last *FLAGS variable, or
9309 # (2) before a word containing "conftest.", or (3) at the end.
9310 # Note that $ac_compile itself does not contain backslashes and begins
9311 # with a dollar sign (not a hyphen), so the echo should work correctly.
9312 lt_compile=`echo "$ac_compile" | $SED \
9313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9315 -e 's:$: $lt_compiler_flag:'`
9316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9317 (eval "$lt_compile" 2>out/conftest.err)
9318 ac_status=$?
9319 cat out/conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9322 then
9323 # The compiler can only warn and ignore the option if not recognized
9324 # So say no if there are warnings
9325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9328 lt_cv_prog_compiler_c_o=yes
9329 fi
9330 fi
9331 chmod u+w . 2>&5
9332 $RM conftest*
9333 # SGI C++ compiler will create directory out/ii_files/ for
9334 # template instantiation
9335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9336 $RM out/* && rmdir out
9337 cd ..
9338 $RM -r conftest
9339 $RM conftest*
9340
9341fi
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9343$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9344
9345
9346
9347
9348hard_links="nottested"
9349if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9350 # do not overwrite the value of need_locks provided by the user
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9352$as_echo_n "checking if we can lock with hard links... " >&6; }
9353 hard_links=yes
9354 $RM conftest*
9355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9356 touch conftest.a
9357 ln conftest.a conftest.b 2>&5 || hard_links=no
9358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9360$as_echo "$hard_links" >&6; }
9361 if test "$hard_links" = no; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9363$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9364 need_locks=warn
9365 fi
9366else
9367 need_locks=no
9368fi
9369
9370
9371
9372
9373
9374
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9376$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9377
9378 runpath_var=
9379 allow_undefined_flag=
9380 always_export_symbols=no
9381 archive_cmds=
9382 archive_expsym_cmds=
9383 compiler_needs_object=no
9384 enable_shared_with_static_runtimes=no
9385 export_dynamic_flag_spec=
9386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9387 hardcode_automatic=no
9388 hardcode_direct=no
9389 hardcode_direct_absolute=no
9390 hardcode_libdir_flag_spec=
9391 hardcode_libdir_flag_spec_ld=
9392 hardcode_libdir_separator=
9393 hardcode_minus_L=no
9394 hardcode_shlibpath_var=unsupported
9395 inherit_rpath=no
9396 link_all_deplibs=unknown
9397 module_cmds=
9398 module_expsym_cmds=
9399 old_archive_from_new_cmds=
9400 old_archive_from_expsyms_cmds=
9401 thread_safe_flag_spec=
9402 whole_archive_flag_spec=
9403 # include_expsyms should be a list of space-separated symbols to be *always*
9404 # included in the symbol list
9405 include_expsyms=
9406 # exclude_expsyms can be an extended regexp of symbols to exclude
9407 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9408 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9409 # as well as any symbol that contains `d'.
9410 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9411 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9412 # platforms (ab)use it in PIC code, but their linkers get confused if
9413 # the symbol is explicitly referenced. Since portable code cannot
9414 # rely on this symbol name, it's probably fine to never include it in
9415 # preloaded symbol tables.
9416 # Exclude shared library initialization/finalization symbols.
9417 extract_expsyms_cmds=
9418
9419 case $host_os in
9420 cygwin* | mingw* | pw32* | cegcc*)
9421 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9422 # When not using gcc, we currently assume that we are using
9423 # Microsoft Visual C++.
9424 if test "$GCC" != yes; then
9425 with_gnu_ld=no
9426 fi
9427 ;;
9428 interix*)
9429 # we just hope/assume this is gcc and not c89 (= MSVC++)
9430 with_gnu_ld=yes
9431 ;;
9432 openbsd*)
9433 with_gnu_ld=no
9434 ;;
9435 esac
9436
9437 ld_shlibs=yes
9438
9439 # On some targets, GNU ld is compatible enough with the native linker
9440 # that we're better off using the native interface for both.
9441 lt_use_gnu_ld_interface=no
9442 if test "$with_gnu_ld" = yes; then
9443 case $host_os in
9444 aix*)
9445 # The AIX port of GNU ld has always aspired to compatibility
9446 # with the native linker. However, as the warning in the GNU ld
9447 # block says, versions before 2.19.5* couldn't really create working
9448 # shared libraries, regardless of the interface used.
9449 case `$LD -v 2>&1` in
9450 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9451 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9452 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9453 *)
9454 lt_use_gnu_ld_interface=yes
9455 ;;
9456 esac
9457 ;;
9458 *)
9459 lt_use_gnu_ld_interface=yes
9460 ;;
9461 esac
9462 fi
9463
9464 if test "$lt_use_gnu_ld_interface" = yes; then
9465 # If archive_cmds runs LD, not CC, wlarc should be empty
9466 wlarc='${wl}'
9467
9468 # Set some defaults for GNU ld with shared library support. These
9469 # are reset later if shared libraries are not supported. Putting them
9470 # here allows them to be overridden if necessary.
9471 runpath_var=LD_RUN_PATH
9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9473 export_dynamic_flag_spec='${wl}--export-dynamic'
9474 # ancient GNU ld didn't support --whole-archive et. al.
9475 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9476 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9477 else
9478 whole_archive_flag_spec=
9479 fi
9480 supports_anon_versioning=no
9481 case `$LD -v 2>&1` in
9482 *GNU\ gold*) supports_anon_versioning=yes ;;
9483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9486 *\ 2.11.*) ;; # other 2.11 versions
9487 *) supports_anon_versioning=yes ;;
9488 esac
9489
9490 # See if GNU ld supports shared libraries.
9491 case $host_os in
9492 aix[3-9]*)
9493 # On AIX/PPC, the GNU linker is very broken
9494 if test "$host_cpu" != ia64; then
9495 ld_shlibs=no
9496 cat <<_LT_EOF 1>&2
9497
9498*** Warning: the GNU linker, at least up to release 2.19, is reported
9499*** to be unable to reliably create shared libraries on AIX.
9500*** Therefore, libtool is disabling shared libraries support. If you
9501*** really care for shared libraries, you may want to install binutils
9502*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9503*** You will then need to restart the configuration process.
9504
9505_LT_EOF
9506 fi
9507 ;;
9508
9509 amigaos*)
9510 case $host_cpu in
9511 powerpc)
9512 # see comment about AmigaOS4 .so support
9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514 archive_expsym_cmds=''
9515 ;;
9516 m68k)
9517 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)'
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_minus_L=yes
9520 ;;
9521 esac
9522 ;;
9523
9524 beos*)
9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 allow_undefined_flag=unsupported
9527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9528 # support --undefined. This deserves some investigation. FIXME
9529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 else
9531 ld_shlibs=no
9532 fi
9533 ;;
9534
9535 cygwin* | mingw* | pw32* | cegcc*)
9536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9537 # as there is no search path for DLLs.
9538 hardcode_libdir_flag_spec='-L$libdir'
9539 export_dynamic_flag_spec='${wl}--export-all-symbols'
9540 allow_undefined_flag=unsupported
9541 always_export_symbols=no
9542 enable_shared_with_static_runtimes=yes
9543 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9544
9545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9547 # If the export-symbols file already is a .def file (1st line
9548 # is EXPORTS), use it as is; otherwise, prepend...
9549 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9550 cp $export_symbols $output_objdir/$soname.def;
9551 else
9552 echo EXPORTS > $output_objdir/$soname.def;
9553 cat $export_symbols >> $output_objdir/$soname.def;
9554 fi~
9555 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9556 else
9557 ld_shlibs=no
9558 fi
9559 ;;
9560
9561 haiku*)
9562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563 link_all_deplibs=yes
9564 ;;
9565
9566 interix[3-9]*)
9567 hardcode_direct=no
9568 hardcode_shlibpath_var=no
9569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9570 export_dynamic_flag_spec='${wl}-E'
9571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9572 # Instead, shared libraries are loaded at an image base (0x10000000 by
9573 # default) and relocated if they conflict, which is a slow very memory
9574 # consuming and fragmenting process. To avoid this, we pick a random,
9575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9578 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'
9579 ;;
9580
e9085da5 9581 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
9582 tmp_diet=no
9583 if test "$host_os" = linux-dietlibc; then
9584 case $cc_basename in
9585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9586 esac
9587 fi
9588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9589 && test "$tmp_diet" = no
9590 then
9591 tmp_addflag=' $pic_flag'
9592 tmp_sharedflag='-shared'
9593 case $cc_basename,$host_cpu in
9594 pgcc*) # Portland Group C compiler
9595 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'
9596 tmp_addflag=' $pic_flag'
9597 ;;
9598 pgf77* | pgf90* | pgf95* | pgfortran*)
9599 # Portland Group f77 and f90 compilers
9600 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'
9601 tmp_addflag=' $pic_flag -Mnomain' ;;
9602 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9603 tmp_addflag=' -i_dynamic' ;;
9604 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9605 tmp_addflag=' -i_dynamic -nofor_main' ;;
9606 ifc* | ifort*) # Intel Fortran compiler
9607 tmp_addflag=' -nofor_main' ;;
9608 lf95*) # Lahey Fortran 8.1
9609 whole_archive_flag_spec=
9610 tmp_sharedflag='--shared' ;;
9611 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9612 tmp_sharedflag='-qmkshrobj'
9613 tmp_addflag= ;;
9614 nvcc*) # Cuda Compiler Driver 2.2
9615 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'
9616 compiler_needs_object=yes
9617 ;;
9618 esac
9619 case `$CC -V 2>&1 | sed 5q` in
9620 *Sun\ C*) # Sun C 5.9
9621 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'
9622 compiler_needs_object=yes
9623 tmp_sharedflag='-G' ;;
9624 *Sun\ F*) # Sun Fortran 8.3
9625 tmp_sharedflag='-G' ;;
9626 esac
9627 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628
9629 if test "x$supports_anon_versioning" = xyes; then
9630 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9632 echo "local: *; };" >> $output_objdir/$libname.ver~
9633 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9634 fi
9635
9636 case $cc_basename in
9637 xlf* | bgf* | bgxlf* | mpixlf*)
9638 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9639 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9640 hardcode_libdir_flag_spec=
9641 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9642 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9643 if test "x$supports_anon_versioning" = xyes; then
9644 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9646 echo "local: *; };" >> $output_objdir/$libname.ver~
9647 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9648 fi
9649 ;;
9650 esac
9651 else
9652 ld_shlibs=no
9653 fi
9654 ;;
9655
9656 netbsd*)
9657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9658 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9659 wlarc=
9660 else
9661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9663 fi
9664 ;;
9665
9666 solaris*)
9667 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9668 ld_shlibs=no
9669 cat <<_LT_EOF 1>&2
9670
9671*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9672*** create shared libraries on Solaris systems. Therefore, libtool
9673*** is disabling shared libraries support. We urge you to upgrade GNU
9674*** binutils to release 2.9.1 or newer. Another option is to modify
9675*** your PATH or compiler configuration so that the native linker is
9676*** used, and then restart.
9677
9678_LT_EOF
9679 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682 else
9683 ld_shlibs=no
9684 fi
9685 ;;
9686
9687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9688 case `$LD -v 2>&1` in
9689 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9690 ld_shlibs=no
9691 cat <<_LT_EOF 1>&2
9692
9693*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9694*** reliably create shared libraries on SCO systems. Therefore, libtool
9695*** is disabling shared libraries support. We urge you to upgrade GNU
9696*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9697*** your PATH or compiler configuration so that the native linker is
9698*** used, and then restart.
9699
9700_LT_EOF
9701 ;;
9702 *)
9703 # For security reasons, it is highly recommended that you always
9704 # use absolute paths for naming shared libraries, and exclude the
9705 # DT_RUNPATH tag from executables and libraries. But doing so
9706 # requires that you compile everything twice, which is a pain.
9707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9711 else
9712 ld_shlibs=no
9713 fi
9714 ;;
9715 esac
9716 ;;
9717
9718 sunos4*)
9719 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9720 wlarc=
9721 hardcode_direct=yes
9722 hardcode_shlibpath_var=no
9723 ;;
9724
9725 *)
9726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729 else
9730 ld_shlibs=no
9731 fi
9732 ;;
9733 esac
9734
9735 if test "$ld_shlibs" = no; then
9736 runpath_var=
9737 hardcode_libdir_flag_spec=
9738 export_dynamic_flag_spec=
9739 whole_archive_flag_spec=
9740 fi
9741 else
9742 # PORTME fill in a description of your system's linker (not GNU ld)
9743 case $host_os in
9744 aix3*)
9745 allow_undefined_flag=unsupported
9746 always_export_symbols=yes
9747 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'
9748 # Note: this linker hardcodes the directories in LIBPATH if there
9749 # are no directories specified by -L.
9750 hardcode_minus_L=yes
9751 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9752 # Neither direct hardcoding nor static linking is supported with a
9753 # broken collect2.
9754 hardcode_direct=unsupported
9755 fi
9756 ;;
9757
9758 aix[4-9]*)
9759 if test "$host_cpu" = ia64; then
9760 # On IA64, the linker does run time linking by default, so we don't
9761 # have to do anything special.
9762 aix_use_runtimelinking=no
9763 exp_sym_flag='-Bexport'
9764 no_entry_flag=""
9765 else
9766 # If we're using GNU nm, then we don't want the "-C" option.
9767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9768 # Also, AIX nm treats weak defined symbols like other global
9769 # defined symbols, whereas GNU nm marks them as "W".
9770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9771 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'
9772 else
9773 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'
9774 fi
9775 aix_use_runtimelinking=no
9776
9777 # Test if we are trying to use run time linking or normal
9778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9779 # need to do runtime linking.
9780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9781 for ld_flag in $LDFLAGS; do
9782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9783 aix_use_runtimelinking=yes
9784 break
9785 fi
9786 done
9787 ;;
9788 esac
9789
9790 exp_sym_flag='-bexport'
9791 no_entry_flag='-bnoentry'
9792 fi
9793
9794 # When large executables or shared objects are built, AIX ld can
9795 # have problems creating the table of contents. If linking a library
9796 # or program results in "error TOC overflow" add -mminimal-toc to
9797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9799
9800 archive_cmds=''
9801 hardcode_direct=yes
9802 hardcode_direct_absolute=yes
9803 hardcode_libdir_separator=':'
9804 link_all_deplibs=yes
9805 file_list_spec='${wl}-f,'
9806
9807 if test "$GCC" = yes; then
9808 case $host_os in aix4.[012]|aix4.[012].*)
9809 # We only want to do this on AIX 4.2 and lower, the check
9810 # below for broken collect2 doesn't work under 4.3+
9811 collect2name=`${CC} -print-prog-name=collect2`
9812 if test -f "$collect2name" &&
9813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9814 then
9815 # We have reworked collect2
9816 :
9817 else
9818 # We have old collect2
9819 hardcode_direct=unsupported
9820 # It fails to find uninstalled libraries when the uninstalled
9821 # path is not listed in the libpath. Setting hardcode_minus_L
9822 # to unsupported forces relinking
9823 hardcode_minus_L=yes
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_libdir_separator=
9826 fi
9827 ;;
9828 esac
9829 shared_flag='-shared'
9830 if test "$aix_use_runtimelinking" = yes; then
9831 shared_flag="$shared_flag "'${wl}-G'
9832 fi
9833 else
9834 # not using gcc
9835 if test "$host_cpu" = ia64; then
9836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9837 # chokes on -Wl,-G. The following line is correct:
9838 shared_flag='-G'
9839 else
9840 if test "$aix_use_runtimelinking" = yes; then
9841 shared_flag='${wl}-G'
9842 else
9843 shared_flag='${wl}-bM:SRE'
9844 fi
9845 fi
9846 fi
9847
9848 export_dynamic_flag_spec='${wl}-bexpall'
9849 # It seems that -bexpall does not export symbols beginning with
9850 # underscore (_), so it is better to generate a list of symbols to export.
9851 always_export_symbols=yes
9852 if test "$aix_use_runtimelinking" = yes; then
9853 # Warning - without using the other runtime loading flags (-brtl),
9854 # -berok will link without error, but may produce a broken library.
9855 allow_undefined_flag='-berok'
9856 # Determine the default libpath from the value encoded in an
9857 # empty executable.
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h. */
9860
9861int
9862main ()
9863{
9864
9865 ;
9866 return 0;
9867}
9868_ACEOF
9869if ac_fn_c_try_link "$LINENO"; then :
9870
9871lt_aix_libpath_sed='
9872 /Import File Strings/,/^$/ {
9873 /^0/ {
9874 s/^0 *\(.*\)$/\1/
9875 p
9876 }
9877 }'
9878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879# Check for a 64-bit object if we didn't find anything.
9880if test -z "$aix_libpath"; then
9881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882fi
9883fi
9884rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9887
9888 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9889 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"
9890 else
9891 if test "$host_cpu" = ia64; then
9892 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9893 allow_undefined_flag="-z nodefs"
9894 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"
9895 else
9896 # Determine the default libpath from the value encoded in an
9897 # empty executable.
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h. */
9900
9901int
9902main ()
9903{
9904
9905 ;
9906 return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"; then :
9910
9911lt_aix_libpath_sed='
9912 /Import File Strings/,/^$/ {
9913 /^0/ {
9914 s/^0 *\(.*\)$/\1/
9915 p
9916 }
9917 }'
9918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9919# Check for a 64-bit object if we didn't find anything.
9920if test -z "$aix_libpath"; then
9921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922fi
9923fi
9924rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9927
9928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9929 # Warning - without using the other run time loading flags,
9930 # -berok will link without error, but may produce a broken library.
9931 no_undefined_flag=' ${wl}-bernotok'
9932 allow_undefined_flag=' ${wl}-berok'
9933 if test "$with_gnu_ld" = yes; then
9934 # We only use this code for GNU lds that support --whole-archive.
9935 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9936 else
9937 # Exported symbols can be pulled into shared objects from archives
9938 whole_archive_flag_spec='$convenience'
9939 fi
9940 archive_cmds_need_lc=yes
9941 # This is similar to how AIX traditionally builds its shared libraries.
9942 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'
9943 fi
9944 fi
9945 ;;
9946
9947 amigaos*)
9948 case $host_cpu in
9949 powerpc)
9950 # see comment about AmigaOS4 .so support
9951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952 archive_expsym_cmds=''
9953 ;;
9954 m68k)
9955 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)'
9956 hardcode_libdir_flag_spec='-L$libdir'
9957 hardcode_minus_L=yes
9958 ;;
9959 esac
9960 ;;
9961
9962 bsdi[45]*)
9963 export_dynamic_flag_spec=-rdynamic
9964 ;;
9965
9966 cygwin* | mingw* | pw32* | cegcc*)
9967 # When not using gcc, we currently assume that we are using
9968 # Microsoft Visual C++.
9969 # hardcode_libdir_flag_spec is actually meaningless, as there is
9970 # no search path for DLLs.
9971 hardcode_libdir_flag_spec=' '
9972 allow_undefined_flag=unsupported
9973 # Tell ltmain to make .lib files, not .a files.
9974 libext=lib
9975 # Tell ltmain to make .dll files, not .so files.
9976 shrext_cmds=".dll"
9977 # FIXME: Setting linknames here is a bad hack.
9978 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9979 # The linker will automatically build a .lib file if we build a DLL.
9980 old_archive_from_new_cmds='true'
9981 # FIXME: Should let the user specify the lib program.
9982 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9983 fix_srcfile_path='`cygpath -w "$srcfile"`'
9984 enable_shared_with_static_runtimes=yes
9985 ;;
9986
9987 darwin* | rhapsody*)
9988
9989
9990 archive_cmds_need_lc=no
9991 hardcode_direct=no
9992 hardcode_automatic=yes
9993 hardcode_shlibpath_var=unsupported
9994 if test "$lt_cv_ld_force_load" = "yes"; then
9995 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\"`'
9996 else
9997 whole_archive_flag_spec=''
9998 fi
9999 link_all_deplibs=yes
10000 allow_undefined_flag="$_lt_dar_allow_undefined"
10001 case $cc_basename in
10002 ifort*) _lt_dar_can_shared=yes ;;
10003 *) _lt_dar_can_shared=$GCC ;;
10004 esac
10005 if test "$_lt_dar_can_shared" = "yes"; then
10006 output_verbose_link_cmd=func_echo_all
10007 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10008 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10009 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}"
10010 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}"
10011
10012 else
10013 ld_shlibs=no
10014 fi
10015
10016 ;;
10017
10018 dgux*)
10019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_shlibpath_var=no
10022 ;;
10023
10024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10025 # support. Future versions do this automatically, but an explicit c++rt0.o
10026 # does not break anything, and helps significantly (at the cost of a little
10027 # extra space).
10028 freebsd2.2*)
10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10030 hardcode_libdir_flag_spec='-R$libdir'
10031 hardcode_direct=yes
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10036 freebsd2.*)
10037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct=yes
10039 hardcode_minus_L=yes
10040 hardcode_shlibpath_var=no
10041 ;;
10042
10043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10044 freebsd* | dragonfly*)
10045 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10046 hardcode_libdir_flag_spec='-R$libdir'
10047 hardcode_direct=yes
10048 hardcode_shlibpath_var=no
10049 ;;
10050
10051 hpux9*)
10052 if test "$GCC" = yes; then
10053 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'
10054 else
10055 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'
10056 fi
10057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10058 hardcode_libdir_separator=:
10059 hardcode_direct=yes
10060
10061 # hardcode_minus_L: Not really in the search PATH,
10062 # but as the default location of the library.
10063 hardcode_minus_L=yes
10064 export_dynamic_flag_spec='${wl}-E'
10065 ;;
10066
10067 hpux10*)
10068 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070 else
10071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10072 fi
10073 if test "$with_gnu_ld" = no; then
10074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075 hardcode_libdir_flag_spec_ld='+b $libdir'
10076 hardcode_libdir_separator=:
10077 hardcode_direct=yes
10078 hardcode_direct_absolute=yes
10079 export_dynamic_flag_spec='${wl}-E'
10080 # hardcode_minus_L: Not really in the search PATH,
10081 # but as the default location of the library.
10082 hardcode_minus_L=yes
10083 fi
10084 ;;
10085
10086 hpux11*)
10087 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10088 case $host_cpu in
10089 hppa*64*)
1352bc88 10090 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b4c522fa
IB
10091 ;;
10092 ia64*)
10093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10094 ;;
10095 *)
10096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 ;;
10098 esac
10099 else
10100 case $host_cpu in
10101 hppa*64*)
1352bc88 10102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b4c522fa
IB
10103 ;;
10104 ia64*)
10105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10106 ;;
10107 *)
10108
10109 # Older versions of the 11.00 compiler do not understand -b yet
10110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10112$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10113if ${lt_cv_prog_compiler__b+:} false; then :
b4c522fa
IB
10114 $as_echo_n "(cached) " >&6
10115else
10116 lt_cv_prog_compiler__b=no
10117 save_LDFLAGS="$LDFLAGS"
10118 LDFLAGS="$LDFLAGS -b"
10119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10121 # The linker can only warn and ignore the option if not recognized
10122 # So say no if there are warnings
10123 if test -s conftest.err; then
10124 # Append any errors to the config.log.
10125 cat conftest.err 1>&5
10126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128 if diff conftest.exp conftest.er2 >/dev/null; then
10129 lt_cv_prog_compiler__b=yes
10130 fi
10131 else
10132 lt_cv_prog_compiler__b=yes
10133 fi
10134 fi
10135 $RM -r conftest*
10136 LDFLAGS="$save_LDFLAGS"
10137
10138fi
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10140$as_echo "$lt_cv_prog_compiler__b" >&6; }
10141
10142if test x"$lt_cv_prog_compiler__b" = xyes; then
10143 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10144else
10145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10146fi
10147
10148 ;;
10149 esac
10150 fi
10151 if test "$with_gnu_ld" = no; then
10152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154
10155 case $host_cpu in
10156 hppa*64*|ia64*)
10157 hardcode_direct=no
10158 hardcode_shlibpath_var=no
10159 ;;
10160 *)
10161 hardcode_direct=yes
10162 hardcode_direct_absolute=yes
10163 export_dynamic_flag_spec='${wl}-E'
10164
10165 # hardcode_minus_L: Not really in the search PATH,
10166 # but as the default location of the library.
10167 hardcode_minus_L=yes
10168 ;;
10169 esac
10170 fi
10171 ;;
10172
10173 irix5* | irix6* | nonstopux*)
10174 if test "$GCC" = yes; then
10175 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'
10176 # Try to use the -exported_symbol ld option, if it does not
10177 # work, assume that -exports_file does not work either and
10178 # implicitly export all symbols.
10179 save_LDFLAGS="$LDFLAGS"
10180 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h. */
10183int foo(void) {}
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186 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'
10187
10188fi
10189rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 LDFLAGS="$save_LDFLAGS"
10192 else
10193 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'
10194 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'
10195 fi
10196 archive_cmds_need_lc='no'
10197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198 hardcode_libdir_separator=:
10199 inherit_rpath=yes
10200 link_all_deplibs=yes
10201 ;;
10202
10203 netbsd*)
10204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10206 else
10207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10208 fi
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 newsos6)
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 hardcode_libdir_separator=:
10219 hardcode_shlibpath_var=no
10220 ;;
10221
10222 *nto* | *qnx*)
10223 ;;
10224
10225 openbsd*)
10226 if test -f /usr/libexec/ld.so; then
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10229 hardcode_direct_absolute=yes
10230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234 export_dynamic_flag_spec='${wl}-E'
10235 else
10236 case $host_os in
10237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_libdir_flag_spec='-R$libdir'
10240 ;;
10241 *)
10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 ;;
10245 esac
10246 fi
10247 else
10248 ld_shlibs=no
10249 fi
10250 ;;
10251
10252 os2*)
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_minus_L=yes
10255 allow_undefined_flag=unsupported
10256 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'
10257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258 ;;
10259
10260 osf3*)
10261 if test "$GCC" = yes; then
10262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263 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'
10264 else
10265 allow_undefined_flag=' -expect_unresolved \*'
10266 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'
10267 fi
10268 archive_cmds_need_lc='no'
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 hardcode_libdir_separator=:
10271 ;;
10272
10273 osf4* | osf5*) # as osf3* with the addition of -msym flag
10274 if test "$GCC" = yes; then
10275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276 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'
10277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278 else
10279 allow_undefined_flag=' -expect_unresolved \*'
10280 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'
10281 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~
10282 $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'
10283
10284 # Both c and cxx compiler support -rpath directly
10285 hardcode_libdir_flag_spec='-rpath $libdir'
10286 fi
10287 archive_cmds_need_lc='no'
10288 hardcode_libdir_separator=:
10289 ;;
10290
10291 solaris*)
10292 no_undefined_flag=' -z defs'
10293 if test "$GCC" = yes; then
10294 wlarc='${wl}'
10295 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10298 else
10299 case `$CC -V 2>&1` in
10300 *"Compilers 5.0"*)
10301 wlarc=''
10302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305 ;;
10306 *)
10307 wlarc='${wl}'
10308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311 ;;
10312 esac
10313 fi
10314 hardcode_libdir_flag_spec='-R$libdir'
10315 hardcode_shlibpath_var=no
10316 case $host_os in
10317 solaris2.[0-5] | solaris2.[0-5].*) ;;
10318 *)
10319 # The compiler driver will combine and reorder linker options,
10320 # but understands `-z linker_flag'. GCC discards it without `$wl',
10321 # but is careful enough not to reorder.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 if test "$GCC" = yes; then
10324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325 else
10326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327 fi
10328 ;;
10329 esac
10330 link_all_deplibs=yes
10331 ;;
10332
10333 sunos4*)
10334 if test "x$host_vendor" = xsequent; then
10335 # Use $CC to link under sequent, because it throws in some extra .o
10336 # files that make .init and .fini sections work.
10337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338 else
10339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340 fi
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_direct=yes
10343 hardcode_minus_L=yes
10344 hardcode_shlibpath_var=no
10345 ;;
10346
10347 sysv4)
10348 case $host_vendor in
10349 sni)
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct=yes # is this really true???
10352 ;;
10353 siemens)
10354 ## LD is ld it makes a PLAMLIB
10355 ## CC just makes a GrossModule.
10356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357 reload_cmds='$CC -r -o $output$reload_objs'
10358 hardcode_direct=no
10359 ;;
10360 motorola)
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363 ;;
10364 esac
10365 runpath_var='LD_RUN_PATH'
10366 hardcode_shlibpath_var=no
10367 ;;
10368
10369 sysv4.3*)
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var=no
10372 export_dynamic_flag_spec='-Bexport'
10373 ;;
10374
10375 sysv4*MP*)
10376 if test -d /usr/nec; then
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_shlibpath_var=no
10379 runpath_var=LD_RUN_PATH
10380 hardcode_runpath_var=yes
10381 ld_shlibs=yes
10382 fi
10383 ;;
10384
10385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386 no_undefined_flag='${wl}-z,text'
10387 archive_cmds_need_lc=no
10388 hardcode_shlibpath_var=no
10389 runpath_var='LD_RUN_PATH'
10390
10391 if test "$GCC" = yes; then
10392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 else
10395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 fi
10398 ;;
10399
10400 sysv5* | sco3.2v5* | sco5v6*)
10401 # Note: We can NOT use -z defs as we might desire, because we do not
10402 # link with -lc, and that would cause any symbols used from libc to
10403 # always be unresolved, which means just about no library would
10404 # ever link correctly. If we're not using GNU ld we use -z text
10405 # though, which does catch some bad symbols but isn't as heavy-handed
10406 # as -z defs.
10407 no_undefined_flag='${wl}-z,text'
10408 allow_undefined_flag='${wl}-z,nodefs'
10409 archive_cmds_need_lc=no
10410 hardcode_shlibpath_var=no
10411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412 hardcode_libdir_separator=':'
10413 link_all_deplibs=yes
10414 export_dynamic_flag_spec='${wl}-Bexport'
10415 runpath_var='LD_RUN_PATH'
10416
10417 if test "$GCC" = yes; then
10418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 else
10421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 fi
10424 ;;
10425
10426 uts4*)
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_shlibpath_var=no
10430 ;;
10431
10432 *)
10433 ld_shlibs=no
10434 ;;
10435 esac
10436
10437 if test x$host_vendor = xsni; then
10438 case $host in
10439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440 export_dynamic_flag_spec='${wl}-Blargedynsym'
10441 ;;
10442 esac
10443 fi
10444 fi
10445
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447$as_echo "$ld_shlibs" >&6; }
10448test "$ld_shlibs" = no && can_build_shared=no
10449
10450with_gnu_ld=$with_gnu_ld
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466#
10467# Do we need to explicitly link libc?
10468#
10469case "x$archive_cmds_need_lc" in
10470x|xyes)
10471 # Assume -lc should be added
10472 archive_cmds_need_lc=yes
10473
10474 if test "$enable_shared" = yes && test "$GCC" = yes; then
10475 case $archive_cmds in
10476 *'~'*)
10477 # FIXME: we may have to deal with multi-command sequences.
10478 ;;
10479 '$CC '*)
10480 # Test whether the compiler implicitly links with -lc since on some
10481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482 # to ld, don't add -lc before -lgcc.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10485if ${lt_cv_archive_cmds_need_lc+:} false; then :
b4c522fa
IB
10486 $as_echo_n "(cached) " >&6
10487else
10488 $RM conftest*
10489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492 (eval $ac_compile) 2>&5
10493 ac_status=$?
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; } 2>conftest.err; then
10496 soname=conftest
10497 lib=conftest
10498 libobjs=conftest.$ac_objext
10499 deplibs=
10500 wl=$lt_prog_compiler_wl
10501 pic_flag=$lt_prog_compiler_pic
10502 compiler_flags=-v
10503 linker_flags=-v
10504 verstring=
10505 output_objdir=.
10506 libname=conftest
10507 lt_save_allow_undefined_flag=$allow_undefined_flag
10508 allow_undefined_flag=
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511 ac_status=$?
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10514 then
10515 lt_cv_archive_cmds_need_lc=no
10516 else
10517 lt_cv_archive_cmds_need_lc=yes
10518 fi
10519 allow_undefined_flag=$lt_save_allow_undefined_flag
10520 else
10521 cat conftest.err 1>&5
10522 fi
10523 $RM conftest*
10524
10525fi
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529 ;;
10530 esac
10531 fi
10532 ;;
10533esac
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10692$as_echo_n "checking dynamic linker characteristics... " >&6; }
10693
10694if test "$GCC" = yes; then
10695 case $host_os in
10696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10697 *) lt_awk_arg="/^libraries:/" ;;
10698 esac
10699 case $host_os in
10700 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10701 *) lt_sed_strip_eq="s,=/,/,g" ;;
10702 esac
10703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10704 case $lt_search_path_spec in
10705 *\;*)
10706 # if the path contains ";" then we assume it to be the separator
10707 # otherwise default to the standard path separator (i.e. ":") - it is
10708 # assumed that no part of a normal pathname contains ";" but that should
10709 # okay in the real world where ";" in dirpaths is itself problematic.
10710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10711 ;;
10712 *)
10713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10714 ;;
10715 esac
10716 # Ok, now we have the path, separated by spaces, we can step through it
10717 # and add multilib dir if necessary.
10718 lt_tmp_lt_search_path_spec=
10719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10720 for lt_sys_path in $lt_search_path_spec; do
10721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10723 else
10724 test -d "$lt_sys_path" && \
10725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10726 fi
10727 done
10728 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10729BEGIN {RS=" "; FS="/|\n";} {
10730 lt_foo="";
10731 lt_count=0;
10732 for (lt_i = NF; lt_i > 0; lt_i--) {
10733 if ($lt_i != "" && $lt_i != ".") {
10734 if ($lt_i == "..") {
10735 lt_count++;
10736 } else {
10737 if (lt_count == 0) {
10738 lt_foo="/" $lt_i lt_foo;
10739 } else {
10740 lt_count--;
10741 }
10742 }
10743 }
10744 }
10745 if (lt_foo != "") { lt_freq[lt_foo]++; }
10746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10747}'`
10748 # AWK program above erroneously prepends '/' to C:/dos/paths
10749 # for these hosts.
10750 case $host_os in
10751 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10752 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10753 esac
10754 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10755else
10756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10757fi
10758library_names_spec=
10759libname_spec='lib$name'
10760soname_spec=
10761shrext_cmds=".so"
10762postinstall_cmds=
10763postuninstall_cmds=
10764finish_cmds=
10765finish_eval=
10766shlibpath_var=
10767shlibpath_overrides_runpath=unknown
10768version_type=none
10769dynamic_linker="$host_os ld.so"
10770sys_lib_dlsearch_path_spec="/lib /usr/lib"
10771need_lib_prefix=unknown
10772hardcode_into_libs=no
10773
10774# when you set need_version to no, make sure it does not cause -set_version
10775# flags to be left without arguments
10776need_version=unknown
10777
10778case $host_os in
10779aix3*)
10780 version_type=linux
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10782 shlibpath_var=LIBPATH
10783
10784 # AIX 3 has no versioning support, so we append a major version to the name.
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 ;;
10787
10788aix[4-9]*)
10789 version_type=linux
10790 need_lib_prefix=no
10791 need_version=no
10792 hardcode_into_libs=yes
10793 if test "$host_cpu" = ia64; then
10794 # AIX 5 supports IA64
10795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 else
10798 # With GCC up to 2.95.x, collect2 would create an import file
10799 # for dependence libraries. The import file would start with
10800 # the line `#! .'. This would cause the generated library to
10801 # depend on `.', always an invalid library. This was fixed in
10802 # development snapshots of GCC prior to 3.0.
10803 case $host_os in
10804 aix4 | aix4.[01] | aix4.[01].*)
10805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10806 echo ' yes '
10807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10808 :
10809 else
10810 can_build_shared=no
10811 fi
10812 ;;
10813 esac
10814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10815 # soname into executable. Probably we can add versioning support to
10816 # collect2, so additional links can be useful in future.
10817 if test "$aix_use_runtimelinking" = yes; then
10818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10819 # instead of lib<name>.a to let people know that these are not
10820 # typical AIX shared libraries.
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 else
10823 # We preserve .a as extension for shared libraries through AIX4.2
10824 # and later when we are not doing run time linking.
10825 library_names_spec='${libname}${release}.a $libname.a'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 fi
10828 shlibpath_var=LIBPATH
10829 fi
10830 ;;
10831
10832amigaos*)
10833 case $host_cpu in
10834 powerpc)
10835 # Since July 2007 AmigaOS4 officially supports .so libraries.
10836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 ;;
10839 m68k)
10840 library_names_spec='$libname.ixlibrary $libname.a'
10841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10842 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'
10843 ;;
10844 esac
10845 ;;
10846
10847beos*)
10848 library_names_spec='${libname}${shared_ext}'
10849 dynamic_linker="$host_os ld.so"
10850 shlibpath_var=LIBRARY_PATH
10851 ;;
10852
10853bsdi[45]*)
10854 version_type=linux
10855 need_version=no
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10862 # the default ld.so.conf also contains /usr/contrib/lib and
10863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10864 # libtool to hard-code these into programs
10865 ;;
10866
10867cygwin* | mingw* | pw32* | cegcc*)
10868 version_type=windows
10869 shrext_cmds=".dll"
10870 need_version=no
10871 need_lib_prefix=no
10872
10873 case $GCC,$host_os in
10874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10875 library_names_spec='$libname.dll.a'
10876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10877 postinstall_cmds='base_file=`basename \${file}`~
10878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10879 dldir=$destdir/`dirname \$dlpath`~
10880 test -d \$dldir || mkdir -p \$dldir~
10881 $install_prog $dir/$dlname \$dldir/$dlname~
10882 chmod a+x \$dldir/$dlname~
10883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10885 fi'
10886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10887 dlpath=$dir/\$dldll~
10888 $RM \$dlpath'
10889 shlibpath_overrides_runpath=yes
10890
10891 case $host_os in
10892 cygwin*)
10893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10895
10896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10897 ;;
10898 mingw* | cegcc*)
10899 # MinGW DLLs use traditional 'lib' prefix
10900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901 ;;
10902 pw32*)
10903 # pw32 DLLs use 'pw' prefix rather than 'lib'
10904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10905 ;;
10906 esac
10907 ;;
10908
10909 *)
10910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10911 ;;
10912 esac
10913 dynamic_linker='Win32 ld.exe'
10914 # FIXME: first we should search . and the directory the executable is in
10915 shlibpath_var=PATH
10916 ;;
10917
10918darwin* | rhapsody*)
10919 dynamic_linker="$host_os dyld"
10920 version_type=darwin
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10924 soname_spec='${libname}${release}${major}$shared_ext'
10925 shlibpath_overrides_runpath=yes
10926 shlibpath_var=DYLD_LIBRARY_PATH
10927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10928
10929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10931 ;;
10932
10933dgux*)
10934 version_type=linux
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 ;;
10941
10942freebsd* | dragonfly*)
10943 # DragonFly does not have aout. When/if they implement a new
10944 # versioning mechanism, adjust this.
10945 if test -x /usr/bin/objformat; then
10946 objformat=`/usr/bin/objformat`
10947 else
10948 case $host_os in
10949 freebsd[23].*) objformat=aout ;;
10950 *) objformat=elf ;;
10951 esac
10952 fi
10953 version_type=freebsd-$objformat
10954 case $version_type in
10955 freebsd-elf*)
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 need_version=no
10958 need_lib_prefix=no
10959 ;;
10960 freebsd-*)
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10962 need_version=yes
10963 ;;
10964 esac
10965 shlibpath_var=LD_LIBRARY_PATH
10966 case $host_os in
10967 freebsd2.*)
10968 shlibpath_overrides_runpath=yes
10969 ;;
10970 freebsd3.[01]* | freebsdelf3.[01]*)
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 ;;
10974 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10975 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10978 ;;
10979 *) # from 4.6 on, and DragonFly
10980 shlibpath_overrides_runpath=yes
10981 hardcode_into_libs=yes
10982 ;;
10983 esac
10984 ;;
10985
b4c522fa
IB
10986haiku*)
10987 version_type=linux
10988 need_lib_prefix=no
10989 need_version=no
10990 dynamic_linker="$host_os runtime_loader"
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes
ead5103c 10995 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
b4c522fa
IB
10996 hardcode_into_libs=yes
10997 ;;
10998
10999hpux9* | hpux10* | hpux11*)
11000 # Give a soname corresponding to the major version so that dld.sl refuses to
11001 # link against other versions.
11002 version_type=sunos
11003 need_lib_prefix=no
11004 need_version=no
11005 case $host_cpu in
11006 ia64*)
11007 shrext_cmds='.so'
11008 hardcode_into_libs=yes
11009 dynamic_linker="$host_os dld.so"
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 if test "X$HPUX_IA64_MODE" = X32; then
11015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11016 else
11017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11018 fi
11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11020 ;;
11021 hppa*64*)
11022 shrext_cmds='.sl'
11023 hardcode_into_libs=yes
11024 dynamic_linker="$host_os dld.sl"
11025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11031 ;;
11032 *)
11033 shrext_cmds='.sl'
11034 dynamic_linker="$host_os dld.sl"
11035 shlibpath_var=SHLIB_PATH
11036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 ;;
11040 esac
11041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11042 postinstall_cmds='chmod 555 $lib'
11043 # or fails outright, so override atomically:
11044 install_override_mode=555
11045 ;;
11046
11047interix[3-9]*)
11048 version_type=linux
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=no
11056 hardcode_into_libs=yes
11057 ;;
11058
11059irix5* | irix6* | nonstopux*)
11060 case $host_os in
11061 nonstopux*) version_type=nonstopux ;;
11062 *)
11063 if test "$lt_cv_prog_gnu_ld" = yes; then
11064 version_type=linux
11065 else
11066 version_type=irix
11067 fi ;;
11068 esac
11069 need_lib_prefix=no
11070 need_version=no
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11073 case $host_os in
11074 irix5* | nonstopux*)
11075 libsuff= shlibsuff=
11076 ;;
11077 *)
11078 case $LD in # libtool.m4 will add one of these switches to LD
11079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11080 libsuff= shlibsuff= libmagic=32-bit;;
11081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11082 libsuff=32 shlibsuff=N32 libmagic=N32;;
11083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11085 *) libsuff= shlibsuff= libmagic=never-match;;
11086 esac
11087 ;;
11088 esac
11089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11090 shlibpath_overrides_runpath=no
11091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11093 hardcode_into_libs=yes
11094 ;;
11095
11096# No shared lib support for Linux oldld, aout, or coff.
11097linux*oldld* | linux*aout* | linux*coff*)
11098 dynamic_linker=no
11099 ;;
11100
11101# This must be Linux ELF.
e9085da5
MR
11102
11103# uclinux* changes (here and below) have been submitted to the libtool
11104# project, but have not yet been accepted: they are GCC-local changes
11105# for the time being. (See
11106# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 11107linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
b4c522fa
IB
11108 version_type=linux
11109 need_lib_prefix=no
11110 need_version=no
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=no
11116
11117 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11118 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b4c522fa
IB
11119 $as_echo_n "(cached) " >&6
11120else
11121 lt_cv_shlibpath_overrides_runpath=no
11122 save_LDFLAGS=$LDFLAGS
11123 save_libdir=$libdir
11124 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11125 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127/* end confdefs.h. */
11128
11129int
11130main ()
11131{
11132
11133 ;
11134 return 0;
11135}
11136_ACEOF
11137if ac_fn_c_try_link "$LINENO"; then :
11138 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11139 lt_cv_shlibpath_overrides_runpath=yes
11140fi
11141fi
11142rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 LDFLAGS=$save_LDFLAGS
11145 libdir=$save_libdir
11146
11147fi
11148
11149 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11150
11151 # This implies no fast_install, which is unacceptable.
11152 # Some rework will be needed to allow for fast_install
11153 # before this can be enabled.
11154 hardcode_into_libs=yes
11155
11156 # Append ld.so.conf contents to the search path
11157 if test -f /etc/ld.so.conf; then
11158 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' ' '`
11159 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11160 fi
11161
11162 # We used to test for /lib/ld.so.1 and disable shared libraries on
11163 # powerpc, because MkLinux only supported shared libraries with the
11164 # GNU dynamic linker. Since this was broken with cross compilers,
11165 # most powerpc-linux boxes support dynamic linking these days and
11166 # people can always --disable-shared, the test was removed, and we
11167 # assume the GNU/Linux dynamic linker is in use.
11168 dynamic_linker='GNU/Linux ld.so'
11169 ;;
11170
11171netbsd*)
11172 version_type=sunos
11173 need_lib_prefix=no
11174 need_version=no
11175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11178 dynamic_linker='NetBSD (a.out) ld.so'
11179 else
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 dynamic_linker='NetBSD ld.elf_so'
11183 fi
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 ;;
11188
11189newsos6)
11190 version_type=linux
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=yes
11194 ;;
11195
11196*nto* | *qnx*)
11197 version_type=qnx
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=no
11204 hardcode_into_libs=yes
11205 dynamic_linker='ldqnx.so'
11206 ;;
11207
11208openbsd*)
11209 version_type=sunos
11210 sys_lib_dlsearch_path_spec="/usr/lib"
11211 need_lib_prefix=no
11212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11213 case $host_os in
11214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11215 *) need_version=no ;;
11216 esac
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11221 case $host_os in
11222 openbsd2.[89] | openbsd2.[89].*)
11223 shlibpath_overrides_runpath=no
11224 ;;
11225 *)
11226 shlibpath_overrides_runpath=yes
11227 ;;
11228 esac
11229 else
11230 shlibpath_overrides_runpath=yes
11231 fi
11232 ;;
11233
11234os2*)
11235 libname_spec='$name'
11236 shrext_cmds=".dll"
11237 need_lib_prefix=no
11238 library_names_spec='$libname${shared_ext} $libname.a'
11239 dynamic_linker='OS/2 ld.exe'
11240 shlibpath_var=LIBPATH
11241 ;;
11242
11243osf3* | osf4* | osf5*)
11244 version_type=osf
11245 need_lib_prefix=no
11246 need_version=no
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11252 ;;
11253
11254rdos*)
11255 dynamic_linker=no
11256 ;;
11257
11258solaris*)
11259 version_type=linux
11260 need_lib_prefix=no
11261 need_version=no
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 shlibpath_var=LD_LIBRARY_PATH
11265 shlibpath_overrides_runpath=yes
11266 hardcode_into_libs=yes
11267 # ldd complains unless libraries are executable
11268 postinstall_cmds='chmod +x $lib'
11269 ;;
11270
11271sunos4*)
11272 version_type=sunos
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=yes
11277 if test "$with_gnu_ld" = yes; then
11278 need_lib_prefix=no
11279 fi
11280 need_version=yes
11281 ;;
11282
11283sysv4 | sysv4.3*)
11284 version_type=linux
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 case $host_vendor in
11289 sni)
11290 shlibpath_overrides_runpath=no
11291 need_lib_prefix=no
11292 runpath_var=LD_RUN_PATH
11293 ;;
11294 siemens)
11295 need_lib_prefix=no
11296 ;;
11297 motorola)
11298 need_lib_prefix=no
11299 need_version=no
11300 shlibpath_overrides_runpath=no
11301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11302 ;;
11303 esac
11304 ;;
11305
11306sysv4*MP*)
11307 if test -d /usr/nec ;then
11308 version_type=linux
11309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11310 soname_spec='$libname${shared_ext}.$major'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 fi
11313 ;;
11314
11315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11316 version_type=freebsd-elf
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11323 hardcode_into_libs=yes
11324 if test "$with_gnu_ld" = yes; then
11325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11326 else
11327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11328 case $host_os in
11329 sco3.2v5*)
11330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11331 ;;
11332 esac
11333 fi
11334 sys_lib_dlsearch_path_spec='/usr/lib'
11335 ;;
11336
11337tpf*)
11338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11339 version_type=linux
11340 need_lib_prefix=no
11341 need_version=no
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
11346 ;;
11347
11348uts4*)
11349 version_type=linux
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 ;;
11354
0ecd0f1c
OH
11355# Shared libraries for VwWorks, >= 7 only at this stage
11356# and (fpic) still incompatible with "large" code models
11357# in a few configurations. Only for RTP mode in any case,
11358# and upon explicit request at configure time.
11359vxworks7*)
11360 dynamic_linker=no
11361 case ${with_multisubdir}-${enable_shared} in
11362 *large*)
11363 ;;
11364 *mrtp*-yes)
11365 version_type=linux
11366 need_lib_prefix=no
11367 need_version=no
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 dynamic_linker="$host_os module_loader"
11371 ;;
11372 esac
11373 ;;
b4c522fa
IB
11374*)
11375 dynamic_linker=no
11376 ;;
11377esac
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11379$as_echo "$dynamic_linker" >&6; }
11380test "$dynamic_linker" = no && can_build_shared=no
11381
11382variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11383if test "$GCC" = yes; then
11384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11385fi
11386
11387if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11388 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11389fi
11390if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11391 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11392fi
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11486$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11487hardcode_action=
11488if test -n "$hardcode_libdir_flag_spec" ||
11489 test -n "$runpath_var" ||
11490 test "X$hardcode_automatic" = "Xyes" ; then
11491
11492 # We can hardcode non-existent directories.
11493 if test "$hardcode_direct" != no &&
11494 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11495 # have to relink, otherwise we might link with an installed library
11496 # when we should be linking with a yet-to-be-installed one
11497 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11498 test "$hardcode_minus_L" != no; then
11499 # Linking always hardcodes the temporary library directory.
11500 hardcode_action=relink
11501 else
11502 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11503 hardcode_action=immediate
11504 fi
11505else
11506 # We cannot hardcode anything, or else we can only hardcode existing
11507 # directories.
11508 hardcode_action=unsupported
11509fi
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11511$as_echo "$hardcode_action" >&6; }
11512
11513if test "$hardcode_action" = relink ||
11514 test "$inherit_rpath" = yes; then
11515 # Fast installation is not supported
11516 enable_fast_install=no
11517elif test "$shlibpath_overrides_runpath" = yes ||
11518 test "$enable_shared" = no; then
11519 # Fast installation is not necessary
11520 enable_fast_install=needless
11521fi
11522
11523
11524
11525
11526
11527
11528 if test "x$enable_dlopen" != xyes; then
11529 enable_dlopen=unknown
11530 enable_dlopen_self=unknown
11531 enable_dlopen_self_static=unknown
11532else
11533 lt_cv_dlopen=no
11534 lt_cv_dlopen_libs=
11535
11536 case $host_os in
11537 beos*)
11538 lt_cv_dlopen="load_add_on"
11539 lt_cv_dlopen_libs=
11540 lt_cv_dlopen_self=yes
11541 ;;
11542
11543 mingw* | pw32* | cegcc*)
11544 lt_cv_dlopen="LoadLibrary"
11545 lt_cv_dlopen_libs=
11546 ;;
11547
11548 cygwin*)
11549 lt_cv_dlopen="dlopen"
11550 lt_cv_dlopen_libs=
11551 ;;
11552
11553 darwin*)
11554 # if libdl is installed we need to link against it
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11557if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11558 $as_echo_n "(cached) " >&6
11559else
11560 ac_check_lib_save_LIBS=$LIBS
11561LIBS="-ldl $LIBS"
11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563/* end confdefs.h. */
11564
11565/* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568#ifdef __cplusplus
11569extern "C"
11570#endif
11571char dlopen ();
11572int
11573main ()
11574{
11575return dlopen ();
11576 ;
11577 return 0;
11578}
11579_ACEOF
11580if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dl_dlopen=yes
11582else
11583 ac_cv_lib_dl_dlopen=no
11584fi
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587LIBS=$ac_check_lib_save_LIBS
11588fi
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11591if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11593else
11594
11595 lt_cv_dlopen="dyld"
11596 lt_cv_dlopen_libs=
11597 lt_cv_dlopen_self=yes
11598
11599fi
11600
11601 ;;
11602
11603 *)
11604 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11605if test "x$ac_cv_func_shl_load" = xyes; then :
b4c522fa
IB
11606 lt_cv_dlopen="shl_load"
11607else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11609$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11610if ${ac_cv_lib_dld_shl_load+:} false; then :
b4c522fa
IB
11611 $as_echo_n "(cached) " >&6
11612else
11613 ac_check_lib_save_LIBS=$LIBS
11614LIBS="-ldld $LIBS"
11615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h. */
11617
11618/* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11621#ifdef __cplusplus
11622extern "C"
11623#endif
11624char shl_load ();
11625int
11626main ()
11627{
11628return shl_load ();
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_dld_shl_load=yes
11635else
11636 ac_cv_lib_dld_shl_load=no
11637fi
11638rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640LIBS=$ac_check_lib_save_LIBS
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11643$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11644if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b4c522fa
IB
11645 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11646else
11647 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11648if test "x$ac_cv_func_dlopen" = xyes; then :
b4c522fa
IB
11649 lt_cv_dlopen="dlopen"
11650else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11652$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11653if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11654 $as_echo_n "(cached) " >&6
11655else
11656 ac_check_lib_save_LIBS=$LIBS
11657LIBS="-ldl $LIBS"
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h. */
11660
11661/* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667char dlopen ();
11668int
11669main ()
11670{
11671return dlopen ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dl_dlopen=yes
11678else
11679 ac_cv_lib_dl_dlopen=no
11680fi
11681rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11686$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11687if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11689else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11691$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11692if ${ac_cv_lib_svld_dlopen+:} false; then :
b4c522fa
IB
11693 $as_echo_n "(cached) " >&6
11694else
11695 ac_check_lib_save_LIBS=$LIBS
11696LIBS="-lsvld $LIBS"
11697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h. */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char dlopen ();
11707int
11708main ()
11709{
11710return dlopen ();
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_lib_svld_dlopen=yes
11717else
11718 ac_cv_lib_svld_dlopen=no
11719fi
11720rm -f core conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11722LIBS=$ac_check_lib_save_LIBS
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11725$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11726if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b4c522fa
IB
11727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11728else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11730$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11731if ${ac_cv_lib_dld_dld_link+:} false; then :
b4c522fa
IB
11732 $as_echo_n "(cached) " >&6
11733else
11734 ac_check_lib_save_LIBS=$LIBS
11735LIBS="-ldld $LIBS"
11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h. */
11738
11739/* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745char dld_link ();
11746int
11747main ()
11748{
11749return dld_link ();
11750 ;
11751 return 0;
11752}
11753_ACEOF
11754if ac_fn_c_try_link "$LINENO"; then :
11755 ac_cv_lib_dld_dld_link=yes
11756else
11757 ac_cv_lib_dld_dld_link=no
11758fi
11759rm -f core conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761LIBS=$ac_check_lib_save_LIBS
11762fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11764$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11765if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b4c522fa
IB
11766 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11767fi
11768
11769
11770fi
11771
11772
11773fi
11774
11775
11776fi
11777
11778
11779fi
11780
11781
11782fi
11783
11784 ;;
11785 esac
11786
11787 if test "x$lt_cv_dlopen" != xno; then
11788 enable_dlopen=yes
11789 else
11790 enable_dlopen=no
11791 fi
11792
11793 case $lt_cv_dlopen in
11794 dlopen)
11795 save_CPPFLAGS="$CPPFLAGS"
11796 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11797
11798 save_LDFLAGS="$LDFLAGS"
11799 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11800
11801 save_LIBS="$LIBS"
11802 LIBS="$lt_cv_dlopen_libs $LIBS"
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11805$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11806if ${lt_cv_dlopen_self+:} false; then :
b4c522fa
IB
11807 $as_echo_n "(cached) " >&6
11808else
11809 if test "$cross_compiling" = yes; then :
11810 lt_cv_dlopen_self=cross
11811else
11812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11813 lt_status=$lt_dlunknown
11814 cat > conftest.$ac_ext <<_LT_EOF
f3307109 11815#line 11815 "configure"
b4c522fa
IB
11816#include "confdefs.h"
11817
11818#if HAVE_DLFCN_H
11819#include <dlfcn.h>
11820#endif
11821
11822#include <stdio.h>
11823
11824#ifdef RTLD_GLOBAL
11825# define LT_DLGLOBAL RTLD_GLOBAL
11826#else
11827# ifdef DL_GLOBAL
11828# define LT_DLGLOBAL DL_GLOBAL
11829# else
11830# define LT_DLGLOBAL 0
11831# endif
11832#endif
11833
11834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11835 find out it does not work in some platform. */
11836#ifndef LT_DLLAZY_OR_NOW
11837# ifdef RTLD_LAZY
11838# define LT_DLLAZY_OR_NOW RTLD_LAZY
11839# else
11840# ifdef DL_LAZY
11841# define LT_DLLAZY_OR_NOW DL_LAZY
11842# else
11843# ifdef RTLD_NOW
11844# define LT_DLLAZY_OR_NOW RTLD_NOW
11845# else
11846# ifdef DL_NOW
11847# define LT_DLLAZY_OR_NOW DL_NOW
11848# else
11849# define LT_DLLAZY_OR_NOW 0
11850# endif
11851# endif
11852# endif
11853# endif
11854#endif
11855
11856/* When -fvisbility=hidden is used, assume the code has been annotated
11857 correspondingly for the symbols needed. */
11858#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11859void fnord () __attribute__((visibility("default")));
11860#endif
11861
11862void fnord () { int i=42; }
11863int main ()
11864{
11865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11866 int status = $lt_dlunknown;
11867
11868 if (self)
11869 {
11870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11871 else
11872 {
11873 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11874 else puts (dlerror ());
11875 }
11876 /* dlclose (self); */
11877 }
11878 else
11879 puts (dlerror ());
11880
11881 return status;
11882}
11883_LT_EOF
11884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11885 (eval $ac_link) 2>&5
11886 ac_status=$?
11887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11889 (./conftest; exit; ) >&5 2>/dev/null
11890 lt_status=$?
11891 case x$lt_status in
11892 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11893 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11894 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11895 esac
11896 else :
11897 # compilation failed
11898 lt_cv_dlopen_self=no
11899 fi
11900fi
11901rm -fr conftest*
11902
11903
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11906$as_echo "$lt_cv_dlopen_self" >&6; }
11907
11908 if test "x$lt_cv_dlopen_self" = xyes; then
11909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11911$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11912if ${lt_cv_dlopen_self_static+:} false; then :
b4c522fa
IB
11913 $as_echo_n "(cached) " >&6
11914else
11915 if test "$cross_compiling" = yes; then :
11916 lt_cv_dlopen_self_static=cross
11917else
11918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11919 lt_status=$lt_dlunknown
11920 cat > conftest.$ac_ext <<_LT_EOF
f3307109 11921#line 11921 "configure"
b4c522fa
IB
11922#include "confdefs.h"
11923
11924#if HAVE_DLFCN_H
11925#include <dlfcn.h>
11926#endif
11927
11928#include <stdio.h>
11929
11930#ifdef RTLD_GLOBAL
11931# define LT_DLGLOBAL RTLD_GLOBAL
11932#else
11933# ifdef DL_GLOBAL
11934# define LT_DLGLOBAL DL_GLOBAL
11935# else
11936# define LT_DLGLOBAL 0
11937# endif
11938#endif
11939
11940/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11941 find out it does not work in some platform. */
11942#ifndef LT_DLLAZY_OR_NOW
11943# ifdef RTLD_LAZY
11944# define LT_DLLAZY_OR_NOW RTLD_LAZY
11945# else
11946# ifdef DL_LAZY
11947# define LT_DLLAZY_OR_NOW DL_LAZY
11948# else
11949# ifdef RTLD_NOW
11950# define LT_DLLAZY_OR_NOW RTLD_NOW
11951# else
11952# ifdef DL_NOW
11953# define LT_DLLAZY_OR_NOW DL_NOW
11954# else
11955# define LT_DLLAZY_OR_NOW 0
11956# endif
11957# endif
11958# endif
11959# endif
11960#endif
11961
11962/* When -fvisbility=hidden is used, assume the code has been annotated
11963 correspondingly for the symbols needed. */
11964#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11965void fnord () __attribute__((visibility("default")));
11966#endif
11967
11968void fnord () { int i=42; }
11969int main ()
11970{
11971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11972 int status = $lt_dlunknown;
11973
11974 if (self)
11975 {
11976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11977 else
11978 {
11979 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11980 else puts (dlerror ());
11981 }
11982 /* dlclose (self); */
11983 }
11984 else
11985 puts (dlerror ());
11986
11987 return status;
11988}
11989_LT_EOF
11990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11991 (eval $ac_link) 2>&5
11992 ac_status=$?
11993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11995 (./conftest; exit; ) >&5 2>/dev/null
11996 lt_status=$?
11997 case x$lt_status in
11998 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11999 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12000 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12001 esac
12002 else :
12003 # compilation failed
12004 lt_cv_dlopen_self_static=no
12005 fi
12006fi
12007rm -fr conftest*
12008
12009
12010fi
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12012$as_echo "$lt_cv_dlopen_self_static" >&6; }
12013 fi
12014
12015 CPPFLAGS="$save_CPPFLAGS"
12016 LDFLAGS="$save_LDFLAGS"
12017 LIBS="$save_LIBS"
12018 ;;
12019 esac
12020
12021 case $lt_cv_dlopen_self in
12022 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12023 *) enable_dlopen_self=unknown ;;
12024 esac
12025
12026 case $lt_cv_dlopen_self_static in
12027 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12028 *) enable_dlopen_self_static=unknown ;;
12029 esac
12030fi
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048striplib=
12049old_striplib=
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12051$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12052if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12056$as_echo "yes" >&6; }
12057else
12058# FIXME - insert some real tests, host_os isn't really good enough
12059 case $host_os in
12060 darwin*)
12061 if test -n "$STRIP" ; then
12062 striplib="$STRIP -x"
12063 old_striplib="$STRIP -S"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12065$as_echo "yes" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; }
12069 fi
12070 ;;
12071 *)
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
12074 ;;
12075 esac
12076fi
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089 # Report which library types will actually be built
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12091$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12093$as_echo "$can_build_shared" >&6; }
12094
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12096$as_echo_n "checking whether to build shared libraries... " >&6; }
12097 test "$can_build_shared" = "no" && enable_shared=no
12098
12099 # On AIX, shared libraries and static libraries use the same namespace, and
12100 # are all built from PIC.
12101 case $host_os in
12102 aix3*)
12103 test "$enable_shared" = yes && enable_static=no
12104 if test -n "$RANLIB"; then
12105 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12106 postinstall_cmds='$RANLIB $lib'
12107 fi
12108 ;;
12109
12110 aix[4-9]*)
12111 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12112 test "$enable_shared" = yes && enable_static=no
12113 fi
12114 ;;
12115 esac
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12117$as_echo "$enable_shared" >&6; }
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12120$as_echo_n "checking whether to build static libraries... " >&6; }
12121 # Make sure either enable_shared or enable_static is yes.
12122 test "$enable_shared" = yes || enable_static=yes
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12124$as_echo "$enable_static" >&6; }
12125
12126
12127
12128
12129fi
12130ac_ext=c
12131ac_cpp='$CPP $CPPFLAGS'
12132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12134ac_compiler_gnu=$ac_cv_c_compiler_gnu
12135
12136CC="$lt_save_CC"
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150 ac_config_commands="$ac_config_commands libtool"
12151
12152
12153
12154
12155# Only expand once:
12156
12157
12158
12159
12160
12161 gdc_save_DFLAGS=$GDCFLAGS
02dbf5d1 12162 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
b4c522fa
IB
12163
12164
12165# Source file extension for D test sources.
12166ac_ext=d
12167
12168# Object file extension for compiled D test sources.
12169objext=o
12170objext_D=$objext
12171
12172# Code to be used in simple compile tests
9bedfe18
IB
12173lt_simple_compile_test_code="\
12174 module object;
12175 shared int some_variable = 0;
12176"
b4c522fa
IB
12177
12178# Code to be used in simple link tests
9bedfe18
IB
12179lt_simple_link_test_code="\
12180 module object;
12181 extern(C) int main() { return 0; }
12182"
b4c522fa
IB
12183
12184# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12185
12186
12187
12188
12189
12190
12191# If no C compiler was specified, use CC.
12192LTCC=${LTCC-"$CC"}
12193
12194# If no C compiler flags were specified, use CFLAGS.
12195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12196
12197# Allow CC to be a program name with arguments.
12198compiler=$CC
12199
12200
12201# save warnings/boilerplate of simple test code
12202ac_outfile=conftest.$ac_objext
12203echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12204eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12205_lt_compiler_boilerplate=`cat conftest.err`
12206$RM conftest*
12207
12208ac_outfile=conftest.$ac_objext
12209echo "$lt_simple_link_test_code" >conftest.$ac_ext
12210eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12211_lt_linker_boilerplate=`cat conftest.err`
12212$RM -r conftest*
12213
12214
12215# Allow CC to be a program name with arguments.
12216lt_save_CC=$CC
12217lt_save_CFLAGS=$CFLAGS
b4c522fa
IB
12218lt_save_GCC=$GCC
12219GCC=yes
12220CC=${GDC-"gdc"}
b4c522fa
IB
12221CFLAGS=$GDCFLAGS
12222compiler=$CC
12223compiler_D=$CC
12224LD_D=$CC
12225for cc_temp in $compiler""; do
12226 case $cc_temp in
12227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12229 \-*) ;;
12230 *) break;;
12231 esac
12232done
12233cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12234
12235
12236# GDC did not exist at the time GCC didn't implicitly link libc in.
12237archive_cmds_need_lc_D=no
12238
12239old_archive_cmds_D=$old_archive_cmds
12240reload_flag_D=$reload_flag
12241reload_cmds_D=$reload_cmds
12242
12243## CAVEAT EMPTOR:
12244## There is no encapsulation within the following macros, do not change
12245## the running order or otherwise move them around unless you know exactly
12246## what you are doing...
12247if test -n "$compiler"; then
12248
12249lt_prog_compiler_no_builtin_flag_D=
12250
12251if test "$GCC" = yes; then
12252 case $cc_basename in
12253 nvcc*)
12254 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12255 *)
12256 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12257 esac
12258
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12260$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 12261if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
12262 $as_echo_n "(cached) " >&6
12263else
12264 lt_cv_prog_compiler_rtti_exceptions=no
12265 ac_outfile=conftest.$ac_objext
12266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12267 lt_compiler_flag="-fno-rtti -fno-exceptions"
12268 # Insert the option either (1) after the last *FLAGS variable, or
12269 # (2) before a word containing "conftest.", or (3) at the end.
12270 # Note that $ac_compile itself does not contain backslashes and begins
12271 # with a dollar sign (not a hyphen), so the echo should work correctly.
12272 # The option is referenced via a variable to avoid confusing sed.
12273 lt_compile=`echo "$ac_compile" | $SED \
12274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12276 -e 's:$: $lt_compiler_flag:'`
12277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12278 (eval "$lt_compile" 2>conftest.err)
12279 ac_status=$?
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 if (exit $ac_status) && test -s "$ac_outfile"; then
12283 # The compiler can only warn and ignore the option if not recognized
12284 # So say no if there are warnings other than the usual output.
12285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12288 lt_cv_prog_compiler_rtti_exceptions=yes
12289 fi
12290 fi
12291 $RM conftest*
12292
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12295$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12296
12297if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12298 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12299else
12300 :
12301fi
12302
12303fi
12304
12305
12306
12307 lt_prog_compiler_wl_D=
12308lt_prog_compiler_pic_D=
12309lt_prog_compiler_static_D=
12310
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12312$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12313
12314 if test "$GCC" = yes; then
12315 lt_prog_compiler_wl_D='-Wl,'
12316 lt_prog_compiler_static_D='-static'
12317
12318 case $host_os in
12319 aix*)
12320 # All AIX code is PIC.
12321 if test "$host_cpu" = ia64; then
12322 # AIX 5 now supports IA64 processor
12323 lt_prog_compiler_static_D='-Bstatic'
12324 fi
12325 lt_prog_compiler_pic_D='-fPIC'
12326 ;;
12327
12328 amigaos*)
12329 case $host_cpu in
12330 powerpc)
12331 # see comment about AmigaOS4 .so support
12332 lt_prog_compiler_pic_D='-fPIC'
12333 ;;
12334 m68k)
12335 # FIXME: we need at least 68020 code to build shared libraries, but
12336 # adding the `-m68020' flag to GCC prevents building anything better,
12337 # like `-m68040'.
12338 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12339 ;;
12340 esac
12341 ;;
12342
12343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12344 # PIC is the default for these OSes.
12345 ;;
12346
12347 mingw* | cygwin* | pw32* | os2* | cegcc*)
12348 # This hack is so that the source file can tell whether it is being
12349 # built for inclusion in a dll (and should export symbols for example).
12350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12351 # (--disable-auto-import) libraries
12352 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12353 ;;
12354
12355 darwin* | rhapsody*)
12356 # PIC is the default on this platform
12357 # Common symbols not allowed in MH_DYLIB files
12358 lt_prog_compiler_pic_D='-fno-common'
12359 ;;
12360
12361 haiku*)
12362 # PIC is the default for Haiku.
12363 # The "-static" flag exists, but is broken.
12364 lt_prog_compiler_static_D=
12365 ;;
12366
12367 hpux*)
12368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12370 # sets the default TLS model and affects inlining.
12371 case $host_cpu in
12372 hppa*64*)
12373 # +Z the default
12374 ;;
12375 *)
12376 lt_prog_compiler_pic_D='-fPIC'
12377 ;;
12378 esac
12379 ;;
12380
12381 interix[3-9]*)
12382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12383 # Instead, we relocate shared libraries at runtime.
12384 ;;
12385
12386 msdosdjgpp*)
12387 # Just because we use GCC doesn't mean we suddenly get shared libraries
12388 # on systems that don't support them.
12389 lt_prog_compiler_can_build_shared_D=no
12390 enable_shared=no
12391 ;;
12392
12393 *nto* | *qnx*)
12394 # QNX uses GNU C++, but need to define -shared option too, otherwise
12395 # it will coredump.
12396 lt_prog_compiler_pic_D='-fPIC -shared'
12397 ;;
12398
12399 sysv4*MP*)
12400 if test -d /usr/nec; then
12401 lt_prog_compiler_pic_D=-Kconform_pic
12402 fi
12403 ;;
12404
12405 *)
12406 lt_prog_compiler_pic_D='-fPIC'
12407 ;;
12408 esac
12409
12410 case $cc_basename in
12411 nvcc*) # Cuda Compiler Driver 2.2
12412 lt_prog_compiler_wl_D='-Xlinker '
12413 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12414 ;;
12415 esac
12416 else
12417 # PORTME Check for flag to pass linker flags through the system compiler.
12418 case $host_os in
12419 aix*)
12420 lt_prog_compiler_wl_D='-Wl,'
12421 if test "$host_cpu" = ia64; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static_D='-Bstatic'
12424 else
12425 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12426 fi
12427 ;;
12428
12429 mingw* | cygwin* | pw32* | os2* | cegcc*)
12430 # This hack is so that the source file can tell whether it is being
12431 # built for inclusion in a dll (and should export symbols for example).
12432 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12433 ;;
12434
12435 hpux9* | hpux10* | hpux11*)
12436 lt_prog_compiler_wl_D='-Wl,'
12437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438 # not for PA HP-UX.
12439 case $host_cpu in
12440 hppa*64*|ia64*)
12441 # +Z the default
12442 ;;
12443 *)
12444 lt_prog_compiler_pic_D='+Z'
12445 ;;
12446 esac
12447 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12448 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12449 ;;
12450
12451 irix5* | irix6* | nonstopux*)
12452 lt_prog_compiler_wl_D='-Wl,'
12453 # PIC (with -KPIC) is the default.
12454 lt_prog_compiler_static_D='-non_shared'
12455 ;;
12456
12457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12458 case $cc_basename in
12459 # old Intel for x86_64 which still supported -KPIC.
12460 ecc*)
12461 lt_prog_compiler_wl_D='-Wl,'
12462 lt_prog_compiler_pic_D='-KPIC'
12463 lt_prog_compiler_static_D='-static'
12464 ;;
12465 # icc used to be incompatible with GCC.
12466 # ICC 10 doesn't accept -KPIC any more.
12467 icc* | ifort*)
12468 lt_prog_compiler_wl_D='-Wl,'
12469 lt_prog_compiler_pic_D='-fPIC'
12470 lt_prog_compiler_static_D='-static'
12471 ;;
12472 # Lahey Fortran 8.1.
12473 lf95*)
12474 lt_prog_compiler_wl_D='-Wl,'
12475 lt_prog_compiler_pic_D='--shared'
12476 lt_prog_compiler_static_D='--static'
12477 ;;
12478 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12479 # Portland Group compilers (*not* the Pentium gcc compiler,
12480 # which looks to be a dead project)
12481 lt_prog_compiler_wl_D='-Wl,'
12482 lt_prog_compiler_pic_D='-fpic'
12483 lt_prog_compiler_static_D='-Bstatic'
12484 ;;
12485 ccc*)
12486 lt_prog_compiler_wl_D='-Wl,'
12487 # All Alpha code is PIC.
12488 lt_prog_compiler_static_D='-non_shared'
12489 ;;
12490 xl* | bgxl* | bgf* | mpixl*)
12491 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12492 lt_prog_compiler_wl_D='-Wl,'
12493 lt_prog_compiler_pic_D='-qpic'
12494 lt_prog_compiler_static_D='-qstaticlink'
12495 ;;
12496 *)
12497 case `$CC -V 2>&1 | sed 5q` in
12498 *Sun\ F* | *Sun*Fortran*)
12499 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12500 lt_prog_compiler_pic_D='-KPIC'
12501 lt_prog_compiler_static_D='-Bstatic'
12502 lt_prog_compiler_wl_D=''
12503 ;;
12504 *Sun\ C*)
12505 # Sun C 5.9
12506 lt_prog_compiler_pic_D='-KPIC'
12507 lt_prog_compiler_static_D='-Bstatic'
12508 lt_prog_compiler_wl_D='-Wl,'
12509 ;;
12510 esac
12511 ;;
12512 esac
12513 ;;
12514
12515 newsos6)
12516 lt_prog_compiler_pic_D='-KPIC'
12517 lt_prog_compiler_static_D='-Bstatic'
12518 ;;
12519
12520 *nto* | *qnx*)
12521 # QNX uses GNU C++, but need to define -shared option too, otherwise
12522 # it will coredump.
12523 lt_prog_compiler_pic_D='-fPIC -shared'
12524 ;;
12525
12526 osf3* | osf4* | osf5*)
12527 lt_prog_compiler_wl_D='-Wl,'
12528 # All OSF/1 code is PIC.
12529 lt_prog_compiler_static_D='-non_shared'
12530 ;;
12531
12532 rdos*)
12533 lt_prog_compiler_static_D='-non_shared'
12534 ;;
12535
12536 solaris*)
12537 lt_prog_compiler_pic_D='-KPIC'
12538 lt_prog_compiler_static_D='-Bstatic'
12539 case $cc_basename in
12540 f77* | f90* | f95*)
12541 lt_prog_compiler_wl_D='-Qoption ld ';;
12542 *)
12543 lt_prog_compiler_wl_D='-Wl,';;
12544 esac
12545 ;;
12546
12547 sunos4*)
12548 lt_prog_compiler_wl_D='-Qoption ld '
12549 lt_prog_compiler_pic_D='-PIC'
12550 lt_prog_compiler_static_D='-Bstatic'
12551 ;;
12552
12553 sysv4 | sysv4.2uw2* | sysv4.3*)
12554 lt_prog_compiler_wl_D='-Wl,'
12555 lt_prog_compiler_pic_D='-KPIC'
12556 lt_prog_compiler_static_D='-Bstatic'
12557 ;;
12558
12559 sysv4*MP*)
12560 if test -d /usr/nec ;then
12561 lt_prog_compiler_pic_D='-Kconform_pic'
12562 lt_prog_compiler_static_D='-Bstatic'
12563 fi
12564 ;;
12565
12566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12567 lt_prog_compiler_wl_D='-Wl,'
12568 lt_prog_compiler_pic_D='-KPIC'
12569 lt_prog_compiler_static_D='-Bstatic'
12570 ;;
12571
12572 unicos*)
12573 lt_prog_compiler_wl_D='-Wl,'
12574 lt_prog_compiler_can_build_shared_D=no
12575 ;;
12576
12577 uts4*)
12578 lt_prog_compiler_pic_D='-pic'
12579 lt_prog_compiler_static_D='-Bstatic'
12580 ;;
12581
12582 *)
12583 lt_prog_compiler_can_build_shared_D=no
12584 ;;
12585 esac
12586 fi
12587
12588case $host_os in
12589 # For platforms which do not support PIC, -DPIC is meaningless:
12590 *djgpp*)
12591 lt_prog_compiler_pic_D=
12592 ;;
12593 *)
12594 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12595 ;;
12596esac
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12598$as_echo "$lt_prog_compiler_pic_D" >&6; }
12599
12600
12601
12602#
12603# Check to make sure the PIC flag actually works.
12604#
12605if test -n "$lt_prog_compiler_pic_D"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12607$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
22e05272 12608if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
b4c522fa
IB
12609 $as_echo_n "(cached) " >&6
12610else
12611 lt_cv_prog_compiler_pic_works_D=no
12612 ac_outfile=conftest.$ac_objext
12613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12614 lt_compiler_flag="$lt_prog_compiler_pic_D"
12615 # Insert the option either (1) after the last *FLAGS variable, or
12616 # (2) before a word containing "conftest.", or (3) at the end.
12617 # Note that $ac_compile itself does not contain backslashes and begins
12618 # with a dollar sign (not a hyphen), so the echo should work correctly.
12619 # The option is referenced via a variable to avoid confusing sed.
12620 lt_compile=`echo "$ac_compile" | $SED \
12621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12623 -e 's:$: $lt_compiler_flag:'`
12624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12625 (eval "$lt_compile" 2>conftest.err)
12626 ac_status=$?
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 if (exit $ac_status) && test -s "$ac_outfile"; then
12630 # The compiler can only warn and ignore the option if not recognized
12631 # So say no if there are warnings other than the usual output.
12632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12635 lt_cv_prog_compiler_pic_works_D=yes
12636 fi
12637 fi
12638 $RM conftest*
12639
12640fi
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12642$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12643
12644if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12645 case $lt_prog_compiler_pic_D in
12646 "" | " "*) ;;
12647 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12648 esac
12649else
12650 lt_prog_compiler_pic_D=
12651 lt_prog_compiler_can_build_shared_D=no
12652fi
12653
12654fi
12655
12656
12657
12658#
12659# Check to make sure the static flag actually works.
12660#
12661wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12663$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12664if ${lt_cv_prog_compiler_static_works_D+:} false; then :
b4c522fa
IB
12665 $as_echo_n "(cached) " >&6
12666else
12667 lt_cv_prog_compiler_static_works_D=no
12668 save_LDFLAGS="$LDFLAGS"
12669 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12670 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12672 # The linker can only warn and ignore the option if not recognized
12673 # So say no if there are warnings
12674 if test -s conftest.err; then
12675 # Append any errors to the config.log.
12676 cat conftest.err 1>&5
12677 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12679 if diff conftest.exp conftest.er2 >/dev/null; then
12680 lt_cv_prog_compiler_static_works_D=yes
12681 fi
12682 else
12683 lt_cv_prog_compiler_static_works_D=yes
12684 fi
12685 fi
12686 $RM -r conftest*
12687 LDFLAGS="$save_LDFLAGS"
12688
12689fi
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12691$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12692
12693if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12694 :
12695else
12696 lt_prog_compiler_static_D=
12697fi
12698
12699
12700
12701
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12703$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12704if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12705 $as_echo_n "(cached) " >&6
12706else
12707 lt_cv_prog_compiler_c_o_D=no
12708 $RM -r conftest 2>/dev/null
12709 mkdir conftest
12710 cd conftest
12711 mkdir out
12712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
12714 lt_compiler_flag="-o out/conftest2.$ac_objext"
12715 # Insert the option either (1) after the last *FLAGS variable, or
12716 # (2) before a word containing "conftest.", or (3) at the end.
12717 # Note that $ac_compile itself does not contain backslashes and begins
12718 # with a dollar sign (not a hyphen), so the echo should work correctly.
12719 lt_compile=`echo "$ac_compile" | $SED \
12720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
12723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12724 (eval "$lt_compile" 2>out/conftest.err)
12725 ac_status=$?
12726 cat out/conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729 then
12730 # The compiler can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12735 lt_cv_prog_compiler_c_o_D=yes
12736 fi
12737 fi
12738 chmod u+w . 2>&5
12739 $RM conftest*
12740 # SGI C++ compiler will create directory out/ii_files/ for
12741 # template instantiation
12742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12743 $RM out/* && rmdir out
12744 cd ..
12745 $RM -r conftest
12746 $RM conftest*
12747
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12750$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12751
12752
12753
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12755$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12756if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12757 $as_echo_n "(cached) " >&6
12758else
12759 lt_cv_prog_compiler_c_o_D=no
12760 $RM -r conftest 2>/dev/null
12761 mkdir conftest
12762 cd conftest
12763 mkdir out
12764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12765
12766 lt_compiler_flag="-o out/conftest2.$ac_objext"
12767 # Insert the option either (1) after the last *FLAGS variable, or
12768 # (2) before a word containing "conftest.", or (3) at the end.
12769 # Note that $ac_compile itself does not contain backslashes and begins
12770 # with a dollar sign (not a hyphen), so the echo should work correctly.
12771 lt_compile=`echo "$ac_compile" | $SED \
12772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12774 -e 's:$: $lt_compiler_flag:'`
12775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12776 (eval "$lt_compile" 2>out/conftest.err)
12777 ac_status=$?
12778 cat out/conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12781 then
12782 # The compiler can only warn and ignore the option if not recognized
12783 # So say no if there are warnings
12784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12787 lt_cv_prog_compiler_c_o_D=yes
12788 fi
12789 fi
12790 chmod u+w . 2>&5
12791 $RM conftest*
12792 # SGI C++ compiler will create directory out/ii_files/ for
12793 # template instantiation
12794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12795 $RM out/* && rmdir out
12796 cd ..
12797 $RM -r conftest
12798 $RM conftest*
12799
12800fi
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12802$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12803
12804
12805
12806
12807hard_links="nottested"
12808if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12809 # do not overwrite the value of need_locks provided by the user
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12811$as_echo_n "checking if we can lock with hard links... " >&6; }
12812 hard_links=yes
12813 $RM conftest*
12814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12815 touch conftest.a
12816 ln conftest.a conftest.b 2>&5 || hard_links=no
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12819$as_echo "$hard_links" >&6; }
12820 if test "$hard_links" = no; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12822$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12823 need_locks=warn
12824 fi
12825else
12826 need_locks=no
12827fi
12828
12829
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12833
12834 runpath_var=
12835 allow_undefined_flag_D=
12836 always_export_symbols_D=no
12837 archive_cmds_D=
12838 archive_expsym_cmds_D=
12839 compiler_needs_object_D=no
12840 enable_shared_with_static_runtimes_D=no
12841 export_dynamic_flag_spec_D=
12842 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12843 hardcode_automatic_D=no
12844 hardcode_direct_D=no
12845 hardcode_direct_absolute_D=no
12846 hardcode_libdir_flag_spec_D=
12847 hardcode_libdir_flag_spec_ld_D=
12848 hardcode_libdir_separator_D=
12849 hardcode_minus_L_D=no
12850 hardcode_shlibpath_var_D=unsupported
12851 inherit_rpath_D=no
12852 link_all_deplibs_D=unknown
12853 module_cmds_D=
12854 module_expsym_cmds_D=
12855 old_archive_from_new_cmds_D=
12856 old_archive_from_expsyms_cmds_D=
12857 thread_safe_flag_spec_D=
12858 whole_archive_flag_spec_D=
12859 # include_expsyms should be a list of space-separated symbols to be *always*
12860 # included in the symbol list
12861 include_expsyms_D=
12862 # exclude_expsyms can be an extended regexp of symbols to exclude
12863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12865 # as well as any symbol that contains `d'.
12866 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12868 # platforms (ab)use it in PIC code, but their linkers get confused if
12869 # the symbol is explicitly referenced. Since portable code cannot
12870 # rely on this symbol name, it's probably fine to never include it in
12871 # preloaded symbol tables.
12872 # Exclude shared library initialization/finalization symbols.
12873 extract_expsyms_cmds=
12874
12875 case $host_os in
12876 cygwin* | mingw* | pw32* | cegcc*)
12877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12878 # When not using gcc, we currently assume that we are using
12879 # Microsoft Visual C++.
12880 if test "$GCC" != yes; then
12881 with_gnu_ld=no
12882 fi
12883 ;;
12884 interix*)
12885 # we just hope/assume this is gcc and not c89 (= MSVC++)
12886 with_gnu_ld=yes
12887 ;;
12888 openbsd*)
12889 with_gnu_ld=no
12890 ;;
12891 esac
12892
12893 ld_shlibs_D=yes
12894
12895 # On some targets, GNU ld is compatible enough with the native linker
12896 # that we're better off using the native interface for both.
12897 lt_use_gnu_ld_interface=no
12898 if test "$with_gnu_ld" = yes; then
12899 case $host_os in
12900 aix*)
12901 # The AIX port of GNU ld has always aspired to compatibility
12902 # with the native linker. However, as the warning in the GNU ld
12903 # block says, versions before 2.19.5* couldn't really create working
12904 # shared libraries, regardless of the interface used.
12905 case `$LD -v 2>&1` in
12906 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12907 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12908 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12909 *)
12910 lt_use_gnu_ld_interface=yes
12911 ;;
12912 esac
12913 ;;
12914 *)
12915 lt_use_gnu_ld_interface=yes
12916 ;;
12917 esac
12918 fi
12919
12920 if test "$lt_use_gnu_ld_interface" = yes; then
12921 # If archive_cmds runs LD, not CC, wlarc should be empty
12922 wlarc='${wl}'
12923
12924 # Set some defaults for GNU ld with shared library support. These
12925 # are reset later if shared libraries are not supported. Putting them
12926 # here allows them to be overridden if necessary.
12927 runpath_var=LD_RUN_PATH
12928 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12929 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12930 # ancient GNU ld didn't support --whole-archive et. al.
12931 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12932 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12933 else
12934 whole_archive_flag_spec_D=
12935 fi
12936 supports_anon_versioning=no
12937 case `$LD -v 2>&1` in
12938 *GNU\ gold*) supports_anon_versioning=yes ;;
12939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12942 *\ 2.11.*) ;; # other 2.11 versions
12943 *) supports_anon_versioning=yes ;;
12944 esac
12945
12946 # See if GNU ld supports shared libraries.
12947 case $host_os in
12948 aix[3-9]*)
12949 # On AIX/PPC, the GNU linker is very broken
12950 if test "$host_cpu" != ia64; then
12951 ld_shlibs_D=no
12952 cat <<_LT_EOF 1>&2
12953
12954*** Warning: the GNU linker, at least up to release 2.19, is reported
12955*** to be unable to reliably create shared libraries on AIX.
12956*** Therefore, libtool is disabling shared libraries support. If you
12957*** really care for shared libraries, you may want to install binutils
12958*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12959*** You will then need to restart the configuration process.
12960
12961_LT_EOF
12962 fi
12963 ;;
12964
12965 amigaos*)
12966 case $host_cpu in
12967 powerpc)
12968 # see comment about AmigaOS4 .so support
12969 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 archive_expsym_cmds_D=''
12971 ;;
12972 m68k)
12973 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)'
12974 hardcode_libdir_flag_spec_D='-L$libdir'
12975 hardcode_minus_L_D=yes
12976 ;;
12977 esac
12978 ;;
12979
12980 beos*)
12981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12982 allow_undefined_flag_D=unsupported
12983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12984 # support --undefined. This deserves some investigation. FIXME
12985 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 else
12987 ld_shlibs_D=no
12988 fi
12989 ;;
12990
12991 cygwin* | mingw* | pw32* | cegcc*)
12992 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12993 # as there is no search path for DLLs.
12994 hardcode_libdir_flag_spec_D='-L$libdir'
12995 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12996 allow_undefined_flag_D=unsupported
12997 always_export_symbols_D=no
12998 enable_shared_with_static_runtimes_D=yes
12999 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13000
13001 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13002 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13003 # If the export-symbols file already is a .def file (1st line
13004 # is EXPORTS), use it as is; otherwise, prepend...
13005 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13006 cp $export_symbols $output_objdir/$soname.def;
13007 else
13008 echo EXPORTS > $output_objdir/$soname.def;
13009 cat $export_symbols >> $output_objdir/$soname.def;
13010 fi~
13011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13012 else
13013 ld_shlibs_D=no
13014 fi
13015 ;;
13016
13017 haiku*)
13018 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 link_all_deplibs_D=yes
13020 ;;
13021
13022 interix[3-9]*)
13023 hardcode_direct_D=no
13024 hardcode_shlibpath_var_D=no
13025 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec_D='${wl}-E'
13027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13028 # Instead, shared libraries are loaded at an image base (0x10000000 by
13029 # default) and relocated if they conflict, which is a slow very memory
13030 # consuming and fragmenting process. To avoid this, we pick a random,
13031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13032 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13033 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'
13034 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'
13035 ;;
13036
e9085da5 13037 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
13038 tmp_diet=no
13039 if test "$host_os" = linux-dietlibc; then
13040 case $cc_basename in
13041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13042 esac
13043 fi
13044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13045 && test "$tmp_diet" = no
13046 then
13047 tmp_addflag=' $pic_flag'
13048 tmp_sharedflag='-shared'
13049 case $cc_basename,$host_cpu in
13050 pgcc*) # Portland Group C compiler
13051 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'
13052 tmp_addflag=' $pic_flag'
13053 ;;
13054 pgf77* | pgf90* | pgf95* | pgfortran*)
13055 # Portland Group f77 and f90 compilers
13056 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'
13057 tmp_addflag=' $pic_flag -Mnomain' ;;
13058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13059 tmp_addflag=' -i_dynamic' ;;
13060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13061 tmp_addflag=' -i_dynamic -nofor_main' ;;
13062 ifc* | ifort*) # Intel Fortran compiler
13063 tmp_addflag=' -nofor_main' ;;
13064 lf95*) # Lahey Fortran 8.1
13065 whole_archive_flag_spec_D=
13066 tmp_sharedflag='--shared' ;;
13067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13068 tmp_sharedflag='-qmkshrobj'
13069 tmp_addflag= ;;
13070 nvcc*) # Cuda Compiler Driver 2.2
13071 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'
13072 compiler_needs_object_D=yes
13073 ;;
13074 esac
13075 case `$CC -V 2>&1 | sed 5q` in
13076 *Sun\ C*) # Sun C 5.9
13077 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'
13078 compiler_needs_object_D=yes
13079 tmp_sharedflag='-G' ;;
13080 *Sun\ F*) # Sun Fortran 8.3
13081 tmp_sharedflag='-G' ;;
13082 esac
13083 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13084
13085 if test "x$supports_anon_versioning" = xyes; then
13086 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13088 echo "local: *; };" >> $output_objdir/$libname.ver~
13089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13090 fi
13091
13092 case $cc_basename in
13093 xlf* | bgf* | bgxlf* | mpixlf*)
13094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13095 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13096 hardcode_libdir_flag_spec_D=
13097 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13098 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13099 if test "x$supports_anon_versioning" = xyes; then
13100 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13102 echo "local: *; };" >> $output_objdir/$libname.ver~
13103 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13104 fi
13105 ;;
13106 esac
13107 else
13108 ld_shlibs_D=no
13109 fi
13110 ;;
13111
13112 netbsd*)
13113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13114 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13115 wlarc=
13116 else
13117 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13119 fi
13120 ;;
13121
13122 solaris*)
13123 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13124 ld_shlibs_D=no
13125 cat <<_LT_EOF 1>&2
13126
13127*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13128*** create shared libraries on Solaris systems. Therefore, libtool
13129*** is disabling shared libraries support. We urge you to upgrade GNU
13130*** binutils to release 2.9.1 or newer. Another option is to modify
13131*** your PATH or compiler configuration so that the native linker is
13132*** used, and then restart.
13133
13134_LT_EOF
13135 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13136 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13137 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13138 else
13139 ld_shlibs_D=no
13140 fi
13141 ;;
13142
13143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13144 case `$LD -v 2>&1` in
13145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13146 ld_shlibs_D=no
13147 cat <<_LT_EOF 1>&2
13148
13149*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13150*** reliably create shared libraries on SCO systems. Therefore, libtool
13151*** is disabling shared libraries support. We urge you to upgrade GNU
13152*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13153*** your PATH or compiler configuration so that the native linker is
13154*** used, and then restart.
13155
13156_LT_EOF
13157 ;;
13158 *)
13159 # For security reasons, it is highly recommended that you always
13160 # use absolute paths for naming shared libraries, and exclude the
13161 # DT_RUNPATH tag from executables and libraries. But doing so
13162 # requires that you compile everything twice, which is a pain.
13163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13164 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13165 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13167 else
13168 ld_shlibs_D=no
13169 fi
13170 ;;
13171 esac
13172 ;;
13173
13174 sunos4*)
13175 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13176 wlarc=
13177 hardcode_direct_D=yes
13178 hardcode_shlibpath_var_D=no
13179 ;;
13180
13181 *)
13182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13183 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13184 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13185 else
13186 ld_shlibs_D=no
13187 fi
13188 ;;
13189 esac
13190
13191 if test "$ld_shlibs_D" = no; then
13192 runpath_var=
13193 hardcode_libdir_flag_spec_D=
13194 export_dynamic_flag_spec_D=
13195 whole_archive_flag_spec_D=
13196 fi
13197 else
13198 # PORTME fill in a description of your system's linker (not GNU ld)
13199 case $host_os in
13200 aix3*)
13201 allow_undefined_flag_D=unsupported
13202 always_export_symbols_D=yes
13203 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'
13204 # Note: this linker hardcodes the directories in LIBPATH if there
13205 # are no directories specified by -L.
13206 hardcode_minus_L_D=yes
13207 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13208 # Neither direct hardcoding nor static linking is supported with a
13209 # broken collect2.
13210 hardcode_direct_D=unsupported
13211 fi
13212 ;;
13213
13214 aix[4-9]*)
13215 if test "$host_cpu" = ia64; then
13216 # On IA64, the linker does run time linking by default, so we don't
13217 # have to do anything special.
13218 aix_use_runtimelinking=no
13219 exp_sym_flag='-Bexport'
13220 no_entry_flag=""
13221 else
13222 # If we're using GNU nm, then we don't want the "-C" option.
13223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13224 # Also, AIX nm treats weak defined symbols like other global
13225 # defined symbols, whereas GNU nm marks them as "W".
13226 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13227 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'
13228 else
13229 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'
13230 fi
13231 aix_use_runtimelinking=no
13232
13233 # Test if we are trying to use run time linking or normal
13234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235 # need to do runtime linking.
13236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237 for ld_flag in $LDFLAGS; do
13238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13239 aix_use_runtimelinking=yes
13240 break
13241 fi
13242 done
13243 ;;
13244 esac
13245
13246 exp_sym_flag='-bexport'
13247 no_entry_flag='-bnoentry'
13248 fi
13249
13250 # When large executables or shared objects are built, AIX ld can
13251 # have problems creating the table of contents. If linking a library
13252 # or program results in "error TOC overflow" add -mminimal-toc to
13253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13255
13256 archive_cmds_D=''
13257 hardcode_direct_D=yes
13258 hardcode_direct_absolute_D=yes
13259 hardcode_libdir_separator_D=':'
13260 link_all_deplibs_D=yes
13261 file_list_spec_D='${wl}-f,'
13262
13263 if test "$GCC" = yes; then
13264 case $host_os in aix4.[012]|aix4.[012].*)
13265 # We only want to do this on AIX 4.2 and lower, the check
13266 # below for broken collect2 doesn't work under 4.3+
13267 collect2name=`${CC} -print-prog-name=collect2`
13268 if test -f "$collect2name" &&
13269 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13270 then
13271 # We have reworked collect2
13272 :
13273 else
13274 # We have old collect2
13275 hardcode_direct_D=unsupported
13276 # It fails to find uninstalled libraries when the uninstalled
13277 # path is not listed in the libpath. Setting hardcode_minus_L
13278 # to unsupported forces relinking
13279 hardcode_minus_L_D=yes
13280 hardcode_libdir_flag_spec_D='-L$libdir'
13281 hardcode_libdir_separator_D=
13282 fi
13283 ;;
13284 esac
13285 shared_flag='-shared'
13286 if test "$aix_use_runtimelinking" = yes; then
13287 shared_flag="$shared_flag "'${wl}-G'
13288 fi
13289 else
13290 # not using gcc
13291 if test "$host_cpu" = ia64; then
13292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13293 # chokes on -Wl,-G. The following line is correct:
13294 shared_flag='-G'
13295 else
13296 if test "$aix_use_runtimelinking" = yes; then
13297 shared_flag='${wl}-G'
13298 else
13299 shared_flag='${wl}-bM:SRE'
13300 fi
13301 fi
13302 fi
13303
13304 export_dynamic_flag_spec_D='${wl}-bexpall'
13305 # It seems that -bexpall does not export symbols beginning with
13306 # underscore (_), so it is better to generate a list of symbols to export.
13307 always_export_symbols_D=yes
13308 if test "$aix_use_runtimelinking" = yes; then
13309 # Warning - without using the other runtime loading flags (-brtl),
13310 # -berok will link without error, but may produce a broken library.
13311 allow_undefined_flag_D='-berok'
13312 # Determine the default libpath from the value encoded in an
13313 # empty executable.
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315/* end confdefs.h. */
13316
13317int
13318main ()
13319{
13320
13321 ;
13322 return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_link "$LINENO"; then :
13326
13327lt_aix_libpath_sed='
13328 /Import File Strings/,/^$/ {
13329 /^0/ {
13330 s/^0 *\(.*\)$/\1/
13331 p
13332 }
13333 }'
13334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335# Check for a 64-bit object if we didn't find anything.
13336if test -z "$aix_libpath"; then
13337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13338fi
13339fi
13340rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
13342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13343
13344 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13345 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"
13346 else
13347 if test "$host_cpu" = ia64; then
13348 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13349 allow_undefined_flag_D="-z nodefs"
13350 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"
13351 else
13352 # Determine the default libpath from the value encoded in an
13353 # empty executable.
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h. */
13356
13357int
13358main ()
13359{
13360
13361 ;
13362 return 0;
13363}
13364_ACEOF
13365if ac_fn_c_try_link "$LINENO"; then :
13366
13367lt_aix_libpath_sed='
13368 /Import File Strings/,/^$/ {
13369 /^0/ {
13370 s/^0 *\(.*\)$/\1/
13371 p
13372 }
13373 }'
13374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13375# Check for a 64-bit object if we didn't find anything.
13376if test -z "$aix_libpath"; then
13377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13378fi
13379fi
13380rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13383
13384 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13385 # Warning - without using the other run time loading flags,
13386 # -berok will link without error, but may produce a broken library.
13387 no_undefined_flag_D=' ${wl}-bernotok'
13388 allow_undefined_flag_D=' ${wl}-berok'
13389 if test "$with_gnu_ld" = yes; then
13390 # We only use this code for GNU lds that support --whole-archive.
13391 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13392 else
13393 # Exported symbols can be pulled into shared objects from archives
13394 whole_archive_flag_spec_D='$convenience'
13395 fi
13396 archive_cmds_need_lc_D=yes
13397 # This is similar to how AIX traditionally builds its shared libraries.
13398 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'
13399 fi
13400 fi
13401 ;;
13402
13403 amigaos*)
13404 case $host_cpu in
13405 powerpc)
13406 # see comment about AmigaOS4 .so support
13407 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13408 archive_expsym_cmds_D=''
13409 ;;
13410 m68k)
13411 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)'
13412 hardcode_libdir_flag_spec_D='-L$libdir'
13413 hardcode_minus_L_D=yes
13414 ;;
13415 esac
13416 ;;
13417
13418 bsdi[45]*)
13419 export_dynamic_flag_spec_D=-rdynamic
13420 ;;
13421
13422 cygwin* | mingw* | pw32* | cegcc*)
13423 # When not using gcc, we currently assume that we are using
13424 # Microsoft Visual C++.
13425 # hardcode_libdir_flag_spec is actually meaningless, as there is
13426 # no search path for DLLs.
13427 hardcode_libdir_flag_spec_D=' '
13428 allow_undefined_flag_D=unsupported
13429 # Tell ltmain to make .lib files, not .a files.
13430 libext=lib
13431 # Tell ltmain to make .dll files, not .so files.
13432 shrext_cmds=".dll"
13433 # FIXME: Setting linknames here is a bad hack.
13434 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13435 # The linker will automatically build a .lib file if we build a DLL.
13436 old_archive_from_new_cmds_D='true'
13437 # FIXME: Should let the user specify the lib program.
13438 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13439 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13440 enable_shared_with_static_runtimes_D=yes
13441 ;;
13442
13443 darwin* | rhapsody*)
13444
13445
13446 archive_cmds_need_lc_D=no
13447 hardcode_direct_D=no
13448 hardcode_automatic_D=yes
13449 hardcode_shlibpath_var_D=unsupported
13450 if test "$lt_cv_ld_force_load" = "yes"; then
13451 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\"`'
13452 else
13453 whole_archive_flag_spec_D=''
13454 fi
13455 link_all_deplibs_D=yes
13456 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13457 case $cc_basename in
13458 ifort*) _lt_dar_can_shared=yes ;;
13459 *) _lt_dar_can_shared=$GCC ;;
13460 esac
13461 if test "$_lt_dar_can_shared" = "yes"; then
13462 output_verbose_link_cmd=func_echo_all
13463 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}"
13464 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13465 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}"
13466 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}"
13467
13468 else
13469 ld_shlibs_D=no
13470 fi
13471
13472 ;;
13473
13474 dgux*)
13475 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_libdir_flag_spec_D='-L$libdir'
13477 hardcode_shlibpath_var_D=no
13478 ;;
13479
13480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13481 # support. Future versions do this automatically, but an explicit c++rt0.o
13482 # does not break anything, and helps significantly (at the cost of a little
13483 # extra space).
13484 freebsd2.2*)
13485 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13486 hardcode_libdir_flag_spec_D='-R$libdir'
13487 hardcode_direct_D=yes
13488 hardcode_shlibpath_var_D=no
13489 ;;
13490
13491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13492 freebsd2.*)
13493 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13494 hardcode_direct_D=yes
13495 hardcode_minus_L_D=yes
13496 hardcode_shlibpath_var_D=no
13497 ;;
13498
13499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13500 freebsd* | dragonfly*)
13501 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13502 hardcode_libdir_flag_spec_D='-R$libdir'
13503 hardcode_direct_D=yes
13504 hardcode_shlibpath_var_D=no
13505 ;;
13506
13507 hpux9*)
13508 if test "$GCC" = yes; then
13509 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'
13510 else
13511 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'
13512 fi
13513 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13514 hardcode_libdir_separator_D=:
13515 hardcode_direct_D=yes
13516
13517 # hardcode_minus_L: Not really in the search PATH,
13518 # but as the default location of the library.
13519 hardcode_minus_L_D=yes
13520 export_dynamic_flag_spec_D='${wl}-E'
13521 ;;
13522
13523 hpux10*)
13524 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13525 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13526 else
13527 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13528 fi
13529 if test "$with_gnu_ld" = no; then
13530 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13531 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13532 hardcode_libdir_separator_D=:
13533 hardcode_direct_D=yes
13534 hardcode_direct_absolute_D=yes
13535 export_dynamic_flag_spec_D='${wl}-E'
13536 # hardcode_minus_L: Not really in the search PATH,
13537 # but as the default location of the library.
13538 hardcode_minus_L_D=yes
13539 fi
13540 ;;
13541
13542 hpux11*)
13543 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13544 case $host_cpu in
13545 hppa*64*)
1352bc88 13546 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b4c522fa
IB
13547 ;;
13548 ia64*)
13549 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13550 ;;
13551 *)
13552 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13553 ;;
13554 esac
13555 else
13556 case $host_cpu in
13557 hppa*64*)
1352bc88 13558 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b4c522fa
IB
13559 ;;
13560 ia64*)
13561 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13562 ;;
13563 *)
13564 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13565 ;;
13566 esac
13567 fi
13568 if test "$with_gnu_ld" = no; then
13569 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13570 hardcode_libdir_separator_D=:
13571
13572 case $host_cpu in
13573 hppa*64*|ia64*)
13574 hardcode_direct_D=no
13575 hardcode_shlibpath_var_D=no
13576 ;;
13577 *)
13578 hardcode_direct_D=yes
13579 hardcode_direct_absolute_D=yes
13580 export_dynamic_flag_spec_D='${wl}-E'
13581
13582 # hardcode_minus_L: Not really in the search PATH,
13583 # but as the default location of the library.
13584 hardcode_minus_L_D=yes
13585 ;;
13586 esac
13587 fi
13588 ;;
13589
13590 irix5* | irix6* | nonstopux*)
13591 if test "$GCC" = yes; then
13592 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'
13593 # Try to use the -exported_symbol ld option, if it does not
13594 # work, assume that -exports_file does not work either and
13595 # implicitly export all symbols.
13596 save_LDFLAGS="$LDFLAGS"
13597 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599/* end confdefs.h. */
13600int foo(void) {}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"; then :
13603 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'
13604
13605fi
13606rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 LDFLAGS="$save_LDFLAGS"
13609 else
13610 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'
13611 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'
13612 fi
13613 archive_cmds_need_lc_D='no'
13614 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13615 hardcode_libdir_separator_D=:
13616 inherit_rpath_D=yes
13617 link_all_deplibs_D=yes
13618 ;;
13619
13620 netbsd*)
13621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13622 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13623 else
13624 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13625 fi
13626 hardcode_libdir_flag_spec_D='-R$libdir'
13627 hardcode_direct_D=yes
13628 hardcode_shlibpath_var_D=no
13629 ;;
13630
13631 newsos6)
13632 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13633 hardcode_direct_D=yes
13634 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13635 hardcode_libdir_separator_D=:
13636 hardcode_shlibpath_var_D=no
13637 ;;
13638
13639 *nto* | *qnx*)
13640 ;;
13641
13642 openbsd*)
13643 if test -f /usr/libexec/ld.so; then
13644 hardcode_direct_D=yes
13645 hardcode_shlibpath_var_D=no
13646 hardcode_direct_absolute_D=yes
13647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13648 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13650 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13651 export_dynamic_flag_spec_D='${wl}-E'
13652 else
13653 case $host_os in
13654 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13655 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13656 hardcode_libdir_flag_spec_D='-R$libdir'
13657 ;;
13658 *)
13659 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13660 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13661 ;;
13662 esac
13663 fi
13664 else
13665 ld_shlibs_D=no
13666 fi
13667 ;;
13668
13669 os2*)
13670 hardcode_libdir_flag_spec_D='-L$libdir'
13671 hardcode_minus_L_D=yes
13672 allow_undefined_flag_D=unsupported
13673 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'
13674 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13675 ;;
13676
13677 osf3*)
13678 if test "$GCC" = yes; then
13679 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13680 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'
13681 else
13682 allow_undefined_flag_D=' -expect_unresolved \*'
13683 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'
13684 fi
13685 archive_cmds_need_lc_D='no'
13686 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13687 hardcode_libdir_separator_D=:
13688 ;;
13689
13690 osf4* | osf5*) # as osf3* with the addition of -msym flag
13691 if test "$GCC" = yes; then
13692 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13693 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'
13694 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13695 else
13696 allow_undefined_flag_D=' -expect_unresolved \*'
13697 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'
13698 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~
13699 $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'
13700
13701 # Both c and cxx compiler support -rpath directly
13702 hardcode_libdir_flag_spec_D='-rpath $libdir'
13703 fi
13704 archive_cmds_need_lc_D='no'
13705 hardcode_libdir_separator_D=:
13706 ;;
13707
13708 solaris*)
13709 no_undefined_flag_D=' -z defs'
13710 if test "$GCC" = yes; then
13711 wlarc='${wl}'
13712 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13713 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13714 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13715 else
13716 case `$CC -V 2>&1` in
13717 *"Compilers 5.0"*)
13718 wlarc=''
13719 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13722 ;;
13723 *)
13724 wlarc='${wl}'
13725 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13726 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13727 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13728 ;;
13729 esac
13730 fi
13731 hardcode_libdir_flag_spec_D='-R$libdir'
13732 hardcode_shlibpath_var_D=no
13733 case $host_os in
13734 solaris2.[0-5] | solaris2.[0-5].*) ;;
13735 *)
13736 # The compiler driver will combine and reorder linker options,
13737 # but understands `-z linker_flag'. GCC discards it without `$wl',
13738 # but is careful enough not to reorder.
13739 # Supported since Solaris 2.6 (maybe 2.5.1?)
13740 if test "$GCC" = yes; then
13741 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13742 else
13743 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13744 fi
13745 ;;
13746 esac
13747 link_all_deplibs_D=yes
13748 ;;
13749
13750 sunos4*)
13751 if test "x$host_vendor" = xsequent; then
13752 # Use $CC to link under sequent, because it throws in some extra .o
13753 # files that make .init and .fini sections work.
13754 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13755 else
13756 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13757 fi
13758 hardcode_libdir_flag_spec_D='-L$libdir'
13759 hardcode_direct_D=yes
13760 hardcode_minus_L_D=yes
13761 hardcode_shlibpath_var_D=no
13762 ;;
13763
13764 sysv4)
13765 case $host_vendor in
13766 sni)
13767 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13768 hardcode_direct_D=yes # is this really true???
13769 ;;
13770 siemens)
13771 ## LD is ld it makes a PLAMLIB
13772 ## CC just makes a GrossModule.
13773 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13774 reload_cmds_D='$CC -r -o $output$reload_objs'
13775 hardcode_direct_D=no
13776 ;;
13777 motorola)
13778 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13780 ;;
13781 esac
13782 runpath_var='LD_RUN_PATH'
13783 hardcode_shlibpath_var_D=no
13784 ;;
13785
13786 sysv4.3*)
13787 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13788 hardcode_shlibpath_var_D=no
13789 export_dynamic_flag_spec_D='-Bexport'
13790 ;;
13791
13792 sysv4*MP*)
13793 if test -d /usr/nec; then
13794 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 hardcode_shlibpath_var_D=no
13796 runpath_var=LD_RUN_PATH
13797 hardcode_runpath_var=yes
13798 ld_shlibs_D=yes
13799 fi
13800 ;;
13801
13802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13803 no_undefined_flag_D='${wl}-z,text'
13804 archive_cmds_need_lc_D=no
13805 hardcode_shlibpath_var_D=no
13806 runpath_var='LD_RUN_PATH'
13807
13808 if test "$GCC" = yes; then
13809 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13811 else
13812 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 fi
13815 ;;
13816
13817 sysv5* | sco3.2v5* | sco5v6*)
13818 # Note: We can NOT use -z defs as we might desire, because we do not
13819 # link with -lc, and that would cause any symbols used from libc to
13820 # always be unresolved, which means just about no library would
13821 # ever link correctly. If we're not using GNU ld we use -z text
13822 # though, which does catch some bad symbols but isn't as heavy-handed
13823 # as -z defs.
13824 no_undefined_flag_D='${wl}-z,text'
13825 allow_undefined_flag_D='${wl}-z,nodefs'
13826 archive_cmds_need_lc_D=no
13827 hardcode_shlibpath_var_D=no
13828 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13829 hardcode_libdir_separator_D=':'
13830 link_all_deplibs_D=yes
13831 export_dynamic_flag_spec_D='${wl}-Bexport'
13832 runpath_var='LD_RUN_PATH'
13833
13834 if test "$GCC" = yes; then
13835 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 else
13838 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 fi
13841 ;;
13842
13843 uts4*)
13844 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845 hardcode_libdir_flag_spec_D='-L$libdir'
13846 hardcode_shlibpath_var_D=no
13847 ;;
13848
13849 *)
13850 ld_shlibs_D=no
13851 ;;
13852 esac
13853
13854 if test x$host_vendor = xsni; then
13855 case $host in
13856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13857 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13858 ;;
13859 esac
13860 fi
13861 fi
13862
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13864$as_echo "$ld_shlibs_D" >&6; }
13865test "$ld_shlibs_D" = no && can_build_shared=no
13866
13867with_gnu_ld_D=$with_gnu_ld
13868
13869
13870
13871
13872
13873
13874#
13875# Do we need to explicitly link libc?
13876#
13877case "x$archive_cmds_need_lc_D" in
13878x|xyes)
13879 # Assume -lc should be added
13880 archive_cmds_need_lc_D=yes
13881
13882 if test "$enable_shared" = yes && test "$GCC" = yes; then
13883 case $archive_cmds_D in
13884 *'~'*)
13885 # FIXME: we may have to deal with multi-command sequences.
13886 ;;
13887 '$CC '*)
13888 # Test whether the compiler implicitly links with -lc since on some
13889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13890 # to ld, don't add -lc before -lgcc.
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13892$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13893if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
b4c522fa
IB
13894 $as_echo_n "(cached) " >&6
13895else
13896 $RM conftest*
13897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13898
13899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13900 (eval $ac_compile) 2>&5
13901 ac_status=$?
13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; } 2>conftest.err; then
13904 soname=conftest
13905 lib=conftest
13906 libobjs=conftest.$ac_objext
13907 deplibs=
13908 wl=$lt_prog_compiler_wl_D
13909 pic_flag=$lt_prog_compiler_pic_D
13910 compiler_flags=-v
13911 linker_flags=-v
13912 verstring=
13913 output_objdir=.
13914 libname=conftest
13915 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13916 allow_undefined_flag_D=
13917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13918 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13919 ac_status=$?
13920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921 test $ac_status = 0; }
13922 then
13923 lt_cv_archive_cmds_need_lc_D=no
13924 else
13925 lt_cv_archive_cmds_need_lc_D=yes
13926 fi
13927 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13928 else
13929 cat conftest.err 1>&5
13930 fi
13931 $RM conftest*
13932
13933fi
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13935$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13936 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13937 ;;
13938 esac
13939 fi
13940 ;;
13941esac
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14007$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14008hardcode_action_D=
14009if test -n "$hardcode_libdir_flag_spec_D" ||
14010 test -n "$runpath_var_D" ||
14011 test "X$hardcode_automatic_D" = "Xyes" ; then
14012
14013 # We can hardcode non-existent directories.
14014 if test "$hardcode_direct_D" != no &&
14015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14016 # have to relink, otherwise we might link with an installed library
14017 # when we should be linking with a yet-to-be-installed one
14018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
14019 test "$hardcode_minus_L_D" != no; then
14020 # Linking always hardcodes the temporary library directory.
14021 hardcode_action_D=relink
14022 else
14023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14024 hardcode_action_D=immediate
14025 fi
14026else
14027 # We cannot hardcode anything, or else we can only hardcode existing
14028 # directories.
14029 hardcode_action_D=unsupported
14030fi
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
14032$as_echo "$hardcode_action_D" >&6; }
14033
14034if test "$hardcode_action_D" = relink ||
14035 test "$inherit_rpath_D" = yes; then
14036 # Fast installation is not supported
14037 enable_fast_install=no
14038elif test "$shlibpath_overrides_runpath" = yes ||
14039 test "$enable_shared" = no; then
14040 # Fast installation is not necessary
14041 enable_fast_install=needless
14042fi
14043
14044
14045
14046
14047
14048
14049
14050fi
14051
14052ac_ext=c
14053ac_cpp='$CPP $CPPFLAGS'
14054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14056ac_compiler_gnu=$ac_cv_c_compiler_gnu
14057
14058
14059GCC=$lt_save_GCC
14060CC=$lt_save_CC
14061CFLAGS=$lt_save_CFLAGS
b4c522fa
IB
14062
14063 GDCFLAGS=$gdc_save_DFLAGS
14064
b4c522fa 14065
fdfcb535
IB
14066
14067
b4c522fa
IB
14068# libtool variables for Phobos shared and position-independent compiles.
14069#
fdfcb535
IB
14070# Use phobos_lt_pic_flag to designate the automake variable
14071# used to encapsulate the default libtool approach to creating objects
14072# with position-independent code. Default: -prefer-pic.
14073#
b4c522fa
IB
14074# Use phobos_compiler_shared_flag to designate the compile-time flags for
14075# creating shared objects. Default: -fversion=Shared.
14076#
14077# Use phobos_compiler_pic_flag to designate the compile-time flags for
14078# creating position-independent objects. This varies with the target
14079# hardware and operating system, but is often: -fPIC.
14080#
14081# The distinction between pic and shared compilation flags is not present in
14082# libtool, and so we make it here. How it is handled is that in shared
14083# compilations the `lt_prog_compiler_pic_D' variable is used to instead
14084# ensure that conditional compilation of shared runtime code is compiled in.
b4c522fa 14085if test "$enable_shared" = yes; then
fdfcb535 14086 phobos_lt_pic_flag="-prefer-pic"
b4c522fa
IB
14087 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14088 phobos_compiler_shared_flag="-fversion=Shared"
14089else
fdfcb535 14090 phobos_lt_pic_flag=
b4c522fa
IB
14091 phobos_compiler_pic_flag=
14092 phobos_compiler_shared_flag=
14093fi
14094
14095
14096
fdfcb535 14097
b4c522fa
IB
14098# Override the libtool's pic_flag and pic_mode.
14099# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14100# NB: this impacts --with-pic and --without-pic.
fdfcb535 14101lt_prog_compiler_pic_D="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
b4c522fa
IB
14102pic_mode='default'
14103
14104# Determine what GCC version number to use in filesystem paths.
14105
14106 get_gcc_base_ver="cat"
14107
14108# Check whether --with-gcc-major-version-only was given.
14109if test "${with_gcc_major_version_only+set}" = set; then :
14110 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14111 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14112 fi
14113
14114fi
14115
14116
14117
14118
14119# libphobos/libdruntime specific options and feature detection
14120
14121 # These need to be absolute paths, yet at the same time need to
14122 # canonicalize only relative paths, because then amd will not unmount
14123 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14124 libphobos_builddir=`${PWDCMD-pwd}`
14125 case $srcdir in
14126 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14127 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14128 esac
14129
14130
14131
14132
14133 if test ${multilib} = yes; then
14134 multilib_arg="--enable-multilib"
14135 else
14136 multilib_arg=
14137 fi
14138
14139
14140 # Check whether --enable-werror was given.
14141if test "${enable_werror+set}" = set; then :
14142 enableval=$enable_werror;
14143fi
14144
14145 WERROR_FLAG=""
14146 if test "x$enable_werror" = "xyes"; then
14147 WERROR_FLAG="-Werror"
14148 fi
14149
b4c522fa 14150
d118ec22
IB
14151
14152
14153 gdc_save_DFLAGS=$GDCFLAGS
02dbf5d1 14154 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
d118ec22
IB
14155
14156 ac_ext=d
14157ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14158ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159ac_compiler_gnu=yes
14160
14161 GDCFLAGS="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
14162 cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14163module object;
d118ec22
IB
14164int foo; void bar() { }
14165
14166extern(C) int main() {
14167 return 0;
14168}
14169_ACEOF
14170if ac_fn_d_try_compile "$LINENO"; then :
14171 ac_fdsections=yes
14172else
14173 ac_fdsections=no
14174fi
14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 if test "x$ac_fdsections" = "xyes"; then
14177 SECTION_FLAGS='-ffunction-sections -fdata-sections'
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14180$as_echo "$ac_fdsections" >&6; }
14181 ac_ext=c
14182ac_cpp='$CPP $CPPFLAGS'
14183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14185ac_compiler_gnu=$ac_cv_c_compiler_gnu
14186
14187
14188 GDCFLAGS=$gdc_save_DFLAGS
14189
14190
14191
14192
2493e718
IB
14193 druntime_target_cpu_parsed=""
14194 case "$target_cpu" in
14195 aarch64*)
14196 druntime_target_cpu_parsed="aarch64"
14197 ;;
14198 arm*) druntime_target_cpu_parsed="arm"
14199 ;;
14200 mips*) druntime_target_cpu_parsed="mips"
14201 ;;
8b53086a 14202 powerpc*)
1b0cbe05 14203 druntime_target_cpu_parsed="powerpc"
2493e718 14204 ;;
b16f2147 14205 i[34567]86|x86_64)
2493e718
IB
14206 druntime_target_cpu_parsed="x86"
14207 ;;
88e508f9
RD
14208 s390x)
14209 druntime_target_cpu_parsed="s390x"
14210 ;;
14211 s390)
14212 druntime_target_cpu_parsed="s390"
14213 ;;
2493e718
IB
14214 esac
14215 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14216 DRUNTIME_CPU_AARCH64_TRUE=
14217 DRUNTIME_CPU_AARCH64_FALSE='#'
14218else
14219 DRUNTIME_CPU_AARCH64_TRUE='#'
14220 DRUNTIME_CPU_AARCH64_FALSE=
14221fi
14222
14223 if test "$druntime_target_cpu_parsed" = "arm"; then
14224 DRUNTIME_CPU_ARM_TRUE=
14225 DRUNTIME_CPU_ARM_FALSE='#'
14226else
14227 DRUNTIME_CPU_ARM_TRUE='#'
14228 DRUNTIME_CPU_ARM_FALSE=
14229fi
14230
14231 if test "$druntime_target_cpu_parsed" = "mips"; then
14232 DRUNTIME_CPU_MIPS_TRUE=
14233 DRUNTIME_CPU_MIPS_FALSE='#'
14234else
14235 DRUNTIME_CPU_MIPS_TRUE='#'
14236 DRUNTIME_CPU_MIPS_FALSE=
14237fi
14238
14239 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14240 DRUNTIME_CPU_POWERPC_TRUE=
14241 DRUNTIME_CPU_POWERPC_FALSE='#'
14242else
14243 DRUNTIME_CPU_POWERPC_TRUE='#'
14244 DRUNTIME_CPU_POWERPC_FALSE=
14245fi
14246
2493e718
IB
14247 if test "$druntime_target_cpu_parsed" = "x86"; then
14248 DRUNTIME_CPU_X86_TRUE=
14249 DRUNTIME_CPU_X86_FALSE='#'
14250else
14251 DRUNTIME_CPU_X86_TRUE='#'
14252 DRUNTIME_CPU_X86_FALSE=
14253fi
14254
88e508f9
RD
14255 if test "$druntime_target_cpu_parsed" = "s390x"; then
14256 DRUNTIME_CPU_SYSTEMZ_TRUE=
14257 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14258else
14259 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14260 DRUNTIME_CPU_SYSTEMZ_FALSE=
14261fi
14262
14263 if test "$druntime_target_cpu_parsed" = "s390"; then
14264 DRUNTIME_CPU_S390_TRUE=
14265 DRUNTIME_CPU_S390_FALSE='#'
14266else
14267 DRUNTIME_CPU_S390_TRUE='#'
14268 DRUNTIME_CPU_S390_FALSE=
14269fi
14270
2493e718
IB
14271
14272
b4c522fa
IB
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14274$as_echo_n "checking for target OS... " >&6; }
22e05272 14275if ${druntime_cv_target_os+:} false; then :
b4c522fa
IB
14276 $as_echo_n "(cached) " >&6
14277else
14278 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14279fi
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14281$as_echo "$druntime_cv_target_os" >&6; }
14282 if test -z "$druntime_cv_target_os"; then :
22e05272 14283 as_fn_error $? "can't detect target OS" "$LINENO" 5
b4c522fa
IB
14284fi
14285
14286
14287
b4c522fa
IB
14288
14289 druntime_target_os_parsed=""
14290 case "$druntime_cv_target_os" in
14291 aix*) druntime_target_os_parsed="aix"
14292 ;;
14293 *android*)
14294 druntime_target_os_parsed="android"
14295 ;;
14296 darwin*) druntime_target_os_parsed="darwin"
14297 ;;
14298 dragonfly*)
14299 druntime_target_os_parsed="dragonflybsd"
14300 ;;
14301 freebsd*|k*bsd*-gnu)
14302 druntime_target_os_parsed="freebsd"
14303 ;;
14304 openbsd*)
14305 druntime_target_os_parsed="openbsd"
14306 ;;
14307 netbsd*)
14308 druntime_target_os_parsed="netbsd"
14309 ;;
14310 linux*) druntime_target_os_parsed="linux"
14311 ;;
14312 mingw*) druntime_target_os_parsed="mingw"
14313 ;;
14314 *solaris*) druntime_target_os_parsed="solaris"
14315 esac
14316 if test "$druntime_target_os_parsed" = "aix"; then
14317 DRUNTIME_OS_AIX_TRUE=
14318 DRUNTIME_OS_AIX_FALSE='#'
14319else
14320 DRUNTIME_OS_AIX_TRUE='#'
14321 DRUNTIME_OS_AIX_FALSE=
14322fi
14323
14324 if test "$druntime_target_os_parsed" = "android"; then
14325 DRUNTIME_OS_ANDROID_TRUE=
14326 DRUNTIME_OS_ANDROID_FALSE='#'
14327else
14328 DRUNTIME_OS_ANDROID_TRUE='#'
14329 DRUNTIME_OS_ANDROID_FALSE=
14330fi
14331
14332 if test "$druntime_target_os_parsed" = "darwin"; then
14333 DRUNTIME_OS_DARWIN_TRUE=
14334 DRUNTIME_OS_DARWIN_FALSE='#'
14335else
14336 DRUNTIME_OS_DARWIN_TRUE='#'
14337 DRUNTIME_OS_DARWIN_FALSE=
14338fi
14339
14340 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14341 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14342 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14343else
14344 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14345 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14346fi
14347
14348 if test "$druntime_target_os_parsed" = "freebsd"; then
14349 DRUNTIME_OS_FREEBSD_TRUE=
14350 DRUNTIME_OS_FREEBSD_FALSE='#'
14351else
14352 DRUNTIME_OS_FREEBSD_TRUE='#'
14353 DRUNTIME_OS_FREEBSD_FALSE=
14354fi
14355
14356 if test "$druntime_target_os_parsed" = "netbsd"; then
14357 DRUNTIME_OS_NETBSD_TRUE=
14358 DRUNTIME_OS_NETBSD_FALSE='#'
14359else
14360 DRUNTIME_OS_NETBSD_TRUE='#'
14361 DRUNTIME_OS_NETBSD_FALSE=
14362fi
14363
14364 if test "$druntime_target_os_parsed" = "openbsd"; then
14365 DRUNTIME_OS_OPENBSD_TRUE=
14366 DRUNTIME_OS_OPENBSD_FALSE='#'
14367else
14368 DRUNTIME_OS_OPENBSD_TRUE='#'
14369 DRUNTIME_OS_OPENBSD_FALSE=
14370fi
14371
14372 if test "$druntime_target_os_parsed" = "linux"; then
14373 DRUNTIME_OS_LINUX_TRUE=
14374 DRUNTIME_OS_LINUX_FALSE='#'
14375else
14376 DRUNTIME_OS_LINUX_TRUE='#'
14377 DRUNTIME_OS_LINUX_FALSE=
14378fi
14379
14380 if test "$druntime_target_os_parsed" = "mingw"; then
14381 DRUNTIME_OS_MINGW_TRUE=
14382 DRUNTIME_OS_MINGW_FALSE='#'
14383else
14384 DRUNTIME_OS_MINGW_TRUE='#'
14385 DRUNTIME_OS_MINGW_FALSE=
14386fi
14387
14388 if test "$druntime_target_os_parsed" = "solaris"; then
14389 DRUNTIME_OS_SOLARIS_TRUE=
14390 DRUNTIME_OS_SOLARIS_FALSE='#'
14391else
14392 DRUNTIME_OS_SOLARIS_TRUE='#'
14393 DRUNTIME_OS_SOLARIS_FALSE=
14394fi
14395
14396
72c136c9
IB
14397 druntime_target_posix="no"
14398 case "$druntime_cv_target_os" in
fa9091ad 14399 aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
72c136c9
IB
14400 druntime_target_posix="yes"
14401 ;;
14402 esac
14403 if test "$druntime_target_posix" = "yes"; then
14404 DRUNTIME_OS_POSIX_TRUE=
14405 DRUNTIME_OS_POSIX_FALSE='#'
14406else
14407 DRUNTIME_OS_POSIX_TRUE='#'
14408 DRUNTIME_OS_POSIX_FALSE=
14409fi
14410
14411
b4c522fa
IB
14412
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14415$as_echo_n "checking for thread model used by GDC... " >&6; }
14416 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14418$as_echo "$d_thread_model" >&6; }
14419
14420 # Map from thread model to thread interface.
14421
14422case $d_thread_model in
14423 aix) DCFG_THREAD_MODEL="Posix" ;;
14424 lynx) DCFG_THREAD_MODEL="Posix" ;;
14425 posix) DCFG_THREAD_MODEL="Posix" ;;
14426 single) DCFG_THREAD_MODEL="Single" ;;
14427 win32) DCFG_THREAD_MODEL="Win32" ;;
14428 # TODO: These targets need porting.
14429 dce|mipssde|rtems|tpf|vxworks)
14430 DCFG_THREAD_MODEL="Single" ;;
14431 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14432esac
14433
14434
14435
14436
14437 ac_ext=c
14438ac_cpp='$CPP $CPPFLAGS'
14439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441ac_compiler_gnu=$ac_cv_c_compiler_gnu
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14444$as_echo_n "checking for ARM unwinder... " >&6; }
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h. */
14447#include <unwind.h>
14448int
14449main ()
14450{
14451
14452 #if __ARM_EABI_UNWINDER__
14453 #error Yes, it is.
14454 #endif
14455
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460if ac_fn_c_try_compile "$LINENO"; then :
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462$as_echo "no" >&6; }
14463 DCFG_ARM_EABI_UNWINDER=false
14464else
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14466$as_echo "yes" >&6; }
14467 DCFG_ARM_EABI_UNWINDER=true
14468fi
14469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470
14471 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14472 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14473 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14474else
14475 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14476 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14477fi
14478
14479 ac_ext=c
14480ac_cpp='$CPP $CPPFLAGS'
14481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14483ac_compiler_gnu=$ac_cv_c_compiler_gnu
14484
14485
14486
6eae7549
IB
14487
14488
b4c522fa
IB
14489 ac_ext=c
14490ac_cpp='$CPP $CPPFLAGS'
14491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14496$as_echo_n "checking for minfo section bracketing... " >&6; }
6eae7549
IB
14497 case "$druntime_cv_target_os" in
14498 darwin*)
14499 section="__DATA,__minfodata"
14500 start="section\$start\$__DATA\$__minfodata"
14501 stop="section\$end\$__DATA\$__minfodata"
14502 ;;
14503 *)
14504 section="minfo"
14505 start="__start_minfo"
14506 stop="__stop_minfo"
14507 ;;
14508 esac
b4c522fa
IB
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510/* end confdefs.h. */
14511
6eae7549
IB
14512 void* module_info_ptr __attribute__((section ("$section")));
14513 extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
14514 extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
b4c522fa
IB
14515
14516 int main()
14517 {
14518 // Never run, just to prevent compiler from optimizing access
6eae7549 14519 return (int)(&stop_minfo - &start_minfo);
b4c522fa
IB
14520 }
14521
14522_ACEOF
14523if ac_fn_c_try_link "$LINENO"; then :
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14525$as_echo "yes" >&6; }
14526 DCFG_MINFO_BRACKETING=true
14527else
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529$as_echo "no" >&6; }
14530 DCFG_MINFO_BRACKETING=false
14531fi
14532rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534
0b6e3127
RO
14535 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14536 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14537 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14538else
14539 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14540 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14541fi
14542
b4c522fa
IB
14543 ac_ext=c
14544ac_cpp='$CPP $CPPFLAGS'
14545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14547ac_compiler_gnu=$ac_cv_c_compiler_gnu
14548
14549
14550
235d1c46
RO
14551 ac_ext=c
14552ac_cpp='$CPP $CPPFLAGS'
14553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14555ac_compiler_gnu=$ac_cv_c_compiler_gnu
14556
14557 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>
14558"
14559if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14560 DCFG_DLPI_TLS_MODID=true
14561else
14562 DCFG_DLPI_TLS_MODID=false
14563fi
14564
14565
14566 ac_ext=c
14567ac_cpp='$CPP $CPPFLAGS'
14568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14570ac_compiler_gnu=$ac_cv_c_compiler_gnu
14571
14572
14573
ba838aa6
RO
14574 case $target in
14575 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14576 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14577 # relocs. Work around by disabling TLS transitions. Not necessary
14578 # on 32-bit x86, but cannot be distinguished reliably in specs.
14579 druntime_ld_prog=`$CC -print-prog-name=ld`
bca0a321
RO
14580 druntime_ld_gld=no
14581 druntime_ld_relax_transtls=no
ba838aa6
RO
14582 if test -n "$druntime_ld_prog" \
14583 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
bca0a321 14584 druntime_ld_gld=yes
ba838aa6 14585 else
bca0a321
RO
14586 echo 'int main (void) { return 0; }' > conftest.c
14587 save_LDFLAGS="$LDFLAGS"
14588 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14589 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14590 druntime_ld_relax_transtls=yes
14591 fi
14592 LDFLAGS="$save_LDFLAGS"
14593 rm -f conftest.c conftest
14594 fi
14595 if test "$druntime_ld_relax_transtls" = "yes"; then
ba838aa6
RO
14596 OS_LINK_SPEC='-z relax=transtls'
14597 fi
14598 ;;
14599 esac
14600
14601
14602
36d7f151
JP
14603 ac_ext=c
14604ac_cpp='$CPP $CPPFLAGS'
14605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14607ac_compiler_gnu=$ac_cv_c_compiler_gnu
14608
14609 DCFG_HAVE_QSORT_R=false
14610 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14611if test "x$ac_cv_func_qsort_r" = xyes; then :
14612 DCFG_HAVE_QSORT_R=true
14613fi
14614
14615
14616 ac_ext=c
14617ac_cpp='$CPP $CPPFLAGS'
14618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14620ac_compiler_gnu=$ac_cv_c_compiler_gnu
14621
14622
14623
b4c522fa
IB
14624
14625
14626 gdc_save_DFLAGS=$GDCFLAGS
02dbf5d1 14627 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
b4c522fa
IB
14628
14629 ac_ext=d
14630ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14631ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14632ac_compiler_gnu=yes
14633
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14635$as_echo_n "checking for library containing malloc... " >&6; }
22e05272 14636if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14637 $as_echo_n "(cached) " >&6
14638else
14639 ac_func_search_save_LIBS=$LIBS
14640cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14641module object;
b4c522fa
IB
14642 extern(C) int malloc();
14643
14644extern(C) int main() {
14645 malloc(); return 0;
14646}
14647_ACEOF
14648for ac_lib in '' c; do
14649 if test -z "$ac_lib"; then
14650 ac_res="none required"
14651 else
14652 ac_res=-l$ac_lib
14653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14654 fi
14655 if ac_fn_d_try_link "$LINENO"; then :
14656 ac_cv_search_malloc=$ac_res
14657fi
14658rm -f core conftest.err conftest.$ac_objext \
14659 conftest$ac_exeext
22e05272 14660 if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14661 break
14662fi
14663done
22e05272 14664if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14665
14666else
14667 ac_cv_search_malloc=no
14668fi
14669rm conftest.$ac_ext
14670LIBS=$ac_func_search_save_LIBS
14671fi
14672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14673$as_echo "$ac_cv_search_malloc" >&6; }
14674ac_res=$ac_cv_search_malloc
14675if test "$ac_res" != no; then :
14676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14677
14678fi
14679
6e286c8d 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
b4c522fa 14681$as_echo_n "checking for library containing pthread_create... " >&6; }
22e05272 14682if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14683 $as_echo_n "(cached) " >&6
14684else
14685 ac_func_search_save_LIBS=$LIBS
14686cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14687module object;
b4c522fa
IB
14688 extern(C) int pthread_create();
14689
14690extern(C) int main() {
14691 pthread_create(); return 0;
14692}
14693_ACEOF
14694for ac_lib in '' pthread; do
14695 if test -z "$ac_lib"; then
14696 ac_res="none required"
14697 else
14698 ac_res=-l$ac_lib
14699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14700 fi
14701 if ac_fn_d_try_link "$LINENO"; then :
14702 ac_cv_search_pthread_create=$ac_res
14703fi
14704rm -f core conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext
22e05272 14706 if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14707 break
14708fi
14709done
22e05272 14710if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14711
14712else
14713 ac_cv_search_pthread_create=no
14714fi
14715rm conftest.$ac_ext
14716LIBS=$ac_func_search_save_LIBS
14717fi
14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14719$as_echo "$ac_cv_search_pthread_create" >&6; }
14720ac_res=$ac_cv_search_pthread_create
14721if test "$ac_res" != no; then :
14722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14723
b4c522fa
IB
14724fi
14725
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14727$as_echo_n "checking for library containing cosf... " >&6; }
22e05272 14728if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14729 $as_echo_n "(cached) " >&6
14730else
14731 ac_func_search_save_LIBS=$LIBS
14732cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14733module object;
b4c522fa
IB
14734 extern(C) int cosf();
14735
14736extern(C) int main() {
14737 cosf(); return 0;
14738}
14739_ACEOF
14740for ac_lib in '' m; do
14741 if test -z "$ac_lib"; then
14742 ac_res="none required"
14743 else
14744 ac_res=-l$ac_lib
14745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14746 fi
14747 if ac_fn_d_try_link "$LINENO"; then :
14748 ac_cv_search_cosf=$ac_res
14749fi
14750rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext
22e05272 14752 if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14753 break
14754fi
14755done
22e05272 14756if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14757
14758else
14759 ac_cv_search_cosf=no
14760fi
14761rm conftest.$ac_ext
14762LIBS=$ac_func_search_save_LIBS
14763fi
14764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14765$as_echo "$ac_cv_search_cosf" >&6; }
14766ac_res=$ac_cv_search_cosf
14767if test "$ac_res" != no; then :
14768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14769
14770fi
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14773$as_echo_n "checking for library containing clock_gettime... " >&6; }
22e05272 14774if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14775 $as_echo_n "(cached) " >&6
14776else
14777 ac_func_search_save_LIBS=$LIBS
14778cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14779module object;
b4c522fa
IB
14780 extern(C) int clock_gettime();
14781
14782extern(C) int main() {
14783 clock_gettime(); return 0;
14784}
14785_ACEOF
14786for ac_lib in '' rt; do
14787 if test -z "$ac_lib"; then
14788 ac_res="none required"
14789 else
14790 ac_res=-l$ac_lib
14791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14792 fi
14793 if ac_fn_d_try_link "$LINENO"; then :
14794 ac_cv_search_clock_gettime=$ac_res
14795fi
14796rm -f core conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext
22e05272 14798 if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14799 break
14800fi
14801done
22e05272 14802if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14803
14804else
14805 ac_cv_search_clock_gettime=no
14806fi
14807rm conftest.$ac_ext
14808LIBS=$ac_func_search_save_LIBS
14809fi
14810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14811$as_echo "$ac_cv_search_clock_gettime" >&6; }
14812ac_res=$ac_cv_search_clock_gettime
14813if test "$ac_res" != no; then :
14814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14815
14816fi
14817
14818
14819 # This checks to see if the host supports the compiler-generated builtins
14820 # for atomic operations for various integral sizes. Note, this is intended
14821 # to be an all-or-nothing switch, so all the atomic operations that are
14822 # used should be checked.
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14824$as_echo_n "checking for atomic builtins for byte... " >&6; }
22e05272 14825 if ${druntime_cv_atomic_byte+:} false; then :
b4c522fa
IB
14826 $as_echo_n "(cached) " >&6
14827else
14828
14829 cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14830module object;
b4c522fa
IB
14831import gcc.builtins;
14832
14833extern(C) int main() {
14834
14835 shared(byte) c1;
14836 byte c2, c3;
14837 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14838 __atomic_load_1(&c1, 5);
14839 __atomic_store_1(&c1, c2, 5);
14840 return 0;
14841
14842}
14843_ACEOF
14844if ac_fn_d_try_link "$LINENO"; then :
14845 druntime_cv_atomic_byte=yes
14846else
14847 druntime_cv_atomic_byte=no
14848fi
14849rm -f core conftest.err conftest.$ac_objext \
14850 conftest$ac_exeext conftest.$ac_ext
14851
14852fi
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14855$as_echo "$druntime_cv_atomic_byte" >&6; }
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14858$as_echo_n "checking for atomic builtins for short... " >&6; }
22e05272 14859 if ${druntime_cv_atomic_short+:} false; then :
b4c522fa
IB
14860 $as_echo_n "(cached) " >&6
14861else
14862
14863 cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14864module object;
b4c522fa
IB
14865import gcc.builtins;
14866
14867extern(C) int main() {
14868
14869 shared(short) c1;
14870 short c2, c3;
14871 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14872 __atomic_load_2(&c1, 5);
14873 __atomic_store_2(&c1, c2, 5);
14874 return 0;
14875
14876}
14877_ACEOF
14878if ac_fn_d_try_link "$LINENO"; then :
14879 druntime_cv_atomic_short=yes
14880else
14881 druntime_cv_atomic_short=no
14882fi
14883rm -f core conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885
14886fi
14887
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14889$as_echo "$druntime_cv_atomic_short" >&6; }
14890
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14892$as_echo_n "checking for atomic builtins for int... " >&6; }
22e05272 14893 if ${druntime_cv_atomic_int+:} false; then :
b4c522fa
IB
14894 $as_echo_n "(cached) " >&6
14895else
14896
14897 cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14898module object;
b4c522fa
IB
14899import gcc.builtins;
14900
14901extern(C) int main() {
14902
14903 shared(int) c1;
14904 int c2, c3;
14905 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14906 __atomic_load_4(&c1, 5);
14907 __atomic_store_4(&c1, c2, 5);
14908 return 0;
14909
14910}
14911_ACEOF
14912if ac_fn_d_try_link "$LINENO"; then :
14913 druntime_cv_atomic_int=yes
14914else
14915 druntime_cv_atomic_int=no
14916fi
14917rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919
14920fi
14921
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14923$as_echo "$druntime_cv_atomic_int" >&6; }
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14926$as_echo_n "checking for atomic builtins for long... " >&6; }
22e05272 14927 if ${druntime_cv_atomic_long+:} false; then :
b4c522fa
IB
14928 $as_echo_n "(cached) " >&6
14929else
14930
14931 cat > conftest.$ac_ext <<_ACEOF
02dbf5d1 14932module object;
b4c522fa
IB
14933import gcc.builtins;
14934
14935extern(C) int main() {
14936
14937 shared(long) c1;
14938 long c2, c3;
14939 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14940 __atomic_load_8(&c1, 5);
14941 __atomic_store_8(&c1, c2, 5);
14942 return 0;
14943
14944}
14945_ACEOF
14946if ac_fn_d_try_link "$LINENO"; then :
14947 druntime_cv_atomic_long=yes
14948else
14949 druntime_cv_atomic_long=no
14950fi
14951rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953
14954fi
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14957$as_echo "$druntime_cv_atomic_long" >&6; }
14958
14959 # Have atomic builtin support if all but the long test above passes.
14960 DCFG_HAVE_ATOMIC_BUILTINS=false
14961 if test "$druntime_cv_atomic_byte" = yes \
14962 && test "$druntime_cv_atomic_short" = yes \
14963 && test "$druntime_cv_atomic_int" = yes; then \
14964 DCFG_HAVE_ATOMIC_BUILTINS=true
14965 fi
14966
14967 # Have 64-bit atomic support if the long test above passes.
14968 DCFG_HAVE_64BIT_ATOMICS=false
14969 if test "$druntime_cv_atomic_long" = yes; then
14970 DCFG_HAVE_64BIT_ATOMICS=true
14971 fi
14972
14973
14974
14975
14976 ac_ext=c
14977ac_cpp='$CPP $CPPFLAGS'
14978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980ac_compiler_gnu=$ac_cv_c_compiler_gnu
14981
14982
14983 GDCFLAGS=$gdc_save_DFLAGS
14984
14985
14986
14987
14988# Check whether --with-libatomic was given.
14989if test "${with_libatomic+set}" = set; then :
14990 withval=$with_libatomic;
14991fi
14992
14993
14994 DCFG_HAVE_LIBATOMIC=false
14995 LIBATOMIC=
d86e6085 14996 if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
b4c522fa
IB
14997
14998 DCFG_HAVE_LIBATOMIC=true
14999 LIBATOMIC=../../libatomic/libatomic_convenience.la
15000
15001else
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
15004$as_echo_n "checking for libatomic... " >&6; }
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15006$as_echo "disabled" >&6; }
15007
15008fi
15009
15010
15011
15012
15013
15014 ac_ext=c
15015ac_cpp='$CPP $CPPFLAGS'
15016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019
15020 BACKTRACE_SUPPORTED=false
15021 BACKTRACE_USES_MALLOC=false
15022 BACKTRACE_SUPPORTS_THREADS=false
15023 LIBBACKTRACE=""
15024
15025
15026# Check whether --with-libbacktrace was given.
15027if test "${with_libbacktrace+set}" = set; then :
15028 withval=$with_libbacktrace;
15029fi
15030
15031
d86e6085 15032 if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
b4c522fa
IB
15033
15034 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
15035
15036 gdc_save_CPPFLAGS=$CPPFLAGS
5d71d6f2 15037 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
b4c522fa
IB
15038
15039 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
22e05272 15040if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
b4c522fa
IB
15041 have_libbacktrace_h=true
15042else
15043 have_libbacktrace_h=false
15044fi
15045
15046
15047
15048 if $have_libbacktrace_h; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
15050$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052/* end confdefs.h. */
15053
15054 #include <backtrace-supported.h>
15055 #if BACKTRACE_SUPPORTED
15056 FOUND_LIBBACKTRACE_RESULT_GDC
15057 #endif
15058
15059_ACEOF
15060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15062 BACKTRACE_SUPPORTED=true
15063else
15064 BACKTRACE_SUPPORTED=false
15065fi
15066rm -f conftest*
15067
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
15069$as_echo "$BACKTRACE_SUPPORTED" >&6; }
15070
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
15072$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074/* end confdefs.h. */
15075
15076 #include <backtrace-supported.h>
15077 #if BACKTRACE_USES_MALLOC
15078 FOUND_LIBBACKTRACE_RESULT_GDC
15079 #endif
15080
15081_ACEOF
15082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15083 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15084 BACKTRACE_USES_MALLOC=true
15085else
15086 BACKTRACE_USES_MALLOC=false
15087fi
15088rm -f conftest*
15089
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
15091$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
15092
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
15094$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h. */
15097
15098 #include <backtrace-supported.h>
15099 #if BACKTRACE_SUPPORTS_THREADS
15100 FOUND_LIBBACKTRACE_RESULT_GDC
15101 #endif
15102
15103_ACEOF
15104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15105 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15106 BACKTRACE_SUPPORTS_THREADS=true
15107else
15108 BACKTRACE_SUPPORTS_THREADS=false
15109fi
15110rm -f conftest*
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
15113$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15114 fi
15115 CPPFLAGS=$gdc_save_CPPFLAGS
15116
15117else
15118
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15120$as_echo_n "checking for libbacktrace... " >&6; }
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15122$as_echo "disabled" >&6; }
15123
15124fi
15125
15126
15127
15128
15129
15130 ac_ext=c
15131ac_cpp='$CPP $CPPFLAGS'
15132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135
15136
15137
15138 # Libtool has already checked this, so re-use the inferred dlopen lib.
15139 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15140
15141 LIBS="$LIBS $lt_cv_dlopen_libs"
15142
15143fi
15144
15145
5e7f8c55
IB
15146 druntime_check_both=no
15147 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1d679134 15148if test "x$ac_cv_func_connect" = xyes; then :
1d679134 15149
5e7f8c55
IB
15150else
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15152$as_echo_n "checking for connect in -lsocket... " >&6; }
15153if ${ac_cv_lib_socket_connect+:} false; then :
1d679134
RO
15154 $as_echo_n "(cached) " >&6
15155else
15156 ac_check_lib_save_LIBS=$LIBS
15157LIBS="-lsocket $LIBS"
15158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h. */
15160
5e7f8c55
IB
15161/* Override any GCC internal prototype to avoid an error.
15162 Use char because int might match the return type of a GCC
15163 builtin and then its argument prototype would still apply. */
15164#ifdef __cplusplus
15165extern "C"
15166#endif
15167char connect ();
1d679134
RO
15168int
15169main ()
15170{
5e7f8c55 15171return connect ();
1d679134
RO
15172 ;
15173 return 0;
15174}
15175_ACEOF
15176if ac_fn_c_try_link "$LINENO"; then :
5e7f8c55 15177 ac_cv_lib_socket_connect=yes
1d679134 15178else
5e7f8c55 15179 ac_cv_lib_socket_connect=no
1d679134
RO
15180fi
15181rm -f core conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
15183LIBS=$ac_check_lib_save_LIBS
15184fi
5e7f8c55
IB
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15186$as_echo "$ac_cv_lib_socket_connect" >&6; }
15187if test "x$ac_cv_lib_socket_connect" = xyes; then :
15188 LIBS="$LIBS -lsocket"
1d679134
RO
15189else
15190 druntime_check_both=yes
15191fi
15192
5e7f8c55
IB
15193fi
15194
15195 if test "$druntime_check_both" = "yes"; then
15196 druntime_old_libs=$LIBS
15197 LIBS="$LIBS -lsocket -lnsl"
15198 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
1d679134 15199if test "x$ac_cv_func_accept" = xyes; then :
5e7f8c55
IB
15200
15201else
15202 LIBS=$druntime_old_libs
1d679134
RO
15203fi
15204
5e7f8c55
IB
15205 fi
15206 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1d679134
RO
15207if test "x$ac_cv_func_gethostbyname" = xyes; then :
15208
15209else
5e7f8c55
IB
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15211$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15212if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1d679134
RO
15213 $as_echo_n "(cached) " >&6
15214else
15215 ac_check_lib_save_LIBS=$LIBS
15216LIBS="-lnsl $LIBS"
15217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h. */
15219
5e7f8c55
IB
15220/* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15223#ifdef __cplusplus
15224extern "C"
15225#endif
15226char gethostbyname ();
1d679134
RO
15227int
15228main ()
15229{
5e7f8c55 15230return gethostbyname ();
1d679134
RO
15231 ;
15232 return 0;
15233}
15234_ACEOF
15235if ac_fn_c_try_link "$LINENO"; then :
5e7f8c55 15236 ac_cv_lib_nsl_gethostbyname=yes
1d679134 15237else
5e7f8c55 15238 ac_cv_lib_nsl_gethostbyname=no
1d679134
RO
15239fi
15240rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242LIBS=$ac_check_lib_save_LIBS
15243fi
5e7f8c55
IB
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15245$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15246if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15247 LIBS="$LIBS -lnsl"
1d679134
RO
15248fi
15249
15250fi
15251
15252
1d679134 15253
ac1a0a38
IB
15254 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15255 # "yes" for targets that have 'version = AsmExternal'.
15256 druntime_fiber_asm_external=no
15257 case "$target_cpu" in
15258 aarch64* | \
15259 arm* | \
15260 i[34567]86|x86_64 | \
15261 powerpc)
15262 druntime_fiber_asm_external=yes
15263 ;;
15264 esac
15265 if test "$druntime_fiber_asm_external" = no; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15267$as_echo_n "checking for library containing swapcontext... " >&6; }
15268if ${ac_cv_search_swapcontext+:} false; then :
15269 $as_echo_n "(cached) " >&6
15270else
15271 ac_func_search_save_LIBS=$LIBS
15272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273/* end confdefs.h. */
15274
15275/* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15278#ifdef __cplusplus
15279extern "C"
15280#endif
15281char swapcontext ();
15282int
15283main ()
15284{
15285return swapcontext ();
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290for ac_lib in '' c ucontext; do
15291 if test -z "$ac_lib"; then
15292 ac_res="none required"
15293 else
15294 ac_res=-l$ac_lib
15295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15296 fi
15297 if ac_fn_c_try_link "$LINENO"; then :
15298 ac_cv_search_swapcontext=$ac_res
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext
15302 if ${ac_cv_search_swapcontext+:} false; then :
15303 break
15304fi
15305done
15306if ${ac_cv_search_swapcontext+:} false; then :
15307
15308else
15309 ac_cv_search_swapcontext=no
15310fi
15311rm conftest.$ac_ext
15312LIBS=$ac_func_search_save_LIBS
15313fi
15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15315$as_echo "$ac_cv_search_swapcontext" >&6; }
15316ac_res=$ac_cv_search_swapcontext
15317if test "$ac_res" != no; then :
15318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15319
15320else
15321 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15322fi
15323
15324 fi
15325
15326
bb50312e
IB
15327 ac_ext=c
15328ac_cpp='$CPP $CPPFLAGS'
15329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15331ac_compiler_gnu=$ac_cv_c_compiler_gnu
15332
15333 LIBZ=""
15334
b4c522fa
IB
15335
15336# Check whether --with-target-system-zlib was given.
15337if test "${with_target_system_zlib+set}" = set; then :
15338 withval=$with_target_system_zlib;
bb50312e
IB
15339else
15340 with_target_system_zlib=no
b4c522fa
IB
15341fi
15342
15343
bb50312e
IB
15344 case "$with_target_system_zlib" in
15345 yes|no|auto) ;;
15346 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15347 esac
b4c522fa 15348
bb50312e
IB
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15350$as_echo_n "checking for system zlib... " >&6; }
15351 save_LIBS=$LIBS
15352 LIBS="$LIBS -lz"
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 15354/* end confdefs.h. */
bb50312e 15355#include <zlib.h>
b4c522fa
IB
15356int
15357main ()
15358{
bb50312e 15359gzopen("none", "rb")
b4c522fa
IB
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364if ac_fn_c_try_link "$LINENO"; then :
b4c522fa 15365
bb50312e
IB
15366 if test "$cross_compiling" = yes; then :
15367 system_zlib_found=no
b4c522fa
IB
15368
15369else
bb50312e
IB
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371/* end confdefs.h. */
b4c522fa 15372
bb50312e
IB
15373 #include <zlib.h>
15374 int main() {
15375 gzFile file = gzopen("none", "rb");
15376 return 0;
15377 }
b4c522fa 15378
bb50312e
IB
15379_ACEOF
15380if ac_fn_c_try_run "$LINENO"; then :
15381 system_zlib_found=yes
15382else
15383 system_zlib_found=no
15384fi
15385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15386 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa
IB
15387fi
15388
15389
15390else
bb50312e
IB
15391 system_zlib_found=no
15392fi
15393rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 LIBS=$save_LIBS
15396
15397 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15399$as_echo "found" >&6; }
15400 LIBS="$LIBS -lz"
15401 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15402 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15403 else
b4c522fa
IB
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15405$as_echo "just compiled" >&6; }
bb50312e
IB
15406 LIBZ=../../zlib/libz_convenience.la
15407 fi
b4c522fa 15408
b4c522fa 15409
bb50312e
IB
15410 ac_ext=c
15411ac_cpp='$CPP $CPPFLAGS'
15412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15414ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa
IB
15415
15416
15417
15418
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15421$as_echo_n "checking D GCC version... " >&6; }
15422 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15424$as_echo "$gcc_version" >&6; }
15425
15426
15427
15428# Check whether --with-cross-host was given.
15429if test "${with_cross_host+set}" = set; then :
15430 withval=$with_cross_host;
15431fi
15432
15433
ac67752d
IB
15434 libphobos_toolexecdir=no
15435 libphobos_toolexeclibdir=no
b4c522fa 15436
ac67752d
IB
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15438$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15439 # Check whether --enable-version-specific-runtime-libs was given.
15440if test "${enable_version_specific_runtime_libs+set}" = set; then :
15441 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15442 yes) version_specific_libs=yes ;;
15443 no) version_specific_libs=no ;;
15444 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15445 esac
15446else
b4c522fa 15447 version_specific_libs=no
ac67752d
IB
15448fi
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15451$as_echo "$version_specific_libs" >&6; }
b4c522fa 15452
e8e66971
MR
15453
15454# Check whether --with-toolexeclibdir was given.
15455if test "${with_toolexeclibdir+set}" = set; then :
15456 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15457 /)
15458 ;;
15459 */)
15460 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15461 ;;
15462esac
15463else
15464 with_toolexeclibdir=no
15465fi
15466
15467
15468
b4c522fa
IB
15469 # Version-specific runtime libs processing.
15470 if test $version_specific_libs = yes; then
ac67752d
IB
15471 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15472 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
b4c522fa 15473 else
ac67752d
IB
15474 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15475 # Install a library built with a cross compiler in tooldir, not libdir.
15476 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15477 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
e8e66971
MR
15478 case ${with_toolexeclibdir} in
15479 no)
15480 libphobos_toolexeclibdir='${toolexecdir}/lib'
15481 ;;
15482 *)
15483 libphobos_toolexeclibdir=${with_toolexeclibdir}
15484 ;;
15485 esac
ac67752d
IB
15486 else
15487 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15488 libphobos_toolexeclibdir='${libdir}'
15489 fi
15490 multi_os_directory=`$GDC -print-multi-os-directory`
15491 case $multi_os_directory in
15492 .) ;; # Avoid trailing /.
15493 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15494 esac
b4c522fa
IB
15495 fi
15496
15497
15498
15499 # Default case for install directory for D sources files.
15500 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15501
15502
15503
bca0a321
RO
15504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15505$as_echo_n "checking for --enable-libphobos... " >&6; }
15506# Check whether --enable-libphobos was given.
15507if test "${enable_libphobos+set}" = set; then :
15508 enableval=$enable_libphobos;
15509fi
15510
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15512$as_echo "$enable_libphobos" >&6; }
15513
261bd78d
IB
15514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15515$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15516
371d1011
IB
15517# Check whether --with-libphobos-druntime-only was given.
15518if test "${with_libphobos_druntime_only+set}" = set; then :
15519 withval=$with_libphobos_druntime_only;
261bd78d 15520else
371d1011 15521 with_libphobos_druntime_only=auto
261bd78d
IB
15522fi
15523
371d1011
IB
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15525$as_echo "$with_libphobos_druntime_only" >&6; }
261bd78d 15526
371d1011 15527case "$with_libphobos_druntime_only" in
261bd78d
IB
15528 yes|no|auto) ;;
15529 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15530esac
15531
bca0a321
RO
15532# See if supported.
15533unset LIBPHOBOS_SUPPORTED
261bd78d 15534unset LIBDRUNTIME_ONLY
bca0a321
RO
15535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15536$as_echo_n "checking for host support for libphobos... " >&6; }
15537. ${srcdir}/configure.tgt
15538case ${host} in
15539 x86_64-*-solaris2.* | i?86-*-solaris2.*)
bca0a321
RO
15540 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15541 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15542 LIBPHOBOS_SUPPORTED=no
15543 fi
15544 ;;
15545esac
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15547$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15548
15549# Decide if it's usable.
15550case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15551*:no) use_libphobos=no ;;
15552*:yes) use_libphobos=yes ;;
15553yes:*) use_libphobos=yes ;;
15554*:*) use_libphobos=no ;;
15555esac
15556 if test x$use_libphobos = xyes; then
15557 ENABLE_LIBPHOBOS_TRUE=
15558 ENABLE_LIBPHOBOS_FALSE='#'
15559else
15560 ENABLE_LIBPHOBOS_TRUE='#'
15561 ENABLE_LIBPHOBOS_FALSE=
15562fi
15563
15564
261bd78d 15565# Decide if only libdruntime should be built.
371d1011 15566case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
261bd78d
IB
15567*:no) only_libdruntime=no ;;
15568*:yes) only_libdruntime=yes ;;
15569yes:*) only_libdruntime=yes ;;
15570*:*) only_libdruntime=no ;;
15571esac
15572 if test x$only_libdruntime = xyes; then
15573 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15574 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15575else
15576 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15577 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15578fi
15579
15580
c0dbfbd7
IB
15581# Enable expensive internal checks
15582# Check whether --enable-libphobos-checking was given.
15583if test "${enable_libphobos_checking+set}" = set; then :
15584 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15585else
15586 ac_checking_flags=release
15587fi
15588
15589IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15590for check in release $ac_checking_flags
15591do
15592 case $check in
15593 # These set all the flags to specific states
e9251fea
IB
15594 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;
15595 VALGRIND_FLAG= ;;
15596 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;
15597 VALGRIND_FLAG= ;;
c0dbfbd7 15598 # These enable particular checks
e9251fea
IB
15599 assert) ASSERT_FLAG="-fassert" ;;
15600 valgrind) VALGRIND_FLAG="-fdebug=VALGRIND" ;;
c0dbfbd7
IB
15601 # Accept
15602 *) ;;
15603 esac
15604done
15605IFS="$ac_save_IFS"
e9251fea
IB
15606CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG $VALGRIND_FLAG"
15607
c0dbfbd7
IB
15608
15609
0b6e3127
RO
15610# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15611if test "$DCFG_MINFO_BRACKETING" = "false"; then
15612 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15613else
15614 DRTSTUFF_SPEC=/dev/null
15615fi
15616
15617
b4c522fa
IB
15618# Add dependencies for libgphobos.spec file
15619SPEC_PHOBOS_DEPS="$LIBS"
15620
15621
15622# Libdruntime / phobos soname version
b6df1132 15623libtool_VERSION=4:0:0
b4c522fa
IB
15624
15625
15626# Set default flags (after DRUNTIME_WERROR!)
15627if test -z "$GDCFLAGS"; then
c0dbfbd7 15628 GDCFLAGS="-g -O2"
b4c522fa
IB
15629fi
15630
15631
38c3017f
IB
15632WARN_DFLAGS="-Wall $WERROR_FLAG"
15633
15634
b4c522fa
IB
15635# Sanity check for the cross-compilation case:
15636ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22e05272 15637if test "x$ac_cv_header_stdio_h" = xyes; then :
b4c522fa
IB
15638 :
15639else
22e05272 15640 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
b4c522fa
IB
15641fi
15642
15643
15644
e9251fea
IB
15645
15646 for ac_header in stddef.h stdlib.h
15647do :
15648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15649ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15650if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15651 cat >>confdefs.h <<_ACEOF
15652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15653_ACEOF
15654
15655fi
15656
15657done
15658
15659
15660 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
15661if test "x$ac_cv_header_valgrind_h" = xyes; then :
15662 have_valgrind_h=yes
15663else
15664 have_valgrind_h=no
15665fi
15666
15667
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
15670$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h. */
15673#include <valgrind/memcheck.h>
15674 #ifndef VALGRIND_DISCARD
15675 #error VALGRIND_DISCARD not defined
15676 #endif
15677_ACEOF
15678if ac_fn_c_try_cpp "$LINENO"; then :
15679 have_valgrind_memcheck_h=yes
15680else
15681 have_valgrind_memcheck_h=no
15682fi
15683rm -f conftest.err conftest.i conftest.$ac_ext
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind_memcheck_h" >&5
15685$as_echo "$have_valgrind_memcheck_h" >&6; }
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
15687$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689/* end confdefs.h. */
15690#include <memcheck.h>
15691 #ifndef VALGRIND_DISCARD
15692 #error VALGRIND_DISCARD not defined
15693 #endif
15694_ACEOF
15695if ac_fn_c_try_cpp "$LINENO"; then :
15696 have_memcheck_h=yes
15697else
15698 have_memcheck_h=no
15699fi
15700rm -f conftest.err conftest.i conftest.$ac_ext
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_memcheck_h" >&5
15702$as_echo "$have_memcheck_h" >&6; }
15703
15704 if test x$VALGRIND_FLAG != x ; then
15705
15706$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
15707
15708 fi
15709 if test $have_valgrind_memcheck_h = yes; then
15710
15711$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
15712
15713 fi
15714 if test $have_memcheck_h = yes; then
15715
15716$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
15717
15718 fi
15719
15720 if test x$VALGRIND_FLAG != x; then
15721 if (test $have_valgrind_h = no \
15722 && test $have_memcheck_h = no \
15723 && test $have_valgrind_memcheck_h = no); then
15724 as_fn_error $? "*** valgrind checking requested, but
15725*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
15726 fi
15727 fi
15728
15729
ac67752d 15730ac_config_files="$ac_config_files Makefile"
b4c522fa
IB
15731
15732
15733ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15734
15735ac_config_files="$ac_config_files src/libgphobos.spec"
15736
15737ac_config_files="$ac_config_files testsuite/testsuite_flags"
15738
15739
ac67752d
IB
15740# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15741# that multilib installs will end up installed in the correct place.
15742# The testsuite needs it for multilib-aware ABI baseline files.
15743# To work around this not being passed down from config-ml.in ->
15744# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15745# append it here. Only modify Makefiles that have just been created.
15746#
15747# Also, get rid of this simulated-VPATH thing that automake does.
15748ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
b4c522fa
IB
15749
15750
15751cat >confcache <<\_ACEOF
15752# This file is a shell script that caches the results of configure
15753# tests run on this system so they can be shared between configure
15754# scripts and configure runs, see configure's option --config-cache.
15755# It is not useful on other systems. If it contains results you don't
15756# want to keep, you may remove or edit it.
15757#
15758# config.status only pays attention to the cache file if you give it
15759# the --recheck option to rerun configure.
15760#
15761# `ac_cv_env_foo' variables (set or unset) will be overridden when
15762# loading this file, other *unset* `ac_cv_foo' will be assigned the
15763# following values.
15764
15765_ACEOF
15766
15767# The following way of writing the cache mishandles newlines in values,
15768# but we know of no workaround that is simple, portable, and efficient.
15769# So, we kill variables containing newlines.
15770# Ultrix sh set writes to stderr and can't be redirected directly,
15771# and sets the high bit in the cache file unless we assign to the vars.
15772(
15773 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15774 eval ac_val=\$$ac_var
15775 case $ac_val in #(
15776 *${as_nl}*)
15777 case $ac_var in #(
15778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15779$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15780 esac
15781 case $ac_var in #(
15782 _ | IFS | as_nl) ;; #(
15783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15784 *) { eval $ac_var=; unset $ac_var;} ;;
15785 esac ;;
15786 esac
15787 done
15788
15789 (set) 2>&1 |
15790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15791 *${as_nl}ac_space=\ *)
15792 # `set' does not quote correctly, so add quotes: double-quote
15793 # substitution turns \\\\ into \\, and sed turns \\ into \.
15794 sed -n \
15795 "s/'/'\\\\''/g;
15796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15797 ;; #(
15798 *)
15799 # `set' quotes correctly as required by POSIX, so do not add quotes.
15800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15801 ;;
15802 esac |
15803 sort
15804) |
15805 sed '
15806 /^ac_cv_env_/b end
15807 t clear
15808 :clear
15809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15810 t end
15811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15812 :end' >>confcache
15813if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15814 if test -w "$cache_file"; then
22e05272 15815 if test "x$cache_file" != "x/dev/null"; then
b4c522fa
IB
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15817$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15818 if test ! -f "$cache_file" || test -h "$cache_file"; then
15819 cat confcache >"$cache_file"
15820 else
15821 case $cache_file in #(
15822 */* | ?:*)
15823 mv -f confcache "$cache_file"$$ &&
15824 mv -f "$cache_file"$$ "$cache_file" ;; #(
15825 *)
15826 mv -f confcache "$cache_file" ;;
15827 esac
15828 fi
15829 fi
b4c522fa
IB
15830 else
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15832$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15833 fi
15834fi
15835rm -f confcache
15836
15837test "x$prefix" = xNONE && prefix=$ac_default_prefix
15838# Let make expand exec_prefix.
15839test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15840
15841DEFS=-DHAVE_CONFIG_H
15842
15843ac_libobjs=
15844ac_ltlibobjs=
22e05272 15845U=
b4c522fa
IB
15846for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15847 # 1. Remove the extension, and $U if already installed.
15848 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15849 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15851 # will be set to the directory where LIBOBJS objects are built.
15852 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15853 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15854done
15855LIBOBJS=$ac_libobjs
15856
15857LTLIBOBJS=$ac_ltlibobjs
15858
15859
22e05272
JM
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15861$as_echo_n "checking that generated files are newer than configure... " >&6; }
15862 if test -n "$am_sleep_pid"; then
15863 # Hide warnings about reused PIDs.
15864 wait $am_sleep_pid 2>/dev/null
15865 fi
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15867$as_echo "done" >&6; }
b4c522fa
IB
15868 if test -n "$EXEEXT"; then
15869 am__EXEEXT_TRUE=
15870 am__EXEEXT_FALSE='#'
15871else
15872 am__EXEEXT_TRUE='#'
15873 am__EXEEXT_FALSE=
15874fi
15875
15876if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15877 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b4c522fa
IB
15878Usually this means the macro was only invoked conditionally." "$LINENO" 5
15879fi
2493e718
IB
15880if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15881 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15882Usually this means the macro was only invoked conditionally." "$LINENO" 5
15883fi
15884if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15885 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15886Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887fi
15888if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15889 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15890Usually this means the macro was only invoked conditionally." "$LINENO" 5
15891fi
15892if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15893 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15894Usually this means the macro was only invoked conditionally." "$LINENO" 5
15895fi
2493e718
IB
15896if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15897 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15898Usually this means the macro was only invoked conditionally." "$LINENO" 5
15899fi
88e508f9
RD
15900if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15901 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15902Usually this means the macro was only invoked conditionally." "$LINENO" 5
15903fi
15904if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15905 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15906Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907fi
b4c522fa 15908if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
22e05272 15909 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
b4c522fa
IB
15910Usually this means the macro was only invoked conditionally." "$LINENO" 5
15911fi
15912if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
22e05272 15913 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
b4c522fa
IB
15914Usually this means the macro was only invoked conditionally." "$LINENO" 5
15915fi
15916if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
22e05272 15917 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
b4c522fa
IB
15918Usually this means the macro was only invoked conditionally." "$LINENO" 5
15919fi
15920if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
22e05272 15921 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
b4c522fa
IB
15922Usually this means the macro was only invoked conditionally." "$LINENO" 5
15923fi
15924if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
22e05272 15925 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
b4c522fa
IB
15926Usually this means the macro was only invoked conditionally." "$LINENO" 5
15927fi
15928if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
22e05272 15929 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
b4c522fa
IB
15930Usually this means the macro was only invoked conditionally." "$LINENO" 5
15931fi
15932if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
22e05272 15933 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
b4c522fa
IB
15934Usually this means the macro was only invoked conditionally." "$LINENO" 5
15935fi
15936if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
22e05272 15937 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
b4c522fa
IB
15938Usually this means the macro was only invoked conditionally." "$LINENO" 5
15939fi
15940if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
22e05272 15941 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
b4c522fa
IB
15942Usually this means the macro was only invoked conditionally." "$LINENO" 5
15943fi
15944if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
22e05272 15945 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
b4c522fa
IB
15946Usually this means the macro was only invoked conditionally." "$LINENO" 5
15947fi
72c136c9
IB
15948if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15949 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15950Usually this means the macro was only invoked conditionally." "$LINENO" 5
15951fi
b4c522fa 15952if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
22e05272 15953 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
b4c522fa
IB
15954Usually this means the macro was only invoked conditionally." "$LINENO" 5
15955fi
0b6e3127
RO
15956if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15957 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15958Usually this means the macro was only invoked conditionally." "$LINENO" 5
15959fi
bca0a321
RO
15960if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15961 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15962Usually this means the macro was only invoked conditionally." "$LINENO" 5
15963fi
261bd78d
IB
15964if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15965 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15966Usually this means the macro was only invoked conditionally." "$LINENO" 5
15967fi
b4c522fa 15968
22e05272 15969: "${CONFIG_STATUS=./config.status}"
b4c522fa
IB
15970ac_write_fail=0
15971ac_clean_files_save=$ac_clean_files
15972ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15973{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15974$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15975as_write_fail=0
15976cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15977#! $SHELL
15978# Generated by $as_me.
15979# Run this file to recreate the current configuration.
15980# Compiler output produced by configure, useful for debugging
15981# configure, is in config.log if it exists.
15982
15983debug=false
15984ac_cs_recheck=false
15985ac_cs_silent=false
15986
15987SHELL=\${CONFIG_SHELL-$SHELL}
15988export SHELL
15989_ASEOF
15990cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15991## -------------------- ##
15992## M4sh Initialization. ##
15993## -------------------- ##
15994
15995# Be more Bourne compatible
15996DUALCASE=1; export DUALCASE # for MKS sh
15997if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15998 emulate sh
15999 NULLCMD=:
16000 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16001 # is contrary to our usage. Disable this feature.
16002 alias -g '${1+"$@"}'='"$@"'
16003 setopt NO_GLOB_SUBST
16004else
16005 case `(set -o) 2>/dev/null` in #(
16006 *posix*) :
16007 set -o posix ;; #(
16008 *) :
16009 ;;
16010esac
16011fi
16012
16013
16014as_nl='
16015'
16016export as_nl
16017# Printing a long string crashes Solaris 7 /usr/bin/printf.
16018as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16019as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16020as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16021# Prefer a ksh shell builtin over an external printf program on Solaris,
16022# but without wasting forks for bash or zsh.
16023if test -z "$BASH_VERSION$ZSH_VERSION" \
16024 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16025 as_echo='print -r --'
16026 as_echo_n='print -rn --'
16027elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16028 as_echo='printf %s\n'
16029 as_echo_n='printf %s'
16030else
16031 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16032 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16033 as_echo_n='/usr/ucb/echo -n'
16034 else
16035 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16036 as_echo_n_body='eval
16037 arg=$1;
16038 case $arg in #(
16039 *"$as_nl"*)
16040 expr "X$arg" : "X\\(.*\\)$as_nl";
16041 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16042 esac;
16043 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16044 '
16045 export as_echo_n_body
16046 as_echo_n='sh -c $as_echo_n_body as_echo'
16047 fi
16048 export as_echo_body
16049 as_echo='sh -c $as_echo_body as_echo'
16050fi
16051
16052# The user is always right.
16053if test "${PATH_SEPARATOR+set}" != set; then
16054 PATH_SEPARATOR=:
16055 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16056 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16057 PATH_SEPARATOR=';'
16058 }
16059fi
16060
16061
16062# IFS
16063# We need space, tab and new line, in precisely that order. Quoting is
16064# there to prevent editors from complaining about space-tab.
16065# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16066# splitting by setting IFS to empty value.)
16067IFS=" "" $as_nl"
16068
16069# Find who we are. Look in the path if we contain no directory separator.
22e05272 16070as_myself=
b4c522fa
IB
16071case $0 in #((
16072 *[\\/]* ) as_myself=$0 ;;
16073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074for as_dir in $PATH
16075do
16076 IFS=$as_save_IFS
16077 test -z "$as_dir" && as_dir=.
16078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16079 done
16080IFS=$as_save_IFS
16081
16082 ;;
16083esac
16084# We did not find ourselves, most probably we were run as `sh COMMAND'
16085# in which case we are not to be found in the path.
16086if test "x$as_myself" = x; then
16087 as_myself=$0
16088fi
16089if test ! -f "$as_myself"; then
16090 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16091 exit 1
16092fi
16093
16094# Unset variables that we do not need and which cause bugs (e.g. in
16095# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16096# suppresses any "Segmentation fault" message there. '((' could
16097# trigger a bug in pdksh 5.2.14.
16098for as_var in BASH_ENV ENV MAIL MAILPATH
16099do eval test x\${$as_var+set} = xset \
16100 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16101done
16102PS1='$ '
16103PS2='> '
16104PS4='+ '
16105
16106# NLS nuisances.
16107LC_ALL=C
16108export LC_ALL
16109LANGUAGE=C
16110export LANGUAGE
16111
16112# CDPATH.
16113(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16114
16115
22e05272
JM
16116# as_fn_error STATUS ERROR [LINENO LOG_FD]
16117# ----------------------------------------
b4c522fa
IB
16118# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16119# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16120# script with STATUS, using 1 if that was 0.
b4c522fa
IB
16121as_fn_error ()
16122{
22e05272
JM
16123 as_status=$1; test $as_status -eq 0 && as_status=1
16124 if test "$4"; then
16125 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16126 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 16127 fi
22e05272 16128 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
16129 as_fn_exit $as_status
16130} # as_fn_error
16131
16132
16133# as_fn_set_status STATUS
16134# -----------------------
16135# Set $? to STATUS, without forking.
16136as_fn_set_status ()
16137{
16138 return $1
16139} # as_fn_set_status
16140
16141# as_fn_exit STATUS
16142# -----------------
16143# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16144as_fn_exit ()
16145{
16146 set +e
16147 as_fn_set_status $1
16148 exit $1
16149} # as_fn_exit
16150
16151# as_fn_unset VAR
16152# ---------------
16153# Portably unset VAR.
16154as_fn_unset ()
16155{
16156 { eval $1=; unset $1;}
16157}
16158as_unset=as_fn_unset
16159# as_fn_append VAR VALUE
16160# ----------------------
16161# Append the text in VALUE to the end of the definition contained in VAR. Take
16162# advantage of any shell optimizations that allow amortized linear growth over
16163# repeated appends, instead of the typical quadratic growth present in naive
16164# implementations.
16165if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16166 eval 'as_fn_append ()
16167 {
16168 eval $1+=\$2
16169 }'
16170else
16171 as_fn_append ()
16172 {
16173 eval $1=\$$1\$2
16174 }
16175fi # as_fn_append
16176
16177# as_fn_arith ARG...
16178# ------------------
16179# Perform arithmetic evaluation on the ARGs, and store the result in the
16180# global $as_val. Take advantage of shells that can avoid forks. The arguments
16181# must be portable across $(()) and expr.
16182if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16183 eval 'as_fn_arith ()
16184 {
16185 as_val=$(( $* ))
16186 }'
16187else
16188 as_fn_arith ()
16189 {
16190 as_val=`expr "$@" || test $? -eq 1`
16191 }
16192fi # as_fn_arith
16193
16194
16195if expr a : '\(a\)' >/dev/null 2>&1 &&
16196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16197 as_expr=expr
16198else
16199 as_expr=false
16200fi
16201
16202if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16203 as_basename=basename
16204else
16205 as_basename=false
16206fi
16207
16208if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16209 as_dirname=dirname
16210else
16211 as_dirname=false
16212fi
16213
16214as_me=`$as_basename -- "$0" ||
16215$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16216 X"$0" : 'X\(//\)$' \| \
16217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16218$as_echo X/"$0" |
16219 sed '/^.*\/\([^/][^/]*\)\/*$/{
16220 s//\1/
16221 q
16222 }
16223 /^X\/\(\/\/\)$/{
16224 s//\1/
16225 q
16226 }
16227 /^X\/\(\/\).*/{
16228 s//\1/
16229 q
16230 }
16231 s/.*/./; q'`
16232
16233# Avoid depending upon Character Ranges.
16234as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16235as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16236as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16237as_cr_digits='0123456789'
16238as_cr_alnum=$as_cr_Letters$as_cr_digits
16239
16240ECHO_C= ECHO_N= ECHO_T=
16241case `echo -n x` in #(((((
16242-n*)
16243 case `echo 'xy\c'` in
16244 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16245 xy) ECHO_C='\c';;
16246 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16247 ECHO_T=' ';;
16248 esac;;
16249*)
16250 ECHO_N='-n';;
16251esac
16252
16253rm -f conf$$ conf$$.exe conf$$.file
16254if test -d conf$$.dir; then
16255 rm -f conf$$.dir/conf$$.file
16256else
16257 rm -f conf$$.dir
16258 mkdir conf$$.dir 2>/dev/null
16259fi
16260if (echo >conf$$.file) 2>/dev/null; then
16261 if ln -s conf$$.file conf$$ 2>/dev/null; then
16262 as_ln_s='ln -s'
16263 # ... but there are two gotchas:
16264 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16265 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16266 # In both cases, we have to default to `cp -pR'.
b4c522fa 16267 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16268 as_ln_s='cp -pR'
b4c522fa
IB
16269 elif ln conf$$.file conf$$ 2>/dev/null; then
16270 as_ln_s=ln
16271 else
22e05272 16272 as_ln_s='cp -pR'
b4c522fa
IB
16273 fi
16274else
22e05272 16275 as_ln_s='cp -pR'
b4c522fa
IB
16276fi
16277rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16278rmdir conf$$.dir 2>/dev/null
16279
16280
16281# as_fn_mkdir_p
16282# -------------
16283# Create "$as_dir" as a directory, including parents if necessary.
16284as_fn_mkdir_p ()
16285{
16286
16287 case $as_dir in #(
16288 -*) as_dir=./$as_dir;;
16289 esac
16290 test -d "$as_dir" || eval $as_mkdir_p || {
16291 as_dirs=
16292 while :; do
16293 case $as_dir in #(
16294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16295 *) as_qdir=$as_dir;;
16296 esac
16297 as_dirs="'$as_qdir' $as_dirs"
16298 as_dir=`$as_dirname -- "$as_dir" ||
16299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16300 X"$as_dir" : 'X\(//\)[^/]' \| \
16301 X"$as_dir" : 'X\(//\)$' \| \
16302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16303$as_echo X"$as_dir" |
16304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16305 s//\1/
16306 q
16307 }
16308 /^X\(\/\/\)[^/].*/{
16309 s//\1/
16310 q
16311 }
16312 /^X\(\/\/\)$/{
16313 s//\1/
16314 q
16315 }
16316 /^X\(\/\).*/{
16317 s//\1/
16318 q
16319 }
16320 s/.*/./; q'`
16321 test -d "$as_dir" && break
16322 done
16323 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16324 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
16325
16326
16327} # as_fn_mkdir_p
16328if mkdir -p . 2>/dev/null; then
16329 as_mkdir_p='mkdir -p "$as_dir"'
16330else
16331 test -d ./-p && rmdir ./-p
16332 as_mkdir_p=false
16333fi
16334
22e05272
JM
16335
16336# as_fn_executable_p FILE
16337# -----------------------
16338# Test if FILE is an executable regular file.
16339as_fn_executable_p ()
16340{
16341 test -f "$1" && test -x "$1"
16342} # as_fn_executable_p
16343as_test_x='test -x'
16344as_executable_p=as_fn_executable_p
b4c522fa
IB
16345
16346# Sed expression to map a string onto a valid CPP name.
16347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16348
16349# Sed expression to map a string onto a valid variable name.
16350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16351
16352
16353exec 6>&1
16354## ----------------------------------- ##
16355## Main body of $CONFIG_STATUS script. ##
16356## ----------------------------------- ##
16357_ASEOF
16358test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16359
16360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16361# Save the log message, to keep $0 and so on meaningful, and to
16362# report actual input values of CONFIG_FILES etc. instead of their
16363# values after options handling.
16364ac_log="
16365This file was extended by package-unused $as_me version-unused, which was
22e05272 16366generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
16367
16368 CONFIG_FILES = $CONFIG_FILES
16369 CONFIG_HEADERS = $CONFIG_HEADERS
16370 CONFIG_LINKS = $CONFIG_LINKS
16371 CONFIG_COMMANDS = $CONFIG_COMMANDS
16372 $ $0 $@
16373
16374on `(hostname || uname -n) 2>/dev/null | sed 1q`
16375"
16376
16377_ACEOF
16378
16379case $ac_config_files in *"
16380"*) set x $ac_config_files; shift; ac_config_files=$*;;
16381esac
16382
16383case $ac_config_headers in *"
16384"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16385esac
16386
16387
16388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389# Files that config.status was made for.
16390config_files="$ac_config_files"
16391config_headers="$ac_config_headers"
16392config_commands="$ac_config_commands"
16393
16394_ACEOF
16395
16396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16397ac_cs_usage="\
16398\`$as_me' instantiates files and other configuration actions
16399from templates according to the current configuration. Unless the files
16400and actions are specified as TAGs, all are instantiated by default.
16401
16402Usage: $0 [OPTION]... [TAG]...
16403
16404 -h, --help print this help, then exit
16405 -V, --version print version number and configuration settings, then exit
22e05272 16406 --config print configuration, then exit
b4c522fa
IB
16407 -q, --quiet, --silent
16408 do not print progress messages
16409 -d, --debug don't remove temporary files
16410 --recheck update $as_me by reconfiguring in the same conditions
16411 --file=FILE[:TEMPLATE]
16412 instantiate the configuration file FILE
16413 --header=FILE[:TEMPLATE]
16414 instantiate the configuration header FILE
16415
16416Configuration files:
16417$config_files
16418
16419Configuration headers:
16420$config_headers
16421
16422Configuration commands:
16423$config_commands
16424
16425Report bugs to the package provider."
16426
16427_ACEOF
16428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16429ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b4c522fa
IB
16430ac_cs_version="\\
16431package-unused config.status version-unused
22e05272
JM
16432configured by $0, generated by GNU Autoconf 2.69,
16433 with options \\"\$ac_cs_config\\"
b4c522fa 16434
0b6e3127 16435Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
16436This config.status script is free software; the Free Software Foundation
16437gives unlimited permission to copy, distribute and modify it."
16438
16439ac_pwd='$ac_pwd'
16440srcdir='$srcdir'
16441INSTALL='$INSTALL'
16442MKDIR_P='$MKDIR_P'
16443AWK='$AWK'
16444test -n "\$AWK" || AWK=awk
16445_ACEOF
16446
16447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448# The default lists apply if the user does not specify any file.
16449ac_need_defaults=:
16450while test $# != 0
16451do
16452 case $1 in
22e05272 16453 --*=?*)
b4c522fa
IB
16454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16456 ac_shift=:
16457 ;;
22e05272
JM
16458 --*=)
16459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16460 ac_optarg=
16461 ac_shift=:
16462 ;;
b4c522fa
IB
16463 *)
16464 ac_option=$1
16465 ac_optarg=$2
16466 ac_shift=shift
16467 ;;
16468 esac
16469
16470 case $ac_option in
16471 # Handling of the options.
16472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16473 ac_cs_recheck=: ;;
16474 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16475 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16476 --config | --confi | --conf | --con | --co | --c )
16477 $as_echo "$ac_cs_config"; exit ;;
b4c522fa
IB
16478 --debug | --debu | --deb | --de | --d | -d )
16479 debug=: ;;
16480 --file | --fil | --fi | --f )
16481 $ac_shift
16482 case $ac_optarg in
16483 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16484 '') as_fn_error $? "missing file argument" ;;
b4c522fa
IB
16485 esac
16486 as_fn_append CONFIG_FILES " '$ac_optarg'"
16487 ac_need_defaults=false;;
16488 --header | --heade | --head | --hea )
16489 $ac_shift
16490 case $ac_optarg in
16491 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16492 esac
16493 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16494 ac_need_defaults=false;;
16495 --he | --h)
16496 # Conflict between --help and --header
22e05272 16497 as_fn_error $? "ambiguous option: \`$1'
b4c522fa
IB
16498Try \`$0 --help' for more information.";;
16499 --help | --hel | -h )
16500 $as_echo "$ac_cs_usage"; exit ;;
16501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16502 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16503 ac_cs_silent=: ;;
16504
16505 # This is an error.
22e05272 16506 -*) as_fn_error $? "unrecognized option: \`$1'
b4c522fa
IB
16507Try \`$0 --help' for more information." ;;
16508
16509 *) as_fn_append ac_config_targets " $1"
16510 ac_need_defaults=false ;;
16511
16512 esac
16513 shift
16514done
16515
16516ac_configure_extra_args=
16517
16518if $ac_cs_silent; then
16519 exec 6>/dev/null
16520 ac_configure_extra_args="$ac_configure_extra_args --silent"
16521fi
16522
16523_ACEOF
16524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525if \$ac_cs_recheck; then
22e05272 16526 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b4c522fa
IB
16527 shift
16528 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16529 CONFIG_SHELL='$SHELL'
16530 export CONFIG_SHELL
16531 exec "\$@"
16532fi
16533
16534_ACEOF
16535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16536exec 5>>config.log
16537{
16538 echo
16539 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16540## Running $as_me. ##
16541_ASBOX
16542 $as_echo "$ac_log"
16543} >&5
16544
16545_ACEOF
16546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16547#
16548# INIT-COMMANDS
16549#
16550
16551srcdir="$srcdir"
16552host="$host"
16553target="$target"
16554with_multisubdir="$with_multisubdir"
16555with_multisrctop="$with_multisrctop"
16556with_target_subdir="$with_target_subdir"
16557ac_configure_args="${multilib_arg} ${ac_configure_args}"
16558multi_basedir="$multi_basedir"
16559CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16560CC="$CC"
16561CXX="$CXX"
16562GFORTRAN="$GFORTRAN"
16563GDC="$GDC"
16564
16565
16566# The HP-UX ksh and POSIX shell print the target directory to stdout
16567# if CDPATH is set.
16568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16569
16570sed_quote_subst='$sed_quote_subst'
16571double_quote_subst='$double_quote_subst'
16572delay_variable_subst='$delay_variable_subst'
16573macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16574macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16575enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16576enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16577pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16578enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16579SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16580ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16581host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16582host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16583host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16584build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16585build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16586build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16587SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16588Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16589GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16590EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16591FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16592LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16593NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16594LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16595max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16596ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16597exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16598lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16599lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16600lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16601reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16602reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16603OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16604deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16605file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16606AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16607AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16608STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16609RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16610old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16611old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16612old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16613lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16614CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16615CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16616compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16617GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16618lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16619lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16620lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16621lt_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"`'
16622objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16623MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16624lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16625lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16626lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16627lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16628lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16629need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16630DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16631NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16632LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16633OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16634OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16635libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16636shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16637extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16638archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16639enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16640export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16641whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16642compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16643old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16644old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16645archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16646archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16647module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16648module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16649with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16650allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16651no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16652hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16653hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16654hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16655hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16656hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16657hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16658hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16659hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16660inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16661link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16662fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16663always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16664export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16665exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16666include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16667prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16668file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16669variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16670need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16671need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16672version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16673runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16674shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16675shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16676libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16677library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16678soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16679install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16680postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16681postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16682finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16683finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16684hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16685sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16686sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16687hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16688enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16689enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16690enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16691old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16692striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16693LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16694reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16695reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16696old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16697compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16698GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16699lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16700lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16701lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16702lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16703lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16704archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16705enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16706export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16707whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16708compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16709old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16710old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16711archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16712archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16713module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16714module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16715with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16716allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16717no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16718hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16719hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16720hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16721hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16722hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16723hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16724hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16725hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16726inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16727link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16728fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16729always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16730export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16731exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16732include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16733prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16734file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16735hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16736
16737LTCC='$LTCC'
16738LTCFLAGS='$LTCFLAGS'
16739compiler='$compiler_DEFAULT'
16740
16741# A function that is used when there is no print builtin or printf.
16742func_fallback_echo ()
16743{
16744 eval 'cat <<_LTECHO_EOF
16745\$1
16746_LTECHO_EOF'
16747}
16748
16749# Quote evaled strings.
16750for var in SHELL \
16751ECHO \
16752SED \
16753GREP \
16754EGREP \
16755FGREP \
16756LD \
16757NM \
16758LN_S \
16759lt_SP2NL \
16760lt_NL2SP \
16761reload_flag \
16762OBJDUMP \
16763deplibs_check_method \
16764file_magic_cmd \
16765AR \
16766AR_FLAGS \
16767STRIP \
16768RANLIB \
16769CC \
16770CFLAGS \
16771compiler \
16772lt_cv_sys_global_symbol_pipe \
16773lt_cv_sys_global_symbol_to_cdecl \
16774lt_cv_sys_global_symbol_to_c_name_address \
16775lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16776lt_prog_compiler_no_builtin_flag \
16777lt_prog_compiler_wl \
16778lt_prog_compiler_pic \
16779lt_prog_compiler_static \
16780lt_cv_prog_compiler_c_o \
16781need_locks \
16782DSYMUTIL \
16783NMEDIT \
16784LIPO \
16785OTOOL \
16786OTOOL64 \
16787shrext_cmds \
16788export_dynamic_flag_spec \
16789whole_archive_flag_spec \
16790compiler_needs_object \
16791with_gnu_ld \
16792allow_undefined_flag \
16793no_undefined_flag \
16794hardcode_libdir_flag_spec \
16795hardcode_libdir_flag_spec_ld \
16796hardcode_libdir_separator \
16797fix_srcfile_path \
16798exclude_expsyms \
16799include_expsyms \
16800file_list_spec \
16801variables_saved_for_relink \
16802libname_spec \
16803library_names_spec \
16804soname_spec \
16805install_override_mode \
16806finish_eval \
16807old_striplib \
16808striplib \
16809LD_D \
16810reload_flag_D \
16811compiler_D \
16812lt_prog_compiler_no_builtin_flag_D \
16813lt_prog_compiler_wl_D \
16814lt_prog_compiler_pic_D \
16815lt_prog_compiler_static_D \
16816lt_cv_prog_compiler_c_o_D \
16817export_dynamic_flag_spec_D \
16818whole_archive_flag_spec_D \
16819compiler_needs_object_D \
16820with_gnu_ld_D \
16821allow_undefined_flag_D \
16822no_undefined_flag_D \
16823hardcode_libdir_flag_spec_D \
16824hardcode_libdir_flag_spec_ld_D \
16825hardcode_libdir_separator_D \
16826fix_srcfile_path_D \
16827exclude_expsyms_D \
16828include_expsyms_D \
16829file_list_spec_D; do
16830 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16831 *[\\\\\\\`\\"\\\$]*)
16832 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16833 ;;
16834 *)
16835 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16836 ;;
16837 esac
16838done
16839
16840# Double-quote double-evaled strings.
16841for var in reload_cmds \
16842old_postinstall_cmds \
16843old_postuninstall_cmds \
16844old_archive_cmds \
16845extract_expsyms_cmds \
16846old_archive_from_new_cmds \
16847old_archive_from_expsyms_cmds \
16848archive_cmds \
16849archive_expsym_cmds \
16850module_cmds \
16851module_expsym_cmds \
16852export_symbols_cmds \
16853prelink_cmds \
16854postinstall_cmds \
16855postuninstall_cmds \
16856finish_cmds \
16857sys_lib_search_path_spec \
16858sys_lib_dlsearch_path_spec \
16859reload_cmds_D \
16860old_archive_cmds_D \
16861old_archive_from_new_cmds_D \
16862old_archive_from_expsyms_cmds_D \
16863archive_cmds_D \
16864archive_expsym_cmds_D \
16865module_cmds_D \
16866module_expsym_cmds_D \
16867export_symbols_cmds_D \
16868prelink_cmds_D; do
16869 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16870 *[\\\\\\\`\\"\\\$]*)
16871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16872 ;;
16873 *)
16874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16875 ;;
16876 esac
16877done
16878
16879ac_aux_dir='$ac_aux_dir'
16880xsi_shell='$xsi_shell'
16881lt_shell_append='$lt_shell_append'
16882
16883# See if we are running on zsh, and set the options which allow our
16884# commands through without removal of \ escapes INIT.
16885if test -n "\${ZSH_VERSION+set}" ; then
16886 setopt NO_GLOB_SUBST
16887fi
16888
16889
16890 PACKAGE='$PACKAGE'
16891 VERSION='$VERSION'
16892 TIMESTAMP='$TIMESTAMP'
16893 RM='$RM'
16894 ofile='$ofile'
16895
16896
16897
16898
16899
16900
b4c522fa
IB
16901_ACEOF
16902
16903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16904
16905# Handling of arguments.
16906for ac_config_target in $ac_config_targets
16907do
16908 case $ac_config_target in
16909 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16910 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16911 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b4c522fa
IB
16913 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16914 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16915 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16916 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
ac67752d
IB
16917 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16918 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16919 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b4c522fa 16920
22e05272 16921 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b4c522fa
IB
16922 esac
16923done
16924
16925
16926# If the user did not use the arguments to specify the items to instantiate,
16927# then the envvar interface is used. Set only those that are not.
16928# We use the long form for the default assignment because of an extremely
16929# bizarre bug on SunOS 4.1.3.
16930if $ac_need_defaults; then
16931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16934fi
16935
16936# Have a temporary directory for convenience. Make it in the build tree
16937# simply because there is no reason against having it here, and in addition,
16938# creating and moving files from /tmp can sometimes cause problems.
16939# Hook for its removal unless debugging.
16940# Note that there is a small window in which the directory will not be cleaned:
16941# after its creation but before its name has been assigned to `$tmp'.
16942$debug ||
16943{
22e05272 16944 tmp= ac_tmp=
b4c522fa 16945 trap 'exit_status=$?
22e05272
JM
16946 : "${ac_tmp:=$tmp}"
16947 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b4c522fa
IB
16948' 0
16949 trap 'as_fn_exit 1' 1 2 13 15
16950}
16951# Create a (secure) tmp directory for tmp files.
16952
16953{
16954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16955 test -d "$tmp"
b4c522fa
IB
16956} ||
16957{
16958 tmp=./conf$$-$RANDOM
16959 (umask 077 && mkdir "$tmp")
22e05272
JM
16960} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16961ac_tmp=$tmp
b4c522fa
IB
16962
16963# Set up the scripts for CONFIG_FILES section.
16964# No need to generate them if there are no CONFIG_FILES.
16965# This happens for instance with `./config.status config.h'.
16966if test -n "$CONFIG_FILES"; then
16967
0b6e3127
RO
16968if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16969 ac_cs_awk_getline=:
16970 ac_cs_awk_pipe_init=
16971 ac_cs_awk_read_file='
16972 while ((getline aline < (F[key])) > 0)
16973 print(aline)
16974 close(F[key])'
16975 ac_cs_awk_pipe_fini=
16976else
16977 ac_cs_awk_getline=false
16978 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16979 ac_cs_awk_read_file='
16980 print "|#_!!_#|"
16981 print "cat " F[key] " &&"
16982 '$ac_cs_awk_pipe_init
16983 # The final `:' finishes the AND list.
16984 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16985fi
b4c522fa
IB
16986ac_cr=`echo X | tr X '\015'`
16987# On cygwin, bash can eat \r inside `` if the user requested igncr.
16988# But we know of no other shell where ac_cr would be empty at this
16989# point, so we can use a bashism as a fallback.
16990if test "x$ac_cr" = x; then
16991 eval ac_cr=\$\'\\r\'
16992fi
16993ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16994if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16995 ac_cs_awk_cr='\\r'
b4c522fa
IB
16996else
16997 ac_cs_awk_cr=$ac_cr
16998fi
16999
22e05272 17000echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b4c522fa
IB
17001_ACEOF
17002
0b6e3127
RO
17003# Create commands to substitute file output variables.
17004{
17005 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17006 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17007 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17008 echo "_ACAWK" &&
17009 echo "_ACEOF"
17010} >conf$$files.sh &&
17011. ./conf$$files.sh ||
17012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17013rm -f conf$$files.sh
b4c522fa
IB
17014
17015{
17016 echo "cat >conf$$subs.awk <<_ACEOF" &&
17017 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17018 echo "_ACEOF"
17019} >conf$$subs.sh ||
22e05272
JM
17020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17021ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b4c522fa
IB
17022ac_delim='%!_!# '
17023for ac_last_try in false false false false false :; do
17024 . ./conf$$subs.sh ||
22e05272 17025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
17026
17027 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17028 if test $ac_delim_n = $ac_delim_num; then
17029 break
17030 elif $ac_last_try; then
22e05272 17031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
17032 else
17033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17034 fi
17035done
17036rm -f conf$$subs.sh
17037
17038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17039cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b4c522fa
IB
17040_ACEOF
17041sed -n '
17042h
17043s/^/S["/; s/!.*/"]=/
17044p
17045g
17046s/^[^!]*!//
17047:repl
17048t repl
17049s/'"$ac_delim"'$//
17050t delim
17051:nl
17052h
22e05272 17053s/\(.\{148\}\)..*/\1/
b4c522fa
IB
17054t more1
17055s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17056p
17057n
17058b repl
17059:more1
17060s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17061p
17062g
17063s/.\{148\}//
17064t nl
17065:delim
17066h
22e05272 17067s/\(.\{148\}\)..*/\1/
b4c522fa
IB
17068t more2
17069s/["\\]/\\&/g; s/^/"/; s/$/"/
17070p
17071b
17072:more2
17073s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17074p
17075g
17076s/.\{148\}//
17077t delim
17078' <conf$$subs.awk | sed '
17079/^[^""]/{
17080 N
17081 s/\n//
17082}
17083' >>$CONFIG_STATUS || ac_write_fail=1
17084rm -f conf$$subs.awk
17085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17086_ACAWK
22e05272 17087cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b4c522fa
IB
17088 for (key in S) S_is_set[key] = 1
17089 FS = "\a"
0b6e3127 17090 \$ac_cs_awk_pipe_init
b4c522fa
IB
17091}
17092{
17093 line = $ 0
17094 nfields = split(line, field, "@")
17095 substed = 0
17096 len = length(field[1])
17097 for (i = 2; i < nfields; i++) {
17098 key = field[i]
17099 keylen = length(key)
17100 if (S_is_set[key]) {
17101 value = S[key]
17102 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17103 len += length(value) + length(field[++i])
17104 substed = 1
17105 } else
17106 len += 1 + keylen
17107 }
0b6e3127
RO
17108 if (nfields == 3 && !substed) {
17109 key = field[2]
17110 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17111 \$ac_cs_awk_read_file
17112 next
17113 }
17114 }
b4c522fa
IB
17115 print line
17116}
0b6e3127 17117\$ac_cs_awk_pipe_fini
b4c522fa
IB
17118_ACAWK
17119_ACEOF
17120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17122 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17123else
17124 cat
22e05272
JM
17125fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17126 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b4c522fa
IB
17127_ACEOF
17128
22e05272
JM
17129# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17130# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b4c522fa
IB
17131# trailing colons and then remove the whole line if VPATH becomes empty
17132# (actually we leave an empty line to preserve line numbers).
17133if test "x$srcdir" = x.; then
22e05272
JM
17134 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17135h
17136s///
17137s/^/:/
17138s/[ ]*$/:/
17139s/:\$(srcdir):/:/g
17140s/:\${srcdir}:/:/g
17141s/:@srcdir@:/:/g
17142s/^:*//
b4c522fa 17143s/:*$//
22e05272
JM
17144x
17145s/\(=[ ]*\).*/\1/
17146G
17147s/\n//
b4c522fa
IB
17148s/^[^=]*=[ ]*$//
17149}'
17150fi
17151
17152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153fi # test -n "$CONFIG_FILES"
17154
17155# Set up the scripts for CONFIG_HEADERS section.
17156# No need to generate them if there are no CONFIG_HEADERS.
17157# This happens for instance with `./config.status Makefile'.
17158if test -n "$CONFIG_HEADERS"; then
22e05272 17159cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
b4c522fa
IB
17160BEGIN {
17161_ACEOF
17162
17163# Transform confdefs.h into an awk script `defines.awk', embedded as
17164# here-document in config.status, that substitutes the proper values into
17165# config.h.in to produce config.h.
17166
17167# Create a delimiter string that does not exist in confdefs.h, to ease
17168# handling of long lines.
17169ac_delim='%!_!# '
17170for ac_last_try in false false :; do
22e05272
JM
17171 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17172 if test -z "$ac_tt"; then
b4c522fa
IB
17173 break
17174 elif $ac_last_try; then
22e05272 17175 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b4c522fa
IB
17176 else
17177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17178 fi
17179done
17180
17181# For the awk script, D is an array of macro values keyed by name,
17182# likewise P contains macro parameters if any. Preserve backslash
17183# newline sequences.
17184
17185ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17186sed -n '
17187s/.\{148\}/&'"$ac_delim"'/g
17188t rset
17189:rset
17190s/^[ ]*#[ ]*define[ ][ ]*/ /
17191t def
17192d
17193:def
17194s/\\$//
17195t bsnl
17196s/["\\]/\\&/g
17197s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17198D["\1"]=" \3"/p
17199s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17200d
17201:bsnl
17202s/["\\]/\\&/g
17203s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17204D["\1"]=" \3\\\\\\n"\\/p
17205t cont
17206s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17207t cont
17208d
17209:cont
17210n
17211s/.\{148\}/&'"$ac_delim"'/g
17212t clear
17213:clear
17214s/\\$//
17215t bsnlc
17216s/["\\]/\\&/g; s/^/"/; s/$/"/p
17217d
17218:bsnlc
17219s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17220b cont
17221' <confdefs.h | sed '
17222s/'"$ac_delim"'/"\\\
17223"/g' >>$CONFIG_STATUS || ac_write_fail=1
17224
17225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17226 for (key in D) D_is_set[key] = 1
17227 FS = "\a"
17228}
17229/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17230 line = \$ 0
17231 split(line, arg, " ")
17232 if (arg[1] == "#") {
17233 defundef = arg[2]
17234 mac1 = arg[3]
17235 } else {
17236 defundef = substr(arg[1], 2)
17237 mac1 = arg[2]
17238 }
17239 split(mac1, mac2, "(") #)
17240 macro = mac2[1]
17241 prefix = substr(line, 1, index(line, defundef) - 1)
17242 if (D_is_set[macro]) {
17243 # Preserve the white space surrounding the "#".
17244 print prefix "define", macro P[macro] D[macro]
17245 next
17246 } else {
17247 # Replace #undef with comments. This is necessary, for example,
17248 # in the case of _POSIX_SOURCE, which is predefined and required
17249 # on some systems where configure will not decide to define it.
17250 if (defundef == "undef") {
17251 print "/*", prefix defundef, macro, "*/"
17252 next
17253 }
17254 }
17255}
17256{ print }
17257_ACAWK
17258_ACEOF
17259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 17260 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
b4c522fa
IB
17261fi # test -n "$CONFIG_HEADERS"
17262
17263
17264eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17265shift
17266for ac_tag
17267do
17268 case $ac_tag in
17269 :[FHLC]) ac_mode=$ac_tag; continue;;
17270 esac
17271 case $ac_mode$ac_tag in
17272 :[FHL]*:*);;
22e05272 17273 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b4c522fa
IB
17274 :[FH]-) ac_tag=-:-;;
17275 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17276 esac
17277 ac_save_IFS=$IFS
17278 IFS=:
17279 set x $ac_tag
17280 IFS=$ac_save_IFS
17281 shift
17282 ac_file=$1
17283 shift
17284
17285 case $ac_mode in
17286 :L) ac_source=$1;;
17287 :[FH])
17288 ac_file_inputs=
17289 for ac_f
17290 do
17291 case $ac_f in
22e05272 17292 -) ac_f="$ac_tmp/stdin";;
b4c522fa
IB
17293 *) # Look for the file first in the build tree, then in the source tree
17294 # (if the path is not absolute). The absolute path cannot be DOS-style,
17295 # because $ac_f cannot contain `:'.
17296 test -f "$ac_f" ||
17297 case $ac_f in
17298 [\\/$]*) false;;
17299 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17300 esac ||
22e05272 17301 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b4c522fa
IB
17302 esac
17303 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17304 as_fn_append ac_file_inputs " '$ac_f'"
17305 done
17306
17307 # Let's still pretend it is `configure' which instantiates (i.e., don't
17308 # use $as_me), people would be surprised to read:
17309 # /* config.h. Generated by config.status. */
17310 configure_input='Generated from '`
17311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17312 `' by configure.'
17313 if test x"$ac_file" != x-; then
17314 configure_input="$ac_file. $configure_input"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17316$as_echo "$as_me: creating $ac_file" >&6;}
17317 fi
17318 # Neutralize special characters interpreted by sed in replacement strings.
17319 case $configure_input in #(
17320 *\&* | *\|* | *\\* )
17321 ac_sed_conf_input=`$as_echo "$configure_input" |
17322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17323 *) ac_sed_conf_input=$configure_input;;
17324 esac
17325
17326 case $ac_tag in
22e05272
JM
17327 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b4c522fa
IB
17329 esac
17330 ;;
17331 esac
17332
17333 ac_dir=`$as_dirname -- "$ac_file" ||
17334$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17335 X"$ac_file" : 'X\(//\)[^/]' \| \
17336 X"$ac_file" : 'X\(//\)$' \| \
17337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17338$as_echo X"$ac_file" |
17339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17340 s//\1/
17341 q
17342 }
17343 /^X\(\/\/\)[^/].*/{
17344 s//\1/
17345 q
17346 }
17347 /^X\(\/\/\)$/{
17348 s//\1/
17349 q
17350 }
17351 /^X\(\/\).*/{
17352 s//\1/
17353 q
17354 }
17355 s/.*/./; q'`
17356 as_dir="$ac_dir"; as_fn_mkdir_p
17357 ac_builddir=.
17358
17359case "$ac_dir" in
17360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17361*)
17362 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17363 # A ".." for each directory in $ac_dir_suffix.
17364 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17365 case $ac_top_builddir_sub in
17366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17368 esac ;;
17369esac
17370ac_abs_top_builddir=$ac_pwd
17371ac_abs_builddir=$ac_pwd$ac_dir_suffix
17372# for backward compatibility:
17373ac_top_builddir=$ac_top_build_prefix
17374
17375case $srcdir in
17376 .) # We are building in place.
17377 ac_srcdir=.
17378 ac_top_srcdir=$ac_top_builddir_sub
17379 ac_abs_top_srcdir=$ac_pwd ;;
17380 [\\/]* | ?:[\\/]* ) # Absolute name.
17381 ac_srcdir=$srcdir$ac_dir_suffix;
17382 ac_top_srcdir=$srcdir
17383 ac_abs_top_srcdir=$srcdir ;;
17384 *) # Relative name.
17385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17386 ac_top_srcdir=$ac_top_build_prefix$srcdir
17387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17388esac
17389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17390
17391
17392 case $ac_mode in
17393 :F)
17394 #
17395 # CONFIG_FILE
17396 #
17397
17398 case $INSTALL in
17399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17401 esac
17402 ac_MKDIR_P=$MKDIR_P
17403 case $MKDIR_P in
17404 [\\/$]* | ?:[\\/]* ) ;;
17405 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17406 esac
17407_ACEOF
17408
17409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410# If the template does not know about datarootdir, expand it.
17411# FIXME: This hack should be removed a few years after 2.60.
17412ac_datarootdir_hack=; ac_datarootdir_seen=
17413ac_sed_dataroot='
17414/datarootdir/ {
17415 p
17416 q
17417}
17418/@datadir@/p
17419/@docdir@/p
17420/@infodir@/p
17421/@localedir@/p
17422/@mandir@/p'
17423case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17424*datarootdir*) ac_datarootdir_seen=yes;;
17425*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17427$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17428_ACEOF
17429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 ac_datarootdir_hack='
17431 s&@datadir@&$datadir&g
17432 s&@docdir@&$docdir&g
17433 s&@infodir@&$infodir&g
17434 s&@localedir@&$localedir&g
17435 s&@mandir@&$mandir&g
17436 s&\\\${datarootdir}&$datarootdir&g' ;;
17437esac
17438_ACEOF
17439
17440# Neutralize VPATH when `$srcdir' = `.'.
17441# Shell code in configure.ac might set extrasub.
17442# FIXME: do we really want to maintain this feature?
17443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17444ac_sed_extra="$ac_vpsub
17445$extrasub
17446_ACEOF
17447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448:t
17449/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17450s|@configure_input@|$ac_sed_conf_input|;t t
17451s&@top_builddir@&$ac_top_builddir_sub&;t t
17452s&@top_build_prefix@&$ac_top_build_prefix&;t t
17453s&@srcdir@&$ac_srcdir&;t t
17454s&@abs_srcdir@&$ac_abs_srcdir&;t t
17455s&@top_srcdir@&$ac_top_srcdir&;t t
17456s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17457s&@builddir@&$ac_builddir&;t t
17458s&@abs_builddir@&$ac_abs_builddir&;t t
17459s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17460s&@INSTALL@&$ac_INSTALL&;t t
17461s&@MKDIR_P@&$ac_MKDIR_P&;t t
17462$ac_datarootdir_hack
17463"
0b6e3127
RO
17464eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17465if $ac_cs_awk_getline; then
17466 $AWK -f "$ac_tmp/subs.awk"
17467else
17468 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17469fi \
22e05272 17470 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17471
17472test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17473 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17475 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b4c522fa 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17477which seems to be undefined. Please make sure it is defined" >&5
b4c522fa 17478$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17479which seems to be undefined. Please make sure it is defined" >&2;}
b4c522fa 17480
22e05272 17481 rm -f "$ac_tmp/stdin"
b4c522fa 17482 case $ac_file in
22e05272
JM
17483 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17484 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b4c522fa 17485 esac \
22e05272 17486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17487 ;;
17488 :H)
17489 #
17490 # CONFIG_HEADER
17491 #
17492 if test x"$ac_file" != x-; then
17493 {
17494 $as_echo "/* $configure_input */" \
22e05272
JM
17495 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17496 } >"$ac_tmp/config.h" \
17497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17498 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b4c522fa
IB
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17500$as_echo "$as_me: $ac_file is unchanged" >&6;}
17501 else
17502 rm -f "$ac_file"
22e05272
JM
17503 mv "$ac_tmp/config.h" "$ac_file" \
17504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17505 fi
17506 else
17507 $as_echo "/* $configure_input */" \
22e05272
JM
17508 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17509 || as_fn_error $? "could not create -" "$LINENO" 5
b4c522fa
IB
17510 fi
17511# Compute "$ac_file"'s index in $config_headers.
17512_am_arg="$ac_file"
17513_am_stamp_count=1
17514for _am_header in $config_headers :; do
17515 case $_am_header in
17516 $_am_arg | $_am_arg:* )
17517 break ;;
17518 * )
17519 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17520 esac
17521done
17522echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17523$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17524 X"$_am_arg" : 'X\(//\)[^/]' \| \
17525 X"$_am_arg" : 'X\(//\)$' \| \
17526 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17527$as_echo X"$_am_arg" |
17528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17529 s//\1/
17530 q
17531 }
17532 /^X\(\/\/\)[^/].*/{
17533 s//\1/
17534 q
17535 }
17536 /^X\(\/\/\)$/{
17537 s//\1/
17538 q
17539 }
17540 /^X\(\/\).*/{
17541 s//\1/
17542 q
17543 }
17544 s/.*/./; q'`/stamp-h$_am_stamp_count
17545 ;;
17546
17547 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17548$as_echo "$as_me: executing $ac_file commands" >&6;}
17549 ;;
17550 esac
17551
17552
17553 case $ac_file$ac_mode in
17554 "default-1":C)
17555# Only add multilib support code if we just rebuilt the top-level
17556# Makefile.
17557case " $CONFIG_FILES " in
17558 *" Makefile "*)
17559 ac_file=Makefile . ${multi_basedir}/config-ml.in
17560 ;;
17561esac ;;
17562 "libtool":C)
17563
17564 # See if we are running on zsh, and set the options which allow our
17565 # commands through without removal of \ escapes.
17566 if test -n "${ZSH_VERSION+set}" ; then
17567 setopt NO_GLOB_SUBST
17568 fi
17569
17570 cfgfile="${ofile}T"
17571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17572 $RM "$cfgfile"
17573
17574 cat <<_LT_EOF >> "$cfgfile"
17575#! $SHELL
17576
17577# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17578# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17579# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17580# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17581#
0b6e3127
RO
17582# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17583# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b4c522fa
IB
17584# Written by Gordon Matzigkeit, 1996
17585#
17586# This file is part of GNU Libtool.
17587#
17588# GNU Libtool is free software; you can redistribute it and/or
17589# modify it under the terms of the GNU General Public License as
17590# published by the Free Software Foundation; either version 2 of
17591# the License, or (at your option) any later version.
17592#
17593# As a special exception to the GNU General Public License,
17594# if you distribute this file as part of a program or library that
17595# is built using GNU Libtool, you may include this file under the
17596# same distribution terms that you use for the rest of that program.
17597#
17598# GNU Libtool is distributed in the hope that it will be useful,
17599# but WITHOUT ANY WARRANTY; without even the implied warranty of
17600# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17601# GNU General Public License for more details.
17602#
17603# You should have received a copy of the GNU General Public License
17604# along with GNU Libtool; see the file COPYING. If not, a copy
17605# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17606# obtained by writing to the Free Software Foundation, Inc.,
17607# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17608
17609
17610# The names of the tagged configurations supported by this script.
17611available_tags="D "
17612
17613# ### BEGIN LIBTOOL CONFIG
17614
17615# Which release of libtool.m4 was used?
17616macro_version=$macro_version
17617macro_revision=$macro_revision
17618
17619# Whether or not to build shared libraries.
17620build_libtool_libs=$enable_shared
17621
17622# Whether or not to build static libraries.
17623build_old_libs=$enable_static
17624
17625# What type of objects to build.
17626pic_mode=$pic_mode
17627
17628# Whether or not to optimize for fast installation.
17629fast_install=$enable_fast_install
17630
17631# Shell to use when invoking shell scripts.
17632SHELL=$lt_SHELL
17633
17634# An echo program that protects backslashes.
17635ECHO=$lt_ECHO
17636
17637# The host system.
17638host_alias=$host_alias
17639host=$host
17640host_os=$host_os
17641
17642# The build system.
17643build_alias=$build_alias
17644build=$build
17645build_os=$build_os
17646
17647# A sed program that does not truncate output.
17648SED=$lt_SED
17649
17650# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17651Xsed="\$SED -e 1s/^X//"
17652
17653# A grep program that handles long lines.
17654GREP=$lt_GREP
17655
17656# An ERE matcher.
17657EGREP=$lt_EGREP
17658
17659# A literal string matcher.
17660FGREP=$lt_FGREP
17661
17662# A BSD- or MS-compatible name lister.
17663NM=$lt_NM
17664
17665# Whether we need soft or hard links.
17666LN_S=$lt_LN_S
17667
17668# What is the maximum length of a command?
17669max_cmd_len=$max_cmd_len
17670
17671# Object file suffix (normally "o").
17672objext=$ac_objext
17673
17674# Executable file suffix (normally "").
17675exeext=$exeext
17676
17677# whether the shell understands "unset".
17678lt_unset=$lt_unset
17679
17680# turn spaces into newlines.
17681SP2NL=$lt_lt_SP2NL
17682
17683# turn newlines into spaces.
17684NL2SP=$lt_lt_NL2SP
17685
17686# An object symbol dumper.
17687OBJDUMP=$lt_OBJDUMP
17688
17689# Method to check whether dependent libraries are shared objects.
17690deplibs_check_method=$lt_deplibs_check_method
17691
17692# Command to use when deplibs_check_method == "file_magic".
17693file_magic_cmd=$lt_file_magic_cmd
17694
17695# The archiver.
17696AR=$lt_AR
17697AR_FLAGS=$lt_AR_FLAGS
17698
17699# A symbol stripping program.
17700STRIP=$lt_STRIP
17701
17702# Commands used to install an old-style archive.
17703RANLIB=$lt_RANLIB
17704old_postinstall_cmds=$lt_old_postinstall_cmds
17705old_postuninstall_cmds=$lt_old_postuninstall_cmds
17706
17707# Whether to use a lock for old archive extraction.
17708lock_old_archive_extraction=$lock_old_archive_extraction
17709
17710# A C compiler.
17711LTCC=$lt_CC
17712
17713# LTCC compiler flags.
17714LTCFLAGS=$lt_CFLAGS
17715
17716# Take the output of nm and produce a listing of raw symbols and C names.
17717global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17718
17719# Transform the output of nm in a proper C declaration.
17720global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17721
17722# Transform the output of nm in a C name address pair.
17723global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17724
17725# Transform the output of nm in a C name address pair when lib prefix is needed.
17726global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17727
17728# The name of the directory that contains temporary libtool files.
17729objdir=$objdir
17730
17731# Used to examine libraries when file_magic_cmd begins with "file".
17732MAGIC_CMD=$MAGIC_CMD
17733
17734# Must we lock files when doing compilation?
17735need_locks=$lt_need_locks
17736
17737# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17738DSYMUTIL=$lt_DSYMUTIL
17739
17740# Tool to change global to local symbols on Mac OS X.
17741NMEDIT=$lt_NMEDIT
17742
17743# Tool to manipulate fat objects and archives on Mac OS X.
17744LIPO=$lt_LIPO
17745
17746# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17747OTOOL=$lt_OTOOL
17748
17749# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17750OTOOL64=$lt_OTOOL64
17751
17752# Old archive suffix (normally "a").
17753libext=$libext
17754
17755# Shared library suffix (normally ".so").
17756shrext_cmds=$lt_shrext_cmds
17757
17758# The commands to extract the exported symbol list from a shared archive.
17759extract_expsyms_cmds=$lt_extract_expsyms_cmds
17760
17761# Variables whose values should be saved in libtool wrapper scripts and
17762# restored at link time.
17763variables_saved_for_relink=$lt_variables_saved_for_relink
17764
17765# Do we need the "lib" prefix for modules?
17766need_lib_prefix=$need_lib_prefix
17767
17768# Do we need a version for libraries?
17769need_version=$need_version
17770
17771# Library versioning type.
17772version_type=$version_type
17773
17774# Shared library runtime path variable.
17775runpath_var=$runpath_var
17776
17777# Shared library path variable.
17778shlibpath_var=$shlibpath_var
17779
17780# Is shlibpath searched before the hard-coded library search path?
17781shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17782
17783# Format of library name prefix.
17784libname_spec=$lt_libname_spec
17785
17786# List of archive names. First name is the real one, the rest are links.
17787# The last name is the one that the linker finds with -lNAME
17788library_names_spec=$lt_library_names_spec
17789
17790# The coded name of the library, if different from the real name.
17791soname_spec=$lt_soname_spec
17792
17793# Permission mode override for installation of shared libraries.
17794install_override_mode=$lt_install_override_mode
17795
17796# Command to use after installation of a shared archive.
17797postinstall_cmds=$lt_postinstall_cmds
17798
17799# Command to use after uninstallation of a shared archive.
17800postuninstall_cmds=$lt_postuninstall_cmds
17801
17802# Commands used to finish a libtool library installation in a directory.
17803finish_cmds=$lt_finish_cmds
17804
17805# As "finish_cmds", except a single script fragment to be evaled but
17806# not shown.
17807finish_eval=$lt_finish_eval
17808
17809# Whether we should hardcode library paths into libraries.
17810hardcode_into_libs=$hardcode_into_libs
17811
17812# Compile-time system search path for libraries.
17813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17814
17815# Run-time system search path for libraries.
17816sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17817
17818# Whether dlopen is supported.
17819dlopen_support=$enable_dlopen
17820
17821# Whether dlopen of programs is supported.
17822dlopen_self=$enable_dlopen_self
17823
17824# Whether dlopen of statically linked programs is supported.
17825dlopen_self_static=$enable_dlopen_self_static
17826
17827# Commands to strip libraries.
17828old_striplib=$lt_old_striplib
17829striplib=$lt_striplib
17830
17831
17832# The linker used to build libraries.
17833LD=$lt_LD
17834
17835# How to create reloadable object files.
17836reload_flag=$lt_reload_flag
17837reload_cmds=$lt_reload_cmds
17838
17839# Commands used to build an old-style archive.
17840old_archive_cmds=$lt_old_archive_cmds
17841
17842# A language specific compiler.
17843CC=$lt_compiler
17844
17845# Is the compiler the GNU compiler?
17846with_gcc=$GCC
17847
17848# Compiler flag to turn off builtin functions.
17849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17850
17851# How to pass a linker flag through the compiler.
17852wl=$lt_lt_prog_compiler_wl
17853
17854# Additional compiler flags for building library objects.
17855pic_flag=$lt_lt_prog_compiler_pic
17856
17857# Compiler flag to prevent dynamic linking.
17858link_static_flag=$lt_lt_prog_compiler_static
17859
17860# Does compiler simultaneously support -c and -o options?
17861compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17862
17863# Whether or not to add -lc for building shared libraries.
17864build_libtool_need_lc=$archive_cmds_need_lc
17865
17866# Whether or not to disallow shared libs when runtime libs are static.
17867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17868
17869# Compiler flag to allow reflexive dlopens.
17870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17871
17872# Compiler flag to generate shared objects directly from archives.
17873whole_archive_flag_spec=$lt_whole_archive_flag_spec
17874
17875# Whether the compiler copes with passing no objects directly.
17876compiler_needs_object=$lt_compiler_needs_object
17877
17878# Create an old-style archive from a shared archive.
17879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17880
17881# Create a temporary old-style archive to link instead of a shared archive.
17882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17883
17884# Commands used to build a shared archive.
17885archive_cmds=$lt_archive_cmds
17886archive_expsym_cmds=$lt_archive_expsym_cmds
17887
17888# Commands used to build a loadable module if different from building
17889# a shared archive.
17890module_cmds=$lt_module_cmds
17891module_expsym_cmds=$lt_module_expsym_cmds
17892
17893# Whether we are building with GNU ld or not.
17894with_gnu_ld=$lt_with_gnu_ld
17895
17896# Flag that allows shared libraries with undefined symbols to be built.
17897allow_undefined_flag=$lt_allow_undefined_flag
17898
17899# Flag that enforces no undefined symbols.
17900no_undefined_flag=$lt_no_undefined_flag
17901
17902# Flag to hardcode \$libdir into a binary during linking.
17903# This must work even if \$libdir does not exist
17904hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17905
17906# If ld is used when linking, flag to hardcode \$libdir into a binary
17907# during linking. This must work even if \$libdir does not exist.
17908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17909
17910# Whether we need a single "-rpath" flag with a separated argument.
17911hardcode_libdir_separator=$lt_hardcode_libdir_separator
17912
17913# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17914# DIR into the resulting binary.
17915hardcode_direct=$hardcode_direct
17916
17917# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17918# DIR into the resulting binary and the resulting library dependency is
17919# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17920# library is relocated.
17921hardcode_direct_absolute=$hardcode_direct_absolute
17922
17923# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17924# into the resulting binary.
17925hardcode_minus_L=$hardcode_minus_L
17926
17927# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17928# into the resulting binary.
17929hardcode_shlibpath_var=$hardcode_shlibpath_var
17930
17931# Set to "yes" if building a shared library automatically hardcodes DIR
17932# into the library and all subsequent libraries and executables linked
17933# against it.
17934hardcode_automatic=$hardcode_automatic
17935
17936# Set to yes if linker adds runtime paths of dependent libraries
17937# to runtime path list.
17938inherit_rpath=$inherit_rpath
17939
17940# Whether libtool must link a program against all its dependency libraries.
17941link_all_deplibs=$link_all_deplibs
17942
17943# Fix the shell variable \$srcfile for the compiler.
17944fix_srcfile_path=$lt_fix_srcfile_path
17945
17946# Set to "yes" if exported symbols are required.
17947always_export_symbols=$always_export_symbols
17948
17949# The commands to list exported symbols.
17950export_symbols_cmds=$lt_export_symbols_cmds
17951
17952# Symbols that should not be listed in the preloaded symbols.
17953exclude_expsyms=$lt_exclude_expsyms
17954
17955# Symbols that must always be exported.
17956include_expsyms=$lt_include_expsyms
17957
17958# Commands necessary for linking programs (against libraries) with templates.
17959prelink_cmds=$lt_prelink_cmds
17960
17961# Specify filename containing input files.
17962file_list_spec=$lt_file_list_spec
17963
17964# How to hardcode a shared library path into an executable.
17965hardcode_action=$hardcode_action
17966
17967# ### END LIBTOOL CONFIG
17968
17969_LT_EOF
17970
17971 case $host_os in
17972 aix3*)
17973 cat <<\_LT_EOF >> "$cfgfile"
17974# AIX sometimes has problems with the GCC collect2 program. For some
17975# reason, if we set the COLLECT_NAMES environment variable, the problems
17976# vanish in a puff of smoke.
17977if test "X${COLLECT_NAMES+set}" != Xset; then
17978 COLLECT_NAMES=
17979 export COLLECT_NAMES
17980fi
17981_LT_EOF
17982 ;;
17983 esac
17984
17985
17986ltmain="$ac_aux_dir/ltmain.sh"
17987
17988
17989 # We use sed instead of cat because bash on DJGPP gets confused if
17990 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17991 # text mode, it properly converts lines to CR/LF. This bash problem
17992 # is reportedly fixed, but why not run on old versions too?
17993 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17994 || (rm -f "$cfgfile"; exit 1)
17995
17996 case $xsi_shell in
17997 yes)
17998 cat << \_LT_EOF >> "$cfgfile"
17999
18000# func_dirname file append nondir_replacement
18001# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18002# otherwise set result to NONDIR_REPLACEMENT.
18003func_dirname ()
18004{
18005 case ${1} in
18006 */*) func_dirname_result="${1%/*}${2}" ;;
18007 * ) func_dirname_result="${3}" ;;
18008 esac
18009}
18010
18011# func_basename file
18012func_basename ()
18013{
18014 func_basename_result="${1##*/}"
18015}
18016
18017# func_dirname_and_basename file append nondir_replacement
18018# perform func_basename and func_dirname in a single function
18019# call:
18020# dirname: Compute the dirname of FILE. If nonempty,
18021# add APPEND to the result, otherwise set result
18022# to NONDIR_REPLACEMENT.
18023# value returned in "$func_dirname_result"
18024# basename: Compute filename of FILE.
18025# value retuned in "$func_basename_result"
18026# Implementation must be kept synchronized with func_dirname
18027# and func_basename. For efficiency, we do not delegate to
18028# those functions but instead duplicate the functionality here.
18029func_dirname_and_basename ()
18030{
18031 case ${1} in
18032 */*) func_dirname_result="${1%/*}${2}" ;;
18033 * ) func_dirname_result="${3}" ;;
18034 esac
18035 func_basename_result="${1##*/}"
18036}
18037
18038# func_stripname prefix suffix name
18039# strip PREFIX and SUFFIX off of NAME.
18040# PREFIX and SUFFIX must not contain globbing or regex special
18041# characters, hashes, percent signs, but SUFFIX may contain a leading
18042# dot (in which case that matches only a dot).
18043func_stripname ()
18044{
18045 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18046 # positional parameters, so assign one to ordinary parameter first.
18047 func_stripname_result=${3}
18048 func_stripname_result=${func_stripname_result#"${1}"}
18049 func_stripname_result=${func_stripname_result%"${2}"}
18050}
18051
18052# func_opt_split
18053func_opt_split ()
18054{
18055 func_opt_split_opt=${1%%=*}
18056 func_opt_split_arg=${1#*=}
18057}
18058
18059# func_lo2o object
18060func_lo2o ()
18061{
18062 case ${1} in
18063 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18064 *) func_lo2o_result=${1} ;;
18065 esac
18066}
18067
18068# func_xform libobj-or-source
18069func_xform ()
18070{
18071 func_xform_result=${1%.*}.lo
18072}
18073
18074# func_arith arithmetic-term...
18075func_arith ()
18076{
18077 func_arith_result=$(( $* ))
18078}
18079
18080# func_len string
18081# STRING may not start with a hyphen.
18082func_len ()
18083{
18084 func_len_result=${#1}
18085}
18086
18087_LT_EOF
18088 ;;
18089 *) # Bourne compatible functions.
18090 cat << \_LT_EOF >> "$cfgfile"
18091
18092# func_dirname file append nondir_replacement
18093# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18094# otherwise set result to NONDIR_REPLACEMENT.
18095func_dirname ()
18096{
18097 # Extract subdirectory from the argument.
18098 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18099 if test "X$func_dirname_result" = "X${1}"; then
18100 func_dirname_result="${3}"
18101 else
18102 func_dirname_result="$func_dirname_result${2}"
18103 fi
18104}
18105
18106# func_basename file
18107func_basename ()
18108{
18109 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18110}
18111
18112
18113# func_stripname prefix suffix name
18114# strip PREFIX and SUFFIX off of NAME.
18115# PREFIX and SUFFIX must not contain globbing or regex special
18116# characters, hashes, percent signs, but SUFFIX may contain a leading
18117# dot (in which case that matches only a dot).
18118# func_strip_suffix prefix name
18119func_stripname ()
18120{
18121 case ${2} in
18122 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18123 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18124 esac
18125}
18126
18127# sed scripts:
18128my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18129my_sed_long_arg='1s/^-[^=]*=//'
18130
18131# func_opt_split
18132func_opt_split ()
18133{
18134 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18135 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18136}
18137
18138# func_lo2o object
18139func_lo2o ()
18140{
18141 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18142}
18143
18144# func_xform libobj-or-source
18145func_xform ()
18146{
18147 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18148}
18149
18150# func_arith arithmetic-term...
18151func_arith ()
18152{
18153 func_arith_result=`expr "$@"`
18154}
18155
18156# func_len string
18157# STRING may not start with a hyphen.
18158func_len ()
18159{
18160 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18161}
18162
18163_LT_EOF
18164esac
18165
18166case $lt_shell_append in
18167 yes)
18168 cat << \_LT_EOF >> "$cfgfile"
18169
18170# func_append var value
18171# Append VALUE to the end of shell variable VAR.
18172func_append ()
18173{
18174 eval "$1+=\$2"
18175}
18176_LT_EOF
18177 ;;
18178 *)
18179 cat << \_LT_EOF >> "$cfgfile"
18180
18181# func_append var value
18182# Append VALUE to the end of shell variable VAR.
18183func_append ()
18184{
18185 eval "$1=\$$1\$2"
18186}
18187
18188_LT_EOF
18189 ;;
18190 esac
18191
18192
18193 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18194 || (rm -f "$cfgfile"; exit 1)
18195
18196 mv -f "$cfgfile" "$ofile" ||
18197 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18198 chmod +x "$ofile"
18199
18200
18201 cat <<_LT_EOF >> "$ofile"
18202
18203# ### BEGIN LIBTOOL TAG CONFIG: D
18204
18205# The linker used to build libraries.
18206LD=$lt_LD_D
18207
18208# How to create reloadable object files.
18209reload_flag=$lt_reload_flag_D
18210reload_cmds=$lt_reload_cmds_D
18211
18212# Commands used to build an old-style archive.
18213old_archive_cmds=$lt_old_archive_cmds_D
18214
18215# A language specific compiler.
18216CC=$lt_compiler_D
18217
18218# Is the compiler the GNU compiler?
18219with_gcc=$GCC_D
18220
18221# Compiler flag to turn off builtin functions.
18222no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18223
18224# How to pass a linker flag through the compiler.
18225wl=$lt_lt_prog_compiler_wl_D
18226
18227# Additional compiler flags for building library objects.
18228pic_flag=$lt_lt_prog_compiler_pic_D
18229
18230# Compiler flag to prevent dynamic linking.
18231link_static_flag=$lt_lt_prog_compiler_static_D
18232
18233# Does compiler simultaneously support -c and -o options?
18234compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18235
18236# Whether or not to add -lc for building shared libraries.
18237build_libtool_need_lc=$archive_cmds_need_lc_D
18238
18239# Whether or not to disallow shared libs when runtime libs are static.
18240allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18241
18242# Compiler flag to allow reflexive dlopens.
18243export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18244
18245# Compiler flag to generate shared objects directly from archives.
18246whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18247
18248# Whether the compiler copes with passing no objects directly.
18249compiler_needs_object=$lt_compiler_needs_object_D
18250
18251# Create an old-style archive from a shared archive.
18252old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18253
18254# Create a temporary old-style archive to link instead of a shared archive.
18255old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18256
18257# Commands used to build a shared archive.
18258archive_cmds=$lt_archive_cmds_D
18259archive_expsym_cmds=$lt_archive_expsym_cmds_D
18260
18261# Commands used to build a loadable module if different from building
18262# a shared archive.
18263module_cmds=$lt_module_cmds_D
18264module_expsym_cmds=$lt_module_expsym_cmds_D
18265
18266# Whether we are building with GNU ld or not.
18267with_gnu_ld=$lt_with_gnu_ld_D
18268
18269# Flag that allows shared libraries with undefined symbols to be built.
18270allow_undefined_flag=$lt_allow_undefined_flag_D
18271
18272# Flag that enforces no undefined symbols.
18273no_undefined_flag=$lt_no_undefined_flag_D
18274
18275# Flag to hardcode \$libdir into a binary during linking.
18276# This must work even if \$libdir does not exist
18277hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18278
18279# If ld is used when linking, flag to hardcode \$libdir into a binary
18280# during linking. This must work even if \$libdir does not exist.
18281hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18282
18283# Whether we need a single "-rpath" flag with a separated argument.
18284hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18285
18286# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18287# DIR into the resulting binary.
18288hardcode_direct=$hardcode_direct_D
18289
18290# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18291# DIR into the resulting binary and the resulting library dependency is
18292# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18293# library is relocated.
18294hardcode_direct_absolute=$hardcode_direct_absolute_D
18295
18296# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18297# into the resulting binary.
18298hardcode_minus_L=$hardcode_minus_L_D
18299
18300# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18301# into the resulting binary.
18302hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18303
18304# Set to "yes" if building a shared library automatically hardcodes DIR
18305# into the library and all subsequent libraries and executables linked
18306# against it.
18307hardcode_automatic=$hardcode_automatic_D
18308
18309# Set to yes if linker adds runtime paths of dependent libraries
18310# to runtime path list.
18311inherit_rpath=$inherit_rpath_D
18312
18313# Whether libtool must link a program against all its dependency libraries.
18314link_all_deplibs=$link_all_deplibs_D
18315
18316# Fix the shell variable \$srcfile for the compiler.
18317fix_srcfile_path=$lt_fix_srcfile_path_D
18318
18319# Set to "yes" if exported symbols are required.
18320always_export_symbols=$always_export_symbols_D
18321
18322# The commands to list exported symbols.
18323export_symbols_cmds=$lt_export_symbols_cmds_D
18324
18325# Symbols that should not be listed in the preloaded symbols.
18326exclude_expsyms=$lt_exclude_expsyms_D
18327
18328# Symbols that must always be exported.
18329include_expsyms=$lt_include_expsyms_D
18330
18331# Commands necessary for linking programs (against libraries) with templates.
18332prelink_cmds=$lt_prelink_cmds_D
18333
18334# Specify filename containing input files.
18335file_list_spec=$lt_file_list_spec_D
18336
18337# How to hardcode a shared library path into an executable.
18338hardcode_action=$hardcode_action_D
18339
18340# ### END LIBTOOL TAG CONFIG: D
18341_LT_EOF
18342
18343 ;;
18344 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
ac67752d
IB
18345 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18346s!`test -f '$<' || echo '$(srcdir)/'`!!
b4c522fa 18347_EOF
ac67752d
IB
18348 sed -f vpsed$$ $ac_file > tmp$$
18349 mv tmp$$ $ac_file
18350 rm vpsed$$
18351 echo 'MULTISUBDIR =' >> $ac_file
18352 ml_norecursion=yes
18353 . ${multi_basedir}/config-ml.in
18354 { ml_norecursion=; unset ml_norecursion;}
18355 ;;
18356 "src/Makefile":F) cat > vpsed$$ << \_EOF
18357s!`test -f '$<' || echo '$(srcdir)/'`!!
18358_EOF
18359 sed -f vpsed$$ $ac_file > tmp$$
18360 mv tmp$$ $ac_file
18361 rm vpsed$$
18362 echo 'MULTISUBDIR =' >> $ac_file
18363 ml_norecursion=yes
18364 . ${multi_basedir}/config-ml.in
18365 { ml_norecursion=; unset ml_norecursion;}
18366 ;;
18367 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18368s!`test -f '$<' || echo '$(srcdir)/'`!!
18369_EOF
18370 sed -f vpsed$$ $ac_file > tmp$$
18371 mv tmp$$ $ac_file
18372 rm vpsed$$
18373 echo 'MULTISUBDIR =' >> $ac_file
18374 ml_norecursion=yes
18375 . ${multi_basedir}/config-ml.in
18376 { ml_norecursion=; unset ml_norecursion;}
b4c522fa
IB
18377 ;;
18378
18379 esac
18380done # for ac_tag
18381
18382
18383as_fn_exit 0
18384_ACEOF
18385ac_clean_files=$ac_clean_files_save
18386
18387test $ac_write_fail = 0 ||
22e05272 18388 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
18389
18390
18391# configure is writing to config.log, and then calls config.status.
18392# config.status does its own redirection, appending to config.log.
18393# Unfortunately, on DOS this fails, as config.log is still kept open
18394# by configure, so config.status won't be able to write to it; its
18395# output is simply discarded. So we exec the FD to /dev/null,
18396# effectively closing config.log, so it can be properly (re)opened and
18397# appended to by config.status. When coming back to configure, we
18398# need to make the FD available again.
18399if test "$no_create" != yes; then
18400 ac_cs_success=:
18401 ac_config_status_args=
18402 test "$silent" = yes &&
18403 ac_config_status_args="$ac_config_status_args --quiet"
18404 exec 5>/dev/null
18405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18406 exec 5>>config.log
18407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18408 # would make configure fail if this is the last instruction.
22e05272 18409 $ac_cs_success || as_fn_exit 1
b4c522fa
IB
18410fi
18411if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18413$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18414fi
18415