]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
Lower VEC_COND_EXPR into internal functions.
[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
b4c522fa
IB
703libphobos_srcdir
704libphobos_builddir
705get_gcc_base_ver
706phobos_compiler_shared_flag
707phobos_compiler_pic_flag
b4c522fa
IB
708OTOOL64
709OTOOL
710LIPO
711NMEDIT
712DSYMUTIL
713OBJDUMP
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
b4c522fa
IB
720SED
721LIBTOOL
722CFLAGS_FOR_BUILD
723CC_FOR_BUILD
724AR
08c1d39d 725CET_FLAGS
b4c522fa
IB
726RANLIB
727MAINT
728MAINTAINER_MODE_FALSE
729MAINTAINER_MODE_TRUE
730GDCFLAGS
731GDC
732CCASFLAGS
733CCAS
22e05272
JM
734AM_BACKSLASH
735AM_DEFAULT_VERBOSITY
736AM_DEFAULT_V
737AM_V
b4c522fa
IB
738am__untar
739am__tar
740AMTAR
741am__leading_dot
742SET_MAKE
743AWK
744mkdir_p
745MKDIR_P
746INSTALL_STRIP_PROGRAM
747STRIP
748install_sh
749MAKEINFO
750AUTOHEADER
751AUTOMAKE
752AUTOCONF
753ACLOCAL
754VERSION
755PACKAGE
756CYGPATH_W
757am__isrc
758INSTALL_DATA
759INSTALL_SCRIPT
760INSTALL_PROGRAM
235d1c46
RO
761EGREP
762GREP
763CPP
764OBJEXT
765EXEEXT
766ac_ct_CC
767CPPFLAGS
768LDFLAGS
769CFLAGS
770CC
b4c522fa
IB
771target_os
772target_vendor
773target_cpu
774target
775host_os
776host_vendor
777host_cpu
778host
779build_os
780build_vendor
781build_cpu
782build
783multi_basedir
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_URL
815PACKAGE_BUGREPORT
816PACKAGE_STRING
817PACKAGE_VERSION
818PACKAGE_TARNAME
819PACKAGE_NAME
820PATH_SEPARATOR
821SHELL'
0b6e3127 822ac_subst_files='DRTSTUFF_SPEC'
b4c522fa
IB
823ac_user_opts='
824enable_option_checking
825enable_multilib
22e05272 826enable_silent_rules
b4c522fa 827enable_maintainer_mode
08c1d39d 828enable_cet
b4c522fa
IB
829enable_shared
830enable_static
831with_pic
832enable_fast_install
833with_gnu_ld
834enable_libtool_lock
835with_gcc_major_version_only
836enable_werror
b4c522fa
IB
837with_libatomic
838with_libbacktrace
839with_target_system_zlib
840with_cross_host
ac67752d 841enable_version_specific_runtime_libs
e8e66971 842with_toolexeclibdir
bca0a321 843enable_libphobos
371d1011 844with_libphobos_druntime_only
c0dbfbd7 845enable_libphobos_checking
b4c522fa
IB
846'
847 ac_precious_vars='build_alias
848host_alias
849target_alias
235d1c46
RO
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CPP'
b4c522fa
IB
856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894includedir='${prefix}/include'
895oldincludedir='/usr/include'
896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897infodir='${datarootdir}/info'
898htmldir='${docdir}'
899dvidir='${docdir}'
900pdfdir='${docdir}'
901psdir='${docdir}'
902libdir='${exec_prefix}/lib'
903localedir='${datarootdir}/locale'
904mandir='${datarootdir}/man'
905
906ac_prev=
907ac_dashdash=
908for ac_option
909do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
22e05272
JM
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
b4c522fa
IB
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 965 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 991 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996"enable_$ac_useropt"
997"*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1195 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1211 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216"with_$ac_useropt"
1217"*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
22e05272
JM
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242Try \`$0 --help' for more information"
b4c522fa
IB
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b4c522fa
IB
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b4c522fa
IB
1261 ;;
1262
1263 esac
1264done
1265
1266if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1268 as_fn_error $? "missing argument to $ac_option"
b4c522fa
IB
1269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
22e05272 1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
b4c522fa
IB
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
d8b1f499 1283 libdir localedir mandir
b4c522fa
IB
1284do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
22e05272 1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b4c522fa
IB
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
b4c522fa
IB
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1325 as_fn_error $? "working directory cannot be determined"
b4c522fa 1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1327 as_fn_error $? "pwd does not report name of working directory"
b4c522fa
IB
1328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339$as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361else
1362 ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b4c522fa
IB
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
22e05272 1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b4c522fa
IB
1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
22e05272 1410 -q, --quiet, --silent do not print \`checking ...' messages
b4c522fa
IB
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of package-unused version-unused:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-multilib build many library versions (default)
22e05272
JM
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
4c1a5d8b 1481 --enable-cet enable Intel CET in target libraries [default=auto]
b4c522fa
IB
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-werror turns on -Werror [default=no]
ac67752d
IB
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
bca0a321 1491 --enable-libphobos Enable libphobos
c0dbfbd7
IB
1492 --enable-libphobos-checking[=LIST]
1493 enable expensive run-time checks. With LIST, enable
1494 only specific categories of checks. Categories are:
1495 yes,no,all,none,release. Flags are: assert or other
1496 strings
b4c522fa
IB
1497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-gcc-major-version-only
1505 use only GCC major number in filesystem paths
1506 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1507 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1508 auto)
bb50312e 1509 --with-target-system-zlib={yes,no,auto}
b4c522fa
IB
1510 use installed libz (default: no)
1511 --with-cross-host=HOST configuring with a cross compiler
e8e66971
MR
1512 --with-toolexeclibdir=DIR
1513 install libraries built with a cross compiler within
1514 DIR
261bd78d
IB
1515 --with-libphobos-druntime-only={yes,no,auto}
1516 build only the druntime library (default: auto)
b4c522fa
IB
1517
1518Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b4c522fa 1525 you have headers in a nonstandard directory <include dir>
235d1c46 1526 CPP C preprocessor
b4c522fa
IB
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 GDC D compiler command
1530 GDCFLAGS D compiler flags
b4c522fa
IB
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
1535Report bugs to the package provider.
1536_ACEOF
1537ac_status=$?
1538fi
1539
1540if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548case "$ac_dir" in
1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550*)
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558esac
1559ac_abs_top_builddir=$ac_pwd
1560ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561# for backward compatibility:
1562ac_top_builddir=$ac_top_build_prefix
1563
1564case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577esac
1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1593fi
1594
1595test -n "$ac_init_help" && exit $ac_status
1596if $ac_init_version; then
1597 cat <<\_ACEOF
1598package-unused configure version-unused
22e05272 1599generated by GNU Autoconf 2.69
b4c522fa 1600
0b6e3127 1601Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
1602This configure script is free software; the Free Software Foundation
1603gives unlimited permission to copy, distribute and modify it.
1604_ACEOF
1605 exit
1606fi
1607
1608## ------------------------ ##
1609## Autoconf initialization. ##
1610## ------------------------ ##
1611
1612# ac_fn_c_try_compile LINENO
1613# --------------------------
1614# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_compile ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639else
1640 $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644fi
22e05272
JM
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
b4c522fa
IB
1647
1648} # ac_fn_c_try_compile
1649
235d1c46
RO
1650# ac_fn_c_try_cpp LINENO
1651# ----------------------
1652# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_cpp ()
b4c522fa
IB
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
b4c522fa
IB
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
235d1c46 1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
b4c522fa
IB
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b4c522fa 1673 test ! -s conftest.err
235d1c46 1674 }; then :
b4c522fa
IB
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
235d1c46 1680 ac_retval=1
b4c522fa 1681fi
22e05272
JM
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
b4c522fa 1684
235d1c46 1685} # ac_fn_c_try_cpp
b4c522fa 1686
235d1c46
RO
1687# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1688# -------------------------------------------------------
1689# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690# the include files in INCLUDES and setting the cache variable VAR
1691# accordingly.
1692ac_fn_c_check_header_mongrel ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if eval \${$3+:} false; then :
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697$as_echo_n "checking for $2... " >&6; }
1698if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700fi
1701eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704else
1705 # Is the header compilable?
1706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707$as_echo_n "checking $2 usability... " >&6; }
1708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h. */
1710$4
1711#include <$2>
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_header_compiler=yes
1715else
1716 ac_header_compiler=no
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720$as_echo "$ac_header_compiler" >&6; }
1721
1722# Is the header present?
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724$as_echo_n "checking $2 presence... " >&6; }
1725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h. */
1727#include <$2>
1728_ACEOF
1729if ac_fn_c_try_cpp "$LINENO"; then :
1730 ac_header_preproc=yes
1731else
1732 ac_header_preproc=no
1733fi
1734rm -f conftest.err conftest.i conftest.$ac_ext
1735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736$as_echo "$ac_header_preproc" >&6; }
1737
1738# So? What about this header?
1739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1740 yes:no: )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 ;;
1746 no:yes:* )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1750$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1754$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 ;;
1758esac
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763else
1764 eval "$3=\$ac_header_compiler"
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_header_mongrel
1773
1774# ac_fn_c_try_run LINENO
1775# ----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777# that executables *can* be run.
1778ac_fn_c_try_run ()
b4c522fa
IB
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b4c522fa
IB
1781 if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
235d1c46 1788 (eval "$ac_link") 2>&5
b4c522fa 1789 ac_status=$?
b4c522fa 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
b4c522fa
IB
1802 ac_retval=0
1803else
235d1c46
RO
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
235d1c46 1808 ac_retval=$ac_status
b4c522fa 1809fi
b4c522fa 1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
b4c522fa 1813
235d1c46 1814} # ac_fn_c_try_run
b4c522fa
IB
1815
1816# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817# -------------------------------------------------------
1818# Tests whether HEADER exists and can be compiled using the include files in
1819# INCLUDES, setting the cache variable VAR accordingly.
1820ac_fn_c_check_header_compile ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
22e05272 1825if eval \${$3+:} false; then :
b4c522fa
IB
1826 $as_echo_n "(cached) " >&6
1827else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835else
1836 eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
22e05272 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1844
1845} # ac_fn_c_check_header_compile
1846
235d1c46
RO
1847# ac_fn_d_try_compile LINENO
1848# --------------------------
1849# Try to compile conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_d_try_compile ()
b4c522fa
IB
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46
RO
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
b4c522fa
IB
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
235d1c46 1861 (eval "$ac_compile") 2>conftest.err
b4c522fa
IB
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1869 test $ac_status = 0; } && {
1870 test -z "$ac_d_werror_flag" ||
b4c522fa 1871 test ! -s conftest.err
235d1c46 1872 } && test -s conftest.$ac_objext; then :
b4c522fa
IB
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
235d1c46 1878 ac_retval=1
b4c522fa 1879fi
22e05272
JM
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
b4c522fa 1882
235d1c46 1883} # ac_fn_d_try_compile
b4c522fa 1884
235d1c46
RO
1885# ac_fn_c_try_link LINENO
1886# -----------------------
1887# Try to link conftest.$ac_ext, and return whether this succeeded.
1888ac_fn_c_try_link ()
b4c522fa
IB
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1891 rm -f conftest.$ac_objext conftest$ac_exeext
b4c522fa
IB
1892 if { { ac_try="$ac_link"
1893case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
235d1c46 1899 (eval "$ac_link") 2>conftest.err
b4c522fa 1900 ac_status=$?
235d1c46
RO
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
b4c522fa 1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }; then :
b4c522fa
IB
1914 ac_retval=0
1915else
235d1c46 1916 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
235d1c46 1919 ac_retval=1
b4c522fa 1920fi
235d1c46
RO
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
b4c522fa 1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
b4c522fa 1928
235d1c46 1929} # ac_fn_c_try_link
b4c522fa
IB
1930
1931# ac_fn_c_check_func LINENO FUNC VAR
1932# ----------------------------------
1933# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934ac_fn_c_check_func ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
22e05272 1939if eval \${$3+:} false; then :
b4c522fa
IB
1940 $as_echo_n "(cached) " >&6
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946#define $2 innocuous_$2
1947
1948/* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1952
1953#ifdef __STDC__
1954# include <limits.h>
1955#else
1956# include <assert.h>
1957#endif
1958
1959#undef $2
1960
1961/* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1964#ifdef __cplusplus
1965extern "C"
1966#endif
1967char $2 ();
1968/* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971#if defined __stub_$2 || defined __stub___$2
1972choke me
1973#endif
1974
1975int
1976main ()
1977{
1978return $2 ();
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_link "$LINENO"; then :
1984 eval "$3=yes"
1985else
1986 eval "$3=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1990fi
1991eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
22e05272 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1995
1996} # ac_fn_c_check_func
1997
235d1c46
RO
1998# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999# ----------------------------------------------------
2000# Tries to find if the field MEMBER exists in type AGGR, after including
2001# INCLUDES, setting cache variable VAR accordingly.
2002ac_fn_c_check_member ()
2003{
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006$as_echo_n "checking for $2.$3... " >&6; }
2007if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$5
2013int
2014main ()
2015{
2016static $2 ac_aggr;
2017if (ac_aggr.$3)
2018return 0;
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$5
2029int
2030main ()
2031{
2032static $2 ac_aggr;
2033if (sizeof ac_aggr.$3)
2034return 0;
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041else
2042 eval "$4=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053} # ac_fn_c_check_member
2054
2055# ac_fn_d_try_link LINENO
2056# -----------------------
2057# Try to link conftest.$ac_ext, and return whether this succeeded.
b4c522fa
IB
2058ac_fn_d_try_link ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2063case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_d_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest$ac_exeext && {
2081 test "$cross_compiling" = yes ||
22e05272 2082 test -x conftest$ac_exeext
b4c522fa
IB
2083 }; then :
2084 ac_retval=0
2085else
2086 $as_echo "$as_me: failed program was:" >&5
2087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 ac_retval=1
2090fi
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
b4c522fa
IB
2098
2099} # ac_fn_d_try_link
b4c522fa
IB
2100cat >config.log <<_ACEOF
2101This file contains any messages produced by compilers while
2102running configure, to aid debugging if configure makes a mistake.
2103
2104It was created by package-unused $as_me version-unused, which was
22e05272 2105generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
2106
2107 $ $0 $@
2108
2109_ACEOF
2110exec 5>>config.log
2111{
2112cat <<_ASUNAME
2113## --------- ##
2114## Platform. ##
2115## --------- ##
2116
2117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134_ASUNAME
2135
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2142 done
2143IFS=$as_save_IFS
2144
2145} >&5
2146
2147cat >&5 <<_ACEOF
2148
2149
2150## ----------- ##
2151## Core tests. ##
2152## ----------- ##
2153
2154_ACEOF
2155
2156
2157# Keep a trace of the command line.
2158# Strip out --no-create and --no-recursion so they do not pile up.
2159# Strip out --silent because we don't want to record it for future runs.
2160# Also quote any args containing shell meta-characters.
2161# Make two passes to allow for proper duplicate-argument suppression.
2162ac_configure_args=
2163ac_configure_args0=
2164ac_configure_args1=
2165ac_must_keep_next=false
2166for ac_pass in 1 2
2167do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201done
2202{ ac_configure_args0=; unset ac_configure_args0;}
2203{ ac_configure_args1=; unset ac_configure_args1;}
2204
2205# When interrupted or exit'd, cleanup temporary files, and complete
2206# config.log. We remove comments because anyway the quotes in there
2207# would cause problems or look ugly.
2208# WARNING: Use '\'' to represent an apostrophe within the trap.
2209# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2212 {
2213 echo
2214
22e05272 2215 $as_echo "## ---------------- ##
b4c522fa 2216## Cache variables. ##
22e05272 2217## ---------------- ##"
b4c522fa
IB
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2220(
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2243 *)
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248)
2249 echo
2250
22e05272 2251 $as_echo "## ----------------- ##
b4c522fa 2252## Output variables. ##
22e05272 2253## ----------------- ##"
b4c522fa
IB
2254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
22e05272 2266 $as_echo "## ------------------- ##
b4c522fa 2267## File substitutions. ##
22e05272 2268## ------------------- ##"
b4c522fa
IB
2269 echo
2270 for ac_var in $ac_subst_files
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279 fi
2280
2281 if test -s confdefs.h; then
22e05272 2282 $as_echo "## ----------- ##
b4c522fa 2283## confdefs.h. ##
22e05272 2284## ----------- ##"
b4c522fa
IB
2285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296' 0
2297for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299done
2300ac_signal=0
2301
2302# confdefs.h avoids OS command line length limits that DEFS can exceed.
2303rm -f -r conftest* confdefs.h
2304
2305$as_echo "/* confdefs.h */" > confdefs.h
2306
2307# Predefined preprocessor variables.
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_NAME "$PACKAGE_NAME"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_VERSION "$PACKAGE_VERSION"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_STRING "$PACKAGE_STRING"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_URL "$PACKAGE_URL"
2331_ACEOF
2332
2333
2334# Let the site file select an alternate cache file if it wants to.
2335# Prefer an explicitly selected file to automatically selected ones.
2336ac_site_file1=NONE
2337ac_site_file2=NONE
2338if test -n "$CONFIG_SITE"; then
22e05272
JM
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1=./$CONFIG_SITE;;
2342 */*) ac_site_file1=$CONFIG_SITE;;
2343 *) ac_site_file1=./$CONFIG_SITE;;
2344 esac
b4c522fa
IB
2345elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351fi
2352for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353do
2354 test "x$ac_site_file" = xNONE && continue
22e05272 2355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b4c522fa
IB
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2359 . "$ac_site_file" \
2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362as_fn_error $? "failed to load site script $ac_site_file
2363See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2364 fi
2365done
2366
2367if test -r "$cache_file"; then
22e05272
JM
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b4c522fa
IB
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372$as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2377 fi
2378else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380$as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2382fi
2383
2384# Check that the precious variables saved in the cache have kept the same
2385# value.
2386ac_cache_corrupted=false
2387for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2402 *)
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2432 fi
2433done
2434if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b4c522fa
IB
2440fi
2441## -------------------- ##
2442## Main body of script. ##
2443## -------------------- ##
2444
2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453
2454
2455
2456ac_config_headers="$ac_config_headers config.h"
2457
2458
2459# Default to --enable-multilib
2460# Check whether --enable-multilib was given.
2461if test "${enable_multilib+set}" = set; then :
2462 enableval=$enable_multilib; case "$enableval" in
2463 yes) multilib=yes ;;
2464 no) multilib=no ;;
22e05272 2465 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
b4c522fa
IB
2466 esac
2467else
2468 multilib=yes
2469fi
2470
2471
2472# We may get other options which we leave undocumented:
2473# --with-target-subdir, --with-multisrctop, --with-multisubdir
2474# See config-ml.in if you want the gory details.
2475
2476if test "$srcdir" = "."; then
2477 if test "$with_target_subdir" != "."; then
2478 multi_basedir="$srcdir/$with_multisrctop../.."
2479 else
2480 multi_basedir="$srcdir/$with_multisrctop.."
2481 fi
2482else
2483 multi_basedir="$srcdir/.."
2484fi
2485
2486
2487# Even if the default multilib is not a cross compilation,
2488# it may be that some of the other multilibs are.
2489if test $cross_compiling = no && test $multilib = yes \
2490 && test "x${with_multisubdir}" != x ; then
2491 cross_compiling=maybe
2492fi
2493
2494ac_config_commands="$ac_config_commands default-1"
2495
2496ac_aux_dir=
2497for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2498 if test -f "$ac_dir/install-sh"; then
2499 ac_aux_dir=$ac_dir
2500 ac_install_sh="$ac_aux_dir/install-sh -c"
2501 break
2502 elif test -f "$ac_dir/install.sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install.sh -c"
2505 break
2506 elif test -f "$ac_dir/shtool"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/shtool install -c"
2509 break
2510 fi
b4c522fa
IB
2511done
2512if test -z "$ac_aux_dir"; then
22e05272 2513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b4c522fa
IB
2514fi
2515
2516# These three variables are undocumented and unsupported,
2517# and are intended to be withdrawn in a future Autoconf release.
2518# They can cause serious problems if a builder's source tree is in a directory
2519# whose full name contains unusual characters.
2520ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2523
2524
2525# Make sure we can run config.sub.
2526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b4c522fa
IB
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530$as_echo_n "checking build system type... " >&6; }
22e05272 2531if ${ac_cv_build+:} false; then :
b4c522fa
IB
2532 $as_echo_n "(cached) " >&6
2533else
2534 ac_build_alias=$build_alias
2535test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537test "x$ac_build_alias" = x &&
22e05272 2538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b4c522fa 2539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b4c522fa
IB
2541
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544$as_echo "$ac_cv_build" >&6; }
2545case $ac_cv_build in
2546*-*-*) ;;
22e05272 2547*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b4c522fa
IB
2548esac
2549build=$ac_cv_build
2550ac_save_IFS=$IFS; IFS='-'
2551set x $ac_cv_build
2552shift
2553build_cpu=$1
2554build_vendor=$2
2555shift; shift
2556# Remember, the first character of IFS is used to create $*,
2557# except with old shells:
2558build_os=$*
2559IFS=$ac_save_IFS
2560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2561
2562
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564$as_echo_n "checking host system type... " >&6; }
22e05272 2565if ${ac_cv_host+:} false; then :
b4c522fa
IB
2566 $as_echo_n "(cached) " >&6
2567else
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2570else
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b4c522fa
IB
2573fi
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577$as_echo "$ac_cv_host" >&6; }
2578case $ac_cv_host in
2579*-*-*) ;;
22e05272 2580*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b4c522fa
IB
2581esac
2582host=$ac_cv_host
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_host
2585shift
2586host_cpu=$1
2587host_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591host_os=$*
2592IFS=$ac_save_IFS
2593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2594
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597$as_echo_n "checking target system type... " >&6; }
22e05272 2598if ${ac_cv_target+:} false; then :
b4c522fa
IB
2599 $as_echo_n "(cached) " >&6
2600else
2601 if test "x$target_alias" = x; then
2602 ac_cv_target=$ac_cv_host
2603else
2604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b4c522fa
IB
2606fi
2607
2608fi
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610$as_echo "$ac_cv_target" >&6; }
2611case $ac_cv_target in
2612*-*-*) ;;
22e05272 2613*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b4c522fa
IB
2614esac
2615target=$ac_cv_target
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_target
2618shift
2619target_cpu=$1
2620target_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624target_os=$*
2625IFS=$ac_save_IFS
2626case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2627
2628
2629# The aliases save the names the user supplied, while $host etc.
2630# will get canonicalized.
2631test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2633 NONENONEs,x,x, &&
2634 program_prefix=${target_alias}-
2635
235d1c46
RO
2636# Expand $ac_aux_dir to an absolute path.
2637am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa 2638
235d1c46
RO
2639ac_ext=c
2640ac_cpp='$CPP $CPPFLAGS'
2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646set dummy ${ac_tool_prefix}gcc; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2650 $as_echo_n "(cached) " >&6
2651else
235d1c46
RO
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
235d1c46
RO
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
b4c522fa
IB
2667 done
2668IFS=$as_save_IFS
2669
b4c522fa 2670fi
b4c522fa 2671fi
235d1c46
RO
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675$as_echo "$CC" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
b4c522fa 2680
b4c522fa 2681
b4c522fa 2682fi
235d1c46
RO
2683if test -z "$ac_cv_prog_CC"; then
2684 ac_ct_CC=$CC
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686set dummy gcc; ac_word=$2
b4c522fa
IB
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2689if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2690 $as_echo_n "(cached) " >&6
2691else
235d1c46
RO
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2702 ac_cv_prog_ac_ct_CC="gcc"
b4c522fa
IB
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707 done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
235d1c46
RO
2712ac_ct_CC=$ac_cv_prog_ac_ct_CC
2713if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
2716else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
235d1c46
RO
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728ac_tool_warned=yes ;;
2729esac
2730 CC=$ac_ct_CC
2731 fi
2732else
2733 CC="$ac_cv_prog_CC"
b4c522fa 2734fi
235d1c46
RO
2735
2736if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739set dummy ${ac_tool_prefix}cc; ac_word=$2
b4c522fa
IB
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2742if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2743 $as_echo_n "(cached) " >&6
2744else
235d1c46
RO
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2755 ac_cv_prog_CC="${ac_tool_prefix}cc"
b4c522fa
IB
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760 done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
235d1c46
RO
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
b4c522fa
IB
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
b4c522fa 2774
b4c522fa
IB
2775 fi
2776fi
235d1c46
RO
2777if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779set dummy cc; ac_word=$2
b4c522fa
IB
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2782if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2783 $as_echo_n "(cached) " >&6
2784else
235d1c46
RO
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa 2787else
235d1c46 2788 ac_prog_rejected=no
b4c522fa
IB
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46
RO
2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected=yes
2798 continue
2799 fi
2800 ac_cv_prog_CC="cc"
b4c522fa
IB
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805 done
2806IFS=$as_save_IFS
2807
235d1c46
RO
2808if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818 fi
b4c522fa
IB
2819fi
2820fi
235d1c46
RO
2821fi
2822CC=$ac_cv_prog_CC
2823if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825$as_echo "$CC" >&6; }
b4c522fa
IB
2826else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
b4c522fa
IB
2829fi
2830
2831
22e05272 2832fi
235d1c46
RO
2833if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog in cl.exe
2836 do
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4c522fa
IB
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2841if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2842 $as_echo_n "(cached) " >&6
2843else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859 done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867$as_echo "$CC" >&6; }
2868else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
235d1c46
RO
2874 test -n "$CC" && break
2875 done
b4c522fa 2876fi
235d1c46 2877if test -z "$CC"; then
b4c522fa 2878 ac_ct_CC=$CC
235d1c46
RO
2879 for ac_prog in cl.exe
2880do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882set dummy $ac_prog; ac_word=$2
b4c522fa
IB
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2885if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2886 $as_echo_n "(cached) " >&6
2887else
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2898 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902done
2903 done
2904IFS=$as_save_IFS
2905
2906fi
2907fi
2908ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911$as_echo "$ac_ct_CC" >&6; }
2912else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915fi
235d1c46
RO
2916
2917
2918 test -n "$ac_ct_CC" && break
2919done
b4c522fa
IB
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925yes:)
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928ac_tool_warned=yes ;;
2929esac
2930 CC=$ac_ct_CC
2931 fi
2932fi
2933
2934fi
2935
2936
2937test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2939as_fn_error $? "no acceptable C compiler found in \$PATH
2940See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2941
2942# Provide some information about the compiler.
2943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2944set X $ac_compile
2945ac_compiler=$2
2946for ac_option in --version -v -V -qversion; do
2947 { { ac_try="$ac_compiler $ac_option >&5"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 ac_status=$?
2956 if test -s conftest.err; then
2957 sed '10a\
2958... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
b4c522fa 2961 fi
22e05272 2962 rm -f conftest.er1 conftest.err
b4c522fa
IB
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2965done
2966
2967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978ac_clean_files_save=$ac_clean_files
22e05272 2979ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b4c522fa
IB
2980# Try to create an executable without -o first, disregard a.out.
2981# It will help us diagnose broken compilers, and finding out an intuition
2982# of exeext.
22e05272
JM
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984$as_echo_n "checking whether the C compiler works... " >&6; }
b4c522fa
IB
2985ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986
2987# The possible output files:
2988ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989
2990ac_rmfiles=
2991for ac_file in $ac_files
2992do
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 esac
2997done
2998rm -f $ac_rmfiles
2999
3000if { { ac_try="$ac_link_default"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006$as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013# in a Makefile. We should not override ac_cv_exeext if it was cached,
3014# so that the user can short-circuit this test for compilers unknown to
3015# Autoconf.
3016for ac_file in $ac_files ''
3017do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 ;;
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 fi
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3037 * )
3038 break;;
3039 esac
3040done
3041test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043else
3044 ac_file=''
3045fi
b4c522fa 3046if test -z "$ac_file"; then :
22e05272
JM
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049$as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3054as_fn_error 77 "C compiler cannot create executables
3055See \`config.log' for more details" "$LINENO" 5; }
3056else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058$as_echo "yes" >&6; }
b4c522fa 3059fi
22e05272
JM
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061$as_echo_n "checking for C compiler default output file name... " >&6; }
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063$as_echo "$ac_file" >&6; }
b4c522fa
IB
3064ac_exeext=$ac_cv_exeext
3065
22e05272 3066rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b4c522fa 3067ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069$as_echo_n "checking for suffix of executables... " >&6; }
3070if { { ac_try="$ac_link"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076$as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083# work properly (i.e., refer to `conftest.exe'), while it won't with
3084# `rm'.
3085for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093done
3094else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3097as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 3099fi
22e05272 3100rm -f conftest conftest$ac_cv_exeext
b4c522fa
IB
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102$as_echo "$ac_cv_exeext" >&6; }
3103
3104rm -f conftest.$ac_ext
3105EXEEXT=$ac_cv_exeext
3106ac_exeext=$EXEEXT
22e05272
JM
3107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108/* end confdefs.h. */
3109#include <stdio.h>
3110int
3111main ()
3112{
3113FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120ac_clean_files="$ac_clean_files conftest.out"
3121# Check that the compiler produces executables we can run. If not, either
3122# the compiler is broken, or we cross compile.
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124$as_echo_n "checking whether we are cross compiling... " >&6; }
3125if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3148 cross_compiling=no
3149 else
3150 if test "$cross_compiling" = maybe; then
3151 cross_compiling=yes
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error $? "cannot run C compiled programs.
3156If you meant to cross compile, use \`--host'.
3157See \`config.log' for more details" "$LINENO" 5; }
3158 fi
3159 fi
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162$as_echo "$cross_compiling" >&6; }
3163
3164rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3168if ${ac_cv_objext+:} false; then :
b4c522fa
IB
3169 $as_echo_n "(cached) " >&6
3170else
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h. */
3173
3174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182rm -f conftest.o conftest.obj
3183if { { ac_try="$ac_compile"
3184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3199 break;;
3200 esac
3201done
3202else
3203 $as_echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3208as_fn_error $? "cannot compute suffix of object files: cannot compile
3209See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3210fi
3211rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212fi
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214$as_echo "$ac_cv_objext" >&6; }
3215OBJEXT=$ac_cv_objext
3216ac_objext=$OBJEXT
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3219if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
3220 $as_echo_n "(cached) " >&6
3221else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223/* end confdefs.h. */
3224
3225int
3226main ()
3227{
3228#ifndef __GNUC__
3229 choke me
3230#endif
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_compiler_gnu=yes
3238else
3239 ac_compiler_gnu=no
3240fi
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247if test $ac_compiler_gnu = yes; then
3248 GCC=yes
3249else
3250 GCC=
3251fi
3252ac_test_CFLAGS=${CFLAGS+set}
3253ac_save_CFLAGS=$CFLAGS
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3256if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
3257 $as_echo_n "(cached) " >&6
3258else
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3261 ac_cv_prog_cc_g=no
3262 CFLAGS="-g"
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h. */
3265
3266int
3267main ()
3268{
3269
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_g=yes
3276else
3277 CFLAGS=""
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289if ac_fn_c_try_compile "$LINENO"; then :
3290
3291else
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h. */
3296
3297int
3298main ()
3299{
3300
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309fi
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311fi
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316$as_echo "$ac_cv_prog_cc_g" >&6; }
3317if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3321 CFLAGS="-g -O2"
3322 else
3323 CFLAGS="-g"
3324 fi
3325else
3326 if test "$GCC" = yes; then
3327 CFLAGS="-O2"
3328 else
3329 CFLAGS=
3330 fi
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3334if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
3335 $as_echo_n "(cached) " >&6
3336else
3337 ac_cv_prog_cc_c89=no
3338ac_save_CC=$CC
3339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h. */
3341#include <stdarg.h>
3342#include <stdio.h>
22e05272 3343struct stat;
b4c522fa
IB
3344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345struct buf { int x; };
3346FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347static char *e (p, i)
3348 char **p;
3349 int i;
3350{
3351 return p[i];
3352}
3353static char *f (char * (*g) (char **, int), char **p, ...)
3354{
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361}
3362
3363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374#define FOO(x) 'x'
3375int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377int test (int i, double x);
3378struct s1 {int (*f) (int a);};
3379struct s2 {int (*f) (double a);};
3380int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381int argc;
3382char **argv;
3383int
3384main ()
3385{
3386return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393do
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3397fi
3398rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400done
3401rm -f conftest.$ac_ext
3402CC=$ac_save_CC
3403
3404fi
3405# AC_CACHE_VAL
3406case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409$as_echo "none needed" >&6; } ;;
3410 xno)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412$as_echo "unsupported" >&6; } ;;
3413 *)
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417esac
3418if test "x$ac_cv_prog_cc_c89" != xno; then :
3419
3420fi
3421
3422ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
22e05272
JM
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h. */
3440
3441int
3442main ()
3443{
3444
3445 ;
3446 return 0;
3447}
3448_ACEOF
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3454 for am_i in 1 2; do
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3461 : OK
3462 else
3463 am_cv_prog_cc_c_o=no
3464 break
3465 fi
3466 done
3467 rm -f core conftest*
3468 unset am_i
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471$as_echo "$am_cv_prog_cc_c_o" >&6; }
3472if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3479fi
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
b4c522fa
IB
3487
3488ac_ext=c
3489ac_cpp='$CPP $CPPFLAGS'
3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_c_compiler_gnu
235d1c46
RO
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3494$as_echo_n "checking how to run the C preprocessor... " >&6; }
3495# On Suns, sometimes $CPP names a directory.
3496if test -n "$CPP" && test -d "$CPP"; then
3497 CPP=
3498fi
3499if test -z "$CPP"; then
3500 if ${ac_cv_prog_CPP+:} false; then :
b4c522fa
IB
3501 $as_echo_n "(cached) " >&6
3502else
235d1c46
RO
3503 # Double quotes because CPP needs to be expanded
3504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3505 do
3506 ac_preproc_ok=false
3507for ac_c_preproc_warn_flag in '' yes
b4c522fa 3508do
235d1c46
RO
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h. */
3517#ifdef __STDC__
3518# include <limits.h>
3519#else
3520# include <assert.h>
3521#endif
3522 Syntax error
3523_ACEOF
3524if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3525
b4c522fa 3526else
235d1c46
RO
3527 # Broken: fails on valid input.
3528continue
b4c522fa 3529fi
235d1c46 3530rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3531
235d1c46
RO
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h. */
3536#include <ac_nonexistent.h>
3537_ACEOF
3538if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3540continue
b4c522fa 3541else
235d1c46
RO
3542 # Passes both tests.
3543ac_preproc_ok=:
3544break
3545fi
3546rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3547
235d1c46
RO
3548done
3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550rm -f conftest.i conftest.err conftest.$ac_ext
3551if $ac_preproc_ok; then :
3552 break
b4c522fa 3553fi
235d1c46
RO
3554
3555 done
3556 ac_cv_prog_CPP=$CPP
3557
b4c522fa 3558fi
235d1c46 3559 CPP=$ac_cv_prog_CPP
b4c522fa 3560else
235d1c46 3561 ac_cv_prog_CPP=$CPP
b4c522fa 3562fi
235d1c46
RO
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3564$as_echo "$CPP" >&6; }
3565ac_preproc_ok=false
3566for ac_c_preproc_warn_flag in '' yes
3567do
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h. */
3576#ifdef __STDC__
3577# include <limits.h>
3578#else
3579# include <assert.h>
3580#endif
3581 Syntax error
3582_ACEOF
3583if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3584
b4c522fa 3585else
235d1c46
RO
3586 # Broken: fails on valid input.
3587continue
b4c522fa 3588fi
235d1c46 3589rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3590
235d1c46
RO
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h. */
3595#include <ac_nonexistent.h>
3596_ACEOF
3597if ac_fn_c_try_cpp "$LINENO"; then :
3598 # Broken: success on invalid input.
3599continue
b4c522fa 3600else
235d1c46
RO
3601 # Passes both tests.
3602ac_preproc_ok=:
3603break
3604fi
3605rm -f conftest.err conftest.i conftest.$ac_ext
3606
b4c522fa 3607done
235d1c46
RO
3608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609rm -f conftest.i conftest.err conftest.$ac_ext
3610if $ac_preproc_ok; then :
b4c522fa 3611
b4c522fa 3612else
235d1c46
RO
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3616See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3617fi
3618
235d1c46
RO
3619ac_ext=c
3620ac_cpp='$CPP $CPPFLAGS'
3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa 3624
235d1c46
RO
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3627$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628if ${ac_cv_path_GREP+:} false; then :
b4c522fa
IB
3629 $as_echo_n "(cached) " >&6
3630else
235d1c46
RO
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
b4c522fa
IB
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
235d1c46 3639 for ac_prog in grep ggrep; do
b4c522fa 3640 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p "$ac_path_GREP" || continue
3643# Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645case `"$ac_path_GREP" --version 2>&1` in
3646*GNU*)
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648*)
3649 ac_count=0
3650 $as_echo_n 0123456789 >"conftest.in"
3651 while :
3652 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3664 fi
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
b4c522fa 3667 done
235d1c46
RO
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac
b4c522fa 3670
235d1c46
RO
3671 $ac_path_GREP_found && break 3
3672 done
3673 done
3674 done
3675IFS=$as_save_IFS
3676 if test -z "$ac_cv_path_GREP"; then
3677 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3678 fi
b4c522fa 3679else
235d1c46 3680 ac_cv_path_GREP=$GREP
b4c522fa
IB
3681fi
3682
b4c522fa 3683fi
235d1c46
RO
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3685$as_echo "$ac_cv_path_GREP" >&6; }
3686 GREP="$ac_cv_path_GREP"
3687
3688
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3690$as_echo_n "checking for egrep... " >&6; }
3691if ${ac_cv_path_EGREP+:} false; then :
b4c522fa
IB
3692 $as_echo_n "(cached) " >&6
3693else
235d1c46
RO
3694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3695 then ac_cv_path_EGREP="$GREP -E"
3696 else
3697 if test -z "$EGREP"; then
3698 ac_path_EGREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702do
b4c522fa
IB
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
235d1c46 3705 for ac_prog in egrep; do
b4c522fa 3706 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3708 as_fn_executable_p "$ac_path_EGREP" || continue
3709# Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711case `"$ac_path_EGREP" --version 2>&1` in
3712*GNU*)
3713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3714*)
3715 ac_count=0
3716 $as_echo_n 0123456789 >"conftest.in"
3717 while :
3718 do
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 $as_echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725 as_fn_arith $ac_count + 1 && ac_count=$as_val
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP="$ac_path_EGREP"
3729 ac_path_EGREP_max=$ac_count
3730 fi
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
b4c522fa 3733 done
235d1c46
RO
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735esac
b4c522fa 3736
235d1c46
RO
3737 $ac_path_EGREP_found && break 3
3738 done
b4c522fa 3739 done
b4c522fa
IB
3740 done
3741IFS=$as_save_IFS
235d1c46
RO
3742 if test -z "$ac_cv_path_EGREP"; then
3743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3744 fi
235d1c46
RO
3745else
3746 ac_cv_path_EGREP=$EGREP
b4c522fa
IB
3747fi
3748
235d1c46 3749 fi
b4c522fa 3750fi
235d1c46
RO
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3752$as_echo "$ac_cv_path_EGREP" >&6; }
3753 EGREP="$ac_cv_path_EGREP"
b4c522fa
IB
3754
3755
235d1c46
RO
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3757$as_echo_n "checking for ANSI C header files... " >&6; }
3758if ${ac_cv_header_stdc+:} false; then :
b4c522fa
IB
3759 $as_echo_n "(cached) " >&6
3760else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h. */
235d1c46
RO
3763#include <stdlib.h>
3764#include <stdarg.h>
3765#include <string.h>
3766#include <float.h>
b4c522fa
IB
3767
3768int
3769main ()
3770{
b4c522fa
IB
3771
3772 ;
3773 return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_compile "$LINENO"; then :
235d1c46 3777 ac_cv_header_stdc=yes
b4c522fa 3778else
235d1c46 3779 ac_cv_header_stdc=no
b4c522fa
IB
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b4c522fa 3782
235d1c46
RO
3783if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787#include <string.h>
3788
3789_ACEOF
3790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev/null 2>&1; then :
3792
b4c522fa 3793else
235d1c46 3794 ac_cv_header_stdc=no
b4c522fa 3795fi
235d1c46 3796rm -f conftest*
b4c522fa 3797
235d1c46
RO
3798fi
3799
3800if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804#include <stdlib.h>
b4c522fa 3805
b4c522fa 3806_ACEOF
235d1c46
RO
3807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev/null 2>&1; then :
3809
b4c522fa 3810else
235d1c46
RO
3811 ac_cv_header_stdc=no
3812fi
3813rm -f conftest*
3814
3815fi
3816
3817if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then :
3820 :
3821else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 3823/* end confdefs.h. */
235d1c46
RO
3824#include <ctype.h>
3825#include <stdlib.h>
3826#if ((' ' & 0x0FF) == 0x020)
3827# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3828# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3829#else
3830# define ISLOWER(c) \
3831 (('a' <= (c) && (c) <= 'i') \
3832 || ('j' <= (c) && (c) <= 'r') \
3833 || ('s' <= (c) && (c) <= 'z'))
3834# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3835#endif
b4c522fa 3836
235d1c46 3837#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b4c522fa
IB
3838int
3839main ()
3840{
235d1c46
RO
3841 int i;
3842 for (i = 0; i < 256; i++)
3843 if (XOR (islower (i), ISLOWER (i))
3844 || toupper (i) != TOUPPER (i))
3845 return 2;
b4c522fa
IB
3846 return 0;
3847}
3848_ACEOF
235d1c46 3849if ac_fn_c_try_run "$LINENO"; then :
b4c522fa
IB
3850
3851else
235d1c46 3852 ac_cv_header_stdc=no
b4c522fa 3853fi
235d1c46
RO
3854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3855 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa 3856fi
235d1c46 3857
b4c522fa 3858fi
b4c522fa 3859fi
235d1c46
RO
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3861$as_echo "$ac_cv_header_stdc" >&6; }
3862if test $ac_cv_header_stdc = yes; then
b4c522fa 3863
235d1c46 3864$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b4c522fa 3865
235d1c46 3866fi
b4c522fa 3867
235d1c46
RO
3868# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3870 inttypes.h stdint.h unistd.h
3871do :
3872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3874"
3875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3876 cat >>confdefs.h <<_ACEOF
3877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b4c522fa 3878_ACEOF
235d1c46 3879
b4c522fa 3880fi
235d1c46 3881
b4c522fa 3882done
b4c522fa 3883
b4c522fa 3884
235d1c46
RO
3885
3886 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3887if test "x$ac_cv_header_minix_config_h" = xyes; then :
3888 MINIX=yes
3889else
3890 MINIX=
b4c522fa
IB
3891fi
3892
b4c522fa 3893
235d1c46
RO
3894 if test "$MINIX" = yes; then
3895
3896$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3897
3898
3899$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3900
3901
3902$as_echo "#define _MINIX 1" >>confdefs.h
3903
3904 fi
3905
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909if ${ac_cv_safe_to_define___extensions__+:} false; then :
22e05272
JM
3910 $as_echo_n "(cached) " >&6
3911else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914
235d1c46
RO
3915# define __EXTENSIONS__ 1
3916 $ac_includes_default
22e05272
JM
3917int
3918main ()
3919{
3920
3921 ;
3922 return 0;
3923}
3924_ACEOF
235d1c46
RO
3925if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_safe_to_define___extensions__=yes
3927else
3928 ac_cv_safe_to_define___extensions__=no
22e05272 3929fi
235d1c46 3930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 3931fi
235d1c46
RO
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3933$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3934 test $ac_cv_safe_to_define___extensions__ = yes &&
3935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22e05272 3936
235d1c46 3937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
22e05272 3938
235d1c46
RO
3939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3940
3941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3942
3943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3944
3945
3946
3947target_alias=${target_alias-$target}
3948
3949
3950# 1.11.1: Require that version of automake.
3951# foreign: Don't require README, INSTALL, NEWS, etc.
3952# no-define: Don't define PACKAGE and VERSION.
3953# no-dependencies: Don't generate automatic dependencies.
3954# (because it breaks when using bootstrap-lean, since some of the
3955# headers are gone at "make install" time).
3956# subdir-objects: Build objects in sub-directories.
3957# -Wall: Issue all automake warnings.
3958# -Wno-portability: Don't warn about constructs supported by GNU make.
3959# (because GCC requires GNU make anyhow).
3960# -Wno-override: Overrides used in testsuite.
3961am__api_version='1.15'
3962
3963# Find a good install program. We prefer a C program (faster),
3964# so one script is as good as another. But avoid the broken or
3965# incompatible versions:
3966# SysV /etc/install, /usr/sbin/install
3967# SunOS /usr/etc/install
3968# IRIX /sbin/install
3969# AIX /bin/install
3970# AmigaOS /C/install, which installs bootblocks on floppy discs
3971# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3972# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3973# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3974# OS/2's system install, which has a completely different semantic
3975# ./install, which can be erroneously created by make from ./install.sh.
3976# Reject install programs that cannot install multiple files.
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3978$as_echo_n "checking for a BSD-compatible install... " >&6; }
3979if test -z "$INSTALL"; then
3980if ${ac_cv_path_install+:} false; then :
b4c522fa
IB
3981 $as_echo_n "(cached) " >&6
3982else
235d1c46 3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
235d1c46
RO
3988 # Account for people who put trailing slashes in PATH elements.
3989case $as_dir/ in #((
3990 ./ | .// | /[cC]/* | \
3991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3992 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3993 /usr/ucb/* ) ;;
3994 *)
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3997 # by default.
3998 for ac_prog in ginstall scoinst install; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4004 :
4005 elif test $ac_prog = install &&
4006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4008 :
4009 else
4010 rm -rf conftest.one conftest.two conftest.dir
4011 echo one > conftest.one
4012 echo two > conftest.two
4013 mkdir conftest.dir
4014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4015 test -s conftest.one && test -s conftest.two &&
4016 test -s conftest.dir/conftest.one &&
4017 test -s conftest.dir/conftest.two
4018 then
4019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4020 break 3
4021 fi
4022 fi
4023 fi
4024 done
4025 done
4026 ;;
4027esac
4028
b4c522fa
IB
4029 done
4030IFS=$as_save_IFS
4031
235d1c46
RO
4032rm -rf conftest.one conftest.two conftest.dir
4033
b4c522fa 4034fi
235d1c46
RO
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL=$ac_cv_path_install
4037 else
4038 # As a last resort, use the slow shell script. Don't cache a
4039 # value for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the value is a relative name.
4042 INSTALL=$ac_install_sh
4043 fi
b4c522fa 4044fi
235d1c46
RO
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4046$as_echo "$INSTALL" >&6; }
4047
4048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049# It thinks the first close brace ends the variable substitution.
4050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4051
4052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4053
4054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4057$as_echo_n "checking whether build environment is sane... " >&6; }
4058# Reject unsafe characters in $srcdir or the absolute working directory
4059# name. Accept space and tab only in the latter.
4060am_lf='
4061'
4062case `pwd` in
4063 *[\\\"\#\$\&\'\`$am_lf]*)
4064 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4065esac
4066case $srcdir in
4067 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4068 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4069esac
4070
4071# Do 'set' in a subshell so we don't clobber the current shell's
4072# arguments. Must try -L first in case configure is actually a
4073# symlink; some systems play weird games with the mod time of symlinks
4074# (eg FreeBSD returns the mod time of the symlink's containing
4075# directory).
4076if (
4077 am_has_slept=no
4078 for am_try in 1 2; do
4079 echo "timestamp, slept: $am_has_slept" > conftest.file
4080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4081 if test "$*" = "X"; then
4082 # -L didn't work.
4083 set X `ls -t "$srcdir/configure" conftest.file`
4084 fi
4085 if test "$*" != "X $srcdir/configure conftest.file" \
4086 && test "$*" != "X conftest.file $srcdir/configure"; then
4087
4088 # If neither matched, then we have a broken ls. This can happen
4089 # if, for instance, CONFIG_SHELL is bash and it inherits a
4090 # broken ls alias from the environment. This has actually
4091 # happened. Such a system could not be considered "sane".
4092 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4093 alias in your environment" "$LINENO" 5
4094 fi
4095 if test "$2" = conftest.file || test $am_try -eq 2; then
4096 break
4097 fi
4098 # Just in case.
4099 sleep 1
4100 am_has_slept=yes
4101 done
4102 test "$2" = conftest.file
4103 )
4104then
4105 # Ok.
4106 :
b4c522fa 4107else
235d1c46
RO
4108 as_fn_error $? "newly created file is older than distributed files!
4109Check your system clock" "$LINENO" 5
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112$as_echo "yes" >&6; }
4113# If we didn't sleep, we still need to ensure time stamps of config.status and
4114# generated files are strictly newer.
4115am_sleep_pid=
4116if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4117 ( sleep 1 ) &
4118 am_sleep_pid=$!
b4c522fa
IB
4119fi
4120
235d1c46
RO
4121rm -f conftest.file
4122
4123test "$program_prefix" != NONE &&
4124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4125# Use a double $ so make ignores it.
4126test "$program_suffix" != NONE &&
4127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4128# Double any \ or $.
4129# By default was `s,x,x', remove it if useless.
4130ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4131program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b4c522fa 4132
235d1c46
RO
4133if test x"${MISSING+set}" != xset; then
4134 case $am_aux_dir in
4135 *\ * | *\ *)
4136 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4137 *)
4138 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4139 esac
b4c522fa 4140fi
235d1c46
RO
4141# Use eval to expand $SHELL
4142if eval "$MISSING --is-lightweight"; then
4143 am_missing_run="$MISSING "
4144else
4145 am_missing_run=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4147$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4148fi
4149
4150if test x"${install_sh+set}" != xset; then
4151 case $am_aux_dir in
4152 *\ * | *\ *)
4153 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4154 *)
4155 install_sh="\${SHELL} $am_aux_dir/install-sh"
4156 esac
4157fi
4158
4159# Installed binaries are usually stripped using 'strip' when the user
4160# run "make install-strip". However 'strip' might not be the right
4161# tool to use in cross-compilation environments, therefore Automake
4162# will honor the 'STRIP' environment variable to overrule this program.
4163if test "$cross_compiling" != no; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166set dummy ${ac_tool_prefix}strip; ac_word=$2
b4c522fa
IB
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4169if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
4170 $as_echo_n "(cached) " >&6
4171else
235d1c46
RO
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b4c522fa
IB
4174else
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b4c522fa
IB
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186done
4187 done
4188IFS=$as_save_IFS
4189
4190fi
4191fi
235d1c46
RO
4192STRIP=$ac_cv_prog_STRIP
4193if test -n "$STRIP"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4195$as_echo "$STRIP" >&6; }
b4c522fa
IB
4196else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198$as_echo "no" >&6; }
4199fi
4200
b4c522fa 4201
235d1c46
RO
4202fi
4203if test -z "$ac_cv_prog_STRIP"; then
4204 ac_ct_STRIP=$STRIP
4205 # Extract the first word of "strip", so it can be a program name with args.
4206set dummy strip; ac_word=$2
b4c522fa
IB
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4209if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
4210 $as_echo_n "(cached) " >&6
4211else
235d1c46
RO
4212 if test -n "$ac_ct_STRIP"; then
4213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
b4c522fa
IB
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4222 ac_cv_prog_ac_ct_STRIP="strip"
b4c522fa
IB
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226done
4227 done
4228IFS=$as_save_IFS
4229
4230fi
4231fi
235d1c46
RO
4232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4233if test -n "$ac_ct_STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4235$as_echo "$ac_ct_STRIP" >&6; }
b4c522fa
IB
4236else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
4240
235d1c46
RO
4241 if test "x$ac_ct_STRIP" = x; then
4242 STRIP=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245yes:)
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248ac_tool_warned=yes ;;
4249esac
4250 STRIP=$ac_ct_STRIP
b4c522fa 4251 fi
b4c522fa 4252else
235d1c46 4253 STRIP="$ac_cv_prog_STRIP"
b4c522fa
IB
4254fi
4255
b4c522fa 4256fi
235d1c46 4257INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b4c522fa 4258
235d1c46
RO
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4260$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4261if test -z "$MKDIR_P"; then
4262 if ${ac_cv_path_mkdir+:} false; then :
b4c522fa
IB
4263 $as_echo_n "(cached) " >&6
4264else
235d1c46
RO
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
b4c522fa
IB
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
235d1c46
RO
4270 for ac_prog in mkdir gmkdir; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4274 'mkdir (GNU coreutils) '* | \
4275 'mkdir (coreutils) '* | \
4276 'mkdir (fileutils) '4.1*)
4277 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4278 break 3;;
4279 esac
4280 done
4281 done
b4c522fa
IB
4282 done
4283IFS=$as_save_IFS
4284
4285fi
b4c522fa 4286
235d1c46
RO
4287 test -d ./--version && rmdir ./--version
4288 if test "${ac_cv_path_mkdir+set}" = set; then
4289 MKDIR_P="$ac_cv_path_mkdir -p"
4290 else
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for MKDIR_P within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 MKDIR_P="$ac_install_sh -d"
4296 fi
b4c522fa 4297fi
235d1c46
RO
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4299$as_echo "$MKDIR_P" >&6; }
4300
4301for ac_prog in gawk mawk nawk awk
4302do
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304set dummy $ac_prog; ac_word=$2
b4c522fa
IB
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4307if ${ac_cv_prog_AWK+:} false; then :
b4c522fa
IB
4308 $as_echo_n "(cached) " >&6
4309else
235d1c46
RO
4310 if test -n "$AWK"; then
4311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b4c522fa
IB
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4320 ac_cv_prog_AWK="$ac_prog"
b4c522fa
IB
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
235d1c46
RO
4330AWK=$ac_cv_prog_AWK
4331if test -n "$AWK"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4333$as_echo "$AWK" >&6; }
b4c522fa
IB
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
b4c522fa 4339
235d1c46
RO
4340 test -n "$AWK" && break
4341done
b4c522fa
IB
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4345set x ${MAKE-make}
4346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4347if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
4348 $as_echo_n "(cached) " >&6
4349else
4350 cat >conftest.make <<\_ACEOF
4351SHELL = /bin/sh
4352all:
4353 @echo '@@@%%%=$(MAKE)=@@@%%%'
4354_ACEOF
22e05272 4355# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
4356case `${MAKE-make} -f conftest.make 2>/dev/null` in
4357 *@@@%%%=?*=@@@%%%*)
4358 eval ac_cv_prog_make_${ac_make}_set=yes;;
4359 *)
4360 eval ac_cv_prog_make_${ac_make}_set=no;;
4361esac
4362rm -f conftest.make
4363fi
4364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366$as_echo "yes" >&6; }
4367 SET_MAKE=
4368else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370$as_echo "no" >&6; }
4371 SET_MAKE="MAKE=${MAKE-make}"
4372fi
4373
235d1c46
RO
4374rm -rf .tst 2>/dev/null
4375mkdir .tst 2>/dev/null
4376if test -d .tst; then
4377 am__leading_dot=.
4378else
4379 am__leading_dot=_
4380fi
4381rmdir .tst 2>/dev/null
b4c522fa 4382
235d1c46
RO
4383# Check whether --enable-silent-rules was given.
4384if test "${enable_silent_rules+set}" = set; then :
4385 enableval=$enable_silent_rules;
4386fi
b4c522fa 4387
235d1c46
RO
4388case $enable_silent_rules in # (((
4389 yes) AM_DEFAULT_VERBOSITY=0;;
4390 no) AM_DEFAULT_VERBOSITY=1;;
4391 *) AM_DEFAULT_VERBOSITY=1;;
b4c522fa 4392esac
235d1c46
RO
4393am_make=${MAKE-make}
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4395$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4396if ${am_cv_make_support_nested_variables+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398else
4399 if $as_echo 'TRUE=$(BAR$(V))
4400BAR0=false
4401BAR1=true
4402V=1
4403am__doit:
4404 @$(TRUE)
4405.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4406 am_cv_make_support_nested_variables=yes
4407else
4408 am_cv_make_support_nested_variables=no
4409fi
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4412$as_echo "$am_cv_make_support_nested_variables" >&6; }
4413if test $am_cv_make_support_nested_variables = yes; then
4414 AM_V='$(V)'
4415 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4416else
4417 AM_V=$AM_DEFAULT_VERBOSITY
4418 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4419fi
4420AM_BACKSLASH='\'
b4c522fa 4421
235d1c46
RO
4422if test "`cd $srcdir && pwd`" != "`pwd`"; then
4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4424 # is not polluted with repeated "-I."
4425 am__isrc=' -I$(srcdir)'
4426 # test to see if srcdir already configured
4427 if test -f $srcdir/config.status; then
4428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4429 fi
4430fi
b4c522fa 4431
235d1c46
RO
4432# test whether we have cygpath
4433if test -z "$CYGPATH_W"; then
4434 if (cygpath --version) >/dev/null 2>/dev/null; then
4435 CYGPATH_W='cygpath -w'
4436 else
4437 CYGPATH_W=echo
4438 fi
4439fi
b4c522fa 4440
b4c522fa 4441
235d1c46
RO
4442# Define the identity of the package.
4443 PACKAGE='libphobos'
4444 VERSION='version-unused'
b4c522fa
IB
4445
4446
235d1c46 4447# Some tools Automake needs.
b4c522fa 4448
235d1c46 4449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b4c522fa
IB
4450
4451
235d1c46 4452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
b4c522fa
IB
4453
4454
235d1c46 4455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
b4c522fa
IB
4456
4457
235d1c46 4458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
b4c522fa
IB
4459
4460
235d1c46 4461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
b4c522fa 4462
235d1c46
RO
4463# For better backward compatibility. To be removed once Automake 1.9.x
4464# dies out for good. For more background, see:
4465# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4466# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4467mkdir_p='$(MKDIR_P)'
b4c522fa 4468
235d1c46
RO
4469# We need awk for the "check" target (and possibly the TAP driver). The
4470# system "awk" is bad on some platforms.
4471# Always define AMTAR for backward compatibility. Yes, it's still used
4472# in the wild :-( We should find a proper way to deprecate it ...
4473AMTAR='$${TAR-tar}'
b4c522fa 4474
b4c522fa 4475
235d1c46
RO
4476# We'll loop over all known methods to create a tar archive until one works.
4477_am_tools='gnutar pax cpio none'
b4c522fa 4478
235d1c46 4479am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b4c522fa 4480
b4c522fa 4481
b4c522fa 4482
b4c522fa 4483
b4c522fa 4484
b4c522fa 4485
235d1c46
RO
4486# POSIX will say in a future version that running "rm -f" with no argument
4487# is OK; and we want to be able to make that assumption in our Makefile
4488# recipes. So use an aggressive probe to check that the usage we want is
4489# actually supported "in the wild" to an acceptable degree.
4490# See automake bug#10828.
4491# To make any issue more visible, cause the running configure to be aborted
4492# by default if the 'rm' program in use doesn't match our expectations; the
4493# user can still override this though.
4494if rm -f && rm -fr && rm -rf; then : OK; else
4495 cat >&2 <<'END'
4496Oops!
4497
4498Your 'rm' program seems unable to run without file operands specified
4499on the command line, even when the '-f' option is present. This is contrary
4500to the behaviour of most rm programs out there, and not conforming with
4501the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
b4c522fa 4502
235d1c46
RO
4503Please tell bug-automake@gnu.org about your system, including the value
4504of your $PATH and any error possibly output before this message. This
4505can help us improve future automake versions.
b4c522fa 4506
235d1c46
RO
4507END
4508 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4509 echo 'Configuration will proceed anyway, since you have set the' >&2
4510 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4511 echo >&2
4512 else
4513 cat >&2 <<'END'
4514Aborting the configuration process, to ensure you take notice of the issue.
b4c522fa 4515
235d1c46
RO
4516You can download and install GNU coreutils to get an 'rm' implementation
4517that behaves properly: <http://www.gnu.org/software/coreutils/>.
b4c522fa 4518
235d1c46
RO
4519If you want to complete the configuration process using your problematic
4520'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4521to "yes", and re-run configure.
b4c522fa 4522
235d1c46
RO
4523END
4524 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4525 fi
4526fi
b4c522fa
IB
4527
4528
4529
4530
235d1c46 4531# By default we simply use the C compiler to build assembly code.
b4c522fa 4532
235d1c46
RO
4533test "${CCAS+set}" = set || CCAS=$CC
4534test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
b4c522fa
IB
4535
4536
4537
235d1c46
RO
4538ac_ext=c
4539ac_cpp='$CPP $CPPFLAGS'
4540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4545set dummy ${ac_tool_prefix}gcc; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4549 $as_echo_n "(cached) " >&6
4550else
235d1c46
RO
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
b4c522fa 4559 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
b4c522fa
IB
4566 done
4567IFS=$as_save_IFS
b4c522fa
IB
4568
4569fi
235d1c46
RO
4570fi
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574$as_echo "$CC" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
b4c522fa
IB
4579
4580
235d1c46
RO
4581fi
4582if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585set dummy gcc; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4589 $as_echo_n "(cached) " >&6
4590else
235d1c46
RO
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593else
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
b4c522fa
IB
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
b4c522fa 4599 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605done
b4c522fa
IB
4606 done
4607IFS=$as_save_IFS
235d1c46
RO
4608
4609fi
4610fi
4611ac_ct_CC=$ac_cv_prog_ac_ct_CC
4612if test -n "$ac_ct_CC"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4614$as_echo "$ac_ct_CC" >&6; }
b4c522fa 4615else
235d1c46
RO
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617$as_echo "no" >&6; }
b4c522fa
IB
4618fi
4619
235d1c46
RO
4620 if test "x$ac_ct_CC" = x; then
4621 CC=""
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624yes:)
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627ac_tool_warned=yes ;;
4628esac
4629 CC=$ac_ct_CC
4630 fi
4631else
4632 CC="$ac_cv_prog_CC"
b4c522fa 4633fi
b4c522fa 4634
235d1c46
RO
4635if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638set dummy ${ac_tool_prefix}cc; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
4641if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4642 $as_echo_n "(cached) " >&6
4643else
235d1c46
RO
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
b4c522fa
IB
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
b4c522fa 4652 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
b4c522fa
IB
4659 done
4660IFS=$as_save_IFS
b4c522fa 4661
b4c522fa 4662fi
235d1c46
RO
4663fi
4664CC=$ac_cv_prog_CC
4665if test -n "$CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667$as_echo "$CC" >&6; }
4668else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
b4c522fa
IB
4672
4673
235d1c46
RO
4674 fi
4675fi
4676if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678set dummy cc; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4682 $as_echo_n "(cached) " >&6
4683else
235d1c46
RO
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686else
4687 ac_prog_rejected=no
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
b4c522fa
IB
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
b4c522fa 4693 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_CC="cc"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
b4c522fa
IB
4704 done
4705IFS=$as_save_IFS
b4c522fa 4706
235d1c46
RO
4707if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4717 fi
b4c522fa 4718fi
b4c522fa
IB
4719fi
4720fi
235d1c46
RO
4721CC=$ac_cv_prog_CC
4722if test -n "$CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724$as_echo "$CC" >&6; }
b4c522fa
IB
4725else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
b4c522fa
IB
4729
4730
b4c522fa 4731fi
235d1c46
RO
4732if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
b4c522fa
IB
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4740if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4741 $as_echo_n "(cached) " >&6
4742else
235d1c46
RO
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758 done
4759IFS=$as_save_IFS
4760
4761fi
4762fi
235d1c46
RO
4763CC=$ac_cv_prog_CC
4764if test -n "$CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766$as_echo "$CC" >&6; }
b4c522fa
IB
4767else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772
235d1c46 4773 test -n "$CC" && break
b4c522fa
IB
4774 done
4775fi
235d1c46
RO
4776if test -z "$CC"; then
4777 ac_ct_CC=$CC
4778 for ac_prog in cl.exe
b4c522fa
IB
4779do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781set dummy $ac_prog; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4784if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4785 $as_echo_n "(cached) " >&6
4786else
235d1c46
RO
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4797 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805fi
4806fi
235d1c46
RO
4807ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808if test -n "$ac_ct_CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4810$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
4811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
4815
4816
235d1c46 4817 test -n "$ac_ct_CC" && break
b4c522fa
IB
4818done
4819
235d1c46
RO
4820 if test "x$ac_ct_CC" = x; then
4821 CC=""
b4c522fa
IB
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824yes:)
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827ac_tool_warned=yes ;;
4828esac
235d1c46 4829 CC=$ac_ct_CC
b4c522fa
IB
4830 fi
4831fi
4832
b4c522fa 4833fi
b4c522fa
IB
4834
4835
235d1c46
RO
4836test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838as_fn_error $? "no acceptable C compiler found in \$PATH
4839See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 4840
235d1c46
RO
4841# Provide some information about the compiler.
4842$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4843set X $ac_compile
4844ac_compiler=$2
4845for ac_option in --version -v -V -qversion; do
4846 { { ac_try="$ac_compiler $ac_option >&5"
4847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4854 ac_status=$?
4855 if test -s conftest.err; then
4856 sed '10a\
4857... rest of stderr output deleted ...
4858 10q' conftest.err >conftest.er1
4859 cat conftest.er1 >&5
4860 fi
4861 rm -f conftest.er1 conftest.err
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }
4864done
b4c522fa 4865
235d1c46
RO
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4868if ${ac_cv_c_compiler_gnu+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870else
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h. */
b4c522fa 4873
235d1c46
RO
4874int
4875main ()
4876{
4877#ifndef __GNUC__
4878 choke me
4879#endif
b4c522fa 4880
235d1c46
RO
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_compiler_gnu=yes
b4c522fa 4887else
235d1c46 4888 ac_compiler_gnu=no
b4c522fa 4889fi
235d1c46
RO
4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891ac_cv_c_compiler_gnu=$ac_compiler_gnu
b4c522fa 4892
235d1c46
RO
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4895$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896if test $ac_compiler_gnu = yes; then
4897 GCC=yes
b4c522fa 4898else
235d1c46 4899 GCC=
b4c522fa 4900fi
235d1c46
RO
4901ac_test_CFLAGS=${CFLAGS+set}
4902ac_save_CFLAGS=$CFLAGS
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904$as_echo_n "checking whether $CC accepts -g... " >&6; }
4905if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
4906 $as_echo_n "(cached) " >&6
4907else
235d1c46
RO
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4910 ac_cv_prog_cc_g=no
4911 CFLAGS="-g"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h. */
b4c522fa 4914
235d1c46
RO
4915int
4916main ()
4917{
b4c522fa 4918
235d1c46
RO
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_prog_cc_g=yes
4925else
4926 CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h. */
b4c522fa 4929
235d1c46
RO
4930int
4931main ()
4932{
b4c522fa 4933
235d1c46
RO
4934 ;
4935 return 0;
4936}
4937_ACEOF
4938if ac_fn_c_try_compile "$LINENO"; then :
b4c522fa 4939
235d1c46
RO
4940else
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4942 CFLAGS="-g"
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h. */
b4c522fa 4945
235d1c46
RO
4946int
4947main ()
4948{
b4c522fa 4949
235d1c46
RO
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_prog_cc_g=yes
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4965$as_echo "$ac_cv_prog_cc_g" >&6; }
4966if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4983if ${ac_cv_prog_cc_c89+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985else
4986 ac_cv_prog_cc_c89=no
4987ac_save_CC=$CC
4988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h. */
4990#include <stdarg.h>
4991#include <stdio.h>
4992struct stat;
4993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994struct buf { int x; };
4995FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996static char *e (p, i)
4997 char **p;
4998 int i;
4999{
5000 return p[i];
5001}
5002static char *f (char * (*g) (char **, int), char **p, ...)
5003{
5004 char *s;
5005 va_list v;
5006 va_start (v,p);
5007 s = g (p, va_arg (v,int));
5008 va_end (v);
5009 return s;
5010}
5011
5012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5020
5021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5023#define FOO(x) 'x'
5024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5025
5026int test (int i, double x);
5027struct s1 {int (*f) (int a);};
5028struct s2 {int (*f) (double a);};
5029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030int argc;
5031char **argv;
5032int
5033main ()
5034{
5035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5036 ;
5037 return 0;
5038}
5039_ACEOF
5040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5042do
5043 CC="$ac_save_CC $ac_arg"
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_c89=$ac_arg
5046fi
5047rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5049done
5050rm -f conftest.$ac_ext
5051CC=$ac_save_CC
5052
5053fi
5054# AC_CACHE_VAL
5055case "x$ac_cv_prog_cc_c89" in
5056 x)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5058$as_echo "none needed" >&6; } ;;
5059 xno)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061$as_echo "unsupported" >&6; } ;;
5062 *)
5063 CC="$CC $ac_cv_prog_cc_c89"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5066esac
5067if test "x$ac_cv_prog_cc_c89" != xno; then :
5068
5069fi
5070
5071ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5083$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5084if ${am_cv_prog_cc_c_o+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086else
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h. */
5089
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098 # Make sure it works both with $CC and with simple cc.
5099 # Following AC_PROG_CC_C_O, we do the test twice because some
5100 # compilers refuse to overwrite an existing .o file with -o,
5101 # though they will create one.
5102 am_cv_prog_cc_c_o=yes
5103 for am_i in 1 2; do
5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } \
5109 && test -f conftest2.$ac_objext; then
5110 : OK
5111 else
5112 am_cv_prog_cc_c_o=no
5113 break
5114 fi
5115 done
5116 rm -f core conftest*
5117 unset am_i
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5120$as_echo "$am_cv_prog_cc_c_o" >&6; }
5121if test "$am_cv_prog_cc_c_o" != yes; then
5122 # Losing compiler, so override with the script.
5123 # FIXME: It is wrong to rewrite CC.
5124 # But if we don't then we get into trouble of one sort or another.
5125 # A longer-term fix would be to have automake use am__CC in this case,
5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5127 CC="$am_aux_dir/compile $CC"
5128fi
5129ac_ext=c
5130ac_cpp='$CPP $CPPFLAGS'
5131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134
5135
5136ac_ext=d
5137ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5138ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=yes
5140if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5142set dummy ${ac_tool_prefix}gdc; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
5145if ${ac_cv_prog_GDC+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147else
5148 if test -n "$GDC"; then
5149 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163 done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168GDC=$ac_cv_prog_GDC
5169if test -n "$GDC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5171$as_echo "$GDC" >&6; }
5172else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177
5178fi
5179if test -z "$ac_cv_prog_GDC"; then
5180 ac_ct_GDC=$GDC
5181 # Extract the first word of "gdc", so it can be a program name with args.
5182set dummy gdc; ac_word=$2
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
5185if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187else
5188 if test -n "$ac_ct_GDC"; then
5189 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_GDC="gdc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203 done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5209if test -n "$ac_ct_GDC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5211$as_echo "$ac_ct_GDC" >&6; }
5212else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
5216
5217 if test "x$ac_ct_GDC" = x; then
5218 GDC=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221yes:)
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224ac_tool_warned=yes ;;
5225esac
5226 GDC=$ac_ct_GDC
5227 fi
5228else
5229 GDC="$ac_cv_prog_GDC"
5230fi
5231
5232if test -z "$GDC"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5235set dummy ${ac_tool_prefix}gdc; ac_word=$2
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237$as_echo_n "checking for $ac_word... " >&6; }
5238if ${ac_cv_prog_GDC+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240else
5241 if test -n "$GDC"; then
5242 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256 done
5257IFS=$as_save_IFS
5258
5259fi
5260fi
5261GDC=$ac_cv_prog_GDC
5262if test -n "$GDC"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5264$as_echo "$GDC" >&6; }
5265else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
5268fi
5269
5270
5271 fi
5272fi
5273if test -z "$GDC"; then
5274 # Extract the first word of "gdc", so it can be a program name with args.
5275set dummy gdc; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if ${ac_cv_prog_GDC+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280else
5281 if test -n "$GDC"; then
5282 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5283else
5284 ac_prog_rejected=no
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5293 ac_prog_rejected=yes
5294 continue
5295 fi
5296 ac_cv_prog_GDC="gdc"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
5301 done
5302IFS=$as_save_IFS
5303
5304if test $ac_prog_rejected = yes; then
5305 # We found a bogon in the path, so make sure we never use it.
5306 set dummy $ac_cv_prog_GDC
5307 shift
5308 if test $# != 0; then
5309 # We chose a different compiler from the bogus one.
5310 # However, it has the same basename, so the bogon will be chosen
5311 # first if we set GDC to just the basename; use the full file name.
5312 shift
5313 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5314 fi
5315fi
5316fi
5317fi
5318GDC=$ac_cv_prog_GDC
5319if test -n "$GDC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5321$as_echo "$GDC" >&6; }
5322else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327
5328fi
5329
5330
5331# Provide some information about the compiler.
5332$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5333set X $ac_compile
5334ac_compiler=$2
5335{ { ac_try="$ac_compiler --version >&5"
5336case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339esac
5340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341$as_echo "$ac_try_echo"; } >&5
5342 (eval "$ac_compiler --version >&5") 2>conftest.err
5343 ac_status=$?
5344 if test -s conftest.err; then
5345 sed '10a\
5346... rest of stderr output deleted ...
5347 10q' conftest.err >conftest.er1
5348 cat conftest.er1 >&5
5349 fi
5350 rm -f conftest.er1 conftest.err
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }
5353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5361$as_echo_n "checking for absolute libphobos source path... " >&6; }
5362if ${phobos_cv_abs_srcdir+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364else
5365 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5368$as_echo "$phobos_cv_abs_srcdir" >&6; }
5369 if test -d "$phobos_cv_abs_srcdir"; then :
5370
5371else
5372 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5373fi
5374
5375
5376
5377
5378 gdc_save_DFLAGS=$GDCFLAGS
5379 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5380
5381 ac_ext=d
5382ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5383ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=yes
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5387$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5388 cat > conftest.$ac_ext <<_ACEOF
5389module mod;
5390
5391
5392extern(C) int main() {
5393 return 0;
5394}
5395_ACEOF
5396if ac_fn_d_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398$as_echo "yes" >&6; }
5399else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5402 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_ext=c
5406ac_cpp='$CPP $CPPFLAGS'
5407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412 GDCFLAGS=$gdc_save_DFLAGS
5413
5414
5415
5416
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5420$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5421 # Check whether --enable-maintainer-mode was given.
5422if test "${enable_maintainer_mode+set}" = set; then :
5423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5424else
5425 USE_MAINTAINER_MODE=no
5426fi
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5429$as_echo "$USE_MAINTAINER_MODE" >&6; }
5430 if test $USE_MAINTAINER_MODE = yes; then
5431 MAINTAINER_MODE_TRUE=
5432 MAINTAINER_MODE_FALSE='#'
5433else
5434 MAINTAINER_MODE_TRUE='#'
5435 MAINTAINER_MODE_FALSE=
5436fi
5437
5438 MAINT=$MAINTAINER_MODE_TRUE
5439
5440
5441if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_prog_RANLIB+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448else
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463done
5464 done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469RANLIB=$ac_cv_prog_RANLIB
5470if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472$as_echo "$RANLIB" >&6; }
5473else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477
5478
5479fi
5480if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483set dummy ranlib; ac_word=$2
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485$as_echo_n "checking for $ac_word... " >&6; }
5486if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488else
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_RANLIB="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503done
5504 done
5505IFS=$as_save_IFS
5506
5507fi
5508fi
5509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5510if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512$as_echo "$ac_ct_RANLIB" >&6; }
5513else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515$as_echo "no" >&6; }
5516fi
5517
5518 if test "x$ac_ct_RANLIB" = x; then
5519 RANLIB=":"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522yes:)
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525ac_tool_warned=yes ;;
5526esac
5527 RANLIB=$ac_ct_RANLIB
5528 fi
5529else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531fi
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5535$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5536set x ${MAKE-make}
5537ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5538if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540else
5541 cat >conftest.make <<\_ACEOF
5542SHELL = /bin/sh
5543all:
5544 @echo '@@@%%%=$(MAKE)=@@@%%%'
5545_ACEOF
5546# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5547case `${MAKE-make} -f conftest.make 2>/dev/null` in
5548 *@@@%%%=?*=@@@%%%*)
5549 eval ac_cv_prog_make_${ac_make}_set=yes;;
5550 *)
5551 eval ac_cv_prog_make_${ac_make}_set=no;;
5552esac
5553rm -f conftest.make
5554fi
5555if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557$as_echo "yes" >&6; }
5558 SET_MAKE=
5559else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562 SET_MAKE="MAKE=${MAKE-make}"
5563fi
5564
5565
08c1d39d
L
5566# Add CET specific flags if CET is enabled
5567 # Check whether --enable-cet was given.
5568if test "${enable_cet+set}" = set; then :
5569 enableval=$enable_cet;
5570 case "$enableval" in
5571 yes|no|auto) ;;
5572 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5573 esac
5574
5575else
4c1a5d8b 5576 enable_cet=auto
08c1d39d
L
5577fi
5578
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5581$as_echo_n "checking for CET support... " >&6; }
5582
9051b548 5583# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
08c1d39d
L
5584case "$host" in
5585 i[34567]86-*-linux* | x86_64-*-linux*)
5586 case "$enable_cet" in
5587 auto)
5588 # Check if target supports multi-byte NOPs
5589 # and if assembler supports CET insn.
9051b548 5590 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 5591 CFLAGS="$CFLAGS -fcf-protection"
08c1d39d
L
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h. */
5594
5595int
5596main ()
5597{
5598
5599#if !defined(__SSE2__)
5600#error target does not support multi-byte NOPs
5601#else
5602asm ("setssbsy");
5603#endif
5604
5605 ;
5606 return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610 enable_cet=yes
5611else
5612 enable_cet=no
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 5615 CFLAGS="$cet_save_CFLAGS"
08c1d39d
L
5616 ;;
5617 yes)
5618 # Check if assembler supports CET.
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h. */
5621
5622int
5623main ()
5624{
5625asm ("setssbsy");
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631
5632else
5633 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 ;;
5637 esac
5638 ;;
5639 *)
5640 enable_cet=no
5641 ;;
5642esac
5643if test x$enable_cet = xyes; then
5644 CET_FLAGS="-fcf-protection -mshstk"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646$as_echo "yes" >&6; }
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652
5653
235d1c46
RO
5654# This should be inherited in the recursive make, but ensure it is defined.
5655test "$AR" || AR=ar
5656
5657
5658CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5659
5660
5661
5662# Enable libtool
5663case `pwd` in
5664 *\ * | *\ *)
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5666$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5667esac
5668
5669
5670
5671macro_version='2.2.7a'
5672macro_revision='1.3134'
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686ltmain="$ac_aux_dir/ltmain.sh"
5687
5688# Backslashify metacharacters that are still active within
5689# double-quoted strings.
5690sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5691
5692# Same as above, but do not quote variable references.
5693double_quote_subst='s/\(["`\\]\)/\\\1/g'
5694
5695# Sed substitution to delay expansion of an escaped shell variable in a
5696# double_quote_subst'ed string.
5697delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5698
5699# Sed substitution to delay expansion of an escaped single quote.
5700delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5701
5702# Sed substitution to avoid accidental globbing in evaled expressions
5703no_glob_subst='s/\*/\\\*/g'
5704
5705ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5706ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5707ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5708
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5710$as_echo_n "checking how to print strings... " >&6; }
5711# Test print first, because it will be a builtin if present.
5712if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5713 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5714 ECHO='print -r --'
5715elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5716 ECHO='printf %s\n'
5717else
5718 # Use this function as a fallback that always works.
5719 func_fallback_echo ()
5720 {
5721 eval 'cat <<_LTECHO_EOF
5722$1
5723_LTECHO_EOF'
5724 }
5725 ECHO='func_fallback_echo'
5726fi
5727
5728# func_echo_all arg...
5729# Invoke $ECHO with all args, space-separated.
5730func_echo_all ()
5731{
5732 $ECHO ""
5733}
5734
5735case "$ECHO" in
5736 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5737$as_echo "printf" >&6; } ;;
5738 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5739$as_echo "print -r" >&6; } ;;
5740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5741$as_echo "cat" >&6; } ;;
5742esac
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5758$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5759if ${ac_cv_path_SED+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5763 for ac_i in 1 2 3 4 5 6 7; do
5764 ac_script="$ac_script$as_nl$ac_script"
5765 done
5766 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5767 { ac_script=; unset ac_script;}
5768 if test -z "$SED"; then
5769 ac_path_SED_found=false
5770 # Loop through the user's path and test for each of PROGNAME-LIST
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_prog in sed gsed; do
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5779 as_fn_executable_p "$ac_path_SED" || continue
5780# Check for GNU ac_path_SED and select it if it is found.
5781 # Check for GNU $ac_path_SED
5782case `"$ac_path_SED" --version 2>&1` in
5783*GNU*)
5784 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5785*)
5786 ac_count=0
5787 $as_echo_n 0123456789 >"conftest.in"
5788 while :
5789 do
5790 cat "conftest.in" "conftest.in" >"conftest.tmp"
5791 mv "conftest.tmp" "conftest.in"
5792 cp "conftest.in" "conftest.nl"
5793 $as_echo '' >> "conftest.nl"
5794 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5796 as_fn_arith $ac_count + 1 && ac_count=$as_val
5797 if test $ac_count -gt ${ac_path_SED_max-0}; then
5798 # Best one so far, save it but keep looking for a better one
5799 ac_cv_path_SED="$ac_path_SED"
5800 ac_path_SED_max=$ac_count
5801 fi
5802 # 10*(2^10) chars as input seems more than enough
5803 test $ac_count -gt 10 && break
5804 done
5805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5806esac
5807
5808 $ac_path_SED_found && break 3
5809 done
5810 done
5811 done
5812IFS=$as_save_IFS
5813 if test -z "$ac_cv_path_SED"; then
5814 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5815 fi
5816else
5817 ac_cv_path_SED=$SED
5818fi
5819
5820fi
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5822$as_echo "$ac_cv_path_SED" >&6; }
5823 SED="$ac_cv_path_SED"
5824 rm -f conftest.sed
5825
5826test -z "$SED" && SED=sed
5827Xsed="$SED -e 1s/^X//"
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5840$as_echo_n "checking for fgrep... " >&6; }
5841if ${ac_cv_path_FGREP+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5845 then ac_cv_path_FGREP="$GREP -F"
5846 else
5847 if test -z "$FGREP"; then
5848 ac_path_FGREP_found=false
5849 # Loop through the user's path and test for each of PROGNAME-LIST
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_prog in fgrep; do
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5858 as_fn_executable_p "$ac_path_FGREP" || continue
5859# Check for GNU ac_path_FGREP and select it if it is found.
5860 # Check for GNU $ac_path_FGREP
5861case `"$ac_path_FGREP" --version 2>&1` in
5862*GNU*)
5863 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5864*)
5865 ac_count=0
5866 $as_echo_n 0123456789 >"conftest.in"
5867 while :
5868 do
5869 cat "conftest.in" "conftest.in" >"conftest.tmp"
5870 mv "conftest.tmp" "conftest.in"
5871 cp "conftest.in" "conftest.nl"
5872 $as_echo 'FGREP' >> "conftest.nl"
5873 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5875 as_fn_arith $ac_count + 1 && ac_count=$as_val
5876 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5877 # Best one so far, save it but keep looking for a better one
5878 ac_cv_path_FGREP="$ac_path_FGREP"
5879 ac_path_FGREP_max=$ac_count
5880 fi
5881 # 10*(2^10) chars as input seems more than enough
5882 test $ac_count -gt 10 && break
5883 done
5884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5885esac
5886
5887 $ac_path_FGREP_found && break 3
5888 done
5889 done
5890 done
5891IFS=$as_save_IFS
5892 if test -z "$ac_cv_path_FGREP"; then
5893 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5894 fi
5895else
5896 ac_cv_path_FGREP=$FGREP
5897fi
5898
5899 fi
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5902$as_echo "$ac_cv_path_FGREP" >&6; }
5903 FGREP="$ac_cv_path_FGREP"
5904
5905
5906test -z "$GREP" && GREP=grep
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926# Check whether --with-gnu-ld was given.
5927if test "${with_gnu_ld+set}" = set; then :
5928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5929else
5930 with_gnu_ld=no
5931fi
5932
5933ac_prog=ld
5934if test "$GCC" = yes; then
5935 # Check if gcc -print-prog-name=ld gives a path.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5937$as_echo_n "checking for ld used by $CC... " >&6; }
5938 case $host in
5939 *-*-mingw*)
5940 # gcc leaves a trailing carriage return which upsets mingw
5941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5942 *)
5943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5944 esac
5945 case $ac_prog in
5946 # Accept absolute paths.
5947 [\\/]* | ?:[\\/]*)
5948 re_direlt='/[^/][^/]*/\.\./'
5949 # Canonicalize the pathname of ld
5950 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5951 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5952 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5953 done
5954 test -z "$LD" && LD="$ac_prog"
5955 ;;
5956 "")
5957 # If it fails, then pretend we aren't using GCC.
5958 ac_prog=ld
5959 ;;
5960 *)
5961 # If it is relative, then search for the first ld in PATH.
5962 with_gnu_ld=unknown
5963 ;;
5964 esac
5965elif test "$with_gnu_ld" = yes; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5967$as_echo_n "checking for GNU ld... " >&6; }
5968else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5970$as_echo_n "checking for non-GNU ld... " >&6; }
5971fi
5972if ${lt_cv_path_LD+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974else
5975 if test -z "$LD"; then
5976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH; do
5978 IFS="$lt_save_ifs"
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5981 lt_cv_path_LD="$ac_dir/$ac_prog"
5982 # Check to see if the program is GNU ld. I'd rather use --version,
5983 # but apparently some variants of GNU ld only accept -v.
5984 # Break only if it was the GNU/non-GNU ld that we prefer.
5985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5986 *GNU* | *'with BFD'*)
5987 test "$with_gnu_ld" != no && break
5988 ;;
5989 *)
5990 test "$with_gnu_ld" != yes && break
5991 ;;
5992 esac
5993 fi
5994 done
5995 IFS="$lt_save_ifs"
5996else
5997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5998fi
5999fi
6000
6001LD="$lt_cv_path_LD"
6002if test -n "$LD"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6004$as_echo "$LD" >&6; }
6005else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007$as_echo "no" >&6; }
6008fi
6009test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6011$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6012if ${lt_cv_prog_gnu_ld+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014else
6015 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6016case `$LD -v 2>&1 </dev/null` in
6017*GNU* | *'with BFD'*)
6018 lt_cv_prog_gnu_ld=yes
6019 ;;
6020*)
6021 lt_cv_prog_gnu_ld=no
6022 ;;
6023esac
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6026$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6027with_gnu_ld=$lt_cv_prog_gnu_ld
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6038$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6039if ${lt_cv_path_NM+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041else
6042 if test -n "$NM"; then
6043 # Let the user override the test.
6044 lt_cv_path_NM="$NM"
6045else
6046 lt_nm_to_check="${ac_tool_prefix}nm"
6047 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6048 lt_nm_to_check="$lt_nm_to_check nm"
6049 fi
6050 for lt_tmp_nm in $lt_nm_to_check; do
6051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6053 IFS="$lt_save_ifs"
6054 test -z "$ac_dir" && ac_dir=.
6055 tmp_nm="$ac_dir/$lt_tmp_nm"
6056 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6057 # Check to see if the nm accepts a BSD-compat flag.
6058 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6059 # nm: unknown option "B" ignored
6060 # Tru64's nm complains that /dev/null is an invalid object file
6061 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6062 */dev/null* | *'Invalid file or object type'*)
6063 lt_cv_path_NM="$tmp_nm -B"
6064 break
6065 ;;
6066 *)
6067 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6068 */dev/null*)
6069 lt_cv_path_NM="$tmp_nm -p"
6070 break
6071 ;;
6072 *)
6073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6074 continue # so that we can try to find one that supports BSD flags
6075 ;;
6076 esac
6077 ;;
6078 esac
6079 fi
6080 done
6081 IFS="$lt_save_ifs"
6082 done
6083 : ${lt_cv_path_NM=no}
6084fi
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6087$as_echo "$lt_cv_path_NM" >&6; }
6088if test "$lt_cv_path_NM" != "no"; then
6089 NM="$lt_cv_path_NM"
6090else
6091 # Didn't find any BSD compatible name lister, look for dumpbin.
6092 if test -n "$DUMPBIN"; then :
6093 # Let the user override the test.
6094 else
6095 if test -n "$ac_tool_prefix"; then
6096 for ac_prog in dumpbin "link -dump"
6097 do
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
6102if ${ac_cv_prog_DUMPBIN+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104else
6105 if test -n "$DUMPBIN"; then
6106 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119done
6120 done
6121IFS=$as_save_IFS
6122
6123fi
6124fi
6125DUMPBIN=$ac_cv_prog_DUMPBIN
6126if test -n "$DUMPBIN"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6128$as_echo "$DUMPBIN" >&6; }
6129else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132fi
6133
6134
6135 test -n "$DUMPBIN" && break
6136 done
6137fi
6138if test -z "$DUMPBIN"; then
6139 ac_ct_DUMPBIN=$DUMPBIN
6140 for ac_prog in dumpbin "link -dump"
6141do
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143set dummy $ac_prog; ac_word=$2
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145$as_echo_n "checking for $ac_word... " >&6; }
6146if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148else
6149 if test -n "$ac_ct_DUMPBIN"; then
6150 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
6164 done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6170if test -n "$ac_ct_DUMPBIN"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6172$as_echo "$ac_ct_DUMPBIN" >&6; }
6173else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
6176fi
6177
6178
6179 test -n "$ac_ct_DUMPBIN" && break
6180done
6181
6182 if test "x$ac_ct_DUMPBIN" = x; then
6183 DUMPBIN=":"
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186yes:)
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189ac_tool_warned=yes ;;
6190esac
6191 DUMPBIN=$ac_ct_DUMPBIN
6192 fi
6193fi
6194
6195 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6196 *COFF*)
6197 DUMPBIN="$DUMPBIN -symbols"
6198 ;;
6199 *)
6200 DUMPBIN=:
6201 ;;
6202 esac
6203 fi
6204
6205 if test "$DUMPBIN" != ":"; then
6206 NM="$DUMPBIN"
6207 fi
6208fi
6209test -z "$NM" && NM=nm
6210
6211
6212
6213
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6217$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6218if ${lt_cv_nm_interface+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220else
6221 lt_cv_nm_interface="BSD nm"
6222 echo "int some_variable = 0;" > conftest.$ac_ext
6223 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6224 (eval "$ac_compile" 2>conftest.err)
6225 cat conftest.err >&5
6226 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6227 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6228 cat conftest.err >&5
6229 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6230 cat conftest.out >&5
6231 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6232 lt_cv_nm_interface="MS dumpbin"
6233 fi
6234 rm -f conftest*
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6237$as_echo "$lt_cv_nm_interface" >&6; }
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6240$as_echo_n "checking whether ln -s works... " >&6; }
6241LN_S=$as_ln_s
6242if test "$LN_S" = "ln -s"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6244$as_echo "yes" >&6; }
6245else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6247$as_echo "no, using $LN_S" >&6; }
6248fi
6249
6250# find the maximum length of command line arguments
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6252$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6253if ${lt_cv_sys_max_cmd_len+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255else
6256 i=0
6257 teststring="ABCD"
6258
6259 case $build_os in
6260 msdosdjgpp*)
6261 # On DJGPP, this test can blow up pretty badly due to problems in libc
6262 # (any single argument exceeding 2000 bytes causes a buffer overrun
6263 # during glob expansion). Even if it were fixed, the result of this
6264 # check would be larger than it should be.
6265 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6266 ;;
6267
6268 gnu*)
6269 # Under GNU Hurd, this test is not required because there is
6270 # no limit to the length of command line arguments.
6271 # Libtool will interpret -1 as no limit whatsoever
6272 lt_cv_sys_max_cmd_len=-1;
6273 ;;
6274
6275 cygwin* | mingw* | cegcc*)
6276 # On Win9x/ME, this test blows up -- it succeeds, but takes
6277 # about 5 minutes as the teststring grows exponentially.
6278 # Worse, since 9x/ME are not pre-emptively multitasking,
6279 # you end up with a "frozen" computer, even though with patience
6280 # the test eventually succeeds (with a max line length of 256k).
6281 # Instead, let's just punt: use the minimum linelength reported by
6282 # all of the supported platforms: 8192 (on NT/2K/XP).
6283 lt_cv_sys_max_cmd_len=8192;
6284 ;;
6285
6286 mint*)
6287 # On MiNT this can take a long time and run out of memory.
6288 lt_cv_sys_max_cmd_len=8192;
6289 ;;
6290
6291 amigaos*)
6292 # On AmigaOS with pdksh, this test takes hours, literally.
6293 # So we just punt and use a minimum line length of 8192.
6294 lt_cv_sys_max_cmd_len=8192;
6295 ;;
6296
6297 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6298 # This has been around since 386BSD, at least. Likely further.
6299 if test -x /sbin/sysctl; then
6300 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6301 elif test -x /usr/sbin/sysctl; then
6302 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6303 else
6304 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6305 fi
6306 # And add a safety zone
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6309 ;;
6310
6311 interix*)
6312 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6313 lt_cv_sys_max_cmd_len=196608
6314 ;;
6315
6316 osf*)
6317 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6318 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6319 # nice to cause kernel panics so lets avoid the loop below.
6320 # First set a reasonable default.
6321 lt_cv_sys_max_cmd_len=16384
6322 #
6323 if test -x /sbin/sysconfig; then
6324 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6325 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6326 esac
6327 fi
6328 ;;
6329 sco3.2v5*)
6330 lt_cv_sys_max_cmd_len=102400
6331 ;;
6332 sysv5* | sco5v6* | sysv4.2uw2*)
6333 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6334 if test -n "$kargmax"; then
6335 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6336 else
6337 lt_cv_sys_max_cmd_len=32768
6338 fi
6339 ;;
6340 *)
6341 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6342 if test -n "$lt_cv_sys_max_cmd_len"; then
6343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6345 else
6346 # Make teststring a little bigger before we do anything with it.
6347 # a 1K string should be a reasonable start.
6348 for i in 1 2 3 4 5 6 7 8 ; do
6349 teststring=$teststring$teststring
6350 done
6351 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352 # If test is not a shell built-in, we'll probably end up computing a
6353 # maximum length that is only half of the actual maximum length, but
6354 # we can't tell.
6355 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6356 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6357 test $i != 17 # 1/2 MB should be enough
6358 do
6359 i=`expr $i + 1`
b4c522fa
IB
6360 teststring=$teststring$teststring
6361 done
6362 # Only check the string length outside the loop.
6363 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6364 teststring=
6365 # Add a significant safety factor because C++ compilers can tack on
6366 # massive amounts of additional arguments before passing them to the
6367 # linker. It appears as though 1/2 is a usable value.
6368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6369 fi
6370 ;;
6371 esac
6372
6373fi
6374
6375if test -n $lt_cv_sys_max_cmd_len ; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6377$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6378else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6380$as_echo "none" >&6; }
6381fi
6382max_cmd_len=$lt_cv_sys_max_cmd_len
6383
6384
6385
6386
6387
6388
6389: ${CP="cp -f"}
6390: ${MV="mv -f"}
6391: ${RM="rm -f"}
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6394$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6395# Try some XSI features
6396xsi_shell=no
6397( _lt_dummy="a/b/c"
6398 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6399 = c,a/b,, \
6400 && eval 'test $(( 1 + 1 )) -eq 2 \
6401 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6402 && xsi_shell=yes
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6404$as_echo "$xsi_shell" >&6; }
6405
6406
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6408$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6409lt_shell_append=no
6410( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6411 >/dev/null 2>&1 \
6412 && lt_shell_append=yes
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6414$as_echo "$lt_shell_append" >&6; }
6415
6416
6417if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6418 lt_unset=unset
6419else
6420 lt_unset=false
6421fi
6422
6423
6424
6425
6426
6427# test EBCDIC or ASCII
6428case `echo X|tr X '\101'` in
6429 A) # ASCII based system
6430 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6431 lt_SP2NL='tr \040 \012'
6432 lt_NL2SP='tr \015\012 \040\040'
6433 ;;
6434 *) # EBCDIC based system
6435 lt_SP2NL='tr \100 \n'
6436 lt_NL2SP='tr \r\n \100\100'
6437 ;;
6438esac
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6449$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6450if ${lt_cv_ld_reload_flag+:} false; then :
b4c522fa
IB
6451 $as_echo_n "(cached) " >&6
6452else
6453 lt_cv_ld_reload_flag='-r'
6454fi
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6456$as_echo "$lt_cv_ld_reload_flag" >&6; }
6457reload_flag=$lt_cv_ld_reload_flag
6458case $reload_flag in
6459"" | " "*) ;;
6460*) reload_flag=" $reload_flag" ;;
6461esac
6462reload_cmds='$LD$reload_flag -o $output$reload_objs'
6463case $host_os in
6464 darwin*)
6465 if test "$GCC" = yes; then
6466 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6467 else
6468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6469 fi
6470 ;;
6471esac
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6483set dummy ${ac_tool_prefix}objdump; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6486if ${ac_cv_prog_OBJDUMP+:} false; then :
b4c522fa
IB
6487 $as_echo_n "(cached) " >&6
6488else
6489 if test -n "$OBJDUMP"; then
6490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6499 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504 done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509OBJDUMP=$ac_cv_prog_OBJDUMP
6510if test -n "$OBJDUMP"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6512$as_echo "$OBJDUMP" >&6; }
6513else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518
6519fi
6520if test -z "$ac_cv_prog_OBJDUMP"; then
6521 ac_ct_OBJDUMP=$OBJDUMP
6522 # Extract the first word of "objdump", so it can be a program name with args.
6523set dummy objdump; ac_word=$2
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6526if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b4c522fa
IB
6527 $as_echo_n "(cached) " >&6
6528else
6529 if test -n "$ac_ct_OBJDUMP"; then
6530 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6539 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543done
6544 done
6545IFS=$as_save_IFS
6546
6547fi
6548fi
6549ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6550if test -n "$ac_ct_OBJDUMP"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6552$as_echo "$ac_ct_OBJDUMP" >&6; }
6553else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558 if test "x$ac_ct_OBJDUMP" = x; then
6559 OBJDUMP="false"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562yes:)
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565ac_tool_warned=yes ;;
6566esac
6567 OBJDUMP=$ac_ct_OBJDUMP
6568 fi
6569else
6570 OBJDUMP="$ac_cv_prog_OBJDUMP"
6571fi
6572
6573test -z "$OBJDUMP" && OBJDUMP=objdump
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6584$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6585if ${lt_cv_deplibs_check_method+:} false; then :
b4c522fa
IB
6586 $as_echo_n "(cached) " >&6
6587else
6588 lt_cv_file_magic_cmd='$MAGIC_CMD'
6589lt_cv_file_magic_test_file=
6590lt_cv_deplibs_check_method='unknown'
6591# Need to set the preceding variable on all platforms that support
6592# interlibrary dependencies.
6593# 'none' -- dependencies not supported.
6594# `unknown' -- same as none, but documents that we really don't know.
6595# 'pass_all' -- all dependencies passed with no checks.
6596# 'test_compile' -- check by making test program.
6597# 'file_magic [[regex]]' -- check by looking for files in library path
6598# which responds to the $file_magic_cmd with a given extended regex.
6599# If you have `file' or equivalent on your system and you're not sure
6600# whether `pass_all' will *always* work, you probably want this one.
6601
6602case $host_os in
6603aix[4-9]*)
6604 lt_cv_deplibs_check_method=pass_all
6605 ;;
6606
6607beos*)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611bsdi[45]*)
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6613 lt_cv_file_magic_cmd='/usr/bin/file -L'
6614 lt_cv_file_magic_test_file=/shlib/libc.so
6615 ;;
6616
6617cygwin*)
6618 # func_win32_libid is a shell function defined in ltmain.sh
6619 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6620 lt_cv_file_magic_cmd='func_win32_libid'
6621 ;;
6622
6623mingw* | pw32*)
6624 # Base MSYS/MinGW do not provide the 'file' command needed by
6625 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6626 # unless we find 'file', for example because we are cross-compiling.
6627 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6628 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630 lt_cv_file_magic_cmd='func_win32_libid'
6631 else
6632 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6633 lt_cv_file_magic_cmd='$OBJDUMP -f'
6634 fi
6635 ;;
6636
6637cegcc*)
6638 # use the weaker test based on 'objdump'. See mingw*.
6639 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6640 lt_cv_file_magic_cmd='$OBJDUMP -f'
6641 ;;
6642
6643darwin* | rhapsody*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647freebsd* | dragonfly*)
6648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6649 case $host_cpu in
6650 i*86 )
6651 # Not sure whether the presence of OpenBSD here was a mistake.
6652 # Let's accept both of them until this is cleared up.
6653 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6656 ;;
6657 esac
6658 else
6659 lt_cv_deplibs_check_method=pass_all
6660 fi
6661 ;;
6662
6663gnu*)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666
6667haiku*)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670
6671hpux10.20* | hpux11*)
6672 lt_cv_file_magic_cmd=/usr/bin/file
6673 case $host_cpu in
6674 ia64*)
6675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6676 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6677 ;;
6678 hppa*64*)
6679 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]'
6680 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6681 ;;
6682 *)
6683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6684 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6685 ;;
6686 esac
6687 ;;
6688
6689interix[3-9]*)
6690 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6692 ;;
6693
6694irix5* | irix6* | nonstopux*)
6695 case $LD in
6696 *-32|*"-32 ") libmagic=32-bit;;
6697 *-n32|*"-n32 ") libmagic=N32;;
6698 *-64|*"-64 ") libmagic=64-bit;;
6699 *) libmagic=never-match;;
6700 esac
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704# This must be Linux ELF.
e9085da5 6705linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708
6709netbsd*)
6710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 else
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6714 fi
6715 ;;
6716
6717newos6*)
6718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6719 lt_cv_file_magic_cmd=/usr/bin/file
6720 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6721 ;;
6722
6723*nto* | *qnx*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727openbsd*)
6728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6730 else
6731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732 fi
6733 ;;
6734
6735osf3* | osf4* | osf5*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
6738
6739rdos*)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742
6743solaris*)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746
6747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6748 lt_cv_deplibs_check_method=pass_all
6749 ;;
6750
6751sysv4 | sysv4.3*)
6752 case $host_vendor in
6753 motorola)
6754 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]'
6755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6756 ;;
6757 ncr)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 sequent)
6761 lt_cv_file_magic_cmd='/bin/file'
6762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6763 ;;
6764 sni)
6765 lt_cv_file_magic_cmd='/bin/file'
6766 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6767 lt_cv_file_magic_test_file=/lib/libc.so
6768 ;;
6769 siemens)
6770 lt_cv_deplibs_check_method=pass_all
6771 ;;
6772 pc)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775 esac
6776 ;;
6777
6778tpf*)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781esac
6782
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6785$as_echo "$lt_cv_deplibs_check_method" >&6; }
6786file_magic_cmd=$lt_cv_file_magic_cmd
6787deplibs_check_method=$lt_cv_deplibs_check_method
6788test -z "$deplibs_check_method" && deplibs_check_method=unknown
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6803set dummy ${ac_tool_prefix}ar; ac_word=$2
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6806if ${ac_cv_prog_AR+:} false; then :
b4c522fa
IB
6807 $as_echo_n "(cached) " >&6
6808else
6809 if test -n "$AR"; then
6810 ac_cv_prog_AR="$AR" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6819 ac_cv_prog_AR="${ac_tool_prefix}ar"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824 done
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829AR=$ac_cv_prog_AR
6830if test -n "$AR"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6832$as_echo "$AR" >&6; }
6833else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
6836fi
6837
6838
6839fi
6840if test -z "$ac_cv_prog_AR"; then
6841 ac_ct_AR=$AR
6842 # Extract the first word of "ar", so it can be a program name with args.
6843set dummy ar; ac_word=$2
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6846if ${ac_cv_prog_ac_ct_AR+:} false; then :
b4c522fa
IB
6847 $as_echo_n "(cached) " >&6
6848else
6849 if test -n "$ac_ct_AR"; then
6850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6859 ac_cv_prog_ac_ct_AR="ar"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864 done
6865IFS=$as_save_IFS
6866
6867fi
6868fi
6869ac_ct_AR=$ac_cv_prog_ac_ct_AR
6870if test -n "$ac_ct_AR"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6872$as_echo "$ac_ct_AR" >&6; }
6873else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
6876fi
6877
6878 if test "x$ac_ct_AR" = x; then
6879 AR="false"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882yes:)
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885ac_tool_warned=yes ;;
6886esac
6887 AR=$ac_ct_AR
6888 fi
6889else
6890 AR="$ac_cv_prog_AR"
6891fi
6892
6893test -z "$AR" && AR=ar
6894test -z "$AR_FLAGS" && AR_FLAGS=cru
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6908set dummy ${ac_tool_prefix}strip; ac_word=$2
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6911if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
6912 $as_echo_n "(cached) " >&6
6913else
6914 if test -n "$STRIP"; then
6915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6924 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929 done
6930IFS=$as_save_IFS
6931
6932fi
6933fi
6934STRIP=$ac_cv_prog_STRIP
6935if test -n "$STRIP"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6937$as_echo "$STRIP" >&6; }
6938else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940$as_echo "no" >&6; }
6941fi
6942
6943
6944fi
6945if test -z "$ac_cv_prog_STRIP"; then
6946 ac_ct_STRIP=$STRIP
6947 # Extract the first word of "strip", so it can be a program name with args.
6948set dummy strip; ac_word=$2
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6951if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
6952 $as_echo_n "(cached) " >&6
6953else
6954 if test -n "$ac_ct_STRIP"; then
6955 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6956else
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6964 ac_cv_prog_ac_ct_STRIP="strip"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969 done
6970IFS=$as_save_IFS
6971
6972fi
6973fi
6974ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6975if test -n "$ac_ct_STRIP"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6977$as_echo "$ac_ct_STRIP" >&6; }
6978else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980$as_echo "no" >&6; }
6981fi
6982
6983 if test "x$ac_ct_STRIP" = x; then
6984 STRIP=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987yes:)
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990ac_tool_warned=yes ;;
6991esac
6992 STRIP=$ac_ct_STRIP
6993 fi
6994else
6995 STRIP="$ac_cv_prog_STRIP"
6996fi
6997
6998test -z "$STRIP" && STRIP=:
6999
7000
7001
7002
7003
7004
7005if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7007set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7010if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
7011 $as_echo_n "(cached) " >&6
7012else
7013 if test -n "$RANLIB"; then
7014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028 done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033RANLIB=$ac_cv_prog_RANLIB
7034if test -n "$RANLIB"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7036$as_echo "$RANLIB" >&6; }
7037else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042
7043fi
7044if test -z "$ac_cv_prog_RANLIB"; then
7045 ac_ct_RANLIB=$RANLIB
7046 # Extract the first word of "ranlib", so it can be a program name with args.
7047set dummy ranlib; ac_word=$2
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7050if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
7051 $as_echo_n "(cached) " >&6
7052else
7053 if test -n "$ac_ct_RANLIB"; then
7054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7063 ac_cv_prog_ac_ct_RANLIB="ranlib"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068 done
7069IFS=$as_save_IFS
7070
7071fi
7072fi
7073ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7074if test -n "$ac_ct_RANLIB"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7076$as_echo "$ac_ct_RANLIB" >&6; }
7077else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080fi
7081
7082 if test "x$ac_ct_RANLIB" = x; then
7083 RANLIB=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086yes:)
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091 RANLIB=$ac_ct_RANLIB
7092 fi
7093else
7094 RANLIB="$ac_cv_prog_RANLIB"
7095fi
7096
7097test -z "$RANLIB" && RANLIB=:
7098
7099
7100
7101
7102
7103
7104# Determine commands to create old-style static archives.
7105old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106old_postinstall_cmds='chmod 644 $oldlib'
7107old_postuninstall_cmds=
7108
7109if test -n "$RANLIB"; then
7110 case $host_os in
7111 openbsd*)
7112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7113 ;;
7114 *)
7115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7116 ;;
7117 esac
7118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7119fi
7120
7121case $host_os in
7122 darwin*)
7123 lock_old_archive_extraction=yes ;;
7124 *)
7125 lock_old_archive_extraction=no ;;
7126esac
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166# If no C compiler was specified, use CC.
7167LTCC=${LTCC-"$CC"}
7168
7169# If no C compiler flags were specified, use CFLAGS.
7170LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171
7172# Allow CC to be a program name with arguments.
7173compiler=$CC
7174
7175
7176# Check for command to grab the raw symbol name followed by C symbol from nm.
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7178$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7179if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b4c522fa
IB
7180 $as_echo_n "(cached) " >&6
7181else
7182
7183# These are sane defaults that work on at least a few old systems.
7184# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7185
7186# Character class describing NM global symbol codes.
7187symcode='[BCDEGRST]'
7188
7189# Regexp to match symbols that can be accessed directly from C.
7190sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7191
7192# Define system-specific variables.
7193case $host_os in
7194aix*)
7195 symcode='[BCDT]'
7196 ;;
7197cygwin* | mingw* | pw32* | cegcc*)
7198 symcode='[ABCDGISTW]'
7199 ;;
7200hpux*)
7201 if test "$host_cpu" = ia64; then
7202 symcode='[ABCDEGRST]'
7203 fi
7204 ;;
7205irix* | nonstopux*)
7206 symcode='[BCDEGRST]'
7207 ;;
7208osf*)
7209 symcode='[BCDEGQRST]'
7210 ;;
7211solaris*)
7212 symcode='[BDRT]'
7213 ;;
7214sco3.2v5*)
7215 symcode='[DT]'
7216 ;;
7217sysv4.2uw2*)
7218 symcode='[DT]'
7219 ;;
7220sysv5* | sco5v6* | unixware* | OpenUNIX*)
7221 symcode='[ABDT]'
7222 ;;
7223sysv4)
7224 symcode='[DFNSTU]'
7225 ;;
7226esac
7227
7228# If we're using GNU nm, then use its standard symbol codes.
7229case `$NM -V 2>&1` in
7230*GNU* | *'with BFD'*)
7231 symcode='[ABCDGIRSTW]' ;;
7232esac
7233
7234# Transform an extracted symbol line into a proper C declaration.
7235# Some systems (esp. on ia64) link data and code symbols differently,
7236# so use this general approach.
7237lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7238
7239# Transform an extracted symbol line into symbol name and symbol address
7240lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7241lt_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'"
7242
7243# Handle CRLF in mingw tool chain
7244opt_cr=
7245case $build_os in
7246mingw*)
7247 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7248 ;;
7249esac
7250
7251# Try without a prefix underscore, then with it.
7252for ac_symprfx in "" "_"; do
7253
7254 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7255 symxfrm="\\1 $ac_symprfx\\2 \\2"
7256
7257 # Write the raw and C identifiers.
7258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7259 # Fake it for dumpbin and say T for any non-static function
7260 # and D for any global variable.
7261 # Also find C++ and __fastcall symbols from MSVC++,
7262 # which start with @ or ?.
7263 lt_cv_sys_global_symbol_pipe="$AWK '"\
7264" {last_section=section; section=\$ 3};"\
7265" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7266" \$ 0!~/External *\|/{next};"\
7267" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7268" {if(hide[section]) next};"\
7269" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7270" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7271" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7272" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7273" ' prfx=^$ac_symprfx"
7274 else
7275 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7276 fi
7277
7278 # Check to see that the pipe works correctly.
7279 pipe_works=no
7280
7281 rm -f conftest*
7282 cat > conftest.$ac_ext <<_LT_EOF
7283#ifdef __cplusplus
7284extern "C" {
7285#endif
7286char nm_test_var;
7287void nm_test_func(void);
7288void nm_test_func(void){}
7289#ifdef __cplusplus
7290}
7291#endif
7292int main(){nm_test_var='a';nm_test_func();return(0);}
7293_LT_EOF
7294
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296 (eval $ac_compile) 2>&5
7297 ac_status=$?
7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; }; then
7300 # Now try to grab the symbols.
7301 nlist=conftest.nm
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7303 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; } && test -s "$nlist"; then
7307 # Try sorting and uniquifying the output.
7308 if sort "$nlist" | uniq > "$nlist"T; then
7309 mv -f "$nlist"T "$nlist"
7310 else
7311 rm -f "$nlist"T
7312 fi
7313
7314 # Make sure that we snagged all the symbols we need.
7315 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7316 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7317 cat <<_LT_EOF > conftest.$ac_ext
7318#ifdef __cplusplus
7319extern "C" {
7320#endif
7321
7322_LT_EOF
7323 # Now generate the symbol file.
7324 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7325
7326 cat <<_LT_EOF >> conftest.$ac_ext
7327
7328/* The mapping between symbol names and symbols. */
7329const struct {
7330 const char *name;
7331 void *address;
7332}
7333lt__PROGRAM__LTX_preloaded_symbols[] =
7334{
7335 { "@PROGRAM@", (void *) 0 },
7336_LT_EOF
7337 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7338 cat <<\_LT_EOF >> conftest.$ac_ext
7339 {0, (void *) 0}
7340};
7341
7342/* This works around a problem in FreeBSD linker */
7343#ifdef FREEBSD_WORKAROUND
7344static const void *lt_preloaded_setup() {
7345 return lt__PROGRAM__LTX_preloaded_symbols;
7346}
7347#endif
7348
7349#ifdef __cplusplus
7350}
7351#endif
7352_LT_EOF
7353 # Now try linking the two files.
7354 mv conftest.$ac_objext conftstm.$ac_objext
7355 lt_save_LIBS="$LIBS"
7356 lt_save_CFLAGS="$CFLAGS"
7357 LIBS="conftstm.$ac_objext"
7358 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7360 (eval $ac_link) 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7364 pipe_works=yes
7365 fi
7366 LIBS="$lt_save_LIBS"
7367 CFLAGS="$lt_save_CFLAGS"
7368 else
7369 echo "cannot find nm_test_func in $nlist" >&5
7370 fi
7371 else
7372 echo "cannot find nm_test_var in $nlist" >&5
7373 fi
7374 else
7375 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7376 fi
7377 else
7378 echo "$progname: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 fi
7381 rm -rf conftest* conftst*
7382
7383 # Do not use the global_symbol_pipe unless it works.
7384 if test "$pipe_works" = yes; then
7385 break
7386 else
7387 lt_cv_sys_global_symbol_pipe=
7388 fi
7389done
7390
7391fi
7392
7393if test -z "$lt_cv_sys_global_symbol_pipe"; then
7394 lt_cv_sys_global_symbol_to_cdecl=
7395fi
7396if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7398$as_echo "failed" >&6; }
7399else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7401$as_echo "ok" >&6; }
7402fi
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
b4c522fa
IB
7423
7424
7425# Check whether --enable-libtool-lock was given.
7426if test "${enable_libtool_lock+set}" = set; then :
7427 enableval=$enable_libtool_lock;
7428fi
7429
7430test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7431
7432# Some flags need to be propagated to the compiler or linker for good
7433# libtool support.
7434case $host in
7435ia64-*-hpux*)
7436 # Find out which ABI we are using.
7437 echo 'int i;' > conftest.$ac_ext
7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439 (eval $ac_compile) 2>&5
7440 ac_status=$?
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }; then
7443 case `/usr/bin/file conftest.$ac_objext` in
7444 *ELF-32*)
7445 HPUX_IA64_MODE="32"
7446 ;;
7447 *ELF-64*)
7448 HPUX_IA64_MODE="64"
7449 ;;
7450 esac
7451 fi
7452 rm -rf conftest*
7453 ;;
7454*-*-irix6*)
7455 # Find out which ABI we are using.
7456 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7458 (eval $ac_compile) 2>&5
7459 ac_status=$?
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 if test "$lt_cv_prog_gnu_ld" = yes; then
7463 case `/usr/bin/file conftest.$ac_objext` in
7464 *32-bit*)
7465 LD="${LD-ld} -melf32bsmip"
7466 ;;
7467 *N32*)
7468 LD="${LD-ld} -melf32bmipn32"
7469 ;;
7470 *64-bit*)
7471 LD="${LD-ld} -melf64bmip"
7472 ;;
7473 esac
7474 else
7475 case `/usr/bin/file conftest.$ac_objext` in
7476 *32-bit*)
7477 LD="${LD-ld} -32"
7478 ;;
7479 *N32*)
7480 LD="${LD-ld} -n32"
7481 ;;
7482 *64-bit*)
7483 LD="${LD-ld} -64"
7484 ;;
7485 esac
7486 fi
7487 fi
7488 rm -rf conftest*
7489 ;;
7490
7491x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7492s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.o` in
7501 *32-bit*)
7502 case $host in
7503 x86_64-*kfreebsd*-gnu)
7504 LD="${LD-ld} -m elf_i386_fbsd"
7505 ;;
7506 x86_64-*linux*)
7507 case `/usr/bin/file conftest.o` in
7508 *x86-64*)
7509 LD="${LD-ld} -m elf32_x86_64"
7510 ;;
7511 *)
7512 LD="${LD-ld} -m elf_i386"
7513 ;;
7514 esac
7515 ;;
7516 powerpc64le-*linux*)
7517 LD="${LD-ld} -m elf32lppclinux"
7518 ;;
7519 powerpc64-*linux*)
7520 LD="${LD-ld} -m elf32ppclinux"
7521 ;;
7522 s390x-*linux*)
7523 LD="${LD-ld} -m elf_s390"
7524 ;;
7525 sparc64-*linux*)
7526 LD="${LD-ld} -m elf32_sparc"
7527 ;;
7528 esac
7529 ;;
7530 *64-bit*)
7531 case $host in
7532 x86_64-*kfreebsd*-gnu)
7533 LD="${LD-ld} -m elf_x86_64_fbsd"
7534 ;;
7535 x86_64-*linux*)
7536 LD="${LD-ld} -m elf_x86_64"
7537 ;;
7538 powerpcle-*linux*)
7539 LD="${LD-ld} -m elf64lppc"
7540 ;;
7541 powerpc-*linux*)
7542 LD="${LD-ld} -m elf64ppc"
7543 ;;
7544 s390*-*linux*|s390*-*tpf*)
7545 LD="${LD-ld} -m elf64_s390"
7546 ;;
7547 sparc*-*linux*)
7548 LD="${LD-ld} -m elf64_sparc"
7549 ;;
7550 esac
7551 ;;
7552 esac
7553 fi
7554 rm -rf conftest*
7555 ;;
7556
7557*-*-sco3.2v5*)
7558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7559 SAVE_CFLAGS="$CFLAGS"
7560 CFLAGS="$CFLAGS -belf"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7562$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7563if ${lt_cv_cc_needs_belf+:} false; then :
b4c522fa
IB
7564 $as_echo_n "(cached) " >&6
7565else
7566 ac_ext=c
7567ac_cpp='$CPP $CPPFLAGS'
7568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h. */
7574
7575int
7576main ()
7577{
7578
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583if ac_fn_c_try_link "$LINENO"; then :
7584 lt_cv_cc_needs_belf=yes
7585else
7586 lt_cv_cc_needs_belf=no
7587fi
7588rm -f core conftest.err conftest.$ac_objext \
7589 conftest$ac_exeext conftest.$ac_ext
7590 ac_ext=c
7591ac_cpp='$CPP $CPPFLAGS'
7592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7598$as_echo "$lt_cv_cc_needs_belf" >&6; }
7599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7601 CFLAGS="$SAVE_CFLAGS"
7602 fi
7603 ;;
7604sparc*-*solaris*)
7605 # Find out which ABI we are using.
7606 echo 'int i;' > conftest.$ac_ext
7607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7608 (eval $ac_compile) 2>&5
7609 ac_status=$?
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }; then
7612 case `/usr/bin/file conftest.o` in
7613 *64-bit*)
7614 case $lt_cv_prog_gnu_ld in
7615 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7616 *)
7617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7618 LD="${LD-ld} -64"
7619 fi
7620 ;;
7621 esac
7622 ;;
7623 esac
7624 fi
7625 rm -rf conftest*
7626 ;;
7627esac
7628
7629need_locks="$enable_libtool_lock"
7630
7631
7632 case $host_os in
7633 rhapsody* | darwin*)
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7636set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7639if ${ac_cv_prog_DSYMUTIL+:} false; then :
b4c522fa
IB
7640 $as_echo_n "(cached) " >&6
7641else
7642 if test -n "$DSYMUTIL"; then
7643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7644else
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656done
7657 done
7658IFS=$as_save_IFS
7659
7660fi
7661fi
7662DSYMUTIL=$ac_cv_prog_DSYMUTIL
7663if test -n "$DSYMUTIL"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7665$as_echo "$DSYMUTIL" >&6; }
7666else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671
7672fi
7673if test -z "$ac_cv_prog_DSYMUTIL"; then
7674 ac_ct_DSYMUTIL=$DSYMUTIL
7675 # Extract the first word of "dsymutil", so it can be a program name with args.
7676set dummy dsymutil; ac_word=$2
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7679if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b4c522fa
IB
7680 $as_echo_n "(cached) " >&6
7681else
7682 if test -n "$ac_ct_DSYMUTIL"; then
7683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7684else
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b4c522fa
IB
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696done
7697 done
7698IFS=$as_save_IFS
7699
7700fi
7701fi
235d1c46
RO
7702ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7703if test -n "$ac_ct_DSYMUTIL"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7705$as_echo "$ac_ct_DSYMUTIL" >&6; }
b4c522fa
IB
7706else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709fi
7710
235d1c46
RO
7711 if test "x$ac_ct_DSYMUTIL" = x; then
7712 DSYMUTIL=":"
b4c522fa
IB
7713 else
7714 case $cross_compiling:$ac_tool_warned in
7715yes:)
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718ac_tool_warned=yes ;;
7719esac
235d1c46 7720 DSYMUTIL=$ac_ct_DSYMUTIL
b4c522fa
IB
7721 fi
7722else
235d1c46 7723 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b4c522fa
IB
7724fi
7725
7726 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7728set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b4c522fa
IB
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7731if ${ac_cv_prog_NMEDIT+:} false; then :
b4c522fa
IB
7732 $as_echo_n "(cached) " >&6
7733else
235d1c46
RO
7734 if test -n "$NMEDIT"; then
7735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b4c522fa
IB
7736else
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b4c522fa
IB
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748done
7749 done
7750IFS=$as_save_IFS
7751
7752fi
7753fi
235d1c46
RO
7754NMEDIT=$ac_cv_prog_NMEDIT
7755if test -n "$NMEDIT"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7757$as_echo "$NMEDIT" >&6; }
b4c522fa
IB
7758else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
7761fi
7762
7763
7764fi
235d1c46
RO
7765if test -z "$ac_cv_prog_NMEDIT"; then
7766 ac_ct_NMEDIT=$NMEDIT
7767 # Extract the first word of "nmedit", so it can be a program name with args.
7768set dummy nmedit; ac_word=$2
b4c522fa
IB
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7771if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b4c522fa
IB
7772 $as_echo_n "(cached) " >&6
7773else
235d1c46
RO
7774 if test -n "$ac_ct_NMEDIT"; then
7775 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b4c522fa
IB
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7784 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b4c522fa
IB
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788done
7789 done
7790IFS=$as_save_IFS
7791
7792fi
7793fi
235d1c46
RO
7794ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7795if test -n "$ac_ct_NMEDIT"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7797$as_echo "$ac_ct_NMEDIT" >&6; }
b4c522fa
IB
7798else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
7801fi
7802
235d1c46
RO
7803 if test "x$ac_ct_NMEDIT" = x; then
7804 NMEDIT=":"
b4c522fa
IB
7805 else
7806 case $cross_compiling:$ac_tool_warned in
7807yes:)
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7810ac_tool_warned=yes ;;
7811esac
235d1c46 7812 NMEDIT=$ac_ct_NMEDIT
b4c522fa
IB
7813 fi
7814else
235d1c46 7815 NMEDIT="$ac_cv_prog_NMEDIT"
b4c522fa
IB
7816fi
7817
7818 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7819 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7820set dummy ${ac_tool_prefix}lipo; ac_word=$2
b4c522fa
IB
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7823if ${ac_cv_prog_LIPO+:} false; then :
b4c522fa
IB
7824 $as_echo_n "(cached) " >&6
7825else
235d1c46
RO
7826 if test -n "$LIPO"; then
7827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b4c522fa
IB
7828else
7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b4c522fa
IB
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840done
7841 done
7842IFS=$as_save_IFS
7843
7844fi
7845fi
235d1c46
RO
7846LIPO=$ac_cv_prog_LIPO
7847if test -n "$LIPO"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7849$as_echo "$LIPO" >&6; }
b4c522fa
IB
7850else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855
7856fi
235d1c46
RO
7857if test -z "$ac_cv_prog_LIPO"; then
7858 ac_ct_LIPO=$LIPO
7859 # Extract the first word of "lipo", so it can be a program name with args.
7860set dummy lipo; ac_word=$2
b4c522fa
IB
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7863if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
b4c522fa
IB
7864 $as_echo_n "(cached) " >&6
7865else
235d1c46
RO
7866 if test -n "$ac_ct_LIPO"; then
7867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b4c522fa
IB
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7876 ac_cv_prog_ac_ct_LIPO="lipo"
b4c522fa
IB
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880done
7881 done
7882IFS=$as_save_IFS
7883
7884fi
7885fi
235d1c46
RO
7886ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7887if test -n "$ac_ct_LIPO"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7889$as_echo "$ac_ct_LIPO" >&6; }
b4c522fa
IB
7890else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
7893fi
7894
235d1c46
RO
7895 if test "x$ac_ct_LIPO" = x; then
7896 LIPO=":"
b4c522fa
IB
7897 else
7898 case $cross_compiling:$ac_tool_warned in
7899yes:)
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7902ac_tool_warned=yes ;;
7903esac
235d1c46 7904 LIPO=$ac_ct_LIPO
b4c522fa
IB
7905 fi
7906else
235d1c46 7907 LIPO="$ac_cv_prog_LIPO"
b4c522fa
IB
7908fi
7909
235d1c46
RO
7910 if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7912set dummy ${ac_tool_prefix}otool; ac_word=$2
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if ${ac_cv_prog_OTOOL+:} false; then :
b4c522fa
IB
7916 $as_echo_n "(cached) " >&6
7917else
235d1c46
RO
7918 if test -n "$OTOOL"; then
7919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b4c522fa 7920else
235d1c46
RO
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933 done
7934IFS=$as_save_IFS
b4c522fa 7935
b4c522fa 7936fi
b4c522fa 7937fi
235d1c46
RO
7938OTOOL=$ac_cv_prog_OTOOL
7939if test -n "$OTOOL"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7941$as_echo "$OTOOL" >&6; }
b4c522fa 7942else
235d1c46
RO
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
b4c522fa 7945fi
b4c522fa 7946
235d1c46 7947
b4c522fa 7948fi
235d1c46
RO
7949if test -z "$ac_cv_prog_OTOOL"; then
7950 ac_ct_OTOOL=$OTOOL
7951 # Extract the first word of "otool", so it can be a program name with args.
7952set dummy otool; ac_word=$2
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
7955if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b4c522fa
IB
7956 $as_echo_n "(cached) " >&6
7957else
235d1c46
RO
7958 if test -n "$ac_ct_OTOOL"; then
7959 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7960else
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
b4c522fa 7963do
235d1c46
RO
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_ac_ct_OTOOL="otool"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973 done
7974IFS=$as_save_IFS
b4c522fa 7975
235d1c46
RO
7976fi
7977fi
7978ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7979if test -n "$ac_ct_OTOOL"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7981$as_echo "$ac_ct_OTOOL" >&6; }
b4c522fa 7982else
235d1c46
RO
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
b4c522fa 7985fi
b4c522fa 7986
235d1c46
RO
7987 if test "x$ac_ct_OTOOL" = x; then
7988 OTOOL=":"
7989 else
7990 case $cross_compiling:$ac_tool_warned in
7991yes:)
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7994ac_tool_warned=yes ;;
7995esac
7996 OTOOL=$ac_ct_OTOOL
7997 fi
b4c522fa 7998else
235d1c46 7999 OTOOL="$ac_cv_prog_OTOOL"
b4c522fa 8000fi
b4c522fa 8001
235d1c46
RO
8002 if test -n "$ac_tool_prefix"; then
8003 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8004set dummy ${ac_tool_prefix}otool64; ac_word=$2
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
8007if ${ac_cv_prog_OTOOL64+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009else
8010 if test -n "$OTOOL64"; then
8011 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8012else
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
b4c522fa 8024done
235d1c46
RO
8025 done
8026IFS=$as_save_IFS
8027
8028fi
8029fi
8030OTOOL64=$ac_cv_prog_OTOOL64
8031if test -n "$OTOOL64"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8033$as_echo "$OTOOL64" >&6; }
8034else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
b4c522fa
IB
8037fi
8038
b4c522fa
IB
8039
8040fi
235d1c46
RO
8041if test -z "$ac_cv_prog_OTOOL64"; then
8042 ac_ct_OTOOL64=$OTOOL64
8043 # Extract the first word of "otool64", so it can be a program name with args.
8044set dummy otool64; ac_word=$2
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046$as_echo_n "checking for $ac_word... " >&6; }
8047if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8048 $as_echo_n "(cached) " >&6
b4c522fa 8049else
235d1c46
RO
8050 if test -n "$ac_ct_OTOOL64"; then
8051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8052else
8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
b4c522fa 8055do
235d1c46
RO
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_ac_ct_OTOOL64="otool64"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064done
8065 done
8066IFS=$as_save_IFS
b4c522fa 8067
b4c522fa 8068fi
235d1c46
RO
8069fi
8070ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8071if test -n "$ac_ct_OTOOL64"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8073$as_echo "$ac_ct_OTOOL64" >&6; }
b4c522fa 8074else
235d1c46
RO
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076$as_echo "no" >&6; }
b4c522fa 8077fi
b4c522fa 8078
235d1c46
RO
8079 if test "x$ac_ct_OTOOL64" = x; then
8080 OTOOL64=":"
8081 else
8082 case $cross_compiling:$ac_tool_warned in
8083yes:)
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086ac_tool_warned=yes ;;
8087esac
8088 OTOOL64=$ac_ct_OTOOL64
8089 fi
b4c522fa 8090else
235d1c46 8091 OTOOL64="$ac_cv_prog_OTOOL64"
b4c522fa
IB
8092fi
8093
b4c522fa
IB
8094
8095
b4c522fa 8096
b4c522fa 8097
b4c522fa 8098
b4c522fa 8099
b4c522fa 8100
b4c522fa 8101
b4c522fa 8102
b4c522fa 8103
b4c522fa 8104
b4c522fa 8105
b4c522fa 8106
235d1c46
RO
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8121$as_echo_n "checking for -single_module linker flag... " >&6; }
8122if ${lt_cv_apple_cc_single_mod+:} false; then :
8123 $as_echo_n "(cached) " >&6
b4c522fa 8124else
235d1c46
RO
8125 lt_cv_apple_cc_single_mod=no
8126 if test -z "${LT_MULTI_MODULE}"; then
8127 # By default we will add the -single_module flag. You can override
8128 # by either setting the environment variable LT_MULTI_MODULE
8129 # non-empty at configure time, or by adding -multi_module to the
8130 # link flags.
8131 rm -rf libconftest.dylib*
8132 echo "int foo(void){return 1;}" > conftest.c
8133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8134-dynamiclib -Wl,-single_module conftest.c" >&5
8135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8137 _lt_result=$?
8138 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8139 lt_cv_apple_cc_single_mod=yes
8140 else
8141 cat conftest.err >&5
8142 fi
8143 rm -rf libconftest.dylib*
8144 rm -f conftest.*
8145 fi
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8148$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8150$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8151if ${lt_cv_ld_exported_symbols_list+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153else
8154 lt_cv_ld_exported_symbols_list=no
8155 save_LDFLAGS=$LDFLAGS
8156 echo "_main" > conftest.sym
8157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 8159/* end confdefs.h. */
b4c522fa 8160
b4c522fa
IB
8161int
8162main ()
8163{
235d1c46
RO
8164
8165 ;
b4c522fa
IB
8166 return 0;
8167}
8168_ACEOF
235d1c46
RO
8169if ac_fn_c_try_link "$LINENO"; then :
8170 lt_cv_ld_exported_symbols_list=yes
b4c522fa 8171else
235d1c46 8172 lt_cv_ld_exported_symbols_list=no
b4c522fa 8173fi
235d1c46
RO
8174rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LDFLAGS="$save_LDFLAGS"
b4c522fa
IB
8177
8178fi
235d1c46
RO
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8180$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8182$as_echo_n "checking for -force_load linker flag... " >&6; }
8183if ${lt_cv_ld_force_load+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185else
8186 lt_cv_ld_force_load=no
8187 cat > conftest.c << _LT_EOF
8188int forced_loaded() { return 2;}
8189_LT_EOF
8190 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8191 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8192 echo "$AR cru libconftest.a conftest.o" >&5
8193 $AR cru libconftest.a conftest.o 2>&5
8194 cat > conftest.c << _LT_EOF
8195int main() { return 0;}
8196_LT_EOF
8197 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8198 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8199 _lt_result=$?
8200 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8201 lt_cv_ld_force_load=yes
8202 else
8203 cat conftest.err >&5
8204 fi
8205 rm -f conftest.err libconftest.a conftest conftest.c
8206 rm -rf conftest.dSYM
b4c522fa
IB
8207
8208fi
235d1c46
RO
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8210$as_echo "$lt_cv_ld_force_load" >&6; }
8211 case $host_os in
8212 rhapsody* | darwin1.[012])
8213 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8214 darwin1.*)
8215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8216 darwin*) # darwin 5.x on
8217 # if running on 10.5 or later, the deployment target defaults
8218 # to the OS version, if on x86, and 10.4, the deployment
8219 # target defaults to 10.4. Don't you love it?
8220 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8221 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8223 10.[012][,.]*)
8224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8225 10.*)
8226 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8227 esac
8228 ;;
8229 esac
8230 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8231 _lt_dar_single_mod='$single_module'
8232 fi
8233 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8234 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8235 else
8236 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8237 fi
8238 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8239 _lt_dsymutil='~$DSYMUTIL $lib || :'
8240 else
8241 _lt_dsymutil=
8242 fi
8243 ;;
8244 esac
b4c522fa
IB
8245
8246for ac_header in dlfcn.h
8247do :
8248 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8249"
22e05272 8250if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b4c522fa
IB
8251 cat >>confdefs.h <<_ACEOF
8252#define HAVE_DLFCN_H 1
8253_ACEOF
8254
8255fi
8256
8257done
8258
8259
8260
8261
8262
8263# Set options
8264enable_dlopen=yes
8265
8266
8267
8268
8269 enable_win32_dll=no
8270
8271
8272 # Check whether --enable-shared was given.
8273if test "${enable_shared+set}" = set; then :
8274 enableval=$enable_shared; p=${PACKAGE-default}
8275 case $enableval in
8276 yes) enable_shared=yes ;;
8277 no) enable_shared=no ;;
8278 *)
8279 enable_shared=no
8280 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8282 for pkg in $enableval; do
8283 IFS="$lt_save_ifs"
8284 if test "X$pkg" = "X$p"; then
8285 enable_shared=yes
8286 fi
8287 done
8288 IFS="$lt_save_ifs"
8289 ;;
8290 esac
8291else
8292 enable_shared=yes
8293fi
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 # Check whether --enable-static was given.
8304if test "${enable_static+set}" = set; then :
8305 enableval=$enable_static; p=${PACKAGE-default}
8306 case $enableval in
8307 yes) enable_static=yes ;;
8308 no) enable_static=no ;;
8309 *)
8310 enable_static=no
8311 # Look at the argument we got. We use all the common list separators.
8312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8313 for pkg in $enableval; do
8314 IFS="$lt_save_ifs"
8315 if test "X$pkg" = "X$p"; then
8316 enable_static=yes
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 ;;
8321 esac
8322else
8323 enable_static=yes
8324fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335# Check whether --with-pic was given.
8336if test "${with_pic+set}" = set; then :
8337 withval=$with_pic; pic_mode="$withval"
8338else
8339 pic_mode=default
8340fi
8341
8342
8343test -z "$pic_mode" && pic_mode=default
8344
8345
8346
8347
8348
8349
8350
8351 # Check whether --enable-fast-install was given.
8352if test "${enable_fast_install+set}" = set; then :
8353 enableval=$enable_fast_install; p=${PACKAGE-default}
8354 case $enableval in
8355 yes) enable_fast_install=yes ;;
8356 no) enable_fast_install=no ;;
8357 *)
8358 enable_fast_install=no
8359 # Look at the argument we got. We use all the common list separators.
8360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8361 for pkg in $enableval; do
8362 IFS="$lt_save_ifs"
8363 if test "X$pkg" = "X$p"; then
8364 enable_fast_install=yes
8365 fi
8366 done
8367 IFS="$lt_save_ifs"
8368 ;;
8369 esac
8370else
8371 enable_fast_install=yes
8372fi
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384# This can be used to rebuild libtool when needed
8385LIBTOOL_DEPS="$ltmain"
8386
8387# Always use our own libtool.
8388LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415test -z "$LN_S" && LN_S="ln -s"
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430if test -n "${ZSH_VERSION+set}" ; then
8431 setopt NO_GLOB_SUBST
8432fi
8433
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8435$as_echo_n "checking for objdir... " >&6; }
22e05272 8436if ${lt_cv_objdir+:} false; then :
b4c522fa
IB
8437 $as_echo_n "(cached) " >&6
8438else
8439 rm -f .libs 2>/dev/null
8440mkdir .libs 2>/dev/null
8441if test -d .libs; then
8442 lt_cv_objdir=.libs
8443else
8444 # MS-DOS does not allow filenames that begin with a dot.
8445 lt_cv_objdir=_libs
8446fi
8447rmdir .libs 2>/dev/null
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8450$as_echo "$lt_cv_objdir" >&6; }
8451objdir=$lt_cv_objdir
8452
8453
8454
8455
8456
8457cat >>confdefs.h <<_ACEOF
8458#define LT_OBJDIR "$lt_cv_objdir/"
8459_ACEOF
8460
8461
8462
8463
8464case $host_os in
8465aix3*)
8466 # AIX sometimes has problems with the GCC collect2 program. For some
8467 # reason, if we set the COLLECT_NAMES environment variable, the problems
8468 # vanish in a puff of smoke.
8469 if test "X${COLLECT_NAMES+set}" != Xset; then
8470 COLLECT_NAMES=
8471 export COLLECT_NAMES
8472 fi
8473 ;;
8474esac
8475
8476# Global variables:
8477ofile=libtool
8478can_build_shared=yes
8479
8480# All known linkers require a `.a' archive for static linking (except MSVC,
8481# which needs '.lib').
8482libext=a
8483
8484with_gnu_ld="$lt_cv_prog_gnu_ld"
8485
8486old_CC="$CC"
8487old_CFLAGS="$CFLAGS"
8488
8489# Set sane defaults for various variables
8490test -z "$CC" && CC=cc
8491test -z "$LTCC" && LTCC=$CC
8492test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8493test -z "$LD" && LD=ld
8494test -z "$ac_objext" && ac_objext=o
8495
8496for cc_temp in $compiler""; do
8497 case $cc_temp in
8498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8500 \-*) ;;
8501 *) break;;
8502 esac
8503done
8504cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8505
8506
8507# Only perform the check for file, if the check method requires it
8508test -z "$MAGIC_CMD" && MAGIC_CMD=file
8509case $deplibs_check_method in
8510file_magic*)
8511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8513$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8514if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8515 $as_echo_n "(cached) " >&6
8516else
8517 case $MAGIC_CMD in
8518[\\/*] | ?:[\\/]*)
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8520 ;;
8521*)
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8526 IFS="$lt_save_ifs"
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/${ac_tool_prefix}file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8532 "file_magic "*)
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8537 :
8538 else
8539 cat <<_LT_EOF 1>&2
8540
8541*** Warning: the command libtool uses to detect shared libraries,
8542*** $file_magic_cmd, produces output that libtool cannot recognize.
8543*** The result is that libtool may fail to recognize shared libraries
8544*** as such. This will affect the creation of libtool libraries that
8545*** depend on shared libraries, but programs linked with such libtool
8546*** libraries will work regardless of this problem. Nevertheless, you
8547*** may want to report the problem to your system manager and/or to
8548*** bug-libtool@gnu.org
8549
8550_LT_EOF
8551 fi ;;
8552 esac
8553 fi
8554 break
8555 fi
8556 done
8557 IFS="$lt_save_ifs"
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8559 ;;
8560esac
8561fi
8562
8563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564if test -n "$MAGIC_CMD"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8566$as_echo "$MAGIC_CMD" >&6; }
8567else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572
8573
8574
8575
8576if test -z "$lt_cv_path_MAGIC_CMD"; then
8577 if test -n "$ac_tool_prefix"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8579$as_echo_n "checking for file... " >&6; }
22e05272 8580if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8581 $as_echo_n "(cached) " >&6
8582else
8583 case $MAGIC_CMD in
8584[\\/*] | ?:[\\/]*)
8585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8586 ;;
8587*)
8588 lt_save_MAGIC_CMD="$MAGIC_CMD"
8589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8591 for ac_dir in $ac_dummy; do
8592 IFS="$lt_save_ifs"
8593 test -z "$ac_dir" && ac_dir=.
8594 if test -f $ac_dir/file; then
8595 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8596 if test -n "$file_magic_test_file"; then
8597 case $deplibs_check_method in
8598 "file_magic "*)
8599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8602 $EGREP "$file_magic_regex" > /dev/null; then
8603 :
8604 else
8605 cat <<_LT_EOF 1>&2
8606
8607*** Warning: the command libtool uses to detect shared libraries,
8608*** $file_magic_cmd, produces output that libtool cannot recognize.
8609*** The result is that libtool may fail to recognize shared libraries
8610*** as such. This will affect the creation of libtool libraries that
8611*** depend on shared libraries, but programs linked with such libtool
8612*** libraries will work regardless of this problem. Nevertheless, you
8613*** may want to report the problem to your system manager and/or to
8614*** bug-libtool@gnu.org
8615
8616_LT_EOF
8617 fi ;;
8618 esac
8619 fi
8620 break
8621 fi
8622 done
8623 IFS="$lt_save_ifs"
8624 MAGIC_CMD="$lt_save_MAGIC_CMD"
8625 ;;
8626esac
8627fi
8628
8629MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8630if test -n "$MAGIC_CMD"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8632$as_echo "$MAGIC_CMD" >&6; }
8633else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635$as_echo "no" >&6; }
8636fi
8637
8638
8639 else
8640 MAGIC_CMD=:
8641 fi
8642fi
8643
8644 fi
8645 ;;
8646esac
8647
8648# Use C for the default configuration in the libtool script
8649
8650lt_save_CC="$CC"
8651ac_ext=c
8652ac_cpp='$CPP $CPPFLAGS'
8653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656
8657
8658# Source file extension for C test sources.
8659ac_ext=c
8660
8661# Object file extension for compiled C test sources.
8662objext=o
8663objext=$objext
8664
8665# Code to be used in simple compile tests
8666lt_simple_compile_test_code="int some_variable = 0;"
8667
8668# Code to be used in simple link tests
8669lt_simple_link_test_code='int main(){return(0);}'
8670
8671
8672
8673
8674
8675
8676
8677# If no C compiler was specified, use CC.
8678LTCC=${LTCC-"$CC"}
8679
8680# If no C compiler flags were specified, use CFLAGS.
8681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8682
8683# Allow CC to be a program name with arguments.
8684compiler=$CC
8685
8686# Save the default compiler, since it gets overwritten when the other
8687# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8688compiler_DEFAULT=$CC
8689
8690# save warnings/boilerplate of simple test code
8691ac_outfile=conftest.$ac_objext
8692echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694_lt_compiler_boilerplate=`cat conftest.err`
8695$RM conftest*
8696
8697ac_outfile=conftest.$ac_objext
8698echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700_lt_linker_boilerplate=`cat conftest.err`
8701$RM -r conftest*
8702
8703
8704## CAVEAT EMPTOR:
8705## There is no encapsulation within the following macros, do not change
8706## the running order or otherwise move them around unless you know exactly
8707## what you are doing...
8708if test -n "$compiler"; then
8709
8710lt_prog_compiler_no_builtin_flag=
8711
8712if test "$GCC" = yes; then
8713 case $cc_basename in
8714 nvcc*)
8715 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8716 *)
8717 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8718 esac
8719
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8721$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8722if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
8723 $as_echo_n "(cached) " >&6
8724else
8725 lt_cv_prog_compiler_rtti_exceptions=no
8726 ac_outfile=conftest.$ac_objext
8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="-fno-rtti -fno-exceptions"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8740 ac_status=$?
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_rtti_exceptions=yes
8750 fi
8751 fi
8752 $RM conftest*
8753
8754fi
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8757
8758if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8760else
8761 :
8762fi
8763
8764fi
8765
8766
8767
8768
8769
8770
8771 lt_prog_compiler_wl=
8772lt_prog_compiler_pic=
8773lt_prog_compiler_static=
8774
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8776$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8777
8778 if test "$GCC" = yes; then
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_static='-static'
8781
8782 case $host_os in
8783 aix*)
8784 # All AIX code is PIC.
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static='-Bstatic'
8788 fi
8789 lt_prog_compiler_pic='-fPIC'
8790 ;;
8791
8792 amigaos*)
8793 case $host_cpu in
8794 powerpc)
8795 # see comment about AmigaOS4 .so support
8796 lt_prog_compiler_pic='-fPIC'
8797 ;;
8798 m68k)
8799 # FIXME: we need at least 68020 code to build shared libraries, but
8800 # adding the `-m68020' flag to GCC prevents building anything better,
8801 # like `-m68040'.
8802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8803 ;;
8804 esac
8805 ;;
8806
8807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8808 # PIC is the default for these OSes.
8809 ;;
8810
8811 mingw* | cygwin* | pw32* | os2* | cegcc*)
8812 # This hack is so that the source file can tell whether it is being
8813 # built for inclusion in a dll (and should export symbols for example).
8814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8815 # (--disable-auto-import) libraries
8816 lt_prog_compiler_pic='-DDLL_EXPORT'
8817 ;;
8818
8819 darwin* | rhapsody*)
8820 # PIC is the default on this platform
8821 # Common symbols not allowed in MH_DYLIB files
8822 lt_prog_compiler_pic='-fno-common'
8823 ;;
8824
8825 haiku*)
8826 # PIC is the default for Haiku.
8827 # The "-static" flag exists, but is broken.
8828 lt_prog_compiler_static=
8829 ;;
8830
8831 hpux*)
8832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8834 # sets the default TLS model and affects inlining.
8835 case $host_cpu in
8836 hppa*64*)
8837 # +Z the default
8838 ;;
8839 *)
8840 lt_prog_compiler_pic='-fPIC'
8841 ;;
8842 esac
8843 ;;
8844
8845 interix[3-9]*)
8846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8847 # Instead, we relocate shared libraries at runtime.
8848 ;;
8849
8850 msdosdjgpp*)
8851 # Just because we use GCC doesn't mean we suddenly get shared libraries
8852 # on systems that don't support them.
8853 lt_prog_compiler_can_build_shared=no
8854 enable_shared=no
8855 ;;
8856
8857 *nto* | *qnx*)
8858 # QNX uses GNU C++, but need to define -shared option too, otherwise
8859 # it will coredump.
8860 lt_prog_compiler_pic='-fPIC -shared'
8861 ;;
8862
8863 sysv4*MP*)
8864 if test -d /usr/nec; then
8865 lt_prog_compiler_pic=-Kconform_pic
8866 fi
8867 ;;
8868
8869 *)
8870 lt_prog_compiler_pic='-fPIC'
8871 ;;
8872 esac
8873
8874 case $cc_basename in
8875 nvcc*) # Cuda Compiler Driver 2.2
8876 lt_prog_compiler_wl='-Xlinker '
8877 lt_prog_compiler_pic='-Xcompiler -fPIC'
8878 ;;
8879 esac
8880 else
8881 # PORTME Check for flag to pass linker flags through the system compiler.
8882 case $host_os in
8883 aix*)
8884 lt_prog_compiler_wl='-Wl,'
8885 if test "$host_cpu" = ia64; then
8886 # AIX 5 now supports IA64 processor
8887 lt_prog_compiler_static='-Bstatic'
8888 else
8889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8890 fi
8891 ;;
8892
8893 mingw* | cygwin* | pw32* | os2* | cegcc*)
8894 # This hack is so that the source file can tell whether it is being
8895 # built for inclusion in a dll (and should export symbols for example).
8896 lt_prog_compiler_pic='-DDLL_EXPORT'
8897 ;;
8898
8899 hpux9* | hpux10* | hpux11*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8902 # not for PA HP-UX.
8903 case $host_cpu in
8904 hppa*64*|ia64*)
8905 # +Z the default
8906 ;;
8907 *)
8908 lt_prog_compiler_pic='+Z'
8909 ;;
8910 esac
8911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8912 lt_prog_compiler_static='${wl}-a ${wl}archive'
8913 ;;
8914
8915 irix5* | irix6* | nonstopux*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # PIC (with -KPIC) is the default.
8918 lt_prog_compiler_static='-non_shared'
8919 ;;
8920
8921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8922 case $cc_basename in
8923 # old Intel for x86_64 which still supported -KPIC.
8924 ecc*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-static'
8928 ;;
8929 # icc used to be incompatible with GCC.
8930 # ICC 10 doesn't accept -KPIC any more.
8931 icc* | ifort*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fPIC'
8934 lt_prog_compiler_static='-static'
8935 ;;
8936 # Lahey Fortran 8.1.
8937 lf95*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='--shared'
8940 lt_prog_compiler_static='--static'
8941 ;;
8942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8943 # Portland Group compilers (*not* the Pentium gcc compiler,
8944 # which looks to be a dead project)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='-fpic'
8947 lt_prog_compiler_static='-Bstatic'
8948 ;;
8949 ccc*)
8950 lt_prog_compiler_wl='-Wl,'
8951 # All Alpha code is PIC.
8952 lt_prog_compiler_static='-non_shared'
8953 ;;
8954 xl* | bgxl* | bgf* | mpixl*)
8955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8956 lt_prog_compiler_wl='-Wl,'
8957 lt_prog_compiler_pic='-qpic'
8958 lt_prog_compiler_static='-qstaticlink'
8959 ;;
8960 *)
8961 case `$CC -V 2>&1 | sed 5q` in
8962 *Sun\ F* | *Sun*Fortran*)
8963 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 lt_prog_compiler_wl=''
8967 ;;
8968 *Sun\ C*)
8969 # Sun C 5.9
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 lt_prog_compiler_wl='-Wl,'
8973 ;;
8974 esac
8975 ;;
8976 esac
8977 ;;
8978
8979 newsos6)
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 ;;
8983
8984 *nto* | *qnx*)
8985 # QNX uses GNU C++, but need to define -shared option too, otherwise
8986 # it will coredump.
8987 lt_prog_compiler_pic='-fPIC -shared'
8988 ;;
8989
8990 osf3* | osf4* | osf5*)
8991 lt_prog_compiler_wl='-Wl,'
8992 # All OSF/1 code is PIC.
8993 lt_prog_compiler_static='-non_shared'
8994 ;;
8995
8996 rdos*)
8997 lt_prog_compiler_static='-non_shared'
8998 ;;
8999
9000 solaris*)
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 case $cc_basename in
9004 f77* | f90* | f95*)
9005 lt_prog_compiler_wl='-Qoption ld ';;
9006 *)
9007 lt_prog_compiler_wl='-Wl,';;
9008 esac
9009 ;;
9010
9011 sunos4*)
9012 lt_prog_compiler_wl='-Qoption ld '
9013 lt_prog_compiler_pic='-PIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 ;;
9016
9017 sysv4 | sysv4.2uw2* | sysv4.3*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
9022
9023 sysv4*MP*)
9024 if test -d /usr/nec ;then
9025 lt_prog_compiler_pic='-Kconform_pic'
9026 lt_prog_compiler_static='-Bstatic'
9027 fi
9028 ;;
9029
9030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9031 lt_prog_compiler_wl='-Wl,'
9032 lt_prog_compiler_pic='-KPIC'
9033 lt_prog_compiler_static='-Bstatic'
9034 ;;
9035
9036 unicos*)
9037 lt_prog_compiler_wl='-Wl,'
9038 lt_prog_compiler_can_build_shared=no
9039 ;;
9040
9041 uts4*)
9042 lt_prog_compiler_pic='-pic'
9043 lt_prog_compiler_static='-Bstatic'
9044 ;;
9045
9046 *)
9047 lt_prog_compiler_can_build_shared=no
9048 ;;
9049 esac
9050 fi
9051
9052case $host_os in
9053 # For platforms which do not support PIC, -DPIC is meaningless:
9054 *djgpp*)
9055 lt_prog_compiler_pic=
9056 ;;
9057 *)
9058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9059 ;;
9060esac
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9062$as_echo "$lt_prog_compiler_pic" >&6; }
9063
9064
9065
9066
9067
9068
9069#
9070# Check to make sure the PIC flag actually works.
9071#
9072if test -n "$lt_prog_compiler_pic"; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9074$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9075if ${lt_cv_prog_compiler_pic_works+:} false; then :
b4c522fa
IB
9076 $as_echo_n "(cached) " >&6
9077else
9078 lt_cv_prog_compiler_pic_works=no
9079 ac_outfile=conftest.$ac_objext
9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 # The option is referenced via a variable to avoid confusing sed.
9087 lt_compile=`echo "$ac_compile" | $SED \
9088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090 -e 's:$: $lt_compiler_flag:'`
9091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092 (eval "$lt_compile" 2>conftest.err)
9093 ac_status=$?
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 if (exit $ac_status) && test -s "$ac_outfile"; then
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings other than the usual output.
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_pic_works=yes
9103 fi
9104 fi
9105 $RM conftest*
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9109$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9110
9111if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9112 case $lt_prog_compiler_pic in
9113 "" | " "*) ;;
9114 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9115 esac
9116else
9117 lt_prog_compiler_pic=
9118 lt_prog_compiler_can_build_shared=no
9119fi
9120
9121fi
9122
9123
9124
9125
9126
9127
9128#
9129# Check to make sure the static flag actually works.
9130#
9131wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9133$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9134if ${lt_cv_prog_compiler_static_works+:} false; then :
b4c522fa
IB
9135 $as_echo_n "(cached) " >&6
9136else
9137 lt_cv_prog_compiler_static_works=no
9138 save_LDFLAGS="$LDFLAGS"
9139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9142 # The linker can only warn and ignore the option if not recognized
9143 # So say no if there are warnings
9144 if test -s conftest.err; then
9145 # Append any errors to the config.log.
9146 cat conftest.err 1>&5
9147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9149 if diff conftest.exp conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler_static_works=yes
9151 fi
9152 else
9153 lt_cv_prog_compiler_static_works=yes
9154 fi
9155 fi
9156 $RM -r conftest*
9157 LDFLAGS="$save_LDFLAGS"
9158
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9161$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9162
9163if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9164 :
9165else
9166 lt_prog_compiler_static=
9167fi
9168
9169
9170
9171
9172
9173
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9176$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9177if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9178 $as_echo_n "(cached) " >&6
9179else
9180 lt_cv_prog_compiler_c_o=no
9181 $RM -r conftest 2>/dev/null
9182 mkdir conftest
9183 cd conftest
9184 mkdir out
9185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186
9187 lt_compiler_flag="-o out/conftest2.$ac_objext"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 lt_compile=`echo "$ac_compile" | $SED \
9193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195 -e 's:$: $lt_compiler_flag:'`
9196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9197 (eval "$lt_compile" 2>out/conftest.err)
9198 ac_status=$?
9199 cat out/conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9202 then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings
9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_c_o=yes
9209 fi
9210 fi
9211 chmod u+w . 2>&5
9212 $RM conftest*
9213 # SGI C++ compiler will create directory out/ii_files/ for
9214 # template instantiation
9215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9216 $RM out/* && rmdir out
9217 cd ..
9218 $RM -r conftest
9219 $RM conftest*
9220
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9223$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9224
9225
9226
9227
9228
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9231$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9232if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9233 $as_echo_n "(cached) " >&6
9234else
9235 lt_cv_prog_compiler_c_o=no
9236 $RM -r conftest 2>/dev/null
9237 mkdir conftest
9238 cd conftest
9239 mkdir out
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241
9242 lt_compiler_flag="-o out/conftest2.$ac_objext"
9243 # Insert the option either (1) after the last *FLAGS variable, or
9244 # (2) before a word containing "conftest.", or (3) at the end.
9245 # Note that $ac_compile itself does not contain backslashes and begins
9246 # with a dollar sign (not a hyphen), so the echo should work correctly.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>out/conftest.err)
9253 ac_status=$?
9254 cat out/conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9257 then
9258 # The compiler can only warn and ignore the option if not recognized
9259 # So say no if there are warnings
9260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9263 lt_cv_prog_compiler_c_o=yes
9264 fi
9265 fi
9266 chmod u+w . 2>&5
9267 $RM conftest*
9268 # SGI C++ compiler will create directory out/ii_files/ for
9269 # template instantiation
9270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9271 $RM out/* && rmdir out
9272 cd ..
9273 $RM -r conftest
9274 $RM conftest*
9275
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9278$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9279
9280
9281
9282
9283hard_links="nottested"
9284if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9285 # do not overwrite the value of need_locks provided by the user
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9287$as_echo_n "checking if we can lock with hard links... " >&6; }
9288 hard_links=yes
9289 $RM conftest*
9290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9291 touch conftest.a
9292 ln conftest.a conftest.b 2>&5 || hard_links=no
9293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9295$as_echo "$hard_links" >&6; }
9296 if test "$hard_links" = no; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9298$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9299 need_locks=warn
9300 fi
9301else
9302 need_locks=no
9303fi
9304
9305
9306
9307
9308
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9311$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9312
9313 runpath_var=
9314 allow_undefined_flag=
9315 always_export_symbols=no
9316 archive_cmds=
9317 archive_expsym_cmds=
9318 compiler_needs_object=no
9319 enable_shared_with_static_runtimes=no
9320 export_dynamic_flag_spec=
9321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9322 hardcode_automatic=no
9323 hardcode_direct=no
9324 hardcode_direct_absolute=no
9325 hardcode_libdir_flag_spec=
9326 hardcode_libdir_flag_spec_ld=
9327 hardcode_libdir_separator=
9328 hardcode_minus_L=no
9329 hardcode_shlibpath_var=unsupported
9330 inherit_rpath=no
9331 link_all_deplibs=unknown
9332 module_cmds=
9333 module_expsym_cmds=
9334 old_archive_from_new_cmds=
9335 old_archive_from_expsyms_cmds=
9336 thread_safe_flag_spec=
9337 whole_archive_flag_spec=
9338 # include_expsyms should be a list of space-separated symbols to be *always*
9339 # included in the symbol list
9340 include_expsyms=
9341 # exclude_expsyms can be an extended regexp of symbols to exclude
9342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9344 # as well as any symbol that contains `d'.
9345 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9347 # platforms (ab)use it in PIC code, but their linkers get confused if
9348 # the symbol is explicitly referenced. Since portable code cannot
9349 # rely on this symbol name, it's probably fine to never include it in
9350 # preloaded symbol tables.
9351 # Exclude shared library initialization/finalization symbols.
9352 extract_expsyms_cmds=
9353
9354 case $host_os in
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9357 # When not using gcc, we currently assume that we are using
9358 # Microsoft Visual C++.
9359 if test "$GCC" != yes; then
9360 with_gnu_ld=no
9361 fi
9362 ;;
9363 interix*)
9364 # we just hope/assume this is gcc and not c89 (= MSVC++)
9365 with_gnu_ld=yes
9366 ;;
9367 openbsd*)
9368 with_gnu_ld=no
9369 ;;
9370 esac
9371
9372 ld_shlibs=yes
9373
9374 # On some targets, GNU ld is compatible enough with the native linker
9375 # that we're better off using the native interface for both.
9376 lt_use_gnu_ld_interface=no
9377 if test "$with_gnu_ld" = yes; then
9378 case $host_os in
9379 aix*)
9380 # The AIX port of GNU ld has always aspired to compatibility
9381 # with the native linker. However, as the warning in the GNU ld
9382 # block says, versions before 2.19.5* couldn't really create working
9383 # shared libraries, regardless of the interface used.
9384 case `$LD -v 2>&1` in
9385 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9386 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9387 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9388 *)
9389 lt_use_gnu_ld_interface=yes
9390 ;;
9391 esac
9392 ;;
9393 *)
9394 lt_use_gnu_ld_interface=yes
9395 ;;
9396 esac
9397 fi
9398
9399 if test "$lt_use_gnu_ld_interface" = yes; then
9400 # If archive_cmds runs LD, not CC, wlarc should be empty
9401 wlarc='${wl}'
9402
9403 # Set some defaults for GNU ld with shared library support. These
9404 # are reset later if shared libraries are not supported. Putting them
9405 # here allows them to be overridden if necessary.
9406 runpath_var=LD_RUN_PATH
9407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9408 export_dynamic_flag_spec='${wl}--export-dynamic'
9409 # ancient GNU ld didn't support --whole-archive et. al.
9410 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9411 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9412 else
9413 whole_archive_flag_spec=
9414 fi
9415 supports_anon_versioning=no
9416 case `$LD -v 2>&1` in
9417 *GNU\ gold*) supports_anon_versioning=yes ;;
9418 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9419 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9420 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9421 *\ 2.11.*) ;; # other 2.11 versions
9422 *) supports_anon_versioning=yes ;;
9423 esac
9424
9425 # See if GNU ld supports shared libraries.
9426 case $host_os in
9427 aix[3-9]*)
9428 # On AIX/PPC, the GNU linker is very broken
9429 if test "$host_cpu" != ia64; then
9430 ld_shlibs=no
9431 cat <<_LT_EOF 1>&2
9432
9433*** Warning: the GNU linker, at least up to release 2.19, is reported
9434*** to be unable to reliably create shared libraries on AIX.
9435*** Therefore, libtool is disabling shared libraries support. If you
9436*** really care for shared libraries, you may want to install binutils
9437*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9438*** You will then need to restart the configuration process.
9439
9440_LT_EOF
9441 fi
9442 ;;
9443
9444 amigaos*)
9445 case $host_cpu in
9446 powerpc)
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds=''
9450 ;;
9451 m68k)
9452 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)'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
9457 ;;
9458
9459 beos*)
9460 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461 allow_undefined_flag=unsupported
9462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9463 # support --undefined. This deserves some investigation. FIXME
9464 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 else
9466 ld_shlibs=no
9467 fi
9468 ;;
9469
9470 cygwin* | mingw* | pw32* | cegcc*)
9471 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9472 # as there is no search path for DLLs.
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 export_dynamic_flag_spec='${wl}--export-all-symbols'
9475 allow_undefined_flag=unsupported
9476 always_export_symbols=no
9477 enable_shared_with_static_runtimes=yes
9478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9479
9480 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9482 # If the export-symbols file already is a .def file (1st line
9483 # is EXPORTS), use it as is; otherwise, prepend...
9484 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9485 cp $export_symbols $output_objdir/$soname.def;
9486 else
9487 echo EXPORTS > $output_objdir/$soname.def;
9488 cat $export_symbols >> $output_objdir/$soname.def;
9489 fi~
9490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9491 else
9492 ld_shlibs=no
9493 fi
9494 ;;
9495
9496 haiku*)
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 link_all_deplibs=yes
9499 ;;
9500
9501 interix[3-9]*)
9502 hardcode_direct=no
9503 hardcode_shlibpath_var=no
9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9505 export_dynamic_flag_spec='${wl}-E'
9506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9507 # Instead, shared libraries are loaded at an image base (0x10000000 by
9508 # default) and relocated if they conflict, which is a slow very memory
9509 # consuming and fragmenting process. To avoid this, we pick a random,
9510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9513 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'
9514 ;;
9515
e9085da5 9516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
9517 tmp_diet=no
9518 if test "$host_os" = linux-dietlibc; then
9519 case $cc_basename in
9520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9521 esac
9522 fi
9523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9524 && test "$tmp_diet" = no
9525 then
9526 tmp_addflag=' $pic_flag'
9527 tmp_sharedflag='-shared'
9528 case $cc_basename,$host_cpu in
9529 pgcc*) # Portland Group C compiler
9530 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'
9531 tmp_addflag=' $pic_flag'
9532 ;;
9533 pgf77* | pgf90* | pgf95* | pgfortran*)
9534 # Portland Group f77 and f90 compilers
9535 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'
9536 tmp_addflag=' $pic_flag -Mnomain' ;;
9537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9538 tmp_addflag=' -i_dynamic' ;;
9539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9540 tmp_addflag=' -i_dynamic -nofor_main' ;;
9541 ifc* | ifort*) # Intel Fortran compiler
9542 tmp_addflag=' -nofor_main' ;;
9543 lf95*) # Lahey Fortran 8.1
9544 whole_archive_flag_spec=
9545 tmp_sharedflag='--shared' ;;
9546 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9547 tmp_sharedflag='-qmkshrobj'
9548 tmp_addflag= ;;
9549 nvcc*) # Cuda Compiler Driver 2.2
9550 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'
9551 compiler_needs_object=yes
9552 ;;
9553 esac
9554 case `$CC -V 2>&1 | sed 5q` in
9555 *Sun\ C*) # Sun C 5.9
9556 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'
9557 compiler_needs_object=yes
9558 tmp_sharedflag='-G' ;;
9559 *Sun\ F*) # Sun Fortran 8.3
9560 tmp_sharedflag='-G' ;;
9561 esac
9562 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563
9564 if test "x$supports_anon_versioning" = xyes; then
9565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9567 echo "local: *; };" >> $output_objdir/$libname.ver~
9568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9569 fi
9570
9571 case $cc_basename in
9572 xlf* | bgf* | bgxlf* | mpixlf*)
9573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9574 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9575 hardcode_libdir_flag_spec=
9576 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9577 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9578 if test "x$supports_anon_versioning" = xyes; then
9579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9581 echo "local: *; };" >> $output_objdir/$libname.ver~
9582 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9583 fi
9584 ;;
9585 esac
9586 else
9587 ld_shlibs=no
9588 fi
9589 ;;
9590
9591 netbsd*)
9592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9594 wlarc=
9595 else
9596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598 fi
9599 ;;
9600
9601 solaris*)
9602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9603 ld_shlibs=no
9604 cat <<_LT_EOF 1>&2
9605
9606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9607*** create shared libraries on Solaris systems. Therefore, libtool
9608*** is disabling shared libraries support. We urge you to upgrade GNU
9609*** binutils to release 2.9.1 or newer. Another option is to modify
9610*** your PATH or compiler configuration so that the native linker is
9611*** used, and then restart.
9612
9613_LT_EOF
9614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9617 else
9618 ld_shlibs=no
9619 fi
9620 ;;
9621
9622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9623 case `$LD -v 2>&1` in
9624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9625 ld_shlibs=no
9626 cat <<_LT_EOF 1>&2
9627
9628*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9629*** reliably create shared libraries on SCO systems. Therefore, libtool
9630*** is disabling shared libraries support. We urge you to upgrade GNU
9631*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9632*** your PATH or compiler configuration so that the native linker is
9633*** used, and then restart.
9634
9635_LT_EOF
9636 ;;
9637 *)
9638 # For security reasons, it is highly recommended that you always
9639 # use absolute paths for naming shared libraries, and exclude the
9640 # DT_RUNPATH tag from executables and libraries. But doing so
9641 # requires that you compile everything twice, which is a pain.
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650 esac
9651 ;;
9652
9653 sunos4*)
9654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9655 wlarc=
9656 hardcode_direct=yes
9657 hardcode_shlibpath_var=no
9658 ;;
9659
9660 *)
9661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9664 else
9665 ld_shlibs=no
9666 fi
9667 ;;
9668 esac
9669
9670 if test "$ld_shlibs" = no; then
9671 runpath_var=
9672 hardcode_libdir_flag_spec=
9673 export_dynamic_flag_spec=
9674 whole_archive_flag_spec=
9675 fi
9676 else
9677 # PORTME fill in a description of your system's linker (not GNU ld)
9678 case $host_os in
9679 aix3*)
9680 allow_undefined_flag=unsupported
9681 always_export_symbols=yes
9682 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'
9683 # Note: this linker hardcodes the directories in LIBPATH if there
9684 # are no directories specified by -L.
9685 hardcode_minus_L=yes
9686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9687 # Neither direct hardcoding nor static linking is supported with a
9688 # broken collect2.
9689 hardcode_direct=unsupported
9690 fi
9691 ;;
9692
9693 aix[4-9]*)
9694 if test "$host_cpu" = ia64; then
9695 # On IA64, the linker does run time linking by default, so we don't
9696 # have to do anything special.
9697 aix_use_runtimelinking=no
9698 exp_sym_flag='-Bexport'
9699 no_entry_flag=""
9700 else
9701 # If we're using GNU nm, then we don't want the "-C" option.
9702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9703 # Also, AIX nm treats weak defined symbols like other global
9704 # defined symbols, whereas GNU nm marks them as "W".
9705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9706 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'
9707 else
9708 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'
9709 fi
9710 aix_use_runtimelinking=no
9711
9712 # Test if we are trying to use run time linking or normal
9713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9714 # need to do runtime linking.
9715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9716 for ld_flag in $LDFLAGS; do
9717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9718 aix_use_runtimelinking=yes
9719 break
9720 fi
9721 done
9722 ;;
9723 esac
9724
9725 exp_sym_flag='-bexport'
9726 no_entry_flag='-bnoentry'
9727 fi
9728
9729 # When large executables or shared objects are built, AIX ld can
9730 # have problems creating the table of contents. If linking a library
9731 # or program results in "error TOC overflow" add -mminimal-toc to
9732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9734
9735 archive_cmds=''
9736 hardcode_direct=yes
9737 hardcode_direct_absolute=yes
9738 hardcode_libdir_separator=':'
9739 link_all_deplibs=yes
9740 file_list_spec='${wl}-f,'
9741
9742 if test "$GCC" = yes; then
9743 case $host_os in aix4.[012]|aix4.[012].*)
9744 # We only want to do this on AIX 4.2 and lower, the check
9745 # below for broken collect2 doesn't work under 4.3+
9746 collect2name=`${CC} -print-prog-name=collect2`
9747 if test -f "$collect2name" &&
9748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9749 then
9750 # We have reworked collect2
9751 :
9752 else
9753 # We have old collect2
9754 hardcode_direct=unsupported
9755 # It fails to find uninstalled libraries when the uninstalled
9756 # path is not listed in the libpath. Setting hardcode_minus_L
9757 # to unsupported forces relinking
9758 hardcode_minus_L=yes
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_libdir_separator=
9761 fi
9762 ;;
9763 esac
9764 shared_flag='-shared'
9765 if test "$aix_use_runtimelinking" = yes; then
9766 shared_flag="$shared_flag "'${wl}-G'
9767 fi
9768 else
9769 # not using gcc
9770 if test "$host_cpu" = ia64; then
9771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9772 # chokes on -Wl,-G. The following line is correct:
9773 shared_flag='-G'
9774 else
9775 if test "$aix_use_runtimelinking" = yes; then
9776 shared_flag='${wl}-G'
9777 else
9778 shared_flag='${wl}-bM:SRE'
9779 fi
9780 fi
9781 fi
9782
9783 export_dynamic_flag_spec='${wl}-bexpall'
9784 # It seems that -bexpall does not export symbols beginning with
9785 # underscore (_), so it is better to generate a list of symbols to export.
9786 always_export_symbols=yes
9787 if test "$aix_use_runtimelinking" = yes; then
9788 # Warning - without using the other runtime loading flags (-brtl),
9789 # -berok will link without error, but may produce a broken library.
9790 allow_undefined_flag='-berok'
9791 # Determine the default libpath from the value encoded in an
9792 # empty executable.
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h. */
9795
9796int
9797main ()
9798{
9799
9800 ;
9801 return 0;
9802}
9803_ACEOF
9804if ac_fn_c_try_link "$LINENO"; then :
9805
9806lt_aix_libpath_sed='
9807 /Import File Strings/,/^$/ {
9808 /^0/ {
9809 s/^0 *\(.*\)$/\1/
9810 p
9811 }
9812 }'
9813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9814# Check for a 64-bit object if we didn't find anything.
9815if test -z "$aix_libpath"; then
9816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9817fi
9818fi
9819rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9822
9823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9824 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"
9825 else
9826 if test "$host_cpu" = ia64; then
9827 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9828 allow_undefined_flag="-z nodefs"
9829 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"
9830 else
9831 # Determine the default libpath from the value encoded in an
9832 # empty executable.
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h. */
9835
9836int
9837main ()
9838{
9839
9840 ;
9841 return 0;
9842}
9843_ACEOF
9844if ac_fn_c_try_link "$LINENO"; then :
9845
9846lt_aix_libpath_sed='
9847 /Import File Strings/,/^$/ {
9848 /^0/ {
9849 s/^0 *\(.*\)$/\1/
9850 p
9851 }
9852 }'
9853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854# Check for a 64-bit object if we didn't find anything.
9855if test -z "$aix_libpath"; then
9856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9857fi
9858fi
9859rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9862
9863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9864 # Warning - without using the other run time loading flags,
9865 # -berok will link without error, but may produce a broken library.
9866 no_undefined_flag=' ${wl}-bernotok'
9867 allow_undefined_flag=' ${wl}-berok'
9868 if test "$with_gnu_ld" = yes; then
9869 # We only use this code for GNU lds that support --whole-archive.
9870 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9871 else
9872 # Exported symbols can be pulled into shared objects from archives
9873 whole_archive_flag_spec='$convenience'
9874 fi
9875 archive_cmds_need_lc=yes
9876 # This is similar to how AIX traditionally builds its shared libraries.
9877 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'
9878 fi
9879 fi
9880 ;;
9881
9882 amigaos*)
9883 case $host_cpu in
9884 powerpc)
9885 # see comment about AmigaOS4 .so support
9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9887 archive_expsym_cmds=''
9888 ;;
9889 m68k)
9890 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)'
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_minus_L=yes
9893 ;;
9894 esac
9895 ;;
9896
9897 bsdi[45]*)
9898 export_dynamic_flag_spec=-rdynamic
9899 ;;
9900
9901 cygwin* | mingw* | pw32* | cegcc*)
9902 # When not using gcc, we currently assume that we are using
9903 # Microsoft Visual C++.
9904 # hardcode_libdir_flag_spec is actually meaningless, as there is
9905 # no search path for DLLs.
9906 hardcode_libdir_flag_spec=' '
9907 allow_undefined_flag=unsupported
9908 # Tell ltmain to make .lib files, not .a files.
9909 libext=lib
9910 # Tell ltmain to make .dll files, not .so files.
9911 shrext_cmds=".dll"
9912 # FIXME: Setting linknames here is a bad hack.
9913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9914 # The linker will automatically build a .lib file if we build a DLL.
9915 old_archive_from_new_cmds='true'
9916 # FIXME: Should let the user specify the lib program.
9917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9918 fix_srcfile_path='`cygpath -w "$srcfile"`'
9919 enable_shared_with_static_runtimes=yes
9920 ;;
9921
9922 darwin* | rhapsody*)
9923
9924
9925 archive_cmds_need_lc=no
9926 hardcode_direct=no
9927 hardcode_automatic=yes
9928 hardcode_shlibpath_var=unsupported
9929 if test "$lt_cv_ld_force_load" = "yes"; then
9930 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\"`'
9931 else
9932 whole_archive_flag_spec=''
9933 fi
9934 link_all_deplibs=yes
9935 allow_undefined_flag="$_lt_dar_allow_undefined"
9936 case $cc_basename in
9937 ifort*) _lt_dar_can_shared=yes ;;
9938 *) _lt_dar_can_shared=$GCC ;;
9939 esac
9940 if test "$_lt_dar_can_shared" = "yes"; then
9941 output_verbose_link_cmd=func_echo_all
9942 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9943 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9944 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}"
9945 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}"
9946
9947 else
9948 ld_shlibs=no
9949 fi
9950
9951 ;;
9952
9953 dgux*)
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9960 # support. Future versions do this automatically, but an explicit c++rt0.o
9961 # does not break anything, and helps significantly (at the cost of a little
9962 # extra space).
9963 freebsd2.2*)
9964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9971 freebsd2.*)
9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_direct=yes
9974 hardcode_minus_L=yes
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9979 freebsd* | dragonfly*)
9980 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9981 hardcode_libdir_flag_spec='-R$libdir'
9982 hardcode_direct=yes
9983 hardcode_shlibpath_var=no
9984 ;;
9985
9986 hpux9*)
9987 if test "$GCC" = yes; then
9988 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'
9989 else
9990 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'
9991 fi
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_separator=:
9994 hardcode_direct=yes
9995
9996 # hardcode_minus_L: Not really in the search PATH,
9997 # but as the default location of the library.
9998 hardcode_minus_L=yes
9999 export_dynamic_flag_spec='${wl}-E'
10000 ;;
10001
10002 hpux10*)
10003 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10004 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10005 else
10006 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10007 fi
10008 if test "$with_gnu_ld" = no; then
10009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_flag_spec_ld='+b $libdir'
10011 hardcode_libdir_separator=:
10012 hardcode_direct=yes
10013 hardcode_direct_absolute=yes
10014 export_dynamic_flag_spec='${wl}-E'
10015 # hardcode_minus_L: Not really in the search PATH,
10016 # but as the default location of the library.
10017 hardcode_minus_L=yes
10018 fi
10019 ;;
10020
10021 hpux11*)
10022 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10023 case $host_cpu in
10024 hppa*64*)
10025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 ;;
10027 ia64*)
10028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10029 ;;
10030 *)
10031 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10032 ;;
10033 esac
10034 else
10035 case $host_cpu in
10036 hppa*64*)
10037 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 ;;
10039 ia64*)
10040 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10041 ;;
10042 *)
10043
10044 # Older versions of the 11.00 compiler do not understand -b yet
10045 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10047$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10048if ${lt_cv_prog_compiler__b+:} false; then :
b4c522fa
IB
10049 $as_echo_n "(cached) " >&6
10050else
10051 lt_cv_prog_compiler__b=no
10052 save_LDFLAGS="$LDFLAGS"
10053 LDFLAGS="$LDFLAGS -b"
10054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056 # The linker can only warn and ignore the option if not recognized
10057 # So say no if there are warnings
10058 if test -s conftest.err; then
10059 # Append any errors to the config.log.
10060 cat conftest.err 1>&5
10061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063 if diff conftest.exp conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler__b=yes
10065 fi
10066 else
10067 lt_cv_prog_compiler__b=yes
10068 fi
10069 fi
10070 $RM -r conftest*
10071 LDFLAGS="$save_LDFLAGS"
10072
10073fi
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10075$as_echo "$lt_cv_prog_compiler__b" >&6; }
10076
10077if test x"$lt_cv_prog_compiler__b" = xyes; then
10078 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079else
10080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10081fi
10082
10083 ;;
10084 esac
10085 fi
10086 if test "$with_gnu_ld" = no; then
10087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10088 hardcode_libdir_separator=:
10089
10090 case $host_cpu in
10091 hppa*64*|ia64*)
10092 hardcode_direct=no
10093 hardcode_shlibpath_var=no
10094 ;;
10095 *)
10096 hardcode_direct=yes
10097 hardcode_direct_absolute=yes
10098 export_dynamic_flag_spec='${wl}-E'
10099
10100 # hardcode_minus_L: Not really in the search PATH,
10101 # but as the default location of the library.
10102 hardcode_minus_L=yes
10103 ;;
10104 esac
10105 fi
10106 ;;
10107
10108 irix5* | irix6* | nonstopux*)
10109 if test "$GCC" = yes; then
10110 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'
10111 # Try to use the -exported_symbol ld option, if it does not
10112 # work, assume that -exports_file does not work either and
10113 # implicitly export all symbols.
10114 save_LDFLAGS="$LDFLAGS"
10115 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h. */
10118int foo(void) {}
10119_ACEOF
10120if ac_fn_c_try_link "$LINENO"; then :
10121 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'
10122
10123fi
10124rm -f core conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 LDFLAGS="$save_LDFLAGS"
10127 else
10128 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'
10129 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'
10130 fi
10131 archive_cmds_need_lc='no'
10132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133 hardcode_libdir_separator=:
10134 inherit_rpath=yes
10135 link_all_deplibs=yes
10136 ;;
10137
10138 netbsd*)
10139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10141 else
10142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10143 fi
10144 hardcode_libdir_flag_spec='-R$libdir'
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 ;;
10148
10149 newsos6)
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_direct=yes
10152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154 hardcode_shlibpath_var=no
10155 ;;
10156
10157 *nto* | *qnx*)
10158 ;;
10159
10160 openbsd*)
10161 if test -f /usr/libexec/ld.so; then
10162 hardcode_direct=yes
10163 hardcode_shlibpath_var=no
10164 hardcode_direct_absolute=yes
10165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10169 export_dynamic_flag_spec='${wl}-E'
10170 else
10171 case $host_os in
10172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_libdir_flag_spec='-R$libdir'
10175 ;;
10176 *)
10177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10179 ;;
10180 esac
10181 fi
10182 else
10183 ld_shlibs=no
10184 fi
10185 ;;
10186
10187 os2*)
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_minus_L=yes
10190 allow_undefined_flag=unsupported
10191 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'
10192 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10193 ;;
10194
10195 osf3*)
10196 if test "$GCC" = yes; then
10197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10198 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'
10199 else
10200 allow_undefined_flag=' -expect_unresolved \*'
10201 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'
10202 fi
10203 archive_cmds_need_lc='no'
10204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205 hardcode_libdir_separator=:
10206 ;;
10207
10208 osf4* | osf5*) # as osf3* with the addition of -msym flag
10209 if test "$GCC" = yes; then
10210 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10211 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'
10212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10213 else
10214 allow_undefined_flag=' -expect_unresolved \*'
10215 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'
10216 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~
10217 $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'
10218
10219 # Both c and cxx compiler support -rpath directly
10220 hardcode_libdir_flag_spec='-rpath $libdir'
10221 fi
10222 archive_cmds_need_lc='no'
10223 hardcode_libdir_separator=:
10224 ;;
10225
10226 solaris*)
10227 no_undefined_flag=' -z defs'
10228 if test "$GCC" = yes; then
10229 wlarc='${wl}'
10230 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233 else
10234 case `$CC -V 2>&1` in
10235 *"Compilers 5.0"*)
10236 wlarc=''
10237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10240 ;;
10241 *)
10242 wlarc='${wl}'
10243 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10245 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10246 ;;
10247 esac
10248 fi
10249 hardcode_libdir_flag_spec='-R$libdir'
10250 hardcode_shlibpath_var=no
10251 case $host_os in
10252 solaris2.[0-5] | solaris2.[0-5].*) ;;
10253 *)
10254 # The compiler driver will combine and reorder linker options,
10255 # but understands `-z linker_flag'. GCC discards it without `$wl',
10256 # but is careful enough not to reorder.
10257 # Supported since Solaris 2.6 (maybe 2.5.1?)
10258 if test "$GCC" = yes; then
10259 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10260 else
10261 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10262 fi
10263 ;;
10264 esac
10265 link_all_deplibs=yes
10266 ;;
10267
10268 sunos4*)
10269 if test "x$host_vendor" = xsequent; then
10270 # Use $CC to link under sequent, because it throws in some extra .o
10271 # files that make .init and .fini sections work.
10272 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10273 else
10274 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10275 fi
10276 hardcode_libdir_flag_spec='-L$libdir'
10277 hardcode_direct=yes
10278 hardcode_minus_L=yes
10279 hardcode_shlibpath_var=no
10280 ;;
10281
10282 sysv4)
10283 case $host_vendor in
10284 sni)
10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes # is this really true???
10287 ;;
10288 siemens)
10289 ## LD is ld it makes a PLAMLIB
10290 ## CC just makes a GrossModule.
10291 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10292 reload_cmds='$CC -r -o $output$reload_objs'
10293 hardcode_direct=no
10294 ;;
10295 motorola)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10298 ;;
10299 esac
10300 runpath_var='LD_RUN_PATH'
10301 hardcode_shlibpath_var=no
10302 ;;
10303
10304 sysv4.3*)
10305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_shlibpath_var=no
10307 export_dynamic_flag_spec='-Bexport'
10308 ;;
10309
10310 sysv4*MP*)
10311 if test -d /usr/nec; then
10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_shlibpath_var=no
10314 runpath_var=LD_RUN_PATH
10315 hardcode_runpath_var=yes
10316 ld_shlibs=yes
10317 fi
10318 ;;
10319
10320 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10321 no_undefined_flag='${wl}-z,text'
10322 archive_cmds_need_lc=no
10323 hardcode_shlibpath_var=no
10324 runpath_var='LD_RUN_PATH'
10325
10326 if test "$GCC" = yes; then
10327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 else
10330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 fi
10333 ;;
10334
10335 sysv5* | sco3.2v5* | sco5v6*)
10336 # Note: We can NOT use -z defs as we might desire, because we do not
10337 # link with -lc, and that would cause any symbols used from libc to
10338 # always be unresolved, which means just about no library would
10339 # ever link correctly. If we're not using GNU ld we use -z text
10340 # though, which does catch some bad symbols but isn't as heavy-handed
10341 # as -z defs.
10342 no_undefined_flag='${wl}-z,text'
10343 allow_undefined_flag='${wl}-z,nodefs'
10344 archive_cmds_need_lc=no
10345 hardcode_shlibpath_var=no
10346 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10347 hardcode_libdir_separator=':'
10348 link_all_deplibs=yes
10349 export_dynamic_flag_spec='${wl}-Bexport'
10350 runpath_var='LD_RUN_PATH'
10351
10352 if test "$GCC" = yes; then
10353 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 else
10356 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 fi
10359 ;;
10360
10361 uts4*)
10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 hardcode_shlibpath_var=no
10365 ;;
10366
10367 *)
10368 ld_shlibs=no
10369 ;;
10370 esac
10371
10372 if test x$host_vendor = xsni; then
10373 case $host in
10374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10375 export_dynamic_flag_spec='${wl}-Blargedynsym'
10376 ;;
10377 esac
10378 fi
10379 fi
10380
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10382$as_echo "$ld_shlibs" >&6; }
10383test "$ld_shlibs" = no && can_build_shared=no
10384
10385with_gnu_ld=$with_gnu_ld
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401#
10402# Do we need to explicitly link libc?
10403#
10404case "x$archive_cmds_need_lc" in
10405x|xyes)
10406 # Assume -lc should be added
10407 archive_cmds_need_lc=yes
10408
10409 if test "$enable_shared" = yes && test "$GCC" = yes; then
10410 case $archive_cmds in
10411 *'~'*)
10412 # FIXME: we may have to deal with multi-command sequences.
10413 ;;
10414 '$CC '*)
10415 # Test whether the compiler implicitly links with -lc since on some
10416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10417 # to ld, don't add -lc before -lgcc.
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10419$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10420if ${lt_cv_archive_cmds_need_lc+:} false; then :
b4c522fa
IB
10421 $as_echo_n "(cached) " >&6
10422else
10423 $RM conftest*
10424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10425
10426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10427 (eval $ac_compile) 2>&5
10428 ac_status=$?
10429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10430 test $ac_status = 0; } 2>conftest.err; then
10431 soname=conftest
10432 lib=conftest
10433 libobjs=conftest.$ac_objext
10434 deplibs=
10435 wl=$lt_prog_compiler_wl
10436 pic_flag=$lt_prog_compiler_pic
10437 compiler_flags=-v
10438 linker_flags=-v
10439 verstring=
10440 output_objdir=.
10441 libname=conftest
10442 lt_save_allow_undefined_flag=$allow_undefined_flag
10443 allow_undefined_flag=
10444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10445 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10446 ac_status=$?
10447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; }
10449 then
10450 lt_cv_archive_cmds_need_lc=no
10451 else
10452 lt_cv_archive_cmds_need_lc=yes
10453 fi
10454 allow_undefined_flag=$lt_save_allow_undefined_flag
10455 else
10456 cat conftest.err 1>&5
10457 fi
10458 $RM conftest*
10459
10460fi
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10462$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10463 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10464 ;;
10465 esac
10466 fi
10467 ;;
10468esac
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10627$as_echo_n "checking dynamic linker characteristics... " >&6; }
10628
10629if test "$GCC" = yes; then
10630 case $host_os in
10631 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10632 *) lt_awk_arg="/^libraries:/" ;;
10633 esac
10634 case $host_os in
10635 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10636 *) lt_sed_strip_eq="s,=/,/,g" ;;
10637 esac
10638 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10639 case $lt_search_path_spec in
10640 *\;*)
10641 # if the path contains ";" then we assume it to be the separator
10642 # otherwise default to the standard path separator (i.e. ":") - it is
10643 # assumed that no part of a normal pathname contains ";" but that should
10644 # okay in the real world where ";" in dirpaths is itself problematic.
10645 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10646 ;;
10647 *)
10648 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10649 ;;
10650 esac
10651 # Ok, now we have the path, separated by spaces, we can step through it
10652 # and add multilib dir if necessary.
10653 lt_tmp_lt_search_path_spec=
10654 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10655 for lt_sys_path in $lt_search_path_spec; do
10656 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10657 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10658 else
10659 test -d "$lt_sys_path" && \
10660 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10661 fi
10662 done
10663 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10664BEGIN {RS=" "; FS="/|\n";} {
10665 lt_foo="";
10666 lt_count=0;
10667 for (lt_i = NF; lt_i > 0; lt_i--) {
10668 if ($lt_i != "" && $lt_i != ".") {
10669 if ($lt_i == "..") {
10670 lt_count++;
10671 } else {
10672 if (lt_count == 0) {
10673 lt_foo="/" $lt_i lt_foo;
10674 } else {
10675 lt_count--;
10676 }
10677 }
10678 }
10679 }
10680 if (lt_foo != "") { lt_freq[lt_foo]++; }
10681 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10682}'`
10683 # AWK program above erroneously prepends '/' to C:/dos/paths
10684 # for these hosts.
10685 case $host_os in
10686 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10687 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10688 esac
10689 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10690else
10691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10692fi
10693library_names_spec=
10694libname_spec='lib$name'
10695soname_spec=
10696shrext_cmds=".so"
10697postinstall_cmds=
10698postuninstall_cmds=
10699finish_cmds=
10700finish_eval=
10701shlibpath_var=
10702shlibpath_overrides_runpath=unknown
10703version_type=none
10704dynamic_linker="$host_os ld.so"
10705sys_lib_dlsearch_path_spec="/lib /usr/lib"
10706need_lib_prefix=unknown
10707hardcode_into_libs=no
10708
10709# when you set need_version to no, make sure it does not cause -set_version
10710# flags to be left without arguments
10711need_version=unknown
10712
10713case $host_os in
10714aix3*)
10715 version_type=linux
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10717 shlibpath_var=LIBPATH
10718
10719 # AIX 3 has no versioning support, so we append a major version to the name.
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 ;;
10722
10723aix[4-9]*)
10724 version_type=linux
10725 need_lib_prefix=no
10726 need_version=no
10727 hardcode_into_libs=yes
10728 if test "$host_cpu" = ia64; then
10729 # AIX 5 supports IA64
10730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 else
10733 # With GCC up to 2.95.x, collect2 would create an import file
10734 # for dependence libraries. The import file would start with
10735 # the line `#! .'. This would cause the generated library to
10736 # depend on `.', always an invalid library. This was fixed in
10737 # development snapshots of GCC prior to 3.0.
10738 case $host_os in
10739 aix4 | aix4.[01] | aix4.[01].*)
10740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10741 echo ' yes '
10742 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10743 :
10744 else
10745 can_build_shared=no
10746 fi
10747 ;;
10748 esac
10749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10750 # soname into executable. Probably we can add versioning support to
10751 # collect2, so additional links can be useful in future.
10752 if test "$aix_use_runtimelinking" = yes; then
10753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10754 # instead of lib<name>.a to let people know that these are not
10755 # typical AIX shared libraries.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 else
10758 # We preserve .a as extension for shared libraries through AIX4.2
10759 # and later when we are not doing run time linking.
10760 library_names_spec='${libname}${release}.a $libname.a'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 fi
10763 shlibpath_var=LIBPATH
10764 fi
10765 ;;
10766
10767amigaos*)
10768 case $host_cpu in
10769 powerpc)
10770 # Since July 2007 AmigaOS4 officially supports .so libraries.
10771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 ;;
10774 m68k)
10775 library_names_spec='$libname.ixlibrary $libname.a'
10776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10777 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'
10778 ;;
10779 esac
10780 ;;
10781
10782beos*)
10783 library_names_spec='${libname}${shared_ext}'
10784 dynamic_linker="$host_os ld.so"
10785 shlibpath_var=LIBRARY_PATH
10786 ;;
10787
10788bsdi[45]*)
10789 version_type=linux
10790 need_version=no
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10797 # the default ld.so.conf also contains /usr/contrib/lib and
10798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10799 # libtool to hard-code these into programs
10800 ;;
10801
10802cygwin* | mingw* | pw32* | cegcc*)
10803 version_type=windows
10804 shrext_cmds=".dll"
10805 need_version=no
10806 need_lib_prefix=no
10807
10808 case $GCC,$host_os in
10809 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10810 library_names_spec='$libname.dll.a'
10811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10812 postinstall_cmds='base_file=`basename \${file}`~
10813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10814 dldir=$destdir/`dirname \$dlpath`~
10815 test -d \$dldir || mkdir -p \$dldir~
10816 $install_prog $dir/$dlname \$dldir/$dlname~
10817 chmod a+x \$dldir/$dlname~
10818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10820 fi'
10821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10822 dlpath=$dir/\$dldll~
10823 $RM \$dlpath'
10824 shlibpath_overrides_runpath=yes
10825
10826 case $host_os in
10827 cygwin*)
10828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10829 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830
10831 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10832 ;;
10833 mingw* | cegcc*)
10834 # MinGW DLLs use traditional 'lib' prefix
10835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836 ;;
10837 pw32*)
10838 # pw32 DLLs use 'pw' prefix rather than 'lib'
10839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10840 ;;
10841 esac
10842 ;;
10843
10844 *)
10845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10846 ;;
10847 esac
10848 dynamic_linker='Win32 ld.exe'
10849 # FIXME: first we should search . and the directory the executable is in
10850 shlibpath_var=PATH
10851 ;;
10852
10853darwin* | rhapsody*)
10854 dynamic_linker="$host_os dyld"
10855 version_type=darwin
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10859 soname_spec='${libname}${release}${major}$shared_ext'
10860 shlibpath_overrides_runpath=yes
10861 shlibpath_var=DYLD_LIBRARY_PATH
10862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10863
10864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10866 ;;
10867
10868dgux*)
10869 version_type=linux
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 ;;
10876
10877freebsd* | dragonfly*)
10878 # DragonFly does not have aout. When/if they implement a new
10879 # versioning mechanism, adjust this.
10880 if test -x /usr/bin/objformat; then
10881 objformat=`/usr/bin/objformat`
10882 else
10883 case $host_os in
10884 freebsd[23].*) objformat=aout ;;
10885 *) objformat=elf ;;
10886 esac
10887 fi
10888 version_type=freebsd-$objformat
10889 case $version_type in
10890 freebsd-elf*)
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10892 need_version=no
10893 need_lib_prefix=no
10894 ;;
10895 freebsd-*)
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10897 need_version=yes
10898 ;;
10899 esac
10900 shlibpath_var=LD_LIBRARY_PATH
10901 case $host_os in
10902 freebsd2.*)
10903 shlibpath_overrides_runpath=yes
10904 ;;
10905 freebsd3.[01]* | freebsdelf3.[01]*)
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 ;;
10909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10913 ;;
10914 *) # from 4.6 on, and DragonFly
10915 shlibpath_overrides_runpath=yes
10916 hardcode_into_libs=yes
10917 ;;
10918 esac
10919 ;;
10920
10921gnu*)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 hardcode_into_libs=yes
10929 ;;
10930
10931haiku*)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 dynamic_linker="$host_os runtime_loader"
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10940 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10941 hardcode_into_libs=yes
10942 ;;
10943
10944hpux9* | hpux10* | hpux11*)
10945 # Give a soname corresponding to the major version so that dld.sl refuses to
10946 # link against other versions.
10947 version_type=sunos
10948 need_lib_prefix=no
10949 need_version=no
10950 case $host_cpu in
10951 ia64*)
10952 shrext_cmds='.so'
10953 hardcode_into_libs=yes
10954 dynamic_linker="$host_os dld.so"
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 if test "X$HPUX_IA64_MODE" = X32; then
10960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10961 else
10962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10963 fi
10964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965 ;;
10966 hppa*64*)
10967 shrext_cmds='.sl'
10968 hardcode_into_libs=yes
10969 dynamic_linker="$host_os dld.sl"
10970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976 ;;
10977 *)
10978 shrext_cmds='.sl'
10979 dynamic_linker="$host_os dld.sl"
10980 shlibpath_var=SHLIB_PATH
10981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 ;;
10985 esac
10986 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10987 postinstall_cmds='chmod 555 $lib'
10988 # or fails outright, so override atomically:
10989 install_override_mode=555
10990 ;;
10991
10992interix[3-9]*)
10993 version_type=linux
10994 need_lib_prefix=no
10995 need_version=no
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10997 soname_spec='${libname}${release}${shared_ext}$major'
10998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=no
11001 hardcode_into_libs=yes
11002 ;;
11003
11004irix5* | irix6* | nonstopux*)
11005 case $host_os in
11006 nonstopux*) version_type=nonstopux ;;
11007 *)
11008 if test "$lt_cv_prog_gnu_ld" = yes; then
11009 version_type=linux
11010 else
11011 version_type=irix
11012 fi ;;
11013 esac
11014 need_lib_prefix=no
11015 need_version=no
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 case $host_os in
11019 irix5* | nonstopux*)
11020 libsuff= shlibsuff=
11021 ;;
11022 *)
11023 case $LD in # libtool.m4 will add one of these switches to LD
11024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11025 libsuff= shlibsuff= libmagic=32-bit;;
11026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11027 libsuff=32 shlibsuff=N32 libmagic=N32;;
11028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11030 *) libsuff= shlibsuff= libmagic=never-match;;
11031 esac
11032 ;;
11033 esac
11034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11035 shlibpath_overrides_runpath=no
11036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11038 hardcode_into_libs=yes
11039 ;;
11040
11041# No shared lib support for Linux oldld, aout, or coff.
11042linux*oldld* | linux*aout* | linux*coff*)
11043 dynamic_linker=no
11044 ;;
11045
11046# This must be Linux ELF.
e9085da5
MR
11047
11048# uclinux* changes (here and below) have been submitted to the libtool
11049# project, but have not yet been accepted: they are GCC-local changes
11050# for the time being. (See
11051# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11052linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061
11062 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b4c522fa
IB
11064 $as_echo_n "(cached) " >&6
11065else
11066 lt_cv_shlibpath_overrides_runpath=no
11067 save_LDFLAGS=$LDFLAGS
11068 save_libdir=$libdir
11069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h. */
11073
11074int
11075main ()
11076{
11077
11078 ;
11079 return 0;
11080}
11081_ACEOF
11082if ac_fn_c_try_link "$LINENO"; then :
11083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11084 lt_cv_shlibpath_overrides_runpath=yes
11085fi
11086fi
11087rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LDFLAGS=$save_LDFLAGS
11090 libdir=$save_libdir
11091
11092fi
11093
11094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11095
11096 # This implies no fast_install, which is unacceptable.
11097 # Some rework will be needed to allow for fast_install
11098 # before this can be enabled.
11099 hardcode_into_libs=yes
11100
11101 # Append ld.so.conf contents to the search path
11102 if test -f /etc/ld.so.conf; then
11103 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' ' '`
11104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11105 fi
11106
11107 # We used to test for /lib/ld.so.1 and disable shared libraries on
11108 # powerpc, because MkLinux only supported shared libraries with the
11109 # GNU dynamic linker. Since this was broken with cross compilers,
11110 # most powerpc-linux boxes support dynamic linking these days and
11111 # people can always --disable-shared, the test was removed, and we
11112 # assume the GNU/Linux dynamic linker is in use.
11113 dynamic_linker='GNU/Linux ld.so'
11114 ;;
11115
11116netbsd*)
11117 version_type=sunos
11118 need_lib_prefix=no
11119 need_version=no
11120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123 dynamic_linker='NetBSD (a.out) ld.so'
11124 else
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 dynamic_linker='NetBSD ld.elf_so'
11128 fi
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 ;;
11133
11134newsos6)
11135 version_type=linux
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 ;;
11140
11141*nto* | *qnx*)
11142 version_type=qnx
11143 need_lib_prefix=no
11144 need_version=no
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=no
11149 hardcode_into_libs=yes
11150 dynamic_linker='ldqnx.so'
11151 ;;
11152
11153openbsd*)
11154 version_type=sunos
11155 sys_lib_dlsearch_path_spec="/usr/lib"
11156 need_lib_prefix=no
11157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11158 case $host_os in
11159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11160 *) need_version=no ;;
11161 esac
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166 case $host_os in
11167 openbsd2.[89] | openbsd2.[89].*)
11168 shlibpath_overrides_runpath=no
11169 ;;
11170 *)
11171 shlibpath_overrides_runpath=yes
11172 ;;
11173 esac
11174 else
11175 shlibpath_overrides_runpath=yes
11176 fi
11177 ;;
11178
11179os2*)
11180 libname_spec='$name'
11181 shrext_cmds=".dll"
11182 need_lib_prefix=no
11183 library_names_spec='$libname${shared_ext} $libname.a'
11184 dynamic_linker='OS/2 ld.exe'
11185 shlibpath_var=LIBPATH
11186 ;;
11187
11188osf3* | osf4* | osf5*)
11189 version_type=osf
11190 need_lib_prefix=no
11191 need_version=no
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11197 ;;
11198
11199rdos*)
11200 dynamic_linker=no
11201 ;;
11202
11203solaris*)
11204 version_type=linux
11205 need_lib_prefix=no
11206 need_version=no
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 shlibpath_overrides_runpath=yes
11211 hardcode_into_libs=yes
11212 # ldd complains unless libraries are executable
11213 postinstall_cmds='chmod +x $lib'
11214 ;;
11215
11216sunos4*)
11217 version_type=sunos
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=yes
11222 if test "$with_gnu_ld" = yes; then
11223 need_lib_prefix=no
11224 fi
11225 need_version=yes
11226 ;;
11227
11228sysv4 | sysv4.3*)
11229 version_type=linux
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 case $host_vendor in
11234 sni)
11235 shlibpath_overrides_runpath=no
11236 need_lib_prefix=no
11237 runpath_var=LD_RUN_PATH
11238 ;;
11239 siemens)
11240 need_lib_prefix=no
11241 ;;
11242 motorola)
11243 need_lib_prefix=no
11244 need_version=no
11245 shlibpath_overrides_runpath=no
11246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11247 ;;
11248 esac
11249 ;;
11250
11251sysv4*MP*)
11252 if test -d /usr/nec ;then
11253 version_type=linux
11254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11255 soname_spec='$libname${shared_ext}.$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 fi
11258 ;;
11259
11260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11261 version_type=freebsd-elf
11262 need_lib_prefix=no
11263 need_version=no
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11265 soname_spec='${libname}${release}${shared_ext}$major'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11268 hardcode_into_libs=yes
11269 if test "$with_gnu_ld" = yes; then
11270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11271 else
11272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11273 case $host_os in
11274 sco3.2v5*)
11275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11276 ;;
11277 esac
11278 fi
11279 sys_lib_dlsearch_path_spec='/usr/lib'
11280 ;;
11281
11282tpf*)
11283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11284 version_type=linux
11285 need_lib_prefix=no
11286 need_version=no
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=no
11290 hardcode_into_libs=yes
11291 ;;
11292
11293uts4*)
11294 version_type=linux
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 ;;
11299
11300*)
11301 dynamic_linker=no
11302 ;;
11303esac
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11305$as_echo "$dynamic_linker" >&6; }
11306test "$dynamic_linker" = no && can_build_shared=no
11307
11308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11309if test "$GCC" = yes; then
11310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11311fi
11312
11313if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11314 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11315fi
11316if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11317 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11318fi
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11412$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11413hardcode_action=
11414if test -n "$hardcode_libdir_flag_spec" ||
11415 test -n "$runpath_var" ||
11416 test "X$hardcode_automatic" = "Xyes" ; then
11417
11418 # We can hardcode non-existent directories.
11419 if test "$hardcode_direct" != no &&
11420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11421 # have to relink, otherwise we might link with an installed library
11422 # when we should be linking with a yet-to-be-installed one
11423 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11424 test "$hardcode_minus_L" != no; then
11425 # Linking always hardcodes the temporary library directory.
11426 hardcode_action=relink
11427 else
11428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11429 hardcode_action=immediate
11430 fi
11431else
11432 # We cannot hardcode anything, or else we can only hardcode existing
11433 # directories.
11434 hardcode_action=unsupported
11435fi
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11437$as_echo "$hardcode_action" >&6; }
11438
11439if test "$hardcode_action" = relink ||
11440 test "$inherit_rpath" = yes; then
11441 # Fast installation is not supported
11442 enable_fast_install=no
11443elif test "$shlibpath_overrides_runpath" = yes ||
11444 test "$enable_shared" = no; then
11445 # Fast installation is not necessary
11446 enable_fast_install=needless
11447fi
11448
11449
11450
11451
11452
11453
11454 if test "x$enable_dlopen" != xyes; then
11455 enable_dlopen=unknown
11456 enable_dlopen_self=unknown
11457 enable_dlopen_self_static=unknown
11458else
11459 lt_cv_dlopen=no
11460 lt_cv_dlopen_libs=
11461
11462 case $host_os in
11463 beos*)
11464 lt_cv_dlopen="load_add_on"
11465 lt_cv_dlopen_libs=
11466 lt_cv_dlopen_self=yes
11467 ;;
11468
11469 mingw* | pw32* | cegcc*)
11470 lt_cv_dlopen="LoadLibrary"
11471 lt_cv_dlopen_libs=
11472 ;;
11473
11474 cygwin*)
11475 lt_cv_dlopen="dlopen"
11476 lt_cv_dlopen_libs=
11477 ;;
11478
11479 darwin*)
11480 # if libdl is installed we need to link against it
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11482$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11483if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11484 $as_echo_n "(cached) " >&6
11485else
11486 ac_check_lib_save_LIBS=$LIBS
11487LIBS="-ldl $LIBS"
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char dlopen ();
11498int
11499main ()
11500{
11501return dlopen ();
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_dl_dlopen=yes
11508else
11509 ac_cv_lib_dl_dlopen=no
11510fi
11511rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513LIBS=$ac_check_lib_save_LIBS
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11516$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11517if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11519else
11520
11521 lt_cv_dlopen="dyld"
11522 lt_cv_dlopen_libs=
11523 lt_cv_dlopen_self=yes
11524
11525fi
11526
11527 ;;
11528
11529 *)
11530 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11531if test "x$ac_cv_func_shl_load" = xyes; then :
b4c522fa
IB
11532 lt_cv_dlopen="shl_load"
11533else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11535$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11536if ${ac_cv_lib_dld_shl_load+:} false; then :
b4c522fa
IB
11537 $as_echo_n "(cached) " >&6
11538else
11539 ac_check_lib_save_LIBS=$LIBS
11540LIBS="-ldld $LIBS"
11541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h. */
11543
11544/* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547#ifdef __cplusplus
11548extern "C"
11549#endif
11550char shl_load ();
11551int
11552main ()
11553{
11554return shl_load ();
11555 ;
11556 return 0;
11557}
11558_ACEOF
11559if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_dld_shl_load=yes
11561else
11562 ac_cv_lib_dld_shl_load=no
11563fi
11564rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566LIBS=$ac_check_lib_save_LIBS
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11569$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11570if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b4c522fa
IB
11571 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11572else
11573 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11574if test "x$ac_cv_func_dlopen" = xyes; then :
b4c522fa
IB
11575 lt_cv_dlopen="dlopen"
11576else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11578$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11579if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11580 $as_echo_n "(cached) " >&6
11581else
11582 ac_check_lib_save_LIBS=$LIBS
11583LIBS="-ldl $LIBS"
11584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585/* end confdefs.h. */
11586
11587/* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590#ifdef __cplusplus
11591extern "C"
11592#endif
11593char dlopen ();
11594int
11595main ()
11596{
11597return dlopen ();
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_dl_dlopen=yes
11604else
11605 ac_cv_lib_dl_dlopen=no
11606fi
11607rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609LIBS=$ac_check_lib_save_LIBS
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11612$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11613if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11615else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11617$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11618if ${ac_cv_lib_svld_dlopen+:} false; then :
b4c522fa
IB
11619 $as_echo_n "(cached) " >&6
11620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-lsvld $LIBS"
11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624/* end confdefs.h. */
11625
11626/* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char dlopen ();
11633int
11634main ()
11635{
11636return dlopen ();
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_svld_dlopen=yes
11643else
11644 ac_cv_lib_svld_dlopen=no
11645fi
11646rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648LIBS=$ac_check_lib_save_LIBS
11649fi
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11651$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11652if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b4c522fa
IB
11653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11654else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11656$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11657if ${ac_cv_lib_dld_dld_link+:} false; then :
b4c522fa
IB
11658 $as_echo_n "(cached) " >&6
11659else
11660 ac_check_lib_save_LIBS=$LIBS
11661LIBS="-ldld $LIBS"
11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h. */
11664
11665/* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668#ifdef __cplusplus
11669extern "C"
11670#endif
11671char dld_link ();
11672int
11673main ()
11674{
11675return dld_link ();
11676 ;
11677 return 0;
11678}
11679_ACEOF
11680if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_lib_dld_dld_link=yes
11682else
11683 ac_cv_lib_dld_dld_link=no
11684fi
11685rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687LIBS=$ac_check_lib_save_LIBS
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11690$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11691if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b4c522fa
IB
11692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11693fi
11694
11695
11696fi
11697
11698
11699fi
11700
11701
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710 ;;
11711 esac
11712
11713 if test "x$lt_cv_dlopen" != xno; then
11714 enable_dlopen=yes
11715 else
11716 enable_dlopen=no
11717 fi
11718
11719 case $lt_cv_dlopen in
11720 dlopen)
11721 save_CPPFLAGS="$CPPFLAGS"
11722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723
11724 save_LDFLAGS="$LDFLAGS"
11725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11726
11727 save_LIBS="$LIBS"
11728 LIBS="$lt_cv_dlopen_libs $LIBS"
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11731$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11732if ${lt_cv_dlopen_self+:} false; then :
b4c522fa
IB
11733 $as_echo_n "(cached) " >&6
11734else
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self=cross
11737else
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<_LT_EOF
9051b548 11741#line 11741 "configure"
b4c522fa
IB
11742#include "confdefs.h"
11743
11744#if HAVE_DLFCN_H
11745#include <dlfcn.h>
11746#endif
11747
11748#include <stdio.h>
11749
11750#ifdef RTLD_GLOBAL
11751# define LT_DLGLOBAL RTLD_GLOBAL
11752#else
11753# ifdef DL_GLOBAL
11754# define LT_DLGLOBAL DL_GLOBAL
11755# else
11756# define LT_DLGLOBAL 0
11757# endif
11758#endif
11759
11760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762#ifndef LT_DLLAZY_OR_NOW
11763# ifdef RTLD_LAZY
11764# define LT_DLLAZY_OR_NOW RTLD_LAZY
11765# else
11766# ifdef DL_LAZY
11767# define LT_DLLAZY_OR_NOW DL_LAZY
11768# else
11769# ifdef RTLD_NOW
11770# define LT_DLLAZY_OR_NOW RTLD_NOW
11771# else
11772# ifdef DL_NOW
11773# define LT_DLLAZY_OR_NOW DL_NOW
11774# else
11775# define LT_DLLAZY_OR_NOW 0
11776# endif
11777# endif
11778# endif
11779# endif
11780#endif
11781
11782/* When -fvisbility=hidden is used, assume the code has been annotated
11783 correspondingly for the symbols needed. */
11784#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785void fnord () __attribute__((visibility("default")));
11786#endif
11787
11788void fnord () { int i=42; }
11789int main ()
11790{
11791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792 int status = $lt_dlunknown;
11793
11794 if (self)
11795 {
11796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11797 else
11798 {
11799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11800 else puts (dlerror ());
11801 }
11802 /* dlclose (self); */
11803 }
11804 else
11805 puts (dlerror ());
11806
11807 return status;
11808}
11809_LT_EOF
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11815 (./conftest; exit; ) >&5 2>/dev/null
11816 lt_status=$?
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11821 esac
11822 else :
11823 # compilation failed
11824 lt_cv_dlopen_self=no
11825 fi
11826fi
11827rm -fr conftest*
11828
11829
11830fi
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11832$as_echo "$lt_cv_dlopen_self" >&6; }
11833
11834 if test "x$lt_cv_dlopen_self" = xyes; then
11835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11837$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11838if ${lt_cv_dlopen_self_static+:} false; then :
b4c522fa
IB
11839 $as_echo_n "(cached) " >&6
11840else
11841 if test "$cross_compiling" = yes; then :
11842 lt_cv_dlopen_self_static=cross
11843else
11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11845 lt_status=$lt_dlunknown
11846 cat > conftest.$ac_ext <<_LT_EOF
9051b548 11847#line 11847 "configure"
b4c522fa
IB
11848#include "confdefs.h"
11849
11850#if HAVE_DLFCN_H
11851#include <dlfcn.h>
11852#endif
11853
11854#include <stdio.h>
11855
11856#ifdef RTLD_GLOBAL
11857# define LT_DLGLOBAL RTLD_GLOBAL
11858#else
11859# ifdef DL_GLOBAL
11860# define LT_DLGLOBAL DL_GLOBAL
11861# else
11862# define LT_DLGLOBAL 0
11863# endif
11864#endif
11865
11866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867 find out it does not work in some platform. */
11868#ifndef LT_DLLAZY_OR_NOW
11869# ifdef RTLD_LAZY
11870# define LT_DLLAZY_OR_NOW RTLD_LAZY
11871# else
11872# ifdef DL_LAZY
11873# define LT_DLLAZY_OR_NOW DL_LAZY
11874# else
11875# ifdef RTLD_NOW
11876# define LT_DLLAZY_OR_NOW RTLD_NOW
11877# else
11878# ifdef DL_NOW
11879# define LT_DLLAZY_OR_NOW DL_NOW
11880# else
11881# define LT_DLLAZY_OR_NOW 0
11882# endif
11883# endif
11884# endif
11885# endif
11886#endif
11887
11888/* When -fvisbility=hidden is used, assume the code has been annotated
11889 correspondingly for the symbols needed. */
11890#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11891void fnord () __attribute__((visibility("default")));
11892#endif
11893
11894void fnord () { int i=42; }
11895int main ()
11896{
11897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11898 int status = $lt_dlunknown;
11899
11900 if (self)
11901 {
11902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11903 else
11904 {
11905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11906 else puts (dlerror ());
11907 }
11908 /* dlclose (self); */
11909 }
11910 else
11911 puts (dlerror ());
11912
11913 return status;
11914}
11915_LT_EOF
11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11917 (eval $ac_link) 2>&5
11918 ac_status=$?
11919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11921 (./conftest; exit; ) >&5 2>/dev/null
11922 lt_status=$?
11923 case x$lt_status in
11924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11926 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11927 esac
11928 else :
11929 # compilation failed
11930 lt_cv_dlopen_self_static=no
11931 fi
11932fi
11933rm -fr conftest*
11934
11935
11936fi
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11938$as_echo "$lt_cv_dlopen_self_static" >&6; }
11939 fi
11940
11941 CPPFLAGS="$save_CPPFLAGS"
11942 LDFLAGS="$save_LDFLAGS"
11943 LIBS="$save_LIBS"
11944 ;;
11945 esac
11946
11947 case $lt_cv_dlopen_self in
11948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11949 *) enable_dlopen_self=unknown ;;
11950 esac
11951
11952 case $lt_cv_dlopen_self_static in
11953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11954 *) enable_dlopen_self_static=unknown ;;
11955 esac
11956fi
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974striplib=
11975old_striplib=
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11977$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11978if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11979 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11980 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982$as_echo "yes" >&6; }
11983else
11984# FIXME - insert some real tests, host_os isn't really good enough
11985 case $host_os in
11986 darwin*)
11987 if test -n "$STRIP" ; then
11988 striplib="$STRIP -x"
11989 old_striplib="$STRIP -S"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991$as_echo "yes" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995 fi
11996 ;;
11997 *)
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
12000 ;;
12001 esac
12002fi
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015 # Report which library types will actually be built
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12017$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12019$as_echo "$can_build_shared" >&6; }
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12022$as_echo_n "checking whether to build shared libraries... " >&6; }
12023 test "$can_build_shared" = "no" && enable_shared=no
12024
12025 # On AIX, shared libraries and static libraries use the same namespace, and
12026 # are all built from PIC.
12027 case $host_os in
12028 aix3*)
12029 test "$enable_shared" = yes && enable_static=no
12030 if test -n "$RANLIB"; then
12031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12032 postinstall_cmds='$RANLIB $lib'
12033 fi
12034 ;;
12035
12036 aix[4-9]*)
12037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12038 test "$enable_shared" = yes && enable_static=no
12039 fi
12040 ;;
12041 esac
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12043$as_echo "$enable_shared" >&6; }
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12046$as_echo_n "checking whether to build static libraries... " >&6; }
12047 # Make sure either enable_shared or enable_static is yes.
12048 test "$enable_shared" = yes || enable_static=yes
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12050$as_echo "$enable_static" >&6; }
12051
12052
12053
12054
12055fi
12056ac_ext=c
12057ac_cpp='$CPP $CPPFLAGS'
12058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12060ac_compiler_gnu=$ac_cv_c_compiler_gnu
12061
12062CC="$lt_save_CC"
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076 ac_config_commands="$ac_config_commands libtool"
12077
12078
12079
12080
12081# Only expand once:
12082
12083
12084
12085
12086
12087 gdc_save_DFLAGS=$GDCFLAGS
12088 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12089
12090
12091# Source file extension for D test sources.
12092ac_ext=d
12093
12094# Object file extension for compiled D test sources.
12095objext=o
12096objext_D=$objext
12097
12098# Code to be used in simple compile tests
9bedfe18
IB
12099lt_simple_compile_test_code="\
12100 module object;
12101 shared int some_variable = 0;
12102"
b4c522fa
IB
12103
12104# Code to be used in simple link tests
9bedfe18
IB
12105lt_simple_link_test_code="\
12106 module object;
12107 extern(C) int main() { return 0; }
12108"
b4c522fa
IB
12109
12110# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12111
12112
12113
12114
12115
12116
12117# If no C compiler was specified, use CC.
12118LTCC=${LTCC-"$CC"}
12119
12120# If no C compiler flags were specified, use CFLAGS.
12121LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12122
12123# Allow CC to be a program name with arguments.
12124compiler=$CC
12125
12126
12127# save warnings/boilerplate of simple test code
12128ac_outfile=conftest.$ac_objext
12129echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12130eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12131_lt_compiler_boilerplate=`cat conftest.err`
12132$RM conftest*
12133
12134ac_outfile=conftest.$ac_objext
12135echo "$lt_simple_link_test_code" >conftest.$ac_ext
12136eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12137_lt_linker_boilerplate=`cat conftest.err`
12138$RM -r conftest*
12139
12140
12141# Allow CC to be a program name with arguments.
12142lt_save_CC=$CC
12143lt_save_CFLAGS=$CFLAGS
b4c522fa
IB
12144lt_save_GCC=$GCC
12145GCC=yes
12146CC=${GDC-"gdc"}
b4c522fa
IB
12147CFLAGS=$GDCFLAGS
12148compiler=$CC
12149compiler_D=$CC
12150LD_D=$CC
12151for cc_temp in $compiler""; do
12152 case $cc_temp in
12153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12155 \-*) ;;
12156 *) break;;
12157 esac
12158done
12159cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12160
12161
12162# GDC did not exist at the time GCC didn't implicitly link libc in.
12163archive_cmds_need_lc_D=no
12164
12165old_archive_cmds_D=$old_archive_cmds
12166reload_flag_D=$reload_flag
12167reload_cmds_D=$reload_cmds
12168
12169## CAVEAT EMPTOR:
12170## There is no encapsulation within the following macros, do not change
12171## the running order or otherwise move them around unless you know exactly
12172## what you are doing...
12173if test -n "$compiler"; then
12174
12175lt_prog_compiler_no_builtin_flag_D=
12176
12177if test "$GCC" = yes; then
12178 case $cc_basename in
12179 nvcc*)
12180 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12181 *)
12182 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12183 esac
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12186$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 12187if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
12188 $as_echo_n "(cached) " >&6
12189else
12190 lt_cv_prog_compiler_rtti_exceptions=no
12191 ac_outfile=conftest.$ac_objext
12192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12193 lt_compiler_flag="-fno-rtti -fno-exceptions"
12194 # Insert the option either (1) after the last *FLAGS variable, or
12195 # (2) before a word containing "conftest.", or (3) at the end.
12196 # Note that $ac_compile itself does not contain backslashes and begins
12197 # with a dollar sign (not a hyphen), so the echo should work correctly.
12198 # The option is referenced via a variable to avoid confusing sed.
12199 lt_compile=`echo "$ac_compile" | $SED \
12200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12202 -e 's:$: $lt_compiler_flag:'`
12203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12204 (eval "$lt_compile" 2>conftest.err)
12205 ac_status=$?
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 if (exit $ac_status) && test -s "$ac_outfile"; then
12209 # The compiler can only warn and ignore the option if not recognized
12210 # So say no if there are warnings other than the usual output.
12211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12214 lt_cv_prog_compiler_rtti_exceptions=yes
12215 fi
12216 fi
12217 $RM conftest*
12218
12219fi
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12221$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12222
12223if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12224 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12225else
12226 :
12227fi
12228
12229fi
12230
12231
12232
12233 lt_prog_compiler_wl_D=
12234lt_prog_compiler_pic_D=
12235lt_prog_compiler_static_D=
12236
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12238$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12239
12240 if test "$GCC" = yes; then
12241 lt_prog_compiler_wl_D='-Wl,'
12242 lt_prog_compiler_static_D='-static'
12243
12244 case $host_os in
12245 aix*)
12246 # All AIX code is PIC.
12247 if test "$host_cpu" = ia64; then
12248 # AIX 5 now supports IA64 processor
12249 lt_prog_compiler_static_D='-Bstatic'
12250 fi
12251 lt_prog_compiler_pic_D='-fPIC'
12252 ;;
12253
12254 amigaos*)
12255 case $host_cpu in
12256 powerpc)
12257 # see comment about AmigaOS4 .so support
12258 lt_prog_compiler_pic_D='-fPIC'
12259 ;;
12260 m68k)
12261 # FIXME: we need at least 68020 code to build shared libraries, but
12262 # adding the `-m68020' flag to GCC prevents building anything better,
12263 # like `-m68040'.
12264 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12265 ;;
12266 esac
12267 ;;
12268
12269 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12270 # PIC is the default for these OSes.
12271 ;;
12272
12273 mingw* | cygwin* | pw32* | os2* | cegcc*)
12274 # This hack is so that the source file can tell whether it is being
12275 # built for inclusion in a dll (and should export symbols for example).
12276 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12277 # (--disable-auto-import) libraries
12278 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12279 ;;
12280
12281 darwin* | rhapsody*)
12282 # PIC is the default on this platform
12283 # Common symbols not allowed in MH_DYLIB files
12284 lt_prog_compiler_pic_D='-fno-common'
12285 ;;
12286
12287 haiku*)
12288 # PIC is the default for Haiku.
12289 # The "-static" flag exists, but is broken.
12290 lt_prog_compiler_static_D=
12291 ;;
12292
12293 hpux*)
12294 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12295 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12296 # sets the default TLS model and affects inlining.
12297 case $host_cpu in
12298 hppa*64*)
12299 # +Z the default
12300 ;;
12301 *)
12302 lt_prog_compiler_pic_D='-fPIC'
12303 ;;
12304 esac
12305 ;;
12306
12307 interix[3-9]*)
12308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12309 # Instead, we relocate shared libraries at runtime.
12310 ;;
12311
12312 msdosdjgpp*)
12313 # Just because we use GCC doesn't mean we suddenly get shared libraries
12314 # on systems that don't support them.
12315 lt_prog_compiler_can_build_shared_D=no
12316 enable_shared=no
12317 ;;
12318
12319 *nto* | *qnx*)
12320 # QNX uses GNU C++, but need to define -shared option too, otherwise
12321 # it will coredump.
12322 lt_prog_compiler_pic_D='-fPIC -shared'
12323 ;;
12324
12325 sysv4*MP*)
12326 if test -d /usr/nec; then
12327 lt_prog_compiler_pic_D=-Kconform_pic
12328 fi
12329 ;;
12330
12331 *)
12332 lt_prog_compiler_pic_D='-fPIC'
12333 ;;
12334 esac
12335
12336 case $cc_basename in
12337 nvcc*) # Cuda Compiler Driver 2.2
12338 lt_prog_compiler_wl_D='-Xlinker '
12339 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12340 ;;
12341 esac
12342 else
12343 # PORTME Check for flag to pass linker flags through the system compiler.
12344 case $host_os in
12345 aix*)
12346 lt_prog_compiler_wl_D='-Wl,'
12347 if test "$host_cpu" = ia64; then
12348 # AIX 5 now supports IA64 processor
12349 lt_prog_compiler_static_D='-Bstatic'
12350 else
12351 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12352 fi
12353 ;;
12354
12355 mingw* | cygwin* | pw32* | os2* | cegcc*)
12356 # This hack is so that the source file can tell whether it is being
12357 # built for inclusion in a dll (and should export symbols for example).
12358 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12359 ;;
12360
12361 hpux9* | hpux10* | hpux11*)
12362 lt_prog_compiler_wl_D='-Wl,'
12363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12364 # not for PA HP-UX.
12365 case $host_cpu in
12366 hppa*64*|ia64*)
12367 # +Z the default
12368 ;;
12369 *)
12370 lt_prog_compiler_pic_D='+Z'
12371 ;;
12372 esac
12373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12374 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12375 ;;
12376
12377 irix5* | irix6* | nonstopux*)
12378 lt_prog_compiler_wl_D='-Wl,'
12379 # PIC (with -KPIC) is the default.
12380 lt_prog_compiler_static_D='-non_shared'
12381 ;;
12382
12383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12384 case $cc_basename in
12385 # old Intel for x86_64 which still supported -KPIC.
12386 ecc*)
12387 lt_prog_compiler_wl_D='-Wl,'
12388 lt_prog_compiler_pic_D='-KPIC'
12389 lt_prog_compiler_static_D='-static'
12390 ;;
12391 # icc used to be incompatible with GCC.
12392 # ICC 10 doesn't accept -KPIC any more.
12393 icc* | ifort*)
12394 lt_prog_compiler_wl_D='-Wl,'
12395 lt_prog_compiler_pic_D='-fPIC'
12396 lt_prog_compiler_static_D='-static'
12397 ;;
12398 # Lahey Fortran 8.1.
12399 lf95*)
12400 lt_prog_compiler_wl_D='-Wl,'
12401 lt_prog_compiler_pic_D='--shared'
12402 lt_prog_compiler_static_D='--static'
12403 ;;
12404 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12405 # Portland Group compilers (*not* the Pentium gcc compiler,
12406 # which looks to be a dead project)
12407 lt_prog_compiler_wl_D='-Wl,'
12408 lt_prog_compiler_pic_D='-fpic'
12409 lt_prog_compiler_static_D='-Bstatic'
12410 ;;
12411 ccc*)
12412 lt_prog_compiler_wl_D='-Wl,'
12413 # All Alpha code is PIC.
12414 lt_prog_compiler_static_D='-non_shared'
12415 ;;
12416 xl* | bgxl* | bgf* | mpixl*)
12417 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12418 lt_prog_compiler_wl_D='-Wl,'
12419 lt_prog_compiler_pic_D='-qpic'
12420 lt_prog_compiler_static_D='-qstaticlink'
12421 ;;
12422 *)
12423 case `$CC -V 2>&1 | sed 5q` in
12424 *Sun\ F* | *Sun*Fortran*)
12425 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12426 lt_prog_compiler_pic_D='-KPIC'
12427 lt_prog_compiler_static_D='-Bstatic'
12428 lt_prog_compiler_wl_D=''
12429 ;;
12430 *Sun\ C*)
12431 # Sun C 5.9
12432 lt_prog_compiler_pic_D='-KPIC'
12433 lt_prog_compiler_static_D='-Bstatic'
12434 lt_prog_compiler_wl_D='-Wl,'
12435 ;;
12436 esac
12437 ;;
12438 esac
12439 ;;
12440
12441 newsos6)
12442 lt_prog_compiler_pic_D='-KPIC'
12443 lt_prog_compiler_static_D='-Bstatic'
12444 ;;
12445
12446 *nto* | *qnx*)
12447 # QNX uses GNU C++, but need to define -shared option too, otherwise
12448 # it will coredump.
12449 lt_prog_compiler_pic_D='-fPIC -shared'
12450 ;;
12451
12452 osf3* | osf4* | osf5*)
12453 lt_prog_compiler_wl_D='-Wl,'
12454 # All OSF/1 code is PIC.
12455 lt_prog_compiler_static_D='-non_shared'
12456 ;;
12457
12458 rdos*)
12459 lt_prog_compiler_static_D='-non_shared'
12460 ;;
12461
12462 solaris*)
12463 lt_prog_compiler_pic_D='-KPIC'
12464 lt_prog_compiler_static_D='-Bstatic'
12465 case $cc_basename in
12466 f77* | f90* | f95*)
12467 lt_prog_compiler_wl_D='-Qoption ld ';;
12468 *)
12469 lt_prog_compiler_wl_D='-Wl,';;
12470 esac
12471 ;;
12472
12473 sunos4*)
12474 lt_prog_compiler_wl_D='-Qoption ld '
12475 lt_prog_compiler_pic_D='-PIC'
12476 lt_prog_compiler_static_D='-Bstatic'
12477 ;;
12478
12479 sysv4 | sysv4.2uw2* | sysv4.3*)
12480 lt_prog_compiler_wl_D='-Wl,'
12481 lt_prog_compiler_pic_D='-KPIC'
12482 lt_prog_compiler_static_D='-Bstatic'
12483 ;;
12484
12485 sysv4*MP*)
12486 if test -d /usr/nec ;then
12487 lt_prog_compiler_pic_D='-Kconform_pic'
12488 lt_prog_compiler_static_D='-Bstatic'
12489 fi
12490 ;;
12491
12492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12493 lt_prog_compiler_wl_D='-Wl,'
12494 lt_prog_compiler_pic_D='-KPIC'
12495 lt_prog_compiler_static_D='-Bstatic'
12496 ;;
12497
12498 unicos*)
12499 lt_prog_compiler_wl_D='-Wl,'
12500 lt_prog_compiler_can_build_shared_D=no
12501 ;;
12502
12503 uts4*)
12504 lt_prog_compiler_pic_D='-pic'
12505 lt_prog_compiler_static_D='-Bstatic'
12506 ;;
12507
12508 *)
12509 lt_prog_compiler_can_build_shared_D=no
12510 ;;
12511 esac
12512 fi
12513
12514case $host_os in
12515 # For platforms which do not support PIC, -DPIC is meaningless:
12516 *djgpp*)
12517 lt_prog_compiler_pic_D=
12518 ;;
12519 *)
12520 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12521 ;;
12522esac
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12524$as_echo "$lt_prog_compiler_pic_D" >&6; }
12525
12526
12527
12528#
12529# Check to make sure the PIC flag actually works.
12530#
12531if test -n "$lt_prog_compiler_pic_D"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
22e05272 12534if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
b4c522fa
IB
12535 $as_echo_n "(cached) " >&6
12536else
12537 lt_cv_prog_compiler_pic_works_D=no
12538 ac_outfile=conftest.$ac_objext
12539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12540 lt_compiler_flag="$lt_prog_compiler_pic_D"
12541 # Insert the option either (1) after the last *FLAGS variable, or
12542 # (2) before a word containing "conftest.", or (3) at the end.
12543 # Note that $ac_compile itself does not contain backslashes and begins
12544 # with a dollar sign (not a hyphen), so the echo should work correctly.
12545 # The option is referenced via a variable to avoid confusing sed.
12546 lt_compile=`echo "$ac_compile" | $SED \
12547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549 -e 's:$: $lt_compiler_flag:'`
12550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12551 (eval "$lt_compile" 2>conftest.err)
12552 ac_status=$?
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 if (exit $ac_status) && test -s "$ac_outfile"; then
12556 # The compiler can only warn and ignore the option if not recognized
12557 # So say no if there are warnings other than the usual output.
12558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12561 lt_cv_prog_compiler_pic_works_D=yes
12562 fi
12563 fi
12564 $RM conftest*
12565
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12568$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12569
12570if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12571 case $lt_prog_compiler_pic_D in
12572 "" | " "*) ;;
12573 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12574 esac
12575else
12576 lt_prog_compiler_pic_D=
12577 lt_prog_compiler_can_build_shared_D=no
12578fi
12579
12580fi
12581
12582
12583
12584#
12585# Check to make sure the static flag actually works.
12586#
12587wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12589$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12590if ${lt_cv_prog_compiler_static_works_D+:} false; then :
b4c522fa
IB
12591 $as_echo_n "(cached) " >&6
12592else
12593 lt_cv_prog_compiler_static_works_D=no
12594 save_LDFLAGS="$LDFLAGS"
12595 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12596 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12598 # The linker can only warn and ignore the option if not recognized
12599 # So say no if there are warnings
12600 if test -s conftest.err; then
12601 # Append any errors to the config.log.
12602 cat conftest.err 1>&5
12603 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12605 if diff conftest.exp conftest.er2 >/dev/null; then
12606 lt_cv_prog_compiler_static_works_D=yes
12607 fi
12608 else
12609 lt_cv_prog_compiler_static_works_D=yes
12610 fi
12611 fi
12612 $RM -r conftest*
12613 LDFLAGS="$save_LDFLAGS"
12614
12615fi
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12617$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12618
12619if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12620 :
12621else
12622 lt_prog_compiler_static_D=
12623fi
12624
12625
12626
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12629$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12630if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12631 $as_echo_n "(cached) " >&6
12632else
12633 lt_cv_prog_compiler_c_o_D=no
12634 $RM -r conftest 2>/dev/null
12635 mkdir conftest
12636 cd conftest
12637 mkdir out
12638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12639
12640 lt_compiler_flag="-o out/conftest2.$ac_objext"
12641 # Insert the option either (1) after the last *FLAGS variable, or
12642 # (2) before a word containing "conftest.", or (3) at the end.
12643 # Note that $ac_compile itself does not contain backslashes and begins
12644 # with a dollar sign (not a hyphen), so the echo should work correctly.
12645 lt_compile=`echo "$ac_compile" | $SED \
12646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648 -e 's:$: $lt_compiler_flag:'`
12649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12650 (eval "$lt_compile" 2>out/conftest.err)
12651 ac_status=$?
12652 cat out/conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12655 then
12656 # The compiler can only warn and ignore the option if not recognized
12657 # So say no if there are warnings
12658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12661 lt_cv_prog_compiler_c_o_D=yes
12662 fi
12663 fi
12664 chmod u+w . 2>&5
12665 $RM conftest*
12666 # SGI C++ compiler will create directory out/ii_files/ for
12667 # template instantiation
12668 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12669 $RM out/* && rmdir out
12670 cd ..
12671 $RM -r conftest
12672 $RM conftest*
12673
12674fi
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12676$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12677
12678
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12681$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12682if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12683 $as_echo_n "(cached) " >&6
12684else
12685 lt_cv_prog_compiler_c_o_D=no
12686 $RM -r conftest 2>/dev/null
12687 mkdir conftest
12688 cd conftest
12689 mkdir out
12690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12691
12692 lt_compiler_flag="-o out/conftest2.$ac_objext"
12693 # Insert the option either (1) after the last *FLAGS variable, or
12694 # (2) before a word containing "conftest.", or (3) at the end.
12695 # Note that $ac_compile itself does not contain backslashes and begins
12696 # with a dollar sign (not a hyphen), so the echo should work correctly.
12697 lt_compile=`echo "$ac_compile" | $SED \
12698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12700 -e 's:$: $lt_compiler_flag:'`
12701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12702 (eval "$lt_compile" 2>out/conftest.err)
12703 ac_status=$?
12704 cat out/conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12707 then
12708 # The compiler can only warn and ignore the option if not recognized
12709 # So say no if there are warnings
12710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12713 lt_cv_prog_compiler_c_o_D=yes
12714 fi
12715 fi
12716 chmod u+w . 2>&5
12717 $RM conftest*
12718 # SGI C++ compiler will create directory out/ii_files/ for
12719 # template instantiation
12720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12721 $RM out/* && rmdir out
12722 cd ..
12723 $RM -r conftest
12724 $RM conftest*
12725
12726fi
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12728$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12729
12730
12731
12732
12733hard_links="nottested"
12734if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12735 # do not overwrite the value of need_locks provided by the user
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12737$as_echo_n "checking if we can lock with hard links... " >&6; }
12738 hard_links=yes
12739 $RM conftest*
12740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12741 touch conftest.a
12742 ln conftest.a conftest.b 2>&5 || hard_links=no
12743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12745$as_echo "$hard_links" >&6; }
12746 if test "$hard_links" = no; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12748$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12749 need_locks=warn
12750 fi
12751else
12752 need_locks=no
12753fi
12754
12755
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12758$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12759
12760 runpath_var=
12761 allow_undefined_flag_D=
12762 always_export_symbols_D=no
12763 archive_cmds_D=
12764 archive_expsym_cmds_D=
12765 compiler_needs_object_D=no
12766 enable_shared_with_static_runtimes_D=no
12767 export_dynamic_flag_spec_D=
12768 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12769 hardcode_automatic_D=no
12770 hardcode_direct_D=no
12771 hardcode_direct_absolute_D=no
12772 hardcode_libdir_flag_spec_D=
12773 hardcode_libdir_flag_spec_ld_D=
12774 hardcode_libdir_separator_D=
12775 hardcode_minus_L_D=no
12776 hardcode_shlibpath_var_D=unsupported
12777 inherit_rpath_D=no
12778 link_all_deplibs_D=unknown
12779 module_cmds_D=
12780 module_expsym_cmds_D=
12781 old_archive_from_new_cmds_D=
12782 old_archive_from_expsyms_cmds_D=
12783 thread_safe_flag_spec_D=
12784 whole_archive_flag_spec_D=
12785 # include_expsyms should be a list of space-separated symbols to be *always*
12786 # included in the symbol list
12787 include_expsyms_D=
12788 # exclude_expsyms can be an extended regexp of symbols to exclude
12789 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12790 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12791 # as well as any symbol that contains `d'.
12792 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12793 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12794 # platforms (ab)use it in PIC code, but their linkers get confused if
12795 # the symbol is explicitly referenced. Since portable code cannot
12796 # rely on this symbol name, it's probably fine to never include it in
12797 # preloaded symbol tables.
12798 # Exclude shared library initialization/finalization symbols.
12799 extract_expsyms_cmds=
12800
12801 case $host_os in
12802 cygwin* | mingw* | pw32* | cegcc*)
12803 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12804 # When not using gcc, we currently assume that we are using
12805 # Microsoft Visual C++.
12806 if test "$GCC" != yes; then
12807 with_gnu_ld=no
12808 fi
12809 ;;
12810 interix*)
12811 # we just hope/assume this is gcc and not c89 (= MSVC++)
12812 with_gnu_ld=yes
12813 ;;
12814 openbsd*)
12815 with_gnu_ld=no
12816 ;;
12817 esac
12818
12819 ld_shlibs_D=yes
12820
12821 # On some targets, GNU ld is compatible enough with the native linker
12822 # that we're better off using the native interface for both.
12823 lt_use_gnu_ld_interface=no
12824 if test "$with_gnu_ld" = yes; then
12825 case $host_os in
12826 aix*)
12827 # The AIX port of GNU ld has always aspired to compatibility
12828 # with the native linker. However, as the warning in the GNU ld
12829 # block says, versions before 2.19.5* couldn't really create working
12830 # shared libraries, regardless of the interface used.
12831 case `$LD -v 2>&1` in
12832 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12833 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12834 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12835 *)
12836 lt_use_gnu_ld_interface=yes
12837 ;;
12838 esac
12839 ;;
12840 *)
12841 lt_use_gnu_ld_interface=yes
12842 ;;
12843 esac
12844 fi
12845
12846 if test "$lt_use_gnu_ld_interface" = yes; then
12847 # If archive_cmds runs LD, not CC, wlarc should be empty
12848 wlarc='${wl}'
12849
12850 # Set some defaults for GNU ld with shared library support. These
12851 # are reset later if shared libraries are not supported. Putting them
12852 # here allows them to be overridden if necessary.
12853 runpath_var=LD_RUN_PATH
12854 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12855 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12856 # ancient GNU ld didn't support --whole-archive et. al.
12857 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12858 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12859 else
12860 whole_archive_flag_spec_D=
12861 fi
12862 supports_anon_versioning=no
12863 case `$LD -v 2>&1` in
12864 *GNU\ gold*) supports_anon_versioning=yes ;;
12865 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12868 *\ 2.11.*) ;; # other 2.11 versions
12869 *) supports_anon_versioning=yes ;;
12870 esac
12871
12872 # See if GNU ld supports shared libraries.
12873 case $host_os in
12874 aix[3-9]*)
12875 # On AIX/PPC, the GNU linker is very broken
12876 if test "$host_cpu" != ia64; then
12877 ld_shlibs_D=no
12878 cat <<_LT_EOF 1>&2
12879
12880*** Warning: the GNU linker, at least up to release 2.19, is reported
12881*** to be unable to reliably create shared libraries on AIX.
12882*** Therefore, libtool is disabling shared libraries support. If you
12883*** really care for shared libraries, you may want to install binutils
12884*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12885*** You will then need to restart the configuration process.
12886
12887_LT_EOF
12888 fi
12889 ;;
12890
12891 amigaos*)
12892 case $host_cpu in
12893 powerpc)
12894 # see comment about AmigaOS4 .so support
12895 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 archive_expsym_cmds_D=''
12897 ;;
12898 m68k)
12899 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)'
12900 hardcode_libdir_flag_spec_D='-L$libdir'
12901 hardcode_minus_L_D=yes
12902 ;;
12903 esac
12904 ;;
12905
12906 beos*)
12907 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12908 allow_undefined_flag_D=unsupported
12909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12910 # support --undefined. This deserves some investigation. FIXME
12911 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 else
12913 ld_shlibs_D=no
12914 fi
12915 ;;
12916
12917 cygwin* | mingw* | pw32* | cegcc*)
12918 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12919 # as there is no search path for DLLs.
12920 hardcode_libdir_flag_spec_D='-L$libdir'
12921 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12922 allow_undefined_flag_D=unsupported
12923 always_export_symbols_D=no
12924 enable_shared_with_static_runtimes_D=yes
12925 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12926
12927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12928 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12929 # If the export-symbols file already is a .def file (1st line
12930 # is EXPORTS), use it as is; otherwise, prepend...
12931 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12932 cp $export_symbols $output_objdir/$soname.def;
12933 else
12934 echo EXPORTS > $output_objdir/$soname.def;
12935 cat $export_symbols >> $output_objdir/$soname.def;
12936 fi~
12937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12938 else
12939 ld_shlibs_D=no
12940 fi
12941 ;;
12942
12943 haiku*)
12944 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 link_all_deplibs_D=yes
12946 ;;
12947
12948 interix[3-9]*)
12949 hardcode_direct_D=no
12950 hardcode_shlibpath_var_D=no
12951 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_D='${wl}-E'
12953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12954 # Instead, shared libraries are loaded at an image base (0x10000000 by
12955 # default) and relocated if they conflict, which is a slow very memory
12956 # consuming and fragmenting process. To avoid this, we pick a random,
12957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12959 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'
12960 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'
12961 ;;
12962
e9085da5 12963 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
12964 tmp_diet=no
12965 if test "$host_os" = linux-dietlibc; then
12966 case $cc_basename in
12967 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12968 esac
12969 fi
12970 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12971 && test "$tmp_diet" = no
12972 then
12973 tmp_addflag=' $pic_flag'
12974 tmp_sharedflag='-shared'
12975 case $cc_basename,$host_cpu in
12976 pgcc*) # Portland Group C compiler
12977 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'
12978 tmp_addflag=' $pic_flag'
12979 ;;
12980 pgf77* | pgf90* | pgf95* | pgfortran*)
12981 # Portland Group f77 and f90 compilers
12982 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'
12983 tmp_addflag=' $pic_flag -Mnomain' ;;
12984 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12985 tmp_addflag=' -i_dynamic' ;;
12986 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12987 tmp_addflag=' -i_dynamic -nofor_main' ;;
12988 ifc* | ifort*) # Intel Fortran compiler
12989 tmp_addflag=' -nofor_main' ;;
12990 lf95*) # Lahey Fortran 8.1
12991 whole_archive_flag_spec_D=
12992 tmp_sharedflag='--shared' ;;
12993 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12994 tmp_sharedflag='-qmkshrobj'
12995 tmp_addflag= ;;
12996 nvcc*) # Cuda Compiler Driver 2.2
12997 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'
12998 compiler_needs_object_D=yes
12999 ;;
13000 esac
13001 case `$CC -V 2>&1 | sed 5q` in
13002 *Sun\ C*) # Sun C 5.9
13003 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'
13004 compiler_needs_object_D=yes
13005 tmp_sharedflag='-G' ;;
13006 *Sun\ F*) # Sun Fortran 8.3
13007 tmp_sharedflag='-G' ;;
13008 esac
13009 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010
13011 if test "x$supports_anon_versioning" = xyes; then
13012 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13014 echo "local: *; };" >> $output_objdir/$libname.ver~
13015 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13016 fi
13017
13018 case $cc_basename in
13019 xlf* | bgf* | bgxlf* | mpixlf*)
13020 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13021 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13022 hardcode_libdir_flag_spec_D=
13023 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13024 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13025 if test "x$supports_anon_versioning" = xyes; then
13026 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13028 echo "local: *; };" >> $output_objdir/$libname.ver~
13029 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13030 fi
13031 ;;
13032 esac
13033 else
13034 ld_shlibs_D=no
13035 fi
13036 ;;
13037
13038 netbsd*)
13039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13040 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13041 wlarc=
13042 else
13043 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13045 fi
13046 ;;
13047
13048 solaris*)
13049 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13050 ld_shlibs_D=no
13051 cat <<_LT_EOF 1>&2
13052
13053*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13054*** create shared libraries on Solaris systems. Therefore, libtool
13055*** is disabling shared libraries support. We urge you to upgrade GNU
13056*** binutils to release 2.9.1 or newer. Another option is to modify
13057*** your PATH or compiler configuration so that the native linker is
13058*** used, and then restart.
13059
13060_LT_EOF
13061 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13062 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13063 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13064 else
13065 ld_shlibs_D=no
13066 fi
13067 ;;
13068
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13070 case `$LD -v 2>&1` in
13071 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13072 ld_shlibs_D=no
13073 cat <<_LT_EOF 1>&2
13074
13075*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13076*** reliably create shared libraries on SCO systems. Therefore, libtool
13077*** is disabling shared libraries support. We urge you to upgrade GNU
13078*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13079*** your PATH or compiler configuration so that the native linker is
13080*** used, and then restart.
13081
13082_LT_EOF
13083 ;;
13084 *)
13085 # For security reasons, it is highly recommended that you always
13086 # use absolute paths for naming shared libraries, and exclude the
13087 # DT_RUNPATH tag from executables and libraries. But doing so
13088 # requires that you compile everything twice, which is a pain.
13089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13090 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13091 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13093 else
13094 ld_shlibs_D=no
13095 fi
13096 ;;
13097 esac
13098 ;;
13099
13100 sunos4*)
13101 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13102 wlarc=
13103 hardcode_direct_D=yes
13104 hardcode_shlibpath_var_D=no
13105 ;;
13106
13107 *)
13108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13109 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13111 else
13112 ld_shlibs_D=no
13113 fi
13114 ;;
13115 esac
13116
13117 if test "$ld_shlibs_D" = no; then
13118 runpath_var=
13119 hardcode_libdir_flag_spec_D=
13120 export_dynamic_flag_spec_D=
13121 whole_archive_flag_spec_D=
13122 fi
13123 else
13124 # PORTME fill in a description of your system's linker (not GNU ld)
13125 case $host_os in
13126 aix3*)
13127 allow_undefined_flag_D=unsupported
13128 always_export_symbols_D=yes
13129 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'
13130 # Note: this linker hardcodes the directories in LIBPATH if there
13131 # are no directories specified by -L.
13132 hardcode_minus_L_D=yes
13133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13134 # Neither direct hardcoding nor static linking is supported with a
13135 # broken collect2.
13136 hardcode_direct_D=unsupported
13137 fi
13138 ;;
13139
13140 aix[4-9]*)
13141 if test "$host_cpu" = ia64; then
13142 # On IA64, the linker does run time linking by default, so we don't
13143 # have to do anything special.
13144 aix_use_runtimelinking=no
13145 exp_sym_flag='-Bexport'
13146 no_entry_flag=""
13147 else
13148 # If we're using GNU nm, then we don't want the "-C" option.
13149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13150 # Also, AIX nm treats weak defined symbols like other global
13151 # defined symbols, whereas GNU nm marks them as "W".
13152 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13153 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'
13154 else
13155 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'
13156 fi
13157 aix_use_runtimelinking=no
13158
13159 # Test if we are trying to use run time linking or normal
13160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13161 # need to do runtime linking.
13162 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13163 for ld_flag in $LDFLAGS; do
13164 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13165 aix_use_runtimelinking=yes
13166 break
13167 fi
13168 done
13169 ;;
13170 esac
13171
13172 exp_sym_flag='-bexport'
13173 no_entry_flag='-bnoentry'
13174 fi
13175
13176 # When large executables or shared objects are built, AIX ld can
13177 # have problems creating the table of contents. If linking a library
13178 # or program results in "error TOC overflow" add -mminimal-toc to
13179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13181
13182 archive_cmds_D=''
13183 hardcode_direct_D=yes
13184 hardcode_direct_absolute_D=yes
13185 hardcode_libdir_separator_D=':'
13186 link_all_deplibs_D=yes
13187 file_list_spec_D='${wl}-f,'
13188
13189 if test "$GCC" = yes; then
13190 case $host_os in aix4.[012]|aix4.[012].*)
13191 # We only want to do this on AIX 4.2 and lower, the check
13192 # below for broken collect2 doesn't work under 4.3+
13193 collect2name=`${CC} -print-prog-name=collect2`
13194 if test -f "$collect2name" &&
13195 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13196 then
13197 # We have reworked collect2
13198 :
13199 else
13200 # We have old collect2
13201 hardcode_direct_D=unsupported
13202 # It fails to find uninstalled libraries when the uninstalled
13203 # path is not listed in the libpath. Setting hardcode_minus_L
13204 # to unsupported forces relinking
13205 hardcode_minus_L_D=yes
13206 hardcode_libdir_flag_spec_D='-L$libdir'
13207 hardcode_libdir_separator_D=
13208 fi
13209 ;;
13210 esac
13211 shared_flag='-shared'
13212 if test "$aix_use_runtimelinking" = yes; then
13213 shared_flag="$shared_flag "'${wl}-G'
13214 fi
13215 else
13216 # not using gcc
13217 if test "$host_cpu" = ia64; then
13218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13219 # chokes on -Wl,-G. The following line is correct:
13220 shared_flag='-G'
13221 else
13222 if test "$aix_use_runtimelinking" = yes; then
13223 shared_flag='${wl}-G'
13224 else
13225 shared_flag='${wl}-bM:SRE'
13226 fi
13227 fi
13228 fi
13229
13230 export_dynamic_flag_spec_D='${wl}-bexpall'
13231 # It seems that -bexpall does not export symbols beginning with
13232 # underscore (_), so it is better to generate a list of symbols to export.
13233 always_export_symbols_D=yes
13234 if test "$aix_use_runtimelinking" = yes; then
13235 # Warning - without using the other runtime loading flags (-brtl),
13236 # -berok will link without error, but may produce a broken library.
13237 allow_undefined_flag_D='-berok'
13238 # Determine the default libpath from the value encoded in an
13239 # empty executable.
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h. */
13242
13243int
13244main ()
13245{
13246
13247 ;
13248 return 0;
13249}
13250_ACEOF
13251if ac_fn_c_try_link "$LINENO"; then :
13252
13253lt_aix_libpath_sed='
13254 /Import File Strings/,/^$/ {
13255 /^0/ {
13256 s/^0 *\(.*\)$/\1/
13257 p
13258 }
13259 }'
13260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13261# Check for a 64-bit object if we didn't find anything.
13262if test -z "$aix_libpath"; then
13263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13264fi
13265fi
13266rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13269
13270 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13271 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"
13272 else
13273 if test "$host_cpu" = ia64; then
13274 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13275 allow_undefined_flag_D="-z nodefs"
13276 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"
13277 else
13278 # Determine the default libpath from the value encoded in an
13279 # empty executable.
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h. */
13282
13283int
13284main ()
13285{
13286
13287 ;
13288 return 0;
13289}
13290_ACEOF
13291if ac_fn_c_try_link "$LINENO"; then :
13292
13293lt_aix_libpath_sed='
13294 /Import File Strings/,/^$/ {
13295 /^0/ {
13296 s/^0 *\(.*\)$/\1/
13297 p
13298 }
13299 }'
13300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13301# Check for a 64-bit object if we didn't find anything.
13302if test -z "$aix_libpath"; then
13303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13304fi
13305fi
13306rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13309
13310 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13311 # Warning - without using the other run time loading flags,
13312 # -berok will link without error, but may produce a broken library.
13313 no_undefined_flag_D=' ${wl}-bernotok'
13314 allow_undefined_flag_D=' ${wl}-berok'
13315 if test "$with_gnu_ld" = yes; then
13316 # We only use this code for GNU lds that support --whole-archive.
13317 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13318 else
13319 # Exported symbols can be pulled into shared objects from archives
13320 whole_archive_flag_spec_D='$convenience'
13321 fi
13322 archive_cmds_need_lc_D=yes
13323 # This is similar to how AIX traditionally builds its shared libraries.
13324 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'
13325 fi
13326 fi
13327 ;;
13328
13329 amigaos*)
13330 case $host_cpu in
13331 powerpc)
13332 # see comment about AmigaOS4 .so support
13333 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 archive_expsym_cmds_D=''
13335 ;;
13336 m68k)
13337 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)'
13338 hardcode_libdir_flag_spec_D='-L$libdir'
13339 hardcode_minus_L_D=yes
13340 ;;
13341 esac
13342 ;;
13343
13344 bsdi[45]*)
13345 export_dynamic_flag_spec_D=-rdynamic
13346 ;;
13347
13348 cygwin* | mingw* | pw32* | cegcc*)
13349 # When not using gcc, we currently assume that we are using
13350 # Microsoft Visual C++.
13351 # hardcode_libdir_flag_spec is actually meaningless, as there is
13352 # no search path for DLLs.
13353 hardcode_libdir_flag_spec_D=' '
13354 allow_undefined_flag_D=unsupported
13355 # Tell ltmain to make .lib files, not .a files.
13356 libext=lib
13357 # Tell ltmain to make .dll files, not .so files.
13358 shrext_cmds=".dll"
13359 # FIXME: Setting linknames here is a bad hack.
13360 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13361 # The linker will automatically build a .lib file if we build a DLL.
13362 old_archive_from_new_cmds_D='true'
13363 # FIXME: Should let the user specify the lib program.
13364 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13365 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13366 enable_shared_with_static_runtimes_D=yes
13367 ;;
13368
13369 darwin* | rhapsody*)
13370
13371
13372 archive_cmds_need_lc_D=no
13373 hardcode_direct_D=no
13374 hardcode_automatic_D=yes
13375 hardcode_shlibpath_var_D=unsupported
13376 if test "$lt_cv_ld_force_load" = "yes"; then
13377 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\"`'
13378 else
13379 whole_archive_flag_spec_D=''
13380 fi
13381 link_all_deplibs_D=yes
13382 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13383 case $cc_basename in
13384 ifort*) _lt_dar_can_shared=yes ;;
13385 *) _lt_dar_can_shared=$GCC ;;
13386 esac
13387 if test "$_lt_dar_can_shared" = "yes"; then
13388 output_verbose_link_cmd=func_echo_all
13389 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}"
13390 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13391 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}"
13392 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}"
13393
13394 else
13395 ld_shlibs_D=no
13396 fi
13397
13398 ;;
13399
13400 dgux*)
13401 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13402 hardcode_libdir_flag_spec_D='-L$libdir'
13403 hardcode_shlibpath_var_D=no
13404 ;;
13405
13406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13407 # support. Future versions do this automatically, but an explicit c++rt0.o
13408 # does not break anything, and helps significantly (at the cost of a little
13409 # extra space).
13410 freebsd2.2*)
13411 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13412 hardcode_libdir_flag_spec_D='-R$libdir'
13413 hardcode_direct_D=yes
13414 hardcode_shlibpath_var_D=no
13415 ;;
13416
13417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13418 freebsd2.*)
13419 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_direct_D=yes
13421 hardcode_minus_L_D=yes
13422 hardcode_shlibpath_var_D=no
13423 ;;
13424
13425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13426 freebsd* | dragonfly*)
13427 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13428 hardcode_libdir_flag_spec_D='-R$libdir'
13429 hardcode_direct_D=yes
13430 hardcode_shlibpath_var_D=no
13431 ;;
13432
13433 hpux9*)
13434 if test "$GCC" = yes; then
13435 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'
13436 else
13437 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'
13438 fi
13439 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13440 hardcode_libdir_separator_D=:
13441 hardcode_direct_D=yes
13442
13443 # hardcode_minus_L: Not really in the search PATH,
13444 # but as the default location of the library.
13445 hardcode_minus_L_D=yes
13446 export_dynamic_flag_spec_D='${wl}-E'
13447 ;;
13448
13449 hpux10*)
13450 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13451 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13452 else
13453 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13454 fi
13455 if test "$with_gnu_ld" = no; then
13456 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13457 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13458 hardcode_libdir_separator_D=:
13459 hardcode_direct_D=yes
13460 hardcode_direct_absolute_D=yes
13461 export_dynamic_flag_spec_D='${wl}-E'
13462 # hardcode_minus_L: Not really in the search PATH,
13463 # but as the default location of the library.
13464 hardcode_minus_L_D=yes
13465 fi
13466 ;;
13467
13468 hpux11*)
13469 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13470 case $host_cpu in
13471 hppa*64*)
13472 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 ;;
13474 ia64*)
13475 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13476 ;;
13477 *)
13478 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13479 ;;
13480 esac
13481 else
13482 case $host_cpu in
13483 hppa*64*)
13484 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13485 ;;
13486 ia64*)
13487 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13488 ;;
13489 *)
13490 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13491 ;;
13492 esac
13493 fi
13494 if test "$with_gnu_ld" = no; then
13495 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13496 hardcode_libdir_separator_D=:
13497
13498 case $host_cpu in
13499 hppa*64*|ia64*)
13500 hardcode_direct_D=no
13501 hardcode_shlibpath_var_D=no
13502 ;;
13503 *)
13504 hardcode_direct_D=yes
13505 hardcode_direct_absolute_D=yes
13506 export_dynamic_flag_spec_D='${wl}-E'
13507
13508 # hardcode_minus_L: Not really in the search PATH,
13509 # but as the default location of the library.
13510 hardcode_minus_L_D=yes
13511 ;;
13512 esac
13513 fi
13514 ;;
13515
13516 irix5* | irix6* | nonstopux*)
13517 if test "$GCC" = yes; then
13518 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'
13519 # Try to use the -exported_symbol ld option, if it does not
13520 # work, assume that -exports_file does not work either and
13521 # implicitly export all symbols.
13522 save_LDFLAGS="$LDFLAGS"
13523 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h. */
13526int foo(void) {}
13527_ACEOF
13528if ac_fn_c_try_link "$LINENO"; then :
13529 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'
13530
13531fi
13532rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13534 LDFLAGS="$save_LDFLAGS"
13535 else
13536 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'
13537 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'
13538 fi
13539 archive_cmds_need_lc_D='no'
13540 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13541 hardcode_libdir_separator_D=:
13542 inherit_rpath_D=yes
13543 link_all_deplibs_D=yes
13544 ;;
13545
13546 netbsd*)
13547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13548 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13549 else
13550 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13551 fi
13552 hardcode_libdir_flag_spec_D='-R$libdir'
13553 hardcode_direct_D=yes
13554 hardcode_shlibpath_var_D=no
13555 ;;
13556
13557 newsos6)
13558 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 hardcode_direct_D=yes
13560 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13561 hardcode_libdir_separator_D=:
13562 hardcode_shlibpath_var_D=no
13563 ;;
13564
13565 *nto* | *qnx*)
13566 ;;
13567
13568 openbsd*)
13569 if test -f /usr/libexec/ld.so; then
13570 hardcode_direct_D=yes
13571 hardcode_shlibpath_var_D=no
13572 hardcode_direct_absolute_D=yes
13573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13574 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13576 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13577 export_dynamic_flag_spec_D='${wl}-E'
13578 else
13579 case $host_os in
13580 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13581 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_libdir_flag_spec_D='-R$libdir'
13583 ;;
13584 *)
13585 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13587 ;;
13588 esac
13589 fi
13590 else
13591 ld_shlibs_D=no
13592 fi
13593 ;;
13594
13595 os2*)
13596 hardcode_libdir_flag_spec_D='-L$libdir'
13597 hardcode_minus_L_D=yes
13598 allow_undefined_flag_D=unsupported
13599 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'
13600 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13601 ;;
13602
13603 osf3*)
13604 if test "$GCC" = yes; then
13605 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13606 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'
13607 else
13608 allow_undefined_flag_D=' -expect_unresolved \*'
13609 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'
13610 fi
13611 archive_cmds_need_lc_D='no'
13612 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13613 hardcode_libdir_separator_D=:
13614 ;;
13615
13616 osf4* | osf5*) # as osf3* with the addition of -msym flag
13617 if test "$GCC" = yes; then
13618 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13619 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'
13620 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13621 else
13622 allow_undefined_flag_D=' -expect_unresolved \*'
13623 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'
13624 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~
13625 $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'
13626
13627 # Both c and cxx compiler support -rpath directly
13628 hardcode_libdir_flag_spec_D='-rpath $libdir'
13629 fi
13630 archive_cmds_need_lc_D='no'
13631 hardcode_libdir_separator_D=:
13632 ;;
13633
13634 solaris*)
13635 no_undefined_flag_D=' -z defs'
13636 if test "$GCC" = yes; then
13637 wlarc='${wl}'
13638 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13641 else
13642 case `$CC -V 2>&1` in
13643 *"Compilers 5.0"*)
13644 wlarc=''
13645 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13646 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13648 ;;
13649 *)
13650 wlarc='${wl}'
13651 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13654 ;;
13655 esac
13656 fi
13657 hardcode_libdir_flag_spec_D='-R$libdir'
13658 hardcode_shlibpath_var_D=no
13659 case $host_os in
13660 solaris2.[0-5] | solaris2.[0-5].*) ;;
13661 *)
13662 # The compiler driver will combine and reorder linker options,
13663 # but understands `-z linker_flag'. GCC discards it without `$wl',
13664 # but is careful enough not to reorder.
13665 # Supported since Solaris 2.6 (maybe 2.5.1?)
13666 if test "$GCC" = yes; then
13667 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13668 else
13669 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13670 fi
13671 ;;
13672 esac
13673 link_all_deplibs_D=yes
13674 ;;
13675
13676 sunos4*)
13677 if test "x$host_vendor" = xsequent; then
13678 # Use $CC to link under sequent, because it throws in some extra .o
13679 # files that make .init and .fini sections work.
13680 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13681 else
13682 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13683 fi
13684 hardcode_libdir_flag_spec_D='-L$libdir'
13685 hardcode_direct_D=yes
13686 hardcode_minus_L_D=yes
13687 hardcode_shlibpath_var_D=no
13688 ;;
13689
13690 sysv4)
13691 case $host_vendor in
13692 sni)
13693 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13694 hardcode_direct_D=yes # is this really true???
13695 ;;
13696 siemens)
13697 ## LD is ld it makes a PLAMLIB
13698 ## CC just makes a GrossModule.
13699 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13700 reload_cmds_D='$CC -r -o $output$reload_objs'
13701 hardcode_direct_D=no
13702 ;;
13703 motorola)
13704 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13706 ;;
13707 esac
13708 runpath_var='LD_RUN_PATH'
13709 hardcode_shlibpath_var_D=no
13710 ;;
13711
13712 sysv4.3*)
13713 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_shlibpath_var_D=no
13715 export_dynamic_flag_spec_D='-Bexport'
13716 ;;
13717
13718 sysv4*MP*)
13719 if test -d /usr/nec; then
13720 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_shlibpath_var_D=no
13722 runpath_var=LD_RUN_PATH
13723 hardcode_runpath_var=yes
13724 ld_shlibs_D=yes
13725 fi
13726 ;;
13727
13728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13729 no_undefined_flag_D='${wl}-z,text'
13730 archive_cmds_need_lc_D=no
13731 hardcode_shlibpath_var_D=no
13732 runpath_var='LD_RUN_PATH'
13733
13734 if test "$GCC" = yes; then
13735 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 else
13738 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 fi
13741 ;;
13742
13743 sysv5* | sco3.2v5* | sco5v6*)
13744 # Note: We can NOT use -z defs as we might desire, because we do not
13745 # link with -lc, and that would cause any symbols used from libc to
13746 # always be unresolved, which means just about no library would
13747 # ever link correctly. If we're not using GNU ld we use -z text
13748 # though, which does catch some bad symbols but isn't as heavy-handed
13749 # as -z defs.
13750 no_undefined_flag_D='${wl}-z,text'
13751 allow_undefined_flag_D='${wl}-z,nodefs'
13752 archive_cmds_need_lc_D=no
13753 hardcode_shlibpath_var_D=no
13754 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13755 hardcode_libdir_separator_D=':'
13756 link_all_deplibs_D=yes
13757 export_dynamic_flag_spec_D='${wl}-Bexport'
13758 runpath_var='LD_RUN_PATH'
13759
13760 if test "$GCC" = yes; then
13761 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 else
13764 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 fi
13767 ;;
13768
13769 uts4*)
13770 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_libdir_flag_spec_D='-L$libdir'
13772 hardcode_shlibpath_var_D=no
13773 ;;
13774
13775 *)
13776 ld_shlibs_D=no
13777 ;;
13778 esac
13779
13780 if test x$host_vendor = xsni; then
13781 case $host in
13782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13783 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13784 ;;
13785 esac
13786 fi
13787 fi
13788
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13790$as_echo "$ld_shlibs_D" >&6; }
13791test "$ld_shlibs_D" = no && can_build_shared=no
13792
13793with_gnu_ld_D=$with_gnu_ld
13794
13795
13796
13797
13798
13799
13800#
13801# Do we need to explicitly link libc?
13802#
13803case "x$archive_cmds_need_lc_D" in
13804x|xyes)
13805 # Assume -lc should be added
13806 archive_cmds_need_lc_D=yes
13807
13808 if test "$enable_shared" = yes && test "$GCC" = yes; then
13809 case $archive_cmds_D in
13810 *'~'*)
13811 # FIXME: we may have to deal with multi-command sequences.
13812 ;;
13813 '$CC '*)
13814 # Test whether the compiler implicitly links with -lc since on some
13815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13816 # to ld, don't add -lc before -lgcc.
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13819if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
b4c522fa
IB
13820 $as_echo_n "(cached) " >&6
13821else
13822 $RM conftest*
13823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13824
13825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13826 (eval $ac_compile) 2>&5
13827 ac_status=$?
13828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13829 test $ac_status = 0; } 2>conftest.err; then
13830 soname=conftest
13831 lib=conftest
13832 libobjs=conftest.$ac_objext
13833 deplibs=
13834 wl=$lt_prog_compiler_wl_D
13835 pic_flag=$lt_prog_compiler_pic_D
13836 compiler_flags=-v
13837 linker_flags=-v
13838 verstring=
13839 output_objdir=.
13840 libname=conftest
13841 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13842 allow_undefined_flag_D=
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13844 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13845 ac_status=$?
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }
13848 then
13849 lt_cv_archive_cmds_need_lc_D=no
13850 else
13851 lt_cv_archive_cmds_need_lc_D=yes
13852 fi
13853 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13854 else
13855 cat conftest.err 1>&5
13856 fi
13857 $RM conftest*
13858
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13861$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13862 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13863 ;;
13864 esac
13865 fi
13866 ;;
13867esac
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13933$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13934hardcode_action_D=
13935if test -n "$hardcode_libdir_flag_spec_D" ||
13936 test -n "$runpath_var_D" ||
13937 test "X$hardcode_automatic_D" = "Xyes" ; then
13938
13939 # We can hardcode non-existent directories.
13940 if test "$hardcode_direct_D" != no &&
13941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13942 # have to relink, otherwise we might link with an installed library
13943 # when we should be linking with a yet-to-be-installed one
13944 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13945 test "$hardcode_minus_L_D" != no; then
13946 # Linking always hardcodes the temporary library directory.
13947 hardcode_action_D=relink
13948 else
13949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13950 hardcode_action_D=immediate
13951 fi
13952else
13953 # We cannot hardcode anything, or else we can only hardcode existing
13954 # directories.
13955 hardcode_action_D=unsupported
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13958$as_echo "$hardcode_action_D" >&6; }
13959
13960if test "$hardcode_action_D" = relink ||
13961 test "$inherit_rpath_D" = yes; then
13962 # Fast installation is not supported
13963 enable_fast_install=no
13964elif test "$shlibpath_overrides_runpath" = yes ||
13965 test "$enable_shared" = no; then
13966 # Fast installation is not necessary
13967 enable_fast_install=needless
13968fi
13969
13970
13971
13972
13973
13974
13975
13976fi
13977
13978ac_ext=c
13979ac_cpp='$CPP $CPPFLAGS'
13980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13982ac_compiler_gnu=$ac_cv_c_compiler_gnu
13983
13984
13985GCC=$lt_save_GCC
13986CC=$lt_save_CC
13987CFLAGS=$lt_save_CFLAGS
b4c522fa
IB
13988
13989 GDCFLAGS=$gdc_save_DFLAGS
13990
b4c522fa
IB
13991
13992# libtool variables for Phobos shared and position-independent compiles.
13993#
13994# Use phobos_compiler_shared_flag to designate the compile-time flags for
13995# creating shared objects. Default: -fversion=Shared.
13996#
13997# Use phobos_compiler_pic_flag to designate the compile-time flags for
13998# creating position-independent objects. This varies with the target
13999# hardware and operating system, but is often: -fPIC.
14000#
14001# The distinction between pic and shared compilation flags is not present in
14002# libtool, and so we make it here. How it is handled is that in shared
14003# compilations the `lt_prog_compiler_pic_D' variable is used to instead
14004# ensure that conditional compilation of shared runtime code is compiled in.
14005# The original PIC flags are then used in the compilation of every object.
14006#
14007# Why are objects destined for libgphobos.a compiled with -fPIC?
14008# Because -fPIC is not harmful to use for objects destined for static
14009# libraries. In addition, using -fPIC will allow the use of static
14010# libgphobos.a in the creation of other D shared libraries.
14011if test "$enable_shared" = yes; then
14012 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14013 phobos_compiler_shared_flag="-fversion=Shared"
14014else
14015 phobos_compiler_pic_flag=
14016 phobos_compiler_shared_flag=
14017fi
14018
14019
14020
14021# Override the libtool's pic_flag and pic_mode.
14022# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14023# NB: this impacts --with-pic and --without-pic.
14024lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14025pic_mode='default'
14026
14027# Determine what GCC version number to use in filesystem paths.
14028
14029 get_gcc_base_ver="cat"
14030
14031# Check whether --with-gcc-major-version-only was given.
14032if test "${with_gcc_major_version_only+set}" = set; then :
14033 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14034 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14035 fi
14036
14037fi
14038
14039
14040
14041
14042# libphobos/libdruntime specific options and feature detection
14043
14044 # These need to be absolute paths, yet at the same time need to
14045 # canonicalize only relative paths, because then amd will not unmount
14046 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14047 libphobos_builddir=`${PWDCMD-pwd}`
14048 case $srcdir in
14049 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14050 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14051 esac
14052
14053
14054
14055
14056 if test ${multilib} = yes; then
14057 multilib_arg="--enable-multilib"
14058 else
14059 multilib_arg=
14060 fi
14061
14062
14063 # Check whether --enable-werror was given.
14064if test "${enable_werror+set}" = set; then :
14065 enableval=$enable_werror;
14066fi
14067
14068 WERROR_FLAG=""
14069 if test "x$enable_werror" = "xyes"; then
14070 WERROR_FLAG="-Werror"
14071 fi
14072
b4c522fa 14073
2493e718
IB
14074 druntime_target_cpu_parsed=""
14075 case "$target_cpu" in
14076 aarch64*)
14077 druntime_target_cpu_parsed="aarch64"
14078 ;;
14079 arm*) druntime_target_cpu_parsed="arm"
14080 ;;
14081 mips*) druntime_target_cpu_parsed="mips"
14082 ;;
8b53086a 14083 powerpc*)
1b0cbe05 14084 druntime_target_cpu_parsed="powerpc"
2493e718 14085 ;;
b16f2147 14086 i[34567]86|x86_64)
2493e718
IB
14087 druntime_target_cpu_parsed="x86"
14088 ;;
88e508f9
RD
14089 s390x)
14090 druntime_target_cpu_parsed="s390x"
14091 ;;
14092 s390)
14093 druntime_target_cpu_parsed="s390"
14094 ;;
2493e718
IB
14095 esac
14096 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14097 DRUNTIME_CPU_AARCH64_TRUE=
14098 DRUNTIME_CPU_AARCH64_FALSE='#'
14099else
14100 DRUNTIME_CPU_AARCH64_TRUE='#'
14101 DRUNTIME_CPU_AARCH64_FALSE=
14102fi
14103
14104 if test "$druntime_target_cpu_parsed" = "arm"; then
14105 DRUNTIME_CPU_ARM_TRUE=
14106 DRUNTIME_CPU_ARM_FALSE='#'
14107else
14108 DRUNTIME_CPU_ARM_TRUE='#'
14109 DRUNTIME_CPU_ARM_FALSE=
14110fi
14111
14112 if test "$druntime_target_cpu_parsed" = "mips"; then
14113 DRUNTIME_CPU_MIPS_TRUE=
14114 DRUNTIME_CPU_MIPS_FALSE='#'
14115else
14116 DRUNTIME_CPU_MIPS_TRUE='#'
14117 DRUNTIME_CPU_MIPS_FALSE=
14118fi
14119
14120 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14121 DRUNTIME_CPU_POWERPC_TRUE=
14122 DRUNTIME_CPU_POWERPC_FALSE='#'
14123else
14124 DRUNTIME_CPU_POWERPC_TRUE='#'
14125 DRUNTIME_CPU_POWERPC_FALSE=
14126fi
14127
2493e718
IB
14128 if test "$druntime_target_cpu_parsed" = "x86"; then
14129 DRUNTIME_CPU_X86_TRUE=
14130 DRUNTIME_CPU_X86_FALSE='#'
14131else
14132 DRUNTIME_CPU_X86_TRUE='#'
14133 DRUNTIME_CPU_X86_FALSE=
14134fi
14135
88e508f9
RD
14136 if test "$druntime_target_cpu_parsed" = "s390x"; then
14137 DRUNTIME_CPU_SYSTEMZ_TRUE=
14138 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14139else
14140 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14141 DRUNTIME_CPU_SYSTEMZ_FALSE=
14142fi
14143
14144 if test "$druntime_target_cpu_parsed" = "s390"; then
14145 DRUNTIME_CPU_S390_TRUE=
14146 DRUNTIME_CPU_S390_FALSE='#'
14147else
14148 DRUNTIME_CPU_S390_TRUE='#'
14149 DRUNTIME_CPU_S390_FALSE=
14150fi
14151
2493e718
IB
14152
14153
b4c522fa
IB
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14155$as_echo_n "checking for target OS... " >&6; }
22e05272 14156if ${druntime_cv_target_os+:} false; then :
b4c522fa
IB
14157 $as_echo_n "(cached) " >&6
14158else
14159 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14160fi
14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14162$as_echo "$druntime_cv_target_os" >&6; }
14163 if test -z "$druntime_cv_target_os"; then :
22e05272 14164 as_fn_error $? "can't detect target OS" "$LINENO" 5
b4c522fa
IB
14165fi
14166
14167
14168
b4c522fa
IB
14169
14170 druntime_target_os_parsed=""
14171 case "$druntime_cv_target_os" in
14172 aix*) druntime_target_os_parsed="aix"
14173 ;;
14174 *android*)
14175 druntime_target_os_parsed="android"
14176 ;;
14177 darwin*) druntime_target_os_parsed="darwin"
14178 ;;
14179 dragonfly*)
14180 druntime_target_os_parsed="dragonflybsd"
14181 ;;
14182 freebsd*|k*bsd*-gnu)
14183 druntime_target_os_parsed="freebsd"
14184 ;;
14185 openbsd*)
14186 druntime_target_os_parsed="openbsd"
14187 ;;
14188 netbsd*)
14189 druntime_target_os_parsed="netbsd"
14190 ;;
14191 linux*) druntime_target_os_parsed="linux"
14192 ;;
14193 mingw*) druntime_target_os_parsed="mingw"
14194 ;;
14195 *solaris*) druntime_target_os_parsed="solaris"
14196 esac
14197 if test "$druntime_target_os_parsed" = "aix"; then
14198 DRUNTIME_OS_AIX_TRUE=
14199 DRUNTIME_OS_AIX_FALSE='#'
14200else
14201 DRUNTIME_OS_AIX_TRUE='#'
14202 DRUNTIME_OS_AIX_FALSE=
14203fi
14204
14205 if test "$druntime_target_os_parsed" = "android"; then
14206 DRUNTIME_OS_ANDROID_TRUE=
14207 DRUNTIME_OS_ANDROID_FALSE='#'
14208else
14209 DRUNTIME_OS_ANDROID_TRUE='#'
14210 DRUNTIME_OS_ANDROID_FALSE=
14211fi
14212
14213 if test "$druntime_target_os_parsed" = "darwin"; then
14214 DRUNTIME_OS_DARWIN_TRUE=
14215 DRUNTIME_OS_DARWIN_FALSE='#'
14216else
14217 DRUNTIME_OS_DARWIN_TRUE='#'
14218 DRUNTIME_OS_DARWIN_FALSE=
14219fi
14220
14221 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14222 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14223 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14224else
14225 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14226 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14227fi
14228
14229 if test "$druntime_target_os_parsed" = "freebsd"; then
14230 DRUNTIME_OS_FREEBSD_TRUE=
14231 DRUNTIME_OS_FREEBSD_FALSE='#'
14232else
14233 DRUNTIME_OS_FREEBSD_TRUE='#'
14234 DRUNTIME_OS_FREEBSD_FALSE=
14235fi
14236
14237 if test "$druntime_target_os_parsed" = "netbsd"; then
14238 DRUNTIME_OS_NETBSD_TRUE=
14239 DRUNTIME_OS_NETBSD_FALSE='#'
14240else
14241 DRUNTIME_OS_NETBSD_TRUE='#'
14242 DRUNTIME_OS_NETBSD_FALSE=
14243fi
14244
14245 if test "$druntime_target_os_parsed" = "openbsd"; then
14246 DRUNTIME_OS_OPENBSD_TRUE=
14247 DRUNTIME_OS_OPENBSD_FALSE='#'
14248else
14249 DRUNTIME_OS_OPENBSD_TRUE='#'
14250 DRUNTIME_OS_OPENBSD_FALSE=
14251fi
14252
14253 if test "$druntime_target_os_parsed" = "linux"; then
14254 DRUNTIME_OS_LINUX_TRUE=
14255 DRUNTIME_OS_LINUX_FALSE='#'
14256else
14257 DRUNTIME_OS_LINUX_TRUE='#'
14258 DRUNTIME_OS_LINUX_FALSE=
14259fi
14260
14261 if test "$druntime_target_os_parsed" = "mingw"; then
14262 DRUNTIME_OS_MINGW_TRUE=
14263 DRUNTIME_OS_MINGW_FALSE='#'
14264else
14265 DRUNTIME_OS_MINGW_TRUE='#'
14266 DRUNTIME_OS_MINGW_FALSE=
14267fi
14268
14269 if test "$druntime_target_os_parsed" = "solaris"; then
14270 DRUNTIME_OS_SOLARIS_TRUE=
14271 DRUNTIME_OS_SOLARIS_FALSE='#'
14272else
14273 DRUNTIME_OS_SOLARIS_TRUE='#'
14274 DRUNTIME_OS_SOLARIS_FALSE=
14275fi
14276
14277
72c136c9
IB
14278 druntime_target_posix="no"
14279 case "$druntime_cv_target_os" in
14280 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14281 druntime_target_posix="yes"
14282 ;;
14283 esac
14284 if test "$druntime_target_posix" = "yes"; then
14285 DRUNTIME_OS_POSIX_TRUE=
14286 DRUNTIME_OS_POSIX_FALSE='#'
14287else
14288 DRUNTIME_OS_POSIX_TRUE='#'
14289 DRUNTIME_OS_POSIX_FALSE=
14290fi
14291
14292
b4c522fa
IB
14293
14294
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14296$as_echo_n "checking for thread model used by GDC... " >&6; }
14297 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14299$as_echo "$d_thread_model" >&6; }
14300
14301 # Map from thread model to thread interface.
14302
14303case $d_thread_model in
14304 aix) DCFG_THREAD_MODEL="Posix" ;;
14305 lynx) DCFG_THREAD_MODEL="Posix" ;;
14306 posix) DCFG_THREAD_MODEL="Posix" ;;
14307 single) DCFG_THREAD_MODEL="Single" ;;
14308 win32) DCFG_THREAD_MODEL="Win32" ;;
14309 # TODO: These targets need porting.
14310 dce|mipssde|rtems|tpf|vxworks)
14311 DCFG_THREAD_MODEL="Single" ;;
14312 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14313esac
14314
14315
14316
14317
14318 ac_ext=c
14319ac_cpp='$CPP $CPPFLAGS'
14320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14322ac_compiler_gnu=$ac_cv_c_compiler_gnu
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14325$as_echo_n "checking for ARM unwinder... " >&6; }
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h. */
14328#include <unwind.h>
14329int
14330main ()
14331{
14332
14333 #if __ARM_EABI_UNWINDER__
14334 #error Yes, it is.
14335 #endif
14336
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341if ac_fn_c_try_compile "$LINENO"; then :
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343$as_echo "no" >&6; }
14344 DCFG_ARM_EABI_UNWINDER=false
14345else
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14347$as_echo "yes" >&6; }
14348 DCFG_ARM_EABI_UNWINDER=true
14349fi
14350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351
14352 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14353 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14354 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14355else
14356 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14357 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14358fi
14359
14360 ac_ext=c
14361ac_cpp='$CPP $CPPFLAGS'
14362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14364ac_compiler_gnu=$ac_cv_c_compiler_gnu
14365
14366
14367
14368 ac_ext=c
14369ac_cpp='$CPP $CPPFLAGS'
14370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14372ac_compiler_gnu=$ac_cv_c_compiler_gnu
14373
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14375$as_echo_n "checking for minfo section bracketing... " >&6; }
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h. */
14378
14379 void* module_info_ptr __attribute__((section ("minfo")));
14380 extern void* __start_minfo __attribute__((visibility ("hidden")));
14381 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14382
14383 int main()
14384 {
14385 // Never run, just to prevent compiler from optimizing access
14386 return &__start_minfo == &__stop_minfo;
14387 }
14388
14389_ACEOF
14390if ac_fn_c_try_link "$LINENO"; then :
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392$as_echo "yes" >&6; }
14393 DCFG_MINFO_BRACKETING=true
14394else
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396$as_echo "no" >&6; }
14397 DCFG_MINFO_BRACKETING=false
14398fi
14399rm -f core conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14401
0b6e3127
RO
14402 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14403 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14404 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14405else
14406 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14407 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14408fi
14409
b4c522fa
IB
14410 ac_ext=c
14411ac_cpp='$CPP $CPPFLAGS'
14412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14414ac_compiler_gnu=$ac_cv_c_compiler_gnu
14415
14416
14417
235d1c46
RO
14418 ac_ext=c
14419ac_cpp='$CPP $CPPFLAGS'
14420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422ac_compiler_gnu=$ac_cv_c_compiler_gnu
14423
14424 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>
14425"
14426if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14427 DCFG_DLPI_TLS_MODID=true
14428else
14429 DCFG_DLPI_TLS_MODID=false
14430fi
14431
14432
14433 ac_ext=c
14434ac_cpp='$CPP $CPPFLAGS'
14435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438
14439
14440
ba838aa6
RO
14441 case $target in
14442 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14443 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14444 # relocs. Work around by disabling TLS transitions. Not necessary
14445 # on 32-bit x86, but cannot be distinguished reliably in specs.
14446 druntime_ld_prog=`$CC -print-prog-name=ld`
bca0a321
RO
14447 druntime_ld_gld=no
14448 druntime_ld_relax_transtls=no
ba838aa6
RO
14449 if test -n "$druntime_ld_prog" \
14450 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
bca0a321 14451 druntime_ld_gld=yes
ba838aa6 14452 else
bca0a321
RO
14453 echo 'int main (void) { return 0; }' > conftest.c
14454 save_LDFLAGS="$LDFLAGS"
14455 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14456 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14457 druntime_ld_relax_transtls=yes
14458 fi
14459 LDFLAGS="$save_LDFLAGS"
14460 rm -f conftest.c conftest
14461 fi
14462 if test "$druntime_ld_relax_transtls" = "yes"; then
ba838aa6
RO
14463 OS_LINK_SPEC='-z relax=transtls'
14464 fi
14465 ;;
14466 esac
14467
14468
14469
36d7f151
JP
14470 ac_ext=c
14471ac_cpp='$CPP $CPPFLAGS'
14472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474ac_compiler_gnu=$ac_cv_c_compiler_gnu
14475
14476 DCFG_HAVE_QSORT_R=false
14477 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14478if test "x$ac_cv_func_qsort_r" = xyes; then :
14479 DCFG_HAVE_QSORT_R=true
14480fi
14481
14482
14483 ac_ext=c
14484ac_cpp='$CPP $CPPFLAGS'
14485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14487ac_compiler_gnu=$ac_cv_c_compiler_gnu
14488
14489
14490
b4c522fa
IB
14491
14492
14493 gdc_save_DFLAGS=$GDCFLAGS
14494 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14495
14496 ac_ext=d
14497ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14498ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499ac_compiler_gnu=yes
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14502$as_echo_n "checking for library containing malloc... " >&6; }
22e05272 14503if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14504 $as_echo_n "(cached) " >&6
14505else
14506 ac_func_search_save_LIBS=$LIBS
14507cat > conftest.$ac_ext <<_ACEOF
14508module mod;
14509 extern(C) int malloc();
14510
14511extern(C) int main() {
14512 malloc(); return 0;
14513}
14514_ACEOF
14515for ac_lib in '' c; do
14516 if test -z "$ac_lib"; then
14517 ac_res="none required"
14518 else
14519 ac_res=-l$ac_lib
14520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14521 fi
14522 if ac_fn_d_try_link "$LINENO"; then :
14523 ac_cv_search_malloc=$ac_res
14524fi
14525rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext
22e05272 14527 if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14528 break
14529fi
14530done
22e05272 14531if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14532
14533else
14534 ac_cv_search_malloc=no
14535fi
14536rm conftest.$ac_ext
14537LIBS=$ac_func_search_save_LIBS
14538fi
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14540$as_echo "$ac_cv_search_malloc" >&6; }
14541ac_res=$ac_cv_search_malloc
14542if test "$ac_res" != no; then :
14543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14544
14545fi
14546
6e286c8d 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
b4c522fa 14548$as_echo_n "checking for library containing pthread_create... " >&6; }
22e05272 14549if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14550 $as_echo_n "(cached) " >&6
14551else
14552 ac_func_search_save_LIBS=$LIBS
14553cat > conftest.$ac_ext <<_ACEOF
14554module mod;
14555 extern(C) int pthread_create();
14556
14557extern(C) int main() {
14558 pthread_create(); return 0;
14559}
14560_ACEOF
14561for ac_lib in '' pthread; do
14562 if test -z "$ac_lib"; then
14563 ac_res="none required"
14564 else
14565 ac_res=-l$ac_lib
14566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14567 fi
14568 if ac_fn_d_try_link "$LINENO"; then :
14569 ac_cv_search_pthread_create=$ac_res
14570fi
14571rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext
22e05272 14573 if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14574 break
14575fi
14576done
22e05272 14577if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14578
14579else
14580 ac_cv_search_pthread_create=no
14581fi
14582rm conftest.$ac_ext
14583LIBS=$ac_func_search_save_LIBS
14584fi
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14586$as_echo "$ac_cv_search_pthread_create" >&6; }
14587ac_res=$ac_cv_search_pthread_create
14588if test "$ac_res" != no; then :
14589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14590
b4c522fa
IB
14591fi
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14594$as_echo_n "checking for library containing cosf... " >&6; }
22e05272 14595if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14596 $as_echo_n "(cached) " >&6
14597else
14598 ac_func_search_save_LIBS=$LIBS
14599cat > conftest.$ac_ext <<_ACEOF
14600module mod;
14601 extern(C) int cosf();
14602
14603extern(C) int main() {
14604 cosf(); return 0;
14605}
14606_ACEOF
14607for ac_lib in '' m; do
14608 if test -z "$ac_lib"; then
14609 ac_res="none required"
14610 else
14611 ac_res=-l$ac_lib
14612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14613 fi
14614 if ac_fn_d_try_link "$LINENO"; then :
14615 ac_cv_search_cosf=$ac_res
14616fi
14617rm -f core conftest.err conftest.$ac_objext \
14618 conftest$ac_exeext
22e05272 14619 if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14620 break
14621fi
14622done
22e05272 14623if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14624
14625else
14626 ac_cv_search_cosf=no
14627fi
14628rm conftest.$ac_ext
14629LIBS=$ac_func_search_save_LIBS
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14632$as_echo "$ac_cv_search_cosf" >&6; }
14633ac_res=$ac_cv_search_cosf
14634if test "$ac_res" != no; then :
14635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14636
14637fi
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14640$as_echo_n "checking for library containing clock_gettime... " >&6; }
22e05272 14641if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14642 $as_echo_n "(cached) " >&6
14643else
14644 ac_func_search_save_LIBS=$LIBS
14645cat > conftest.$ac_ext <<_ACEOF
14646module mod;
14647 extern(C) int clock_gettime();
14648
14649extern(C) int main() {
14650 clock_gettime(); return 0;
14651}
14652_ACEOF
14653for ac_lib in '' rt; do
14654 if test -z "$ac_lib"; then
14655 ac_res="none required"
14656 else
14657 ac_res=-l$ac_lib
14658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14659 fi
14660 if ac_fn_d_try_link "$LINENO"; then :
14661 ac_cv_search_clock_gettime=$ac_res
14662fi
14663rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext
22e05272 14665 if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14666 break
14667fi
14668done
22e05272 14669if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14670
14671else
14672 ac_cv_search_clock_gettime=no
14673fi
14674rm conftest.$ac_ext
14675LIBS=$ac_func_search_save_LIBS
14676fi
14677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14678$as_echo "$ac_cv_search_clock_gettime" >&6; }
14679ac_res=$ac_cv_search_clock_gettime
14680if test "$ac_res" != no; then :
14681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14682
14683fi
14684
14685
14686 # This checks to see if the host supports the compiler-generated builtins
14687 # for atomic operations for various integral sizes. Note, this is intended
14688 # to be an all-or-nothing switch, so all the atomic operations that are
14689 # used should be checked.
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14691$as_echo_n "checking for atomic builtins for byte... " >&6; }
22e05272 14692 if ${druntime_cv_atomic_byte+:} false; then :
b4c522fa
IB
14693 $as_echo_n "(cached) " >&6
14694else
14695
14696 cat > conftest.$ac_ext <<_ACEOF
14697module mod;
14698import gcc.builtins;
14699
14700extern(C) int main() {
14701
14702 shared(byte) c1;
14703 byte c2, c3;
14704 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14705 __atomic_load_1(&c1, 5);
14706 __atomic_store_1(&c1, c2, 5);
14707 return 0;
14708
14709}
14710_ACEOF
14711if ac_fn_d_try_link "$LINENO"; then :
14712 druntime_cv_atomic_byte=yes
14713else
14714 druntime_cv_atomic_byte=no
14715fi
14716rm -f core conftest.err conftest.$ac_objext \
14717 conftest$ac_exeext conftest.$ac_ext
14718
14719fi
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14722$as_echo "$druntime_cv_atomic_byte" >&6; }
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14725$as_echo_n "checking for atomic builtins for short... " >&6; }
22e05272 14726 if ${druntime_cv_atomic_short+:} false; then :
b4c522fa
IB
14727 $as_echo_n "(cached) " >&6
14728else
14729
14730 cat > conftest.$ac_ext <<_ACEOF
14731module mod;
14732import gcc.builtins;
14733
14734extern(C) int main() {
14735
14736 shared(short) c1;
14737 short c2, c3;
14738 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14739 __atomic_load_2(&c1, 5);
14740 __atomic_store_2(&c1, c2, 5);
14741 return 0;
14742
14743}
14744_ACEOF
14745if ac_fn_d_try_link "$LINENO"; then :
14746 druntime_cv_atomic_short=yes
14747else
14748 druntime_cv_atomic_short=no
14749fi
14750rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14752
14753fi
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14756$as_echo "$druntime_cv_atomic_short" >&6; }
14757
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14759$as_echo_n "checking for atomic builtins for int... " >&6; }
22e05272 14760 if ${druntime_cv_atomic_int+:} false; then :
b4c522fa
IB
14761 $as_echo_n "(cached) " >&6
14762else
14763
14764 cat > conftest.$ac_ext <<_ACEOF
14765module mod;
14766import gcc.builtins;
14767
14768extern(C) int main() {
14769
14770 shared(int) c1;
14771 int c2, c3;
14772 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14773 __atomic_load_4(&c1, 5);
14774 __atomic_store_4(&c1, c2, 5);
14775 return 0;
14776
14777}
14778_ACEOF
14779if ac_fn_d_try_link "$LINENO"; then :
14780 druntime_cv_atomic_int=yes
14781else
14782 druntime_cv_atomic_int=no
14783fi
14784rm -f core conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786
14787fi
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14790$as_echo "$druntime_cv_atomic_int" >&6; }
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14793$as_echo_n "checking for atomic builtins for long... " >&6; }
22e05272 14794 if ${druntime_cv_atomic_long+:} false; then :
b4c522fa
IB
14795 $as_echo_n "(cached) " >&6
14796else
14797
14798 cat > conftest.$ac_ext <<_ACEOF
14799module mod;
14800import gcc.builtins;
14801
14802extern(C) int main() {
14803
14804 shared(long) c1;
14805 long c2, c3;
14806 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14807 __atomic_load_8(&c1, 5);
14808 __atomic_store_8(&c1, c2, 5);
14809 return 0;
14810
14811}
14812_ACEOF
14813if ac_fn_d_try_link "$LINENO"; then :
14814 druntime_cv_atomic_long=yes
14815else
14816 druntime_cv_atomic_long=no
14817fi
14818rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820
14821fi
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14824$as_echo "$druntime_cv_atomic_long" >&6; }
14825
14826 # Have atomic builtin support if all but the long test above passes.
14827 DCFG_HAVE_ATOMIC_BUILTINS=false
14828 if test "$druntime_cv_atomic_byte" = yes \
14829 && test "$druntime_cv_atomic_short" = yes \
14830 && test "$druntime_cv_atomic_int" = yes; then \
14831 DCFG_HAVE_ATOMIC_BUILTINS=true
14832 fi
14833
14834 # Have 64-bit atomic support if the long test above passes.
14835 DCFG_HAVE_64BIT_ATOMICS=false
14836 if test "$druntime_cv_atomic_long" = yes; then
14837 DCFG_HAVE_64BIT_ATOMICS=true
14838 fi
14839
14840
14841
14842
14843 ac_ext=c
14844ac_cpp='$CPP $CPPFLAGS'
14845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848
14849
14850 GDCFLAGS=$gdc_save_DFLAGS
14851
14852
14853
14854
14855# Check whether --with-libatomic was given.
14856if test "${with_libatomic+set}" = set; then :
14857 withval=$with_libatomic;
14858fi
14859
14860
14861 DCFG_HAVE_LIBATOMIC=false
14862 LIBATOMIC=
14863 if test "x$with_libatomic" != "xno"; then :
14864
14865 DCFG_HAVE_LIBATOMIC=true
14866 LIBATOMIC=../../libatomic/libatomic_convenience.la
14867
14868else
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14871$as_echo_n "checking for libatomic... " >&6; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14873$as_echo "disabled" >&6; }
14874
14875fi
14876
14877
14878
14879
14880
14881 ac_ext=c
14882ac_cpp='$CPP $CPPFLAGS'
14883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886
14887 BACKTRACE_SUPPORTED=false
14888 BACKTRACE_USES_MALLOC=false
14889 BACKTRACE_SUPPORTS_THREADS=false
14890 LIBBACKTRACE=""
14891
14892
14893# Check whether --with-libbacktrace was given.
14894if test "${with_libbacktrace+set}" = set; then :
14895 withval=$with_libbacktrace;
14896fi
14897
14898
14899 if test "x$with_libbacktrace" != "xno"; then :
14900
14901 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14902
14903 gdc_save_CPPFLAGS=$CPPFLAGS
5d71d6f2 14904 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
b4c522fa
IB
14905
14906 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
22e05272 14907if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
b4c522fa
IB
14908 have_libbacktrace_h=true
14909else
14910 have_libbacktrace_h=false
14911fi
14912
14913
14914
14915 if $have_libbacktrace_h; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14917$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919/* end confdefs.h. */
14920
14921 #include <backtrace-supported.h>
14922 #if BACKTRACE_SUPPORTED
14923 FOUND_LIBBACKTRACE_RESULT_GDC
14924 #endif
14925
14926_ACEOF
14927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14928 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14929 BACKTRACE_SUPPORTED=true
14930else
14931 BACKTRACE_SUPPORTED=false
14932fi
14933rm -f conftest*
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14936$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14939$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941/* end confdefs.h. */
14942
14943 #include <backtrace-supported.h>
14944 #if BACKTRACE_USES_MALLOC
14945 FOUND_LIBBACKTRACE_RESULT_GDC
14946 #endif
14947
14948_ACEOF
14949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14951 BACKTRACE_USES_MALLOC=true
14952else
14953 BACKTRACE_USES_MALLOC=false
14954fi
14955rm -f conftest*
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14958$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14961$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963/* end confdefs.h. */
14964
14965 #include <backtrace-supported.h>
14966 #if BACKTRACE_SUPPORTS_THREADS
14967 FOUND_LIBBACKTRACE_RESULT_GDC
14968 #endif
14969
14970_ACEOF
14971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14972 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14973 BACKTRACE_SUPPORTS_THREADS=true
14974else
14975 BACKTRACE_SUPPORTS_THREADS=false
14976fi
14977rm -f conftest*
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14980$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14981 fi
14982 CPPFLAGS=$gdc_save_CPPFLAGS
14983
14984else
14985
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14987$as_echo_n "checking for libbacktrace... " >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14989$as_echo "disabled" >&6; }
14990
14991fi
14992
14993
14994
14995
14996
14997 ac_ext=c
14998ac_cpp='$CPP $CPPFLAGS'
14999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001ac_compiler_gnu=$ac_cv_c_compiler_gnu
15002
15003
15004
15005 # Libtool has already checked this, so re-use the inferred dlopen lib.
15006 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15007
15008 LIBS="$LIBS $lt_cv_dlopen_libs"
15009
15010fi
15011
15012
5e7f8c55
IB
15013 druntime_check_both=no
15014 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1d679134 15015if test "x$ac_cv_func_connect" = xyes; then :
1d679134 15016
5e7f8c55
IB
15017else
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15019$as_echo_n "checking for connect in -lsocket... " >&6; }
15020if ${ac_cv_lib_socket_connect+:} false; then :
1d679134
RO
15021 $as_echo_n "(cached) " >&6
15022else
15023 ac_check_lib_save_LIBS=$LIBS
15024LIBS="-lsocket $LIBS"
15025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026/* end confdefs.h. */
15027
5e7f8c55
IB
15028/* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031#ifdef __cplusplus
15032extern "C"
15033#endif
15034char connect ();
1d679134
RO
15035int
15036main ()
15037{
5e7f8c55 15038return connect ();
1d679134
RO
15039 ;
15040 return 0;
15041}
15042_ACEOF
15043if ac_fn_c_try_link "$LINENO"; then :
5e7f8c55 15044 ac_cv_lib_socket_connect=yes
1d679134 15045else
5e7f8c55 15046 ac_cv_lib_socket_connect=no
1d679134
RO
15047fi
15048rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050LIBS=$ac_check_lib_save_LIBS
15051fi
5e7f8c55
IB
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15053$as_echo "$ac_cv_lib_socket_connect" >&6; }
15054if test "x$ac_cv_lib_socket_connect" = xyes; then :
15055 LIBS="$LIBS -lsocket"
1d679134
RO
15056else
15057 druntime_check_both=yes
15058fi
15059
5e7f8c55
IB
15060fi
15061
15062 if test "$druntime_check_both" = "yes"; then
15063 druntime_old_libs=$LIBS
15064 LIBS="$LIBS -lsocket -lnsl"
15065 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
1d679134 15066if test "x$ac_cv_func_accept" = xyes; then :
5e7f8c55
IB
15067
15068else
15069 LIBS=$druntime_old_libs
1d679134
RO
15070fi
15071
5e7f8c55
IB
15072 fi
15073 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1d679134
RO
15074if test "x$ac_cv_func_gethostbyname" = xyes; then :
15075
15076else
5e7f8c55
IB
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15078$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15079if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1d679134
RO
15080 $as_echo_n "(cached) " >&6
15081else
15082 ac_check_lib_save_LIBS=$LIBS
15083LIBS="-lnsl $LIBS"
15084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085/* end confdefs.h. */
15086
5e7f8c55
IB
15087/* Override any GCC internal prototype to avoid an error.
15088 Use char because int might match the return type of a GCC
15089 builtin and then its argument prototype would still apply. */
15090#ifdef __cplusplus
15091extern "C"
15092#endif
15093char gethostbyname ();
1d679134
RO
15094int
15095main ()
15096{
5e7f8c55 15097return gethostbyname ();
1d679134
RO
15098 ;
15099 return 0;
15100}
15101_ACEOF
15102if ac_fn_c_try_link "$LINENO"; then :
5e7f8c55 15103 ac_cv_lib_nsl_gethostbyname=yes
1d679134 15104else
5e7f8c55 15105 ac_cv_lib_nsl_gethostbyname=no
1d679134
RO
15106fi
15107rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109LIBS=$ac_check_lib_save_LIBS
15110fi
5e7f8c55
IB
15111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15112$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15113if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15114 LIBS="$LIBS -lnsl"
1d679134
RO
15115fi
15116
15117fi
15118
15119
1d679134 15120
ac1a0a38
IB
15121 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15122 # "yes" for targets that have 'version = AsmExternal'.
15123 druntime_fiber_asm_external=no
15124 case "$target_cpu" in
15125 aarch64* | \
15126 arm* | \
15127 i[34567]86|x86_64 | \
15128 powerpc)
15129 druntime_fiber_asm_external=yes
15130 ;;
15131 esac
15132 if test "$druntime_fiber_asm_external" = no; then
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15134$as_echo_n "checking for library containing swapcontext... " >&6; }
15135if ${ac_cv_search_swapcontext+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137else
15138 ac_func_search_save_LIBS=$LIBS
15139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h. */
15141
15142/* Override any GCC internal prototype to avoid an error.
15143 Use char because int might match the return type of a GCC
15144 builtin and then its argument prototype would still apply. */
15145#ifdef __cplusplus
15146extern "C"
15147#endif
15148char swapcontext ();
15149int
15150main ()
15151{
15152return swapcontext ();
15153 ;
15154 return 0;
15155}
15156_ACEOF
15157for ac_lib in '' c ucontext; do
15158 if test -z "$ac_lib"; then
15159 ac_res="none required"
15160 else
15161 ac_res=-l$ac_lib
15162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15163 fi
15164 if ac_fn_c_try_link "$LINENO"; then :
15165 ac_cv_search_swapcontext=$ac_res
15166fi
15167rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext
15169 if ${ac_cv_search_swapcontext+:} false; then :
15170 break
15171fi
15172done
15173if ${ac_cv_search_swapcontext+:} false; then :
15174
15175else
15176 ac_cv_search_swapcontext=no
15177fi
15178rm conftest.$ac_ext
15179LIBS=$ac_func_search_save_LIBS
15180fi
15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15182$as_echo "$ac_cv_search_swapcontext" >&6; }
15183ac_res=$ac_cv_search_swapcontext
15184if test "$ac_res" != no; then :
15185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15186
15187else
15188 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15189fi
15190
15191 fi
15192
15193
bb50312e
IB
15194 ac_ext=c
15195ac_cpp='$CPP $CPPFLAGS'
15196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15198ac_compiler_gnu=$ac_cv_c_compiler_gnu
15199
15200 LIBZ=""
15201
b4c522fa
IB
15202
15203# Check whether --with-target-system-zlib was given.
15204if test "${with_target_system_zlib+set}" = set; then :
15205 withval=$with_target_system_zlib;
bb50312e
IB
15206else
15207 with_target_system_zlib=no
b4c522fa
IB
15208fi
15209
15210
bb50312e
IB
15211 case "$with_target_system_zlib" in
15212 yes|no|auto) ;;
15213 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15214 esac
b4c522fa 15215
bb50312e
IB
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15217$as_echo_n "checking for system zlib... " >&6; }
15218 save_LIBS=$LIBS
15219 LIBS="$LIBS -lz"
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 15221/* end confdefs.h. */
bb50312e 15222#include <zlib.h>
b4c522fa
IB
15223int
15224main ()
15225{
bb50312e 15226gzopen("none", "rb")
b4c522fa
IB
15227 ;
15228 return 0;
15229}
15230_ACEOF
15231if ac_fn_c_try_link "$LINENO"; then :
b4c522fa 15232
bb50312e
IB
15233 if test "$cross_compiling" = yes; then :
15234 system_zlib_found=no
b4c522fa
IB
15235
15236else
bb50312e
IB
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238/* end confdefs.h. */
b4c522fa 15239
bb50312e
IB
15240 #include <zlib.h>
15241 int main() {
15242 gzFile file = gzopen("none", "rb");
15243 return 0;
15244 }
b4c522fa 15245
bb50312e
IB
15246_ACEOF
15247if ac_fn_c_try_run "$LINENO"; then :
15248 system_zlib_found=yes
15249else
15250 system_zlib_found=no
15251fi
15252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15253 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa
IB
15254fi
15255
15256
15257else
bb50312e
IB
15258 system_zlib_found=no
15259fi
15260rm -f core conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$save_LIBS
15263
15264 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15266$as_echo "found" >&6; }
15267 LIBS="$LIBS -lz"
15268 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15269 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15270 else
b4c522fa
IB
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15272$as_echo "just compiled" >&6; }
bb50312e
IB
15273 LIBZ=../../zlib/libz_convenience.la
15274 fi
b4c522fa 15275
b4c522fa 15276
bb50312e
IB
15277 ac_ext=c
15278ac_cpp='$CPP $CPPFLAGS'
15279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15281ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa
IB
15282
15283
15284
15285
15286
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15288$as_echo_n "checking D GCC version... " >&6; }
15289 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15291$as_echo "$gcc_version" >&6; }
15292
15293
15294
15295# Check whether --with-cross-host was given.
15296if test "${with_cross_host+set}" = set; then :
15297 withval=$with_cross_host;
15298fi
15299
15300
ac67752d
IB
15301 libphobos_toolexecdir=no
15302 libphobos_toolexeclibdir=no
b4c522fa 15303
ac67752d
IB
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15305$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15306 # Check whether --enable-version-specific-runtime-libs was given.
15307if test "${enable_version_specific_runtime_libs+set}" = set; then :
15308 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15309 yes) version_specific_libs=yes ;;
15310 no) version_specific_libs=no ;;
15311 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15312 esac
15313else
b4c522fa 15314 version_specific_libs=no
ac67752d
IB
15315fi
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15318$as_echo "$version_specific_libs" >&6; }
b4c522fa 15319
e8e66971
MR
15320
15321# Check whether --with-toolexeclibdir was given.
15322if test "${with_toolexeclibdir+set}" = set; then :
15323 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15324 /)
15325 ;;
15326 */)
15327 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15328 ;;
15329esac
15330else
15331 with_toolexeclibdir=no
15332fi
15333
15334
15335
b4c522fa
IB
15336 # Version-specific runtime libs processing.
15337 if test $version_specific_libs = yes; then
ac67752d
IB
15338 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15339 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
b4c522fa 15340 else
ac67752d
IB
15341 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15342 # Install a library built with a cross compiler in tooldir, not libdir.
15343 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15344 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
e8e66971
MR
15345 case ${with_toolexeclibdir} in
15346 no)
15347 libphobos_toolexeclibdir='${toolexecdir}/lib'
15348 ;;
15349 *)
15350 libphobos_toolexeclibdir=${with_toolexeclibdir}
15351 ;;
15352 esac
ac67752d
IB
15353 else
15354 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15355 libphobos_toolexeclibdir='${libdir}'
15356 fi
15357 multi_os_directory=`$GDC -print-multi-os-directory`
15358 case $multi_os_directory in
15359 .) ;; # Avoid trailing /.
15360 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15361 esac
b4c522fa
IB
15362 fi
15363
15364
15365
15366 # Default case for install directory for D sources files.
15367 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15368
15369
15370
bca0a321
RO
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15372$as_echo_n "checking for --enable-libphobos... " >&6; }
15373# Check whether --enable-libphobos was given.
15374if test "${enable_libphobos+set}" = set; then :
15375 enableval=$enable_libphobos;
15376fi
15377
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15379$as_echo "$enable_libphobos" >&6; }
15380
261bd78d
IB
15381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15382$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15383
371d1011
IB
15384# Check whether --with-libphobos-druntime-only was given.
15385if test "${with_libphobos_druntime_only+set}" = set; then :
15386 withval=$with_libphobos_druntime_only;
261bd78d 15387else
371d1011 15388 with_libphobos_druntime_only=auto
261bd78d
IB
15389fi
15390
371d1011
IB
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15392$as_echo "$with_libphobos_druntime_only" >&6; }
261bd78d 15393
371d1011 15394case "$with_libphobos_druntime_only" in
261bd78d
IB
15395 yes|no|auto) ;;
15396 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15397esac
15398
bca0a321
RO
15399# See if supported.
15400unset LIBPHOBOS_SUPPORTED
261bd78d 15401unset LIBDRUNTIME_ONLY
bca0a321
RO
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15403$as_echo_n "checking for host support for libphobos... " >&6; }
15404. ${srcdir}/configure.tgt
15405case ${host} in
15406 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15407 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15408 # relatively low linelength limit.
15409 as_prog=`$CC -print-prog-name=as`
15410 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15411 druntime_cv_use_gas=yes;
15412 else
15413 druntime_cv_use_gas=no;
15414 fi
15415 rm -f a.out
15416 if test x$druntime_cv_use_gas = xno; then
15417 LIBPHOBOS_SUPPORTED=no
15418 fi
15419 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15420 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15421 LIBPHOBOS_SUPPORTED=no
15422 fi
15423 ;;
15424esac
15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15426$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15427
15428# Decide if it's usable.
15429case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15430*:no) use_libphobos=no ;;
15431*:yes) use_libphobos=yes ;;
15432yes:*) use_libphobos=yes ;;
15433*:*) use_libphobos=no ;;
15434esac
15435 if test x$use_libphobos = xyes; then
15436 ENABLE_LIBPHOBOS_TRUE=
15437 ENABLE_LIBPHOBOS_FALSE='#'
15438else
15439 ENABLE_LIBPHOBOS_TRUE='#'
15440 ENABLE_LIBPHOBOS_FALSE=
15441fi
15442
15443
261bd78d 15444# Decide if only libdruntime should be built.
371d1011 15445case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
261bd78d
IB
15446*:no) only_libdruntime=no ;;
15447*:yes) only_libdruntime=yes ;;
15448yes:*) only_libdruntime=yes ;;
15449*:*) only_libdruntime=no ;;
15450esac
15451 if test x$only_libdruntime = xyes; then
15452 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15453 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15454else
15455 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15456 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15457fi
15458
15459
c0dbfbd7
IB
15460# Enable expensive internal checks
15461# Check whether --enable-libphobos-checking was given.
15462if test "${enable_libphobos_checking+set}" = set; then :
15463 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15464else
15465 ac_checking_flags=release
15466fi
15467
15468IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15469for check in release $ac_checking_flags
15470do
15471 case $check in
15472 # These set all the flags to specific states
15473 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15474 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15475 # These enable particular checks
15476 assert) ASSERT_FLAG="-fassert" ;;
15477 # Accept
15478 *) ;;
15479 esac
15480done
15481IFS="$ac_save_IFS"
15482CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15483
15484
0b6e3127
RO
15485# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15486if test "$DCFG_MINFO_BRACKETING" = "false"; then
15487 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15488else
15489 DRTSTUFF_SPEC=/dev/null
15490fi
15491
15492
b4c522fa
IB
15493# Add dependencies for libgphobos.spec file
15494SPEC_PHOBOS_DEPS="$LIBS"
15495
15496
15497# Libdruntime / phobos soname version
bc093503 15498libtool_VERSION=1:0:0
b4c522fa
IB
15499
15500
15501# Set default flags (after DRUNTIME_WERROR!)
15502if test -z "$GDCFLAGS"; then
c0dbfbd7 15503 GDCFLAGS="-g -O2"
b4c522fa
IB
15504fi
15505
15506
38c3017f
IB
15507WARN_DFLAGS="-Wall $WERROR_FLAG"
15508
15509
b4c522fa
IB
15510# Sanity check for the cross-compilation case:
15511ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22e05272 15512if test "x$ac_cv_header_stdio_h" = xyes; then :
b4c522fa
IB
15513 :
15514else
22e05272 15515 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
b4c522fa
IB
15516fi
15517
15518
15519
ac67752d 15520ac_config_files="$ac_config_files Makefile"
b4c522fa
IB
15521
15522
15523ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15524
15525ac_config_files="$ac_config_files src/libgphobos.spec"
15526
15527ac_config_files="$ac_config_files testsuite/testsuite_flags"
15528
15529
ac67752d
IB
15530# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15531# that multilib installs will end up installed in the correct place.
15532# The testsuite needs it for multilib-aware ABI baseline files.
15533# To work around this not being passed down from config-ml.in ->
15534# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15535# append it here. Only modify Makefiles that have just been created.
15536#
15537# Also, get rid of this simulated-VPATH thing that automake does.
15538ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
b4c522fa
IB
15539
15540
15541cat >confcache <<\_ACEOF
15542# This file is a shell script that caches the results of configure
15543# tests run on this system so they can be shared between configure
15544# scripts and configure runs, see configure's option --config-cache.
15545# It is not useful on other systems. If it contains results you don't
15546# want to keep, you may remove or edit it.
15547#
15548# config.status only pays attention to the cache file if you give it
15549# the --recheck option to rerun configure.
15550#
15551# `ac_cv_env_foo' variables (set or unset) will be overridden when
15552# loading this file, other *unset* `ac_cv_foo' will be assigned the
15553# following values.
15554
15555_ACEOF
15556
15557# The following way of writing the cache mishandles newlines in values,
15558# but we know of no workaround that is simple, portable, and efficient.
15559# So, we kill variables containing newlines.
15560# Ultrix sh set writes to stderr and can't be redirected directly,
15561# and sets the high bit in the cache file unless we assign to the vars.
15562(
15563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val=\$$ac_var
15565 case $ac_val in #(
15566 *${as_nl}*)
15567 case $ac_var in #(
15568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15570 esac
15571 case $ac_var in #(
15572 _ | IFS | as_nl) ;; #(
15573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15575 esac ;;
15576 esac
15577 done
15578
15579 (set) 2>&1 |
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space=\ *)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15584 sed -n \
15585 "s/'/'\\\\''/g;
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15587 ;; #(
15588 *)
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15591 ;;
15592 esac |
15593 sort
15594) |
15595 sed '
15596 /^ac_cv_env_/b end
15597 t clear
15598 :clear
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600 t end
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602 :end' >>confcache
15603if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604 if test -w "$cache_file"; then
22e05272 15605 if test "x$cache_file" != "x/dev/null"; then
b4c522fa
IB
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15608 if test ! -f "$cache_file" || test -h "$cache_file"; then
15609 cat confcache >"$cache_file"
15610 else
15611 case $cache_file in #(
15612 */* | ?:*)
15613 mv -f confcache "$cache_file"$$ &&
15614 mv -f "$cache_file"$$ "$cache_file" ;; #(
15615 *)
15616 mv -f confcache "$cache_file" ;;
15617 esac
15618 fi
15619 fi
b4c522fa
IB
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15622$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15623 fi
15624fi
15625rm -f confcache
15626
15627test "x$prefix" = xNONE && prefix=$ac_default_prefix
15628# Let make expand exec_prefix.
15629test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15630
15631DEFS=-DHAVE_CONFIG_H
15632
15633ac_libobjs=
15634ac_ltlibobjs=
22e05272 15635U=
b4c522fa
IB
15636for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15637 # 1. Remove the extension, and $U if already installed.
15638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15641 # will be set to the directory where LIBOBJS objects are built.
15642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15644done
15645LIBOBJS=$ac_libobjs
15646
15647LTLIBOBJS=$ac_ltlibobjs
15648
15649
22e05272
JM
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15651$as_echo_n "checking that generated files are newer than configure... " >&6; }
15652 if test -n "$am_sleep_pid"; then
15653 # Hide warnings about reused PIDs.
15654 wait $am_sleep_pid 2>/dev/null
15655 fi
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15657$as_echo "done" >&6; }
b4c522fa
IB
15658 if test -n "$EXEEXT"; then
15659 am__EXEEXT_TRUE=
15660 am__EXEEXT_FALSE='#'
15661else
15662 am__EXEEXT_TRUE='#'
15663 am__EXEEXT_FALSE=
15664fi
15665
15666if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b4c522fa
IB
15668Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669fi
2493e718
IB
15670if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15671 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15672Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673fi
15674if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15675 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15676Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677fi
15678if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15679 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15680Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681fi
15682if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15683 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15684Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685fi
2493e718
IB
15686if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15687 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15688Usually this means the macro was only invoked conditionally." "$LINENO" 5
15689fi
88e508f9
RD
15690if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15691 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15692Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693fi
15694if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15695 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15696Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697fi
b4c522fa 15698if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
22e05272 15699 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
b4c522fa
IB
15700Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701fi
15702if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
22e05272 15703 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
b4c522fa
IB
15704Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705fi
15706if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
22e05272 15707 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
b4c522fa
IB
15708Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709fi
15710if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
22e05272 15711 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
b4c522fa
IB
15712Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713fi
15714if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
22e05272 15715 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
b4c522fa
IB
15716Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717fi
15718if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
22e05272 15719 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
b4c522fa
IB
15720Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721fi
15722if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
22e05272 15723 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
b4c522fa
IB
15724Usually this means the macro was only invoked conditionally." "$LINENO" 5
15725fi
15726if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
22e05272 15727 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
b4c522fa
IB
15728Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729fi
15730if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
22e05272 15731 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
b4c522fa
IB
15732Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733fi
15734if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
22e05272 15735 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
b4c522fa
IB
15736Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737fi
72c136c9
IB
15738if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15739 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15740Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741fi
b4c522fa 15742if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
22e05272 15743 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
b4c522fa
IB
15744Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745fi
0b6e3127
RO
15746if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15747 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15748Usually this means the macro was only invoked conditionally." "$LINENO" 5
15749fi
bca0a321
RO
15750if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15751 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15752Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753fi
261bd78d
IB
15754if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15755 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15756Usually this means the macro was only invoked conditionally." "$LINENO" 5
15757fi
b4c522fa 15758
22e05272 15759: "${CONFIG_STATUS=./config.status}"
b4c522fa
IB
15760ac_write_fail=0
15761ac_clean_files_save=$ac_clean_files
15762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15764$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15765as_write_fail=0
15766cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15767#! $SHELL
15768# Generated by $as_me.
15769# Run this file to recreate the current configuration.
15770# Compiler output produced by configure, useful for debugging
15771# configure, is in config.log if it exists.
15772
15773debug=false
15774ac_cs_recheck=false
15775ac_cs_silent=false
15776
15777SHELL=\${CONFIG_SHELL-$SHELL}
15778export SHELL
15779_ASEOF
15780cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15781## -------------------- ##
15782## M4sh Initialization. ##
15783## -------------------- ##
15784
15785# Be more Bourne compatible
15786DUALCASE=1; export DUALCASE # for MKS sh
15787if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15788 emulate sh
15789 NULLCMD=:
15790 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15791 # is contrary to our usage. Disable this feature.
15792 alias -g '${1+"$@"}'='"$@"'
15793 setopt NO_GLOB_SUBST
15794else
15795 case `(set -o) 2>/dev/null` in #(
15796 *posix*) :
15797 set -o posix ;; #(
15798 *) :
15799 ;;
15800esac
15801fi
15802
15803
15804as_nl='
15805'
15806export as_nl
15807# Printing a long string crashes Solaris 7 /usr/bin/printf.
15808as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15810as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15811# Prefer a ksh shell builtin over an external printf program on Solaris,
15812# but without wasting forks for bash or zsh.
15813if test -z "$BASH_VERSION$ZSH_VERSION" \
15814 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15815 as_echo='print -r --'
15816 as_echo_n='print -rn --'
15817elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15818 as_echo='printf %s\n'
15819 as_echo_n='printf %s'
15820else
15821 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15822 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15823 as_echo_n='/usr/ucb/echo -n'
15824 else
15825 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15826 as_echo_n_body='eval
15827 arg=$1;
15828 case $arg in #(
15829 *"$as_nl"*)
15830 expr "X$arg" : "X\\(.*\\)$as_nl";
15831 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15832 esac;
15833 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15834 '
15835 export as_echo_n_body
15836 as_echo_n='sh -c $as_echo_n_body as_echo'
15837 fi
15838 export as_echo_body
15839 as_echo='sh -c $as_echo_body as_echo'
15840fi
15841
15842# The user is always right.
15843if test "${PATH_SEPARATOR+set}" != set; then
15844 PATH_SEPARATOR=:
15845 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15846 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15847 PATH_SEPARATOR=';'
15848 }
15849fi
15850
15851
15852# IFS
15853# We need space, tab and new line, in precisely that order. Quoting is
15854# there to prevent editors from complaining about space-tab.
15855# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15856# splitting by setting IFS to empty value.)
15857IFS=" "" $as_nl"
15858
15859# Find who we are. Look in the path if we contain no directory separator.
22e05272 15860as_myself=
b4c522fa
IB
15861case $0 in #((
15862 *[\\/]* ) as_myself=$0 ;;
15863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864for as_dir in $PATH
15865do
15866 IFS=$as_save_IFS
15867 test -z "$as_dir" && as_dir=.
15868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15869 done
15870IFS=$as_save_IFS
15871
15872 ;;
15873esac
15874# We did not find ourselves, most probably we were run as `sh COMMAND'
15875# in which case we are not to be found in the path.
15876if test "x$as_myself" = x; then
15877 as_myself=$0
15878fi
15879if test ! -f "$as_myself"; then
15880 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15881 exit 1
15882fi
15883
15884# Unset variables that we do not need and which cause bugs (e.g. in
15885# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15886# suppresses any "Segmentation fault" message there. '((' could
15887# trigger a bug in pdksh 5.2.14.
15888for as_var in BASH_ENV ENV MAIL MAILPATH
15889do eval test x\${$as_var+set} = xset \
15890 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15891done
15892PS1='$ '
15893PS2='> '
15894PS4='+ '
15895
15896# NLS nuisances.
15897LC_ALL=C
15898export LC_ALL
15899LANGUAGE=C
15900export LANGUAGE
15901
15902# CDPATH.
15903(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15904
15905
22e05272
JM
15906# as_fn_error STATUS ERROR [LINENO LOG_FD]
15907# ----------------------------------------
b4c522fa
IB
15908# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15909# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15910# script with STATUS, using 1 if that was 0.
b4c522fa
IB
15911as_fn_error ()
15912{
22e05272
JM
15913 as_status=$1; test $as_status -eq 0 && as_status=1
15914 if test "$4"; then
15915 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15916 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 15917 fi
22e05272 15918 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
15919 as_fn_exit $as_status
15920} # as_fn_error
15921
15922
15923# as_fn_set_status STATUS
15924# -----------------------
15925# Set $? to STATUS, without forking.
15926as_fn_set_status ()
15927{
15928 return $1
15929} # as_fn_set_status
15930
15931# as_fn_exit STATUS
15932# -----------------
15933# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15934as_fn_exit ()
15935{
15936 set +e
15937 as_fn_set_status $1
15938 exit $1
15939} # as_fn_exit
15940
15941# as_fn_unset VAR
15942# ---------------
15943# Portably unset VAR.
15944as_fn_unset ()
15945{
15946 { eval $1=; unset $1;}
15947}
15948as_unset=as_fn_unset
15949# as_fn_append VAR VALUE
15950# ----------------------
15951# Append the text in VALUE to the end of the definition contained in VAR. Take
15952# advantage of any shell optimizations that allow amortized linear growth over
15953# repeated appends, instead of the typical quadratic growth present in naive
15954# implementations.
15955if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15956 eval 'as_fn_append ()
15957 {
15958 eval $1+=\$2
15959 }'
15960else
15961 as_fn_append ()
15962 {
15963 eval $1=\$$1\$2
15964 }
15965fi # as_fn_append
15966
15967# as_fn_arith ARG...
15968# ------------------
15969# Perform arithmetic evaluation on the ARGs, and store the result in the
15970# global $as_val. Take advantage of shells that can avoid forks. The arguments
15971# must be portable across $(()) and expr.
15972if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15973 eval 'as_fn_arith ()
15974 {
15975 as_val=$(( $* ))
15976 }'
15977else
15978 as_fn_arith ()
15979 {
15980 as_val=`expr "$@" || test $? -eq 1`
15981 }
15982fi # as_fn_arith
15983
15984
15985if expr a : '\(a\)' >/dev/null 2>&1 &&
15986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15987 as_expr=expr
15988else
15989 as_expr=false
15990fi
15991
15992if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15993 as_basename=basename
15994else
15995 as_basename=false
15996fi
15997
15998if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15999 as_dirname=dirname
16000else
16001 as_dirname=false
16002fi
16003
16004as_me=`$as_basename -- "$0" ||
16005$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16006 X"$0" : 'X\(//\)$' \| \
16007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16008$as_echo X/"$0" |
16009 sed '/^.*\/\([^/][^/]*\)\/*$/{
16010 s//\1/
16011 q
16012 }
16013 /^X\/\(\/\/\)$/{
16014 s//\1/
16015 q
16016 }
16017 /^X\/\(\/\).*/{
16018 s//\1/
16019 q
16020 }
16021 s/.*/./; q'`
16022
16023# Avoid depending upon Character Ranges.
16024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16027as_cr_digits='0123456789'
16028as_cr_alnum=$as_cr_Letters$as_cr_digits
16029
16030ECHO_C= ECHO_N= ECHO_T=
16031case `echo -n x` in #(((((
16032-n*)
16033 case `echo 'xy\c'` in
16034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16035 xy) ECHO_C='\c';;
16036 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16037 ECHO_T=' ';;
16038 esac;;
16039*)
16040 ECHO_N='-n';;
16041esac
16042
16043rm -f conf$$ conf$$.exe conf$$.file
16044if test -d conf$$.dir; then
16045 rm -f conf$$.dir/conf$$.file
16046else
16047 rm -f conf$$.dir
16048 mkdir conf$$.dir 2>/dev/null
16049fi
16050if (echo >conf$$.file) 2>/dev/null; then
16051 if ln -s conf$$.file conf$$ 2>/dev/null; then
16052 as_ln_s='ln -s'
16053 # ... but there are two gotchas:
16054 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16055 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16056 # In both cases, we have to default to `cp -pR'.
b4c522fa 16057 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16058 as_ln_s='cp -pR'
b4c522fa
IB
16059 elif ln conf$$.file conf$$ 2>/dev/null; then
16060 as_ln_s=ln
16061 else
22e05272 16062 as_ln_s='cp -pR'
b4c522fa
IB
16063 fi
16064else
22e05272 16065 as_ln_s='cp -pR'
b4c522fa
IB
16066fi
16067rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16068rmdir conf$$.dir 2>/dev/null
16069
16070
16071# as_fn_mkdir_p
16072# -------------
16073# Create "$as_dir" as a directory, including parents if necessary.
16074as_fn_mkdir_p ()
16075{
16076
16077 case $as_dir in #(
16078 -*) as_dir=./$as_dir;;
16079 esac
16080 test -d "$as_dir" || eval $as_mkdir_p || {
16081 as_dirs=
16082 while :; do
16083 case $as_dir in #(
16084 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16085 *) as_qdir=$as_dir;;
16086 esac
16087 as_dirs="'$as_qdir' $as_dirs"
16088 as_dir=`$as_dirname -- "$as_dir" ||
16089$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16090 X"$as_dir" : 'X\(//\)[^/]' \| \
16091 X"$as_dir" : 'X\(//\)$' \| \
16092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16093$as_echo X"$as_dir" |
16094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16095 s//\1/
16096 q
16097 }
16098 /^X\(\/\/\)[^/].*/{
16099 s//\1/
16100 q
16101 }
16102 /^X\(\/\/\)$/{
16103 s//\1/
16104 q
16105 }
16106 /^X\(\/\).*/{
16107 s//\1/
16108 q
16109 }
16110 s/.*/./; q'`
16111 test -d "$as_dir" && break
16112 done
16113 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16114 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
16115
16116
16117} # as_fn_mkdir_p
16118if mkdir -p . 2>/dev/null; then
16119 as_mkdir_p='mkdir -p "$as_dir"'
16120else
16121 test -d ./-p && rmdir ./-p
16122 as_mkdir_p=false
16123fi
16124
22e05272
JM
16125
16126# as_fn_executable_p FILE
16127# -----------------------
16128# Test if FILE is an executable regular file.
16129as_fn_executable_p ()
16130{
16131 test -f "$1" && test -x "$1"
16132} # as_fn_executable_p
16133as_test_x='test -x'
16134as_executable_p=as_fn_executable_p
b4c522fa
IB
16135
16136# Sed expression to map a string onto a valid CPP name.
16137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16138
16139# Sed expression to map a string onto a valid variable name.
16140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16141
16142
16143exec 6>&1
16144## ----------------------------------- ##
16145## Main body of $CONFIG_STATUS script. ##
16146## ----------------------------------- ##
16147_ASEOF
16148test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16149
16150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16151# Save the log message, to keep $0 and so on meaningful, and to
16152# report actual input values of CONFIG_FILES etc. instead of their
16153# values after options handling.
16154ac_log="
16155This file was extended by package-unused $as_me version-unused, which was
22e05272 16156generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
16157
16158 CONFIG_FILES = $CONFIG_FILES
16159 CONFIG_HEADERS = $CONFIG_HEADERS
16160 CONFIG_LINKS = $CONFIG_LINKS
16161 CONFIG_COMMANDS = $CONFIG_COMMANDS
16162 $ $0 $@
16163
16164on `(hostname || uname -n) 2>/dev/null | sed 1q`
16165"
16166
16167_ACEOF
16168
16169case $ac_config_files in *"
16170"*) set x $ac_config_files; shift; ac_config_files=$*;;
16171esac
16172
16173case $ac_config_headers in *"
16174"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16175esac
16176
16177
16178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16179# Files that config.status was made for.
16180config_files="$ac_config_files"
16181config_headers="$ac_config_headers"
16182config_commands="$ac_config_commands"
16183
16184_ACEOF
16185
16186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187ac_cs_usage="\
16188\`$as_me' instantiates files and other configuration actions
16189from templates according to the current configuration. Unless the files
16190and actions are specified as TAGs, all are instantiated by default.
16191
16192Usage: $0 [OPTION]... [TAG]...
16193
16194 -h, --help print this help, then exit
16195 -V, --version print version number and configuration settings, then exit
22e05272 16196 --config print configuration, then exit
b4c522fa
IB
16197 -q, --quiet, --silent
16198 do not print progress messages
16199 -d, --debug don't remove temporary files
16200 --recheck update $as_me by reconfiguring in the same conditions
16201 --file=FILE[:TEMPLATE]
16202 instantiate the configuration file FILE
16203 --header=FILE[:TEMPLATE]
16204 instantiate the configuration header FILE
16205
16206Configuration files:
16207$config_files
16208
16209Configuration headers:
16210$config_headers
16211
16212Configuration commands:
16213$config_commands
16214
16215Report bugs to the package provider."
16216
16217_ACEOF
16218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b4c522fa
IB
16220ac_cs_version="\\
16221package-unused config.status version-unused
22e05272
JM
16222configured by $0, generated by GNU Autoconf 2.69,
16223 with options \\"\$ac_cs_config\\"
b4c522fa 16224
0b6e3127 16225Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
16226This config.status script is free software; the Free Software Foundation
16227gives unlimited permission to copy, distribute and modify it."
16228
16229ac_pwd='$ac_pwd'
16230srcdir='$srcdir'
16231INSTALL='$INSTALL'
16232MKDIR_P='$MKDIR_P'
16233AWK='$AWK'
16234test -n "\$AWK" || AWK=awk
16235_ACEOF
16236
16237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16238# The default lists apply if the user does not specify any file.
16239ac_need_defaults=:
16240while test $# != 0
16241do
16242 case $1 in
22e05272 16243 --*=?*)
b4c522fa
IB
16244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16246 ac_shift=:
16247 ;;
22e05272
JM
16248 --*=)
16249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16250 ac_optarg=
16251 ac_shift=:
16252 ;;
b4c522fa
IB
16253 *)
16254 ac_option=$1
16255 ac_optarg=$2
16256 ac_shift=shift
16257 ;;
16258 esac
16259
16260 case $ac_option in
16261 # Handling of the options.
16262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16263 ac_cs_recheck=: ;;
16264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16265 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16266 --config | --confi | --conf | --con | --co | --c )
16267 $as_echo "$ac_cs_config"; exit ;;
b4c522fa
IB
16268 --debug | --debu | --deb | --de | --d | -d )
16269 debug=: ;;
16270 --file | --fil | --fi | --f )
16271 $ac_shift
16272 case $ac_optarg in
16273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16274 '') as_fn_error $? "missing file argument" ;;
b4c522fa
IB
16275 esac
16276 as_fn_append CONFIG_FILES " '$ac_optarg'"
16277 ac_need_defaults=false;;
16278 --header | --heade | --head | --hea )
16279 $ac_shift
16280 case $ac_optarg in
16281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282 esac
16283 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16284 ac_need_defaults=false;;
16285 --he | --h)
16286 # Conflict between --help and --header
22e05272 16287 as_fn_error $? "ambiguous option: \`$1'
b4c522fa
IB
16288Try \`$0 --help' for more information.";;
16289 --help | --hel | -h )
16290 $as_echo "$ac_cs_usage"; exit ;;
16291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16293 ac_cs_silent=: ;;
16294
16295 # This is an error.
22e05272 16296 -*) as_fn_error $? "unrecognized option: \`$1'
b4c522fa
IB
16297Try \`$0 --help' for more information." ;;
16298
16299 *) as_fn_append ac_config_targets " $1"
16300 ac_need_defaults=false ;;
16301
16302 esac
16303 shift
16304done
16305
16306ac_configure_extra_args=
16307
16308if $ac_cs_silent; then
16309 exec 6>/dev/null
16310 ac_configure_extra_args="$ac_configure_extra_args --silent"
16311fi
16312
16313_ACEOF
16314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315if \$ac_cs_recheck; then
22e05272 16316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b4c522fa
IB
16317 shift
16318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16319 CONFIG_SHELL='$SHELL'
16320 export CONFIG_SHELL
16321 exec "\$@"
16322fi
16323
16324_ACEOF
16325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16326exec 5>>config.log
16327{
16328 echo
16329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16330## Running $as_me. ##
16331_ASBOX
16332 $as_echo "$ac_log"
16333} >&5
16334
16335_ACEOF
16336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337#
16338# INIT-COMMANDS
16339#
16340
16341srcdir="$srcdir"
16342host="$host"
16343target="$target"
16344with_multisubdir="$with_multisubdir"
16345with_multisrctop="$with_multisrctop"
16346with_target_subdir="$with_target_subdir"
16347ac_configure_args="${multilib_arg} ${ac_configure_args}"
16348multi_basedir="$multi_basedir"
16349CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16350CC="$CC"
16351CXX="$CXX"
16352GFORTRAN="$GFORTRAN"
16353GDC="$GDC"
16354
16355
16356# The HP-UX ksh and POSIX shell print the target directory to stdout
16357# if CDPATH is set.
16358(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16359
16360sed_quote_subst='$sed_quote_subst'
16361double_quote_subst='$double_quote_subst'
16362delay_variable_subst='$delay_variable_subst'
16363macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16364macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16365enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16366enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16367pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16368enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16369SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16370ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16371host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16372host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16373host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16374build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16375build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16376build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16377SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16378Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16379GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16380EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16381FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16382LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16383NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16384LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16385max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16386ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16387exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16388lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16389lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16390lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16391reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16392reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16393OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16394deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16395file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16396AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16397AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16398STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16399RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16400old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16401old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16402old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16403lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16404CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16405CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16406compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16407GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16408lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16409lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16410lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16411lt_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"`'
16412objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16413MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16414lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16415lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16416lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16417lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16418lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16419need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16420DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16421NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16422LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16423OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16424OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16425libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16426shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16427extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16428archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16429enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16430export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16431whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16432compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16433old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16434old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16435archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16436archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16437module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16438module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16439with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16440allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16441no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16442hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16443hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16444hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16445hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16446hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16447hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16448hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16449hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16450inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16451link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16452fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16453always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16454export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16455exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16456include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16457prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16458file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16459variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16460need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16461need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16462version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16463runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16464shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16465shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16466libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16467library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16468soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16469install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16470postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16471postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16472finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16473finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16474hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16475sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16476sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16477hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16478enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16479enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16480enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16481old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16482striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16483LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16484reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16485reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16486old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16487compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16488GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16489lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16490lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16491lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16492lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16493lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16494archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16495enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16496export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16497whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16498compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16499old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16500old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16501archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16502archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16503module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16504module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16505with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16506allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16507no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16508hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16509hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16510hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16511hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16512hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16513hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16514hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16515hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16516inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16517link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16518fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16519always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16520export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16521exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16522include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16523prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16524file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16525hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16526
16527LTCC='$LTCC'
16528LTCFLAGS='$LTCFLAGS'
16529compiler='$compiler_DEFAULT'
16530
16531# A function that is used when there is no print builtin or printf.
16532func_fallback_echo ()
16533{
16534 eval 'cat <<_LTECHO_EOF
16535\$1
16536_LTECHO_EOF'
16537}
16538
16539# Quote evaled strings.
16540for var in SHELL \
16541ECHO \
16542SED \
16543GREP \
16544EGREP \
16545FGREP \
16546LD \
16547NM \
16548LN_S \
16549lt_SP2NL \
16550lt_NL2SP \
16551reload_flag \
16552OBJDUMP \
16553deplibs_check_method \
16554file_magic_cmd \
16555AR \
16556AR_FLAGS \
16557STRIP \
16558RANLIB \
16559CC \
16560CFLAGS \
16561compiler \
16562lt_cv_sys_global_symbol_pipe \
16563lt_cv_sys_global_symbol_to_cdecl \
16564lt_cv_sys_global_symbol_to_c_name_address \
16565lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16566lt_prog_compiler_no_builtin_flag \
16567lt_prog_compiler_wl \
16568lt_prog_compiler_pic \
16569lt_prog_compiler_static \
16570lt_cv_prog_compiler_c_o \
16571need_locks \
16572DSYMUTIL \
16573NMEDIT \
16574LIPO \
16575OTOOL \
16576OTOOL64 \
16577shrext_cmds \
16578export_dynamic_flag_spec \
16579whole_archive_flag_spec \
16580compiler_needs_object \
16581with_gnu_ld \
16582allow_undefined_flag \
16583no_undefined_flag \
16584hardcode_libdir_flag_spec \
16585hardcode_libdir_flag_spec_ld \
16586hardcode_libdir_separator \
16587fix_srcfile_path \
16588exclude_expsyms \
16589include_expsyms \
16590file_list_spec \
16591variables_saved_for_relink \
16592libname_spec \
16593library_names_spec \
16594soname_spec \
16595install_override_mode \
16596finish_eval \
16597old_striplib \
16598striplib \
16599LD_D \
16600reload_flag_D \
16601compiler_D \
16602lt_prog_compiler_no_builtin_flag_D \
16603lt_prog_compiler_wl_D \
16604lt_prog_compiler_pic_D \
16605lt_prog_compiler_static_D \
16606lt_cv_prog_compiler_c_o_D \
16607export_dynamic_flag_spec_D \
16608whole_archive_flag_spec_D \
16609compiler_needs_object_D \
16610with_gnu_ld_D \
16611allow_undefined_flag_D \
16612no_undefined_flag_D \
16613hardcode_libdir_flag_spec_D \
16614hardcode_libdir_flag_spec_ld_D \
16615hardcode_libdir_separator_D \
16616fix_srcfile_path_D \
16617exclude_expsyms_D \
16618include_expsyms_D \
16619file_list_spec_D; do
16620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16621 *[\\\\\\\`\\"\\\$]*)
16622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16623 ;;
16624 *)
16625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16626 ;;
16627 esac
16628done
16629
16630# Double-quote double-evaled strings.
16631for var in reload_cmds \
16632old_postinstall_cmds \
16633old_postuninstall_cmds \
16634old_archive_cmds \
16635extract_expsyms_cmds \
16636old_archive_from_new_cmds \
16637old_archive_from_expsyms_cmds \
16638archive_cmds \
16639archive_expsym_cmds \
16640module_cmds \
16641module_expsym_cmds \
16642export_symbols_cmds \
16643prelink_cmds \
16644postinstall_cmds \
16645postuninstall_cmds \
16646finish_cmds \
16647sys_lib_search_path_spec \
16648sys_lib_dlsearch_path_spec \
16649reload_cmds_D \
16650old_archive_cmds_D \
16651old_archive_from_new_cmds_D \
16652old_archive_from_expsyms_cmds_D \
16653archive_cmds_D \
16654archive_expsym_cmds_D \
16655module_cmds_D \
16656module_expsym_cmds_D \
16657export_symbols_cmds_D \
16658prelink_cmds_D; do
16659 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16660 *[\\\\\\\`\\"\\\$]*)
16661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16662 ;;
16663 *)
16664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16665 ;;
16666 esac
16667done
16668
16669ac_aux_dir='$ac_aux_dir'
16670xsi_shell='$xsi_shell'
16671lt_shell_append='$lt_shell_append'
16672
16673# See if we are running on zsh, and set the options which allow our
16674# commands through without removal of \ escapes INIT.
16675if test -n "\${ZSH_VERSION+set}" ; then
16676 setopt NO_GLOB_SUBST
16677fi
16678
16679
16680 PACKAGE='$PACKAGE'
16681 VERSION='$VERSION'
16682 TIMESTAMP='$TIMESTAMP'
16683 RM='$RM'
16684 ofile='$ofile'
16685
16686
16687
16688
16689
16690
b4c522fa
IB
16691_ACEOF
16692
16693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16694
16695# Handling of arguments.
16696for ac_config_target in $ac_config_targets
16697do
16698 case $ac_config_target in
16699 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16700 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16701 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b4c522fa
IB
16703 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16704 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16705 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16706 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
ac67752d
IB
16707 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16708 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16709 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b4c522fa 16710
22e05272 16711 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b4c522fa
IB
16712 esac
16713done
16714
16715
16716# If the user did not use the arguments to specify the items to instantiate,
16717# then the envvar interface is used. Set only those that are not.
16718# We use the long form for the default assignment because of an extremely
16719# bizarre bug on SunOS 4.1.3.
16720if $ac_need_defaults; then
16721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16724fi
16725
16726# Have a temporary directory for convenience. Make it in the build tree
16727# simply because there is no reason against having it here, and in addition,
16728# creating and moving files from /tmp can sometimes cause problems.
16729# Hook for its removal unless debugging.
16730# Note that there is a small window in which the directory will not be cleaned:
16731# after its creation but before its name has been assigned to `$tmp'.
16732$debug ||
16733{
22e05272 16734 tmp= ac_tmp=
b4c522fa 16735 trap 'exit_status=$?
22e05272
JM
16736 : "${ac_tmp:=$tmp}"
16737 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b4c522fa
IB
16738' 0
16739 trap 'as_fn_exit 1' 1 2 13 15
16740}
16741# Create a (secure) tmp directory for tmp files.
16742
16743{
16744 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16745 test -d "$tmp"
b4c522fa
IB
16746} ||
16747{
16748 tmp=./conf$$-$RANDOM
16749 (umask 077 && mkdir "$tmp")
22e05272
JM
16750} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16751ac_tmp=$tmp
b4c522fa
IB
16752
16753# Set up the scripts for CONFIG_FILES section.
16754# No need to generate them if there are no CONFIG_FILES.
16755# This happens for instance with `./config.status config.h'.
16756if test -n "$CONFIG_FILES"; then
16757
0b6e3127
RO
16758if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16759 ac_cs_awk_getline=:
16760 ac_cs_awk_pipe_init=
16761 ac_cs_awk_read_file='
16762 while ((getline aline < (F[key])) > 0)
16763 print(aline)
16764 close(F[key])'
16765 ac_cs_awk_pipe_fini=
16766else
16767 ac_cs_awk_getline=false
16768 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16769 ac_cs_awk_read_file='
16770 print "|#_!!_#|"
16771 print "cat " F[key] " &&"
16772 '$ac_cs_awk_pipe_init
16773 # The final `:' finishes the AND list.
16774 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16775fi
b4c522fa
IB
16776ac_cr=`echo X | tr X '\015'`
16777# On cygwin, bash can eat \r inside `` if the user requested igncr.
16778# But we know of no other shell where ac_cr would be empty at this
16779# point, so we can use a bashism as a fallback.
16780if test "x$ac_cr" = x; then
16781 eval ac_cr=\$\'\\r\'
16782fi
16783ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16784if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16785 ac_cs_awk_cr='\\r'
b4c522fa
IB
16786else
16787 ac_cs_awk_cr=$ac_cr
16788fi
16789
22e05272 16790echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b4c522fa
IB
16791_ACEOF
16792
0b6e3127
RO
16793# Create commands to substitute file output variables.
16794{
16795 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16796 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16797 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16798 echo "_ACAWK" &&
16799 echo "_ACEOF"
16800} >conf$$files.sh &&
16801. ./conf$$files.sh ||
16802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16803rm -f conf$$files.sh
b4c522fa
IB
16804
16805{
16806 echo "cat >conf$$subs.awk <<_ACEOF" &&
16807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16808 echo "_ACEOF"
16809} >conf$$subs.sh ||
22e05272
JM
16810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16811ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b4c522fa
IB
16812ac_delim='%!_!# '
16813for ac_last_try in false false false false false :; do
16814 . ./conf$$subs.sh ||
22e05272 16815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16816
16817 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16818 if test $ac_delim_n = $ac_delim_num; then
16819 break
16820 elif $ac_last_try; then
22e05272 16821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16822 else
16823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16824 fi
16825done
16826rm -f conf$$subs.sh
16827
16828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16829cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b4c522fa
IB
16830_ACEOF
16831sed -n '
16832h
16833s/^/S["/; s/!.*/"]=/
16834p
16835g
16836s/^[^!]*!//
16837:repl
16838t repl
16839s/'"$ac_delim"'$//
16840t delim
16841:nl
16842h
22e05272 16843s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16844t more1
16845s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16846p
16847n
16848b repl
16849:more1
16850s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16851p
16852g
16853s/.\{148\}//
16854t nl
16855:delim
16856h
22e05272 16857s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16858t more2
16859s/["\\]/\\&/g; s/^/"/; s/$/"/
16860p
16861b
16862:more2
16863s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16864p
16865g
16866s/.\{148\}//
16867t delim
16868' <conf$$subs.awk | sed '
16869/^[^""]/{
16870 N
16871 s/\n//
16872}
16873' >>$CONFIG_STATUS || ac_write_fail=1
16874rm -f conf$$subs.awk
16875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876_ACAWK
22e05272 16877cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b4c522fa
IB
16878 for (key in S) S_is_set[key] = 1
16879 FS = "\a"
0b6e3127 16880 \$ac_cs_awk_pipe_init
b4c522fa
IB
16881}
16882{
16883 line = $ 0
16884 nfields = split(line, field, "@")
16885 substed = 0
16886 len = length(field[1])
16887 for (i = 2; i < nfields; i++) {
16888 key = field[i]
16889 keylen = length(key)
16890 if (S_is_set[key]) {
16891 value = S[key]
16892 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16893 len += length(value) + length(field[++i])
16894 substed = 1
16895 } else
16896 len += 1 + keylen
16897 }
0b6e3127
RO
16898 if (nfields == 3 && !substed) {
16899 key = field[2]
16900 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16901 \$ac_cs_awk_read_file
16902 next
16903 }
16904 }
b4c522fa
IB
16905 print line
16906}
0b6e3127 16907\$ac_cs_awk_pipe_fini
b4c522fa
IB
16908_ACAWK
16909_ACEOF
16910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16911if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16912 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16913else
16914 cat
22e05272
JM
16915fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16916 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b4c522fa
IB
16917_ACEOF
16918
22e05272
JM
16919# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16920# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b4c522fa
IB
16921# trailing colons and then remove the whole line if VPATH becomes empty
16922# (actually we leave an empty line to preserve line numbers).
16923if test "x$srcdir" = x.; then
22e05272
JM
16924 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16925h
16926s///
16927s/^/:/
16928s/[ ]*$/:/
16929s/:\$(srcdir):/:/g
16930s/:\${srcdir}:/:/g
16931s/:@srcdir@:/:/g
16932s/^:*//
b4c522fa 16933s/:*$//
22e05272
JM
16934x
16935s/\(=[ ]*\).*/\1/
16936G
16937s/\n//
b4c522fa
IB
16938s/^[^=]*=[ ]*$//
16939}'
16940fi
16941
16942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16943fi # test -n "$CONFIG_FILES"
16944
16945# Set up the scripts for CONFIG_HEADERS section.
16946# No need to generate them if there are no CONFIG_HEADERS.
16947# This happens for instance with `./config.status Makefile'.
16948if test -n "$CONFIG_HEADERS"; then
22e05272 16949cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
b4c522fa
IB
16950BEGIN {
16951_ACEOF
16952
16953# Transform confdefs.h into an awk script `defines.awk', embedded as
16954# here-document in config.status, that substitutes the proper values into
16955# config.h.in to produce config.h.
16956
16957# Create a delimiter string that does not exist in confdefs.h, to ease
16958# handling of long lines.
16959ac_delim='%!_!# '
16960for ac_last_try in false false :; do
22e05272
JM
16961 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16962 if test -z "$ac_tt"; then
b4c522fa
IB
16963 break
16964 elif $ac_last_try; then
22e05272 16965 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b4c522fa
IB
16966 else
16967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16968 fi
16969done
16970
16971# For the awk script, D is an array of macro values keyed by name,
16972# likewise P contains macro parameters if any. Preserve backslash
16973# newline sequences.
16974
16975ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16976sed -n '
16977s/.\{148\}/&'"$ac_delim"'/g
16978t rset
16979:rset
16980s/^[ ]*#[ ]*define[ ][ ]*/ /
16981t def
16982d
16983:def
16984s/\\$//
16985t bsnl
16986s/["\\]/\\&/g
16987s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16988D["\1"]=" \3"/p
16989s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16990d
16991:bsnl
16992s/["\\]/\\&/g
16993s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16994D["\1"]=" \3\\\\\\n"\\/p
16995t cont
16996s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16997t cont
16998d
16999:cont
17000n
17001s/.\{148\}/&'"$ac_delim"'/g
17002t clear
17003:clear
17004s/\\$//
17005t bsnlc
17006s/["\\]/\\&/g; s/^/"/; s/$/"/p
17007d
17008:bsnlc
17009s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17010b cont
17011' <confdefs.h | sed '
17012s/'"$ac_delim"'/"\\\
17013"/g' >>$CONFIG_STATUS || ac_write_fail=1
17014
17015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016 for (key in D) D_is_set[key] = 1
17017 FS = "\a"
17018}
17019/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17020 line = \$ 0
17021 split(line, arg, " ")
17022 if (arg[1] == "#") {
17023 defundef = arg[2]
17024 mac1 = arg[3]
17025 } else {
17026 defundef = substr(arg[1], 2)
17027 mac1 = arg[2]
17028 }
17029 split(mac1, mac2, "(") #)
17030 macro = mac2[1]
17031 prefix = substr(line, 1, index(line, defundef) - 1)
17032 if (D_is_set[macro]) {
17033 # Preserve the white space surrounding the "#".
17034 print prefix "define", macro P[macro] D[macro]
17035 next
17036 } else {
17037 # Replace #undef with comments. This is necessary, for example,
17038 # in the case of _POSIX_SOURCE, which is predefined and required
17039 # on some systems where configure will not decide to define it.
17040 if (defundef == "undef") {
17041 print "/*", prefix defundef, macro, "*/"
17042 next
17043 }
17044 }
17045}
17046{ print }
17047_ACAWK
17048_ACEOF
17049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 17050 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
b4c522fa
IB
17051fi # test -n "$CONFIG_HEADERS"
17052
17053
17054eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17055shift
17056for ac_tag
17057do
17058 case $ac_tag in
17059 :[FHLC]) ac_mode=$ac_tag; continue;;
17060 esac
17061 case $ac_mode$ac_tag in
17062 :[FHL]*:*);;
22e05272 17063 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b4c522fa
IB
17064 :[FH]-) ac_tag=-:-;;
17065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17066 esac
17067 ac_save_IFS=$IFS
17068 IFS=:
17069 set x $ac_tag
17070 IFS=$ac_save_IFS
17071 shift
17072 ac_file=$1
17073 shift
17074
17075 case $ac_mode in
17076 :L) ac_source=$1;;
17077 :[FH])
17078 ac_file_inputs=
17079 for ac_f
17080 do
17081 case $ac_f in
22e05272 17082 -) ac_f="$ac_tmp/stdin";;
b4c522fa
IB
17083 *) # Look for the file first in the build tree, then in the source tree
17084 # (if the path is not absolute). The absolute path cannot be DOS-style,
17085 # because $ac_f cannot contain `:'.
17086 test -f "$ac_f" ||
17087 case $ac_f in
17088 [\\/$]*) false;;
17089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17090 esac ||
22e05272 17091 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b4c522fa
IB
17092 esac
17093 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17094 as_fn_append ac_file_inputs " '$ac_f'"
17095 done
17096
17097 # Let's still pretend it is `configure' which instantiates (i.e., don't
17098 # use $as_me), people would be surprised to read:
17099 # /* config.h. Generated by config.status. */
17100 configure_input='Generated from '`
17101 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17102 `' by configure.'
17103 if test x"$ac_file" != x-; then
17104 configure_input="$ac_file. $configure_input"
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17106$as_echo "$as_me: creating $ac_file" >&6;}
17107 fi
17108 # Neutralize special characters interpreted by sed in replacement strings.
17109 case $configure_input in #(
17110 *\&* | *\|* | *\\* )
17111 ac_sed_conf_input=`$as_echo "$configure_input" |
17112 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17113 *) ac_sed_conf_input=$configure_input;;
17114 esac
17115
17116 case $ac_tag in
22e05272
JM
17117 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b4c522fa
IB
17119 esac
17120 ;;
17121 esac
17122
17123 ac_dir=`$as_dirname -- "$ac_file" ||
17124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125 X"$ac_file" : 'X\(//\)[^/]' \| \
17126 X"$ac_file" : 'X\(//\)$' \| \
17127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17128$as_echo X"$ac_file" |
17129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17130 s//\1/
17131 q
17132 }
17133 /^X\(\/\/\)[^/].*/{
17134 s//\1/
17135 q
17136 }
17137 /^X\(\/\/\)$/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\).*/{
17142 s//\1/
17143 q
17144 }
17145 s/.*/./; q'`
17146 as_dir="$ac_dir"; as_fn_mkdir_p
17147 ac_builddir=.
17148
17149case "$ac_dir" in
17150.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17151*)
17152 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17153 # A ".." for each directory in $ac_dir_suffix.
17154 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17155 case $ac_top_builddir_sub in
17156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17158 esac ;;
17159esac
17160ac_abs_top_builddir=$ac_pwd
17161ac_abs_builddir=$ac_pwd$ac_dir_suffix
17162# for backward compatibility:
17163ac_top_builddir=$ac_top_build_prefix
17164
17165case $srcdir in
17166 .) # We are building in place.
17167 ac_srcdir=.
17168 ac_top_srcdir=$ac_top_builddir_sub
17169 ac_abs_top_srcdir=$ac_pwd ;;
17170 [\\/]* | ?:[\\/]* ) # Absolute name.
17171 ac_srcdir=$srcdir$ac_dir_suffix;
17172 ac_top_srcdir=$srcdir
17173 ac_abs_top_srcdir=$srcdir ;;
17174 *) # Relative name.
17175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17176 ac_top_srcdir=$ac_top_build_prefix$srcdir
17177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17178esac
17179ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17180
17181
17182 case $ac_mode in
17183 :F)
17184 #
17185 # CONFIG_FILE
17186 #
17187
17188 case $INSTALL in
17189 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17190 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17191 esac
17192 ac_MKDIR_P=$MKDIR_P
17193 case $MKDIR_P in
17194 [\\/$]* | ?:[\\/]* ) ;;
17195 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17196 esac
17197_ACEOF
17198
17199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200# If the template does not know about datarootdir, expand it.
17201# FIXME: This hack should be removed a few years after 2.60.
17202ac_datarootdir_hack=; ac_datarootdir_seen=
17203ac_sed_dataroot='
17204/datarootdir/ {
17205 p
17206 q
17207}
17208/@datadir@/p
17209/@docdir@/p
17210/@infodir@/p
17211/@localedir@/p
17212/@mandir@/p'
17213case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17214*datarootdir*) ac_datarootdir_seen=yes;;
17215*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17217$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17218_ACEOF
17219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220 ac_datarootdir_hack='
17221 s&@datadir@&$datadir&g
17222 s&@docdir@&$docdir&g
17223 s&@infodir@&$infodir&g
17224 s&@localedir@&$localedir&g
17225 s&@mandir@&$mandir&g
17226 s&\\\${datarootdir}&$datarootdir&g' ;;
17227esac
17228_ACEOF
17229
17230# Neutralize VPATH when `$srcdir' = `.'.
17231# Shell code in configure.ac might set extrasub.
17232# FIXME: do we really want to maintain this feature?
17233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17234ac_sed_extra="$ac_vpsub
17235$extrasub
17236_ACEOF
17237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238:t
17239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17240s|@configure_input@|$ac_sed_conf_input|;t t
17241s&@top_builddir@&$ac_top_builddir_sub&;t t
17242s&@top_build_prefix@&$ac_top_build_prefix&;t t
17243s&@srcdir@&$ac_srcdir&;t t
17244s&@abs_srcdir@&$ac_abs_srcdir&;t t
17245s&@top_srcdir@&$ac_top_srcdir&;t t
17246s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17247s&@builddir@&$ac_builddir&;t t
17248s&@abs_builddir@&$ac_abs_builddir&;t t
17249s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17250s&@INSTALL@&$ac_INSTALL&;t t
17251s&@MKDIR_P@&$ac_MKDIR_P&;t t
17252$ac_datarootdir_hack
17253"
0b6e3127
RO
17254eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17255if $ac_cs_awk_getline; then
17256 $AWK -f "$ac_tmp/subs.awk"
17257else
17258 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17259fi \
22e05272 17260 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17261
17262test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17263 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17265 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b4c522fa 17266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17267which seems to be undefined. Please make sure it is defined" >&5
b4c522fa 17268$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17269which seems to be undefined. Please make sure it is defined" >&2;}
b4c522fa 17270
22e05272 17271 rm -f "$ac_tmp/stdin"
b4c522fa 17272 case $ac_file in
22e05272
JM
17273 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17274 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b4c522fa 17275 esac \
22e05272 17276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17277 ;;
17278 :H)
17279 #
17280 # CONFIG_HEADER
17281 #
17282 if test x"$ac_file" != x-; then
17283 {
17284 $as_echo "/* $configure_input */" \
22e05272
JM
17285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17286 } >"$ac_tmp/config.h" \
17287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17288 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b4c522fa
IB
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17290$as_echo "$as_me: $ac_file is unchanged" >&6;}
17291 else
17292 rm -f "$ac_file"
22e05272
JM
17293 mv "$ac_tmp/config.h" "$ac_file" \
17294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17295 fi
17296 else
17297 $as_echo "/* $configure_input */" \
22e05272
JM
17298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17299 || as_fn_error $? "could not create -" "$LINENO" 5
b4c522fa
IB
17300 fi
17301# Compute "$ac_file"'s index in $config_headers.
17302_am_arg="$ac_file"
17303_am_stamp_count=1
17304for _am_header in $config_headers :; do
17305 case $_am_header in
17306 $_am_arg | $_am_arg:* )
17307 break ;;
17308 * )
17309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17310 esac
17311done
17312echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17313$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17314 X"$_am_arg" : 'X\(//\)[^/]' \| \
17315 X"$_am_arg" : 'X\(//\)$' \| \
17316 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17317$as_echo X"$_am_arg" |
17318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17319 s//\1/
17320 q
17321 }
17322 /^X\(\/\/\)[^/].*/{
17323 s//\1/
17324 q
17325 }
17326 /^X\(\/\/\)$/{
17327 s//\1/
17328 q
17329 }
17330 /^X\(\/\).*/{
17331 s//\1/
17332 q
17333 }
17334 s/.*/./; q'`/stamp-h$_am_stamp_count
17335 ;;
17336
17337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17338$as_echo "$as_me: executing $ac_file commands" >&6;}
17339 ;;
17340 esac
17341
17342
17343 case $ac_file$ac_mode in
17344 "default-1":C)
17345# Only add multilib support code if we just rebuilt the top-level
17346# Makefile.
17347case " $CONFIG_FILES " in
17348 *" Makefile "*)
17349 ac_file=Makefile . ${multi_basedir}/config-ml.in
17350 ;;
17351esac ;;
17352 "libtool":C)
17353
17354 # See if we are running on zsh, and set the options which allow our
17355 # commands through without removal of \ escapes.
17356 if test -n "${ZSH_VERSION+set}" ; then
17357 setopt NO_GLOB_SUBST
17358 fi
17359
17360 cfgfile="${ofile}T"
17361 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17362 $RM "$cfgfile"
17363
17364 cat <<_LT_EOF >> "$cfgfile"
17365#! $SHELL
17366
17367# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17368# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17370# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17371#
0b6e3127
RO
17372# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17373# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b4c522fa
IB
17374# Written by Gordon Matzigkeit, 1996
17375#
17376# This file is part of GNU Libtool.
17377#
17378# GNU Libtool is free software; you can redistribute it and/or
17379# modify it under the terms of the GNU General Public License as
17380# published by the Free Software Foundation; either version 2 of
17381# the License, or (at your option) any later version.
17382#
17383# As a special exception to the GNU General Public License,
17384# if you distribute this file as part of a program or library that
17385# is built using GNU Libtool, you may include this file under the
17386# same distribution terms that you use for the rest of that program.
17387#
17388# GNU Libtool is distributed in the hope that it will be useful,
17389# but WITHOUT ANY WARRANTY; without even the implied warranty of
17390# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17391# GNU General Public License for more details.
17392#
17393# You should have received a copy of the GNU General Public License
17394# along with GNU Libtool; see the file COPYING. If not, a copy
17395# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17396# obtained by writing to the Free Software Foundation, Inc.,
17397# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17398
17399
17400# The names of the tagged configurations supported by this script.
17401available_tags="D "
17402
17403# ### BEGIN LIBTOOL CONFIG
17404
17405# Which release of libtool.m4 was used?
17406macro_version=$macro_version
17407macro_revision=$macro_revision
17408
17409# Whether or not to build shared libraries.
17410build_libtool_libs=$enable_shared
17411
17412# Whether or not to build static libraries.
17413build_old_libs=$enable_static
17414
17415# What type of objects to build.
17416pic_mode=$pic_mode
17417
17418# Whether or not to optimize for fast installation.
17419fast_install=$enable_fast_install
17420
17421# Shell to use when invoking shell scripts.
17422SHELL=$lt_SHELL
17423
17424# An echo program that protects backslashes.
17425ECHO=$lt_ECHO
17426
17427# The host system.
17428host_alias=$host_alias
17429host=$host
17430host_os=$host_os
17431
17432# The build system.
17433build_alias=$build_alias
17434build=$build
17435build_os=$build_os
17436
17437# A sed program that does not truncate output.
17438SED=$lt_SED
17439
17440# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17441Xsed="\$SED -e 1s/^X//"
17442
17443# A grep program that handles long lines.
17444GREP=$lt_GREP
17445
17446# An ERE matcher.
17447EGREP=$lt_EGREP
17448
17449# A literal string matcher.
17450FGREP=$lt_FGREP
17451
17452# A BSD- or MS-compatible name lister.
17453NM=$lt_NM
17454
17455# Whether we need soft or hard links.
17456LN_S=$lt_LN_S
17457
17458# What is the maximum length of a command?
17459max_cmd_len=$max_cmd_len
17460
17461# Object file suffix (normally "o").
17462objext=$ac_objext
17463
17464# Executable file suffix (normally "").
17465exeext=$exeext
17466
17467# whether the shell understands "unset".
17468lt_unset=$lt_unset
17469
17470# turn spaces into newlines.
17471SP2NL=$lt_lt_SP2NL
17472
17473# turn newlines into spaces.
17474NL2SP=$lt_lt_NL2SP
17475
17476# An object symbol dumper.
17477OBJDUMP=$lt_OBJDUMP
17478
17479# Method to check whether dependent libraries are shared objects.
17480deplibs_check_method=$lt_deplibs_check_method
17481
17482# Command to use when deplibs_check_method == "file_magic".
17483file_magic_cmd=$lt_file_magic_cmd
17484
17485# The archiver.
17486AR=$lt_AR
17487AR_FLAGS=$lt_AR_FLAGS
17488
17489# A symbol stripping program.
17490STRIP=$lt_STRIP
17491
17492# Commands used to install an old-style archive.
17493RANLIB=$lt_RANLIB
17494old_postinstall_cmds=$lt_old_postinstall_cmds
17495old_postuninstall_cmds=$lt_old_postuninstall_cmds
17496
17497# Whether to use a lock for old archive extraction.
17498lock_old_archive_extraction=$lock_old_archive_extraction
17499
17500# A C compiler.
17501LTCC=$lt_CC
17502
17503# LTCC compiler flags.
17504LTCFLAGS=$lt_CFLAGS
17505
17506# Take the output of nm and produce a listing of raw symbols and C names.
17507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17508
17509# Transform the output of nm in a proper C declaration.
17510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17511
17512# Transform the output of nm in a C name address pair.
17513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17514
17515# Transform the output of nm in a C name address pair when lib prefix is needed.
17516global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17517
17518# The name of the directory that contains temporary libtool files.
17519objdir=$objdir
17520
17521# Used to examine libraries when file_magic_cmd begins with "file".
17522MAGIC_CMD=$MAGIC_CMD
17523
17524# Must we lock files when doing compilation?
17525need_locks=$lt_need_locks
17526
17527# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17528DSYMUTIL=$lt_DSYMUTIL
17529
17530# Tool to change global to local symbols on Mac OS X.
17531NMEDIT=$lt_NMEDIT
17532
17533# Tool to manipulate fat objects and archives on Mac OS X.
17534LIPO=$lt_LIPO
17535
17536# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17537OTOOL=$lt_OTOOL
17538
17539# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17540OTOOL64=$lt_OTOOL64
17541
17542# Old archive suffix (normally "a").
17543libext=$libext
17544
17545# Shared library suffix (normally ".so").
17546shrext_cmds=$lt_shrext_cmds
17547
17548# The commands to extract the exported symbol list from a shared archive.
17549extract_expsyms_cmds=$lt_extract_expsyms_cmds
17550
17551# Variables whose values should be saved in libtool wrapper scripts and
17552# restored at link time.
17553variables_saved_for_relink=$lt_variables_saved_for_relink
17554
17555# Do we need the "lib" prefix for modules?
17556need_lib_prefix=$need_lib_prefix
17557
17558# Do we need a version for libraries?
17559need_version=$need_version
17560
17561# Library versioning type.
17562version_type=$version_type
17563
17564# Shared library runtime path variable.
17565runpath_var=$runpath_var
17566
17567# Shared library path variable.
17568shlibpath_var=$shlibpath_var
17569
17570# Is shlibpath searched before the hard-coded library search path?
17571shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17572
17573# Format of library name prefix.
17574libname_spec=$lt_libname_spec
17575
17576# List of archive names. First name is the real one, the rest are links.
17577# The last name is the one that the linker finds with -lNAME
17578library_names_spec=$lt_library_names_spec
17579
17580# The coded name of the library, if different from the real name.
17581soname_spec=$lt_soname_spec
17582
17583# Permission mode override for installation of shared libraries.
17584install_override_mode=$lt_install_override_mode
17585
17586# Command to use after installation of a shared archive.
17587postinstall_cmds=$lt_postinstall_cmds
17588
17589# Command to use after uninstallation of a shared archive.
17590postuninstall_cmds=$lt_postuninstall_cmds
17591
17592# Commands used to finish a libtool library installation in a directory.
17593finish_cmds=$lt_finish_cmds
17594
17595# As "finish_cmds", except a single script fragment to be evaled but
17596# not shown.
17597finish_eval=$lt_finish_eval
17598
17599# Whether we should hardcode library paths into libraries.
17600hardcode_into_libs=$hardcode_into_libs
17601
17602# Compile-time system search path for libraries.
17603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17604
17605# Run-time system search path for libraries.
17606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17607
17608# Whether dlopen is supported.
17609dlopen_support=$enable_dlopen
17610
17611# Whether dlopen of programs is supported.
17612dlopen_self=$enable_dlopen_self
17613
17614# Whether dlopen of statically linked programs is supported.
17615dlopen_self_static=$enable_dlopen_self_static
17616
17617# Commands to strip libraries.
17618old_striplib=$lt_old_striplib
17619striplib=$lt_striplib
17620
17621
17622# The linker used to build libraries.
17623LD=$lt_LD
17624
17625# How to create reloadable object files.
17626reload_flag=$lt_reload_flag
17627reload_cmds=$lt_reload_cmds
17628
17629# Commands used to build an old-style archive.
17630old_archive_cmds=$lt_old_archive_cmds
17631
17632# A language specific compiler.
17633CC=$lt_compiler
17634
17635# Is the compiler the GNU compiler?
17636with_gcc=$GCC
17637
17638# Compiler flag to turn off builtin functions.
17639no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17640
17641# How to pass a linker flag through the compiler.
17642wl=$lt_lt_prog_compiler_wl
17643
17644# Additional compiler flags for building library objects.
17645pic_flag=$lt_lt_prog_compiler_pic
17646
17647# Compiler flag to prevent dynamic linking.
17648link_static_flag=$lt_lt_prog_compiler_static
17649
17650# Does compiler simultaneously support -c and -o options?
17651compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17652
17653# Whether or not to add -lc for building shared libraries.
17654build_libtool_need_lc=$archive_cmds_need_lc
17655
17656# Whether or not to disallow shared libs when runtime libs are static.
17657allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17658
17659# Compiler flag to allow reflexive dlopens.
17660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17661
17662# Compiler flag to generate shared objects directly from archives.
17663whole_archive_flag_spec=$lt_whole_archive_flag_spec
17664
17665# Whether the compiler copes with passing no objects directly.
17666compiler_needs_object=$lt_compiler_needs_object
17667
17668# Create an old-style archive from a shared archive.
17669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17670
17671# Create a temporary old-style archive to link instead of a shared archive.
17672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17673
17674# Commands used to build a shared archive.
17675archive_cmds=$lt_archive_cmds
17676archive_expsym_cmds=$lt_archive_expsym_cmds
17677
17678# Commands used to build a loadable module if different from building
17679# a shared archive.
17680module_cmds=$lt_module_cmds
17681module_expsym_cmds=$lt_module_expsym_cmds
17682
17683# Whether we are building with GNU ld or not.
17684with_gnu_ld=$lt_with_gnu_ld
17685
17686# Flag that allows shared libraries with undefined symbols to be built.
17687allow_undefined_flag=$lt_allow_undefined_flag
17688
17689# Flag that enforces no undefined symbols.
17690no_undefined_flag=$lt_no_undefined_flag
17691
17692# Flag to hardcode \$libdir into a binary during linking.
17693# This must work even if \$libdir does not exist
17694hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17695
17696# If ld is used when linking, flag to hardcode \$libdir into a binary
17697# during linking. This must work even if \$libdir does not exist.
17698hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17699
17700# Whether we need a single "-rpath" flag with a separated argument.
17701hardcode_libdir_separator=$lt_hardcode_libdir_separator
17702
17703# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17704# DIR into the resulting binary.
17705hardcode_direct=$hardcode_direct
17706
17707# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17708# DIR into the resulting binary and the resulting library dependency is
17709# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17710# library is relocated.
17711hardcode_direct_absolute=$hardcode_direct_absolute
17712
17713# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17714# into the resulting binary.
17715hardcode_minus_L=$hardcode_minus_L
17716
17717# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17718# into the resulting binary.
17719hardcode_shlibpath_var=$hardcode_shlibpath_var
17720
17721# Set to "yes" if building a shared library automatically hardcodes DIR
17722# into the library and all subsequent libraries and executables linked
17723# against it.
17724hardcode_automatic=$hardcode_automatic
17725
17726# Set to yes if linker adds runtime paths of dependent libraries
17727# to runtime path list.
17728inherit_rpath=$inherit_rpath
17729
17730# Whether libtool must link a program against all its dependency libraries.
17731link_all_deplibs=$link_all_deplibs
17732
17733# Fix the shell variable \$srcfile for the compiler.
17734fix_srcfile_path=$lt_fix_srcfile_path
17735
17736# Set to "yes" if exported symbols are required.
17737always_export_symbols=$always_export_symbols
17738
17739# The commands to list exported symbols.
17740export_symbols_cmds=$lt_export_symbols_cmds
17741
17742# Symbols that should not be listed in the preloaded symbols.
17743exclude_expsyms=$lt_exclude_expsyms
17744
17745# Symbols that must always be exported.
17746include_expsyms=$lt_include_expsyms
17747
17748# Commands necessary for linking programs (against libraries) with templates.
17749prelink_cmds=$lt_prelink_cmds
17750
17751# Specify filename containing input files.
17752file_list_spec=$lt_file_list_spec
17753
17754# How to hardcode a shared library path into an executable.
17755hardcode_action=$hardcode_action
17756
17757# ### END LIBTOOL CONFIG
17758
17759_LT_EOF
17760
17761 case $host_os in
17762 aix3*)
17763 cat <<\_LT_EOF >> "$cfgfile"
17764# AIX sometimes has problems with the GCC collect2 program. For some
17765# reason, if we set the COLLECT_NAMES environment variable, the problems
17766# vanish in a puff of smoke.
17767if test "X${COLLECT_NAMES+set}" != Xset; then
17768 COLLECT_NAMES=
17769 export COLLECT_NAMES
17770fi
17771_LT_EOF
17772 ;;
17773 esac
17774
17775
17776ltmain="$ac_aux_dir/ltmain.sh"
17777
17778
17779 # We use sed instead of cat because bash on DJGPP gets confused if
17780 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17781 # text mode, it properly converts lines to CR/LF. This bash problem
17782 # is reportedly fixed, but why not run on old versions too?
17783 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17784 || (rm -f "$cfgfile"; exit 1)
17785
17786 case $xsi_shell in
17787 yes)
17788 cat << \_LT_EOF >> "$cfgfile"
17789
17790# func_dirname file append nondir_replacement
17791# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17792# otherwise set result to NONDIR_REPLACEMENT.
17793func_dirname ()
17794{
17795 case ${1} in
17796 */*) func_dirname_result="${1%/*}${2}" ;;
17797 * ) func_dirname_result="${3}" ;;
17798 esac
17799}
17800
17801# func_basename file
17802func_basename ()
17803{
17804 func_basename_result="${1##*/}"
17805}
17806
17807# func_dirname_and_basename file append nondir_replacement
17808# perform func_basename and func_dirname in a single function
17809# call:
17810# dirname: Compute the dirname of FILE. If nonempty,
17811# add APPEND to the result, otherwise set result
17812# to NONDIR_REPLACEMENT.
17813# value returned in "$func_dirname_result"
17814# basename: Compute filename of FILE.
17815# value retuned in "$func_basename_result"
17816# Implementation must be kept synchronized with func_dirname
17817# and func_basename. For efficiency, we do not delegate to
17818# those functions but instead duplicate the functionality here.
17819func_dirname_and_basename ()
17820{
17821 case ${1} in
17822 */*) func_dirname_result="${1%/*}${2}" ;;
17823 * ) func_dirname_result="${3}" ;;
17824 esac
17825 func_basename_result="${1##*/}"
17826}
17827
17828# func_stripname prefix suffix name
17829# strip PREFIX and SUFFIX off of NAME.
17830# PREFIX and SUFFIX must not contain globbing or regex special
17831# characters, hashes, percent signs, but SUFFIX may contain a leading
17832# dot (in which case that matches only a dot).
17833func_stripname ()
17834{
17835 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17836 # positional parameters, so assign one to ordinary parameter first.
17837 func_stripname_result=${3}
17838 func_stripname_result=${func_stripname_result#"${1}"}
17839 func_stripname_result=${func_stripname_result%"${2}"}
17840}
17841
17842# func_opt_split
17843func_opt_split ()
17844{
17845 func_opt_split_opt=${1%%=*}
17846 func_opt_split_arg=${1#*=}
17847}
17848
17849# func_lo2o object
17850func_lo2o ()
17851{
17852 case ${1} in
17853 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17854 *) func_lo2o_result=${1} ;;
17855 esac
17856}
17857
17858# func_xform libobj-or-source
17859func_xform ()
17860{
17861 func_xform_result=${1%.*}.lo
17862}
17863
17864# func_arith arithmetic-term...
17865func_arith ()
17866{
17867 func_arith_result=$(( $* ))
17868}
17869
17870# func_len string
17871# STRING may not start with a hyphen.
17872func_len ()
17873{
17874 func_len_result=${#1}
17875}
17876
17877_LT_EOF
17878 ;;
17879 *) # Bourne compatible functions.
17880 cat << \_LT_EOF >> "$cfgfile"
17881
17882# func_dirname file append nondir_replacement
17883# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17884# otherwise set result to NONDIR_REPLACEMENT.
17885func_dirname ()
17886{
17887 # Extract subdirectory from the argument.
17888 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17889 if test "X$func_dirname_result" = "X${1}"; then
17890 func_dirname_result="${3}"
17891 else
17892 func_dirname_result="$func_dirname_result${2}"
17893 fi
17894}
17895
17896# func_basename file
17897func_basename ()
17898{
17899 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17900}
17901
17902
17903# func_stripname prefix suffix name
17904# strip PREFIX and SUFFIX off of NAME.
17905# PREFIX and SUFFIX must not contain globbing or regex special
17906# characters, hashes, percent signs, but SUFFIX may contain a leading
17907# dot (in which case that matches only a dot).
17908# func_strip_suffix prefix name
17909func_stripname ()
17910{
17911 case ${2} in
17912 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17913 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17914 esac
17915}
17916
17917# sed scripts:
17918my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17919my_sed_long_arg='1s/^-[^=]*=//'
17920
17921# func_opt_split
17922func_opt_split ()
17923{
17924 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17925 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17926}
17927
17928# func_lo2o object
17929func_lo2o ()
17930{
17931 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17932}
17933
17934# func_xform libobj-or-source
17935func_xform ()
17936{
17937 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17938}
17939
17940# func_arith arithmetic-term...
17941func_arith ()
17942{
17943 func_arith_result=`expr "$@"`
17944}
17945
17946# func_len string
17947# STRING may not start with a hyphen.
17948func_len ()
17949{
17950 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17951}
17952
17953_LT_EOF
17954esac
17955
17956case $lt_shell_append in
17957 yes)
17958 cat << \_LT_EOF >> "$cfgfile"
17959
17960# func_append var value
17961# Append VALUE to the end of shell variable VAR.
17962func_append ()
17963{
17964 eval "$1+=\$2"
17965}
17966_LT_EOF
17967 ;;
17968 *)
17969 cat << \_LT_EOF >> "$cfgfile"
17970
17971# func_append var value
17972# Append VALUE to the end of shell variable VAR.
17973func_append ()
17974{
17975 eval "$1=\$$1\$2"
17976}
17977
17978_LT_EOF
17979 ;;
17980 esac
17981
17982
17983 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17984 || (rm -f "$cfgfile"; exit 1)
17985
17986 mv -f "$cfgfile" "$ofile" ||
17987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17988 chmod +x "$ofile"
17989
17990
17991 cat <<_LT_EOF >> "$ofile"
17992
17993# ### BEGIN LIBTOOL TAG CONFIG: D
17994
17995# The linker used to build libraries.
17996LD=$lt_LD_D
17997
17998# How to create reloadable object files.
17999reload_flag=$lt_reload_flag_D
18000reload_cmds=$lt_reload_cmds_D
18001
18002# Commands used to build an old-style archive.
18003old_archive_cmds=$lt_old_archive_cmds_D
18004
18005# A language specific compiler.
18006CC=$lt_compiler_D
18007
18008# Is the compiler the GNU compiler?
18009with_gcc=$GCC_D
18010
18011# Compiler flag to turn off builtin functions.
18012no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18013
18014# How to pass a linker flag through the compiler.
18015wl=$lt_lt_prog_compiler_wl_D
18016
18017# Additional compiler flags for building library objects.
18018pic_flag=$lt_lt_prog_compiler_pic_D
18019
18020# Compiler flag to prevent dynamic linking.
18021link_static_flag=$lt_lt_prog_compiler_static_D
18022
18023# Does compiler simultaneously support -c and -o options?
18024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18025
18026# Whether or not to add -lc for building shared libraries.
18027build_libtool_need_lc=$archive_cmds_need_lc_D
18028
18029# Whether or not to disallow shared libs when runtime libs are static.
18030allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18031
18032# Compiler flag to allow reflexive dlopens.
18033export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18034
18035# Compiler flag to generate shared objects directly from archives.
18036whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18037
18038# Whether the compiler copes with passing no objects directly.
18039compiler_needs_object=$lt_compiler_needs_object_D
18040
18041# Create an old-style archive from a shared archive.
18042old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18043
18044# Create a temporary old-style archive to link instead of a shared archive.
18045old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18046
18047# Commands used to build a shared archive.
18048archive_cmds=$lt_archive_cmds_D
18049archive_expsym_cmds=$lt_archive_expsym_cmds_D
18050
18051# Commands used to build a loadable module if different from building
18052# a shared archive.
18053module_cmds=$lt_module_cmds_D
18054module_expsym_cmds=$lt_module_expsym_cmds_D
18055
18056# Whether we are building with GNU ld or not.
18057with_gnu_ld=$lt_with_gnu_ld_D
18058
18059# Flag that allows shared libraries with undefined symbols to be built.
18060allow_undefined_flag=$lt_allow_undefined_flag_D
18061
18062# Flag that enforces no undefined symbols.
18063no_undefined_flag=$lt_no_undefined_flag_D
18064
18065# Flag to hardcode \$libdir into a binary during linking.
18066# This must work even if \$libdir does not exist
18067hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18068
18069# If ld is used when linking, flag to hardcode \$libdir into a binary
18070# during linking. This must work even if \$libdir does not exist.
18071hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18072
18073# Whether we need a single "-rpath" flag with a separated argument.
18074hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18075
18076# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077# DIR into the resulting binary.
18078hardcode_direct=$hardcode_direct_D
18079
18080# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18081# DIR into the resulting binary and the resulting library dependency is
18082# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18083# library is relocated.
18084hardcode_direct_absolute=$hardcode_direct_absolute_D
18085
18086# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18087# into the resulting binary.
18088hardcode_minus_L=$hardcode_minus_L_D
18089
18090# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18091# into the resulting binary.
18092hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18093
18094# Set to "yes" if building a shared library automatically hardcodes DIR
18095# into the library and all subsequent libraries and executables linked
18096# against it.
18097hardcode_automatic=$hardcode_automatic_D
18098
18099# Set to yes if linker adds runtime paths of dependent libraries
18100# to runtime path list.
18101inherit_rpath=$inherit_rpath_D
18102
18103# Whether libtool must link a program against all its dependency libraries.
18104link_all_deplibs=$link_all_deplibs_D
18105
18106# Fix the shell variable \$srcfile for the compiler.
18107fix_srcfile_path=$lt_fix_srcfile_path_D
18108
18109# Set to "yes" if exported symbols are required.
18110always_export_symbols=$always_export_symbols_D
18111
18112# The commands to list exported symbols.
18113export_symbols_cmds=$lt_export_symbols_cmds_D
18114
18115# Symbols that should not be listed in the preloaded symbols.
18116exclude_expsyms=$lt_exclude_expsyms_D
18117
18118# Symbols that must always be exported.
18119include_expsyms=$lt_include_expsyms_D
18120
18121# Commands necessary for linking programs (against libraries) with templates.
18122prelink_cmds=$lt_prelink_cmds_D
18123
18124# Specify filename containing input files.
18125file_list_spec=$lt_file_list_spec_D
18126
18127# How to hardcode a shared library path into an executable.
18128hardcode_action=$hardcode_action_D
18129
18130# ### END LIBTOOL TAG CONFIG: D
18131_LT_EOF
18132
18133 ;;
18134 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
ac67752d
IB
18135 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18136s!`test -f '$<' || echo '$(srcdir)/'`!!
b4c522fa 18137_EOF
ac67752d
IB
18138 sed -f vpsed$$ $ac_file > tmp$$
18139 mv tmp$$ $ac_file
18140 rm vpsed$$
18141 echo 'MULTISUBDIR =' >> $ac_file
18142 ml_norecursion=yes
18143 . ${multi_basedir}/config-ml.in
18144 { ml_norecursion=; unset ml_norecursion;}
18145 ;;
18146 "src/Makefile":F) cat > vpsed$$ << \_EOF
18147s!`test -f '$<' || echo '$(srcdir)/'`!!
18148_EOF
18149 sed -f vpsed$$ $ac_file > tmp$$
18150 mv tmp$$ $ac_file
18151 rm vpsed$$
18152 echo 'MULTISUBDIR =' >> $ac_file
18153 ml_norecursion=yes
18154 . ${multi_basedir}/config-ml.in
18155 { ml_norecursion=; unset ml_norecursion;}
18156 ;;
18157 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18158s!`test -f '$<' || echo '$(srcdir)/'`!!
18159_EOF
18160 sed -f vpsed$$ $ac_file > tmp$$
18161 mv tmp$$ $ac_file
18162 rm vpsed$$
18163 echo 'MULTISUBDIR =' >> $ac_file
18164 ml_norecursion=yes
18165 . ${multi_basedir}/config-ml.in
18166 { ml_norecursion=; unset ml_norecursion;}
b4c522fa
IB
18167 ;;
18168
18169 esac
18170done # for ac_tag
18171
18172
18173as_fn_exit 0
18174_ACEOF
18175ac_clean_files=$ac_clean_files_save
18176
18177test $ac_write_fail = 0 ||
22e05272 18178 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
18179
18180
18181# configure is writing to config.log, and then calls config.status.
18182# config.status does its own redirection, appending to config.log.
18183# Unfortunately, on DOS this fails, as config.log is still kept open
18184# by configure, so config.status won't be able to write to it; its
18185# output is simply discarded. So we exec the FD to /dev/null,
18186# effectively closing config.log, so it can be properly (re)opened and
18187# appended to by config.status. When coming back to configure, we
18188# need to make the FD available again.
18189if test "$no_create" != yes; then
18190 ac_cs_success=:
18191 ac_config_status_args=
18192 test "$silent" = yes &&
18193 ac_config_status_args="$ac_config_status_args --quiet"
18194 exec 5>/dev/null
18195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18196 exec 5>>config.log
18197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18198 # would make configure fail if this is the last instruction.
22e05272 18199 $ac_cs_success || as_fn_exit 1
b4c522fa
IB
18200fi
18201if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18203$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18204fi
18205