]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
rs6000: Link with libc128.a for long-double-128.
[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
b4c522fa 637GDCFLAGSX
85041a5b 638libtool_VERSION
b4c522fa 639SPEC_PHOBOS_DEPS
bca0a321
RO
640ENABLE_LIBPHOBOS_FALSE
641ENABLE_LIBPHOBOS_TRUE
b4c522fa 642gdc_include_dir
ac67752d
IB
643libphobos_toolexeclibdir
644libphobos_toolexecdir
b4c522fa 645gcc_version
bb50312e 646LIBZ
b4c522fa
IB
647BACKTRACE_SUPPORTS_THREADS
648BACKTRACE_USES_MALLOC
649BACKTRACE_SUPPORTED
650LIBBACKTRACE
651LIBATOMIC
652DCFG_HAVE_LIBATOMIC
653DCFG_HAVE_64BIT_ATOMICS
654DCFG_HAVE_ATOMIC_BUILTINS
36d7f151 655DCFG_HAVE_QSORT_R
ba838aa6 656OS_LINK_SPEC
235d1c46 657DCFG_DLPI_TLS_MODID
0b6e3127
RO
658DRUNTIME_OS_MINFO_BRACKETING_FALSE
659DRUNTIME_OS_MINFO_BRACKETING_TRUE
b4c522fa
IB
660DCFG_MINFO_BRACKETING
661DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
662DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
663DCFG_ARM_EABI_UNWINDER
664DCFG_THREAD_MODEL
72c136c9
IB
665DRUNTIME_OS_POSIX_FALSE
666DRUNTIME_OS_POSIX_TRUE
b4c522fa
IB
667DRUNTIME_OS_SOLARIS_FALSE
668DRUNTIME_OS_SOLARIS_TRUE
669DRUNTIME_OS_MINGW_FALSE
670DRUNTIME_OS_MINGW_TRUE
671DRUNTIME_OS_LINUX_FALSE
672DRUNTIME_OS_LINUX_TRUE
673DRUNTIME_OS_OPENBSD_FALSE
674DRUNTIME_OS_OPENBSD_TRUE
675DRUNTIME_OS_NETBSD_FALSE
676DRUNTIME_OS_NETBSD_TRUE
677DRUNTIME_OS_FREEBSD_FALSE
678DRUNTIME_OS_FREEBSD_TRUE
679DRUNTIME_OS_DRAGONFLYBSD_FALSE
680DRUNTIME_OS_DRAGONFLYBSD_TRUE
681DRUNTIME_OS_DARWIN_FALSE
682DRUNTIME_OS_DARWIN_TRUE
683DRUNTIME_OS_ANDROID_FALSE
684DRUNTIME_OS_ANDROID_TRUE
685DRUNTIME_OS_AIX_FALSE
686DRUNTIME_OS_AIX_TRUE
88e508f9
RD
687DRUNTIME_CPU_S390_FALSE
688DRUNTIME_CPU_S390_TRUE
689DRUNTIME_CPU_SYSTEMZ_FALSE
690DRUNTIME_CPU_SYSTEMZ_TRUE
2493e718
IB
691DRUNTIME_CPU_X86_FALSE
692DRUNTIME_CPU_X86_TRUE
693DRUNTIME_CPU_POWERPC64_FALSE
694DRUNTIME_CPU_POWERPC64_TRUE
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
703DRUNTIME_GC_ENABLE_FALSE
704DRUNTIME_GC_ENABLE_TRUE
705libphobos_srcdir
706libphobos_builddir
707get_gcc_base_ver
708phobos_compiler_shared_flag
709phobos_compiler_pic_flag
b4c522fa
IB
710OTOOL64
711OTOOL
712LIPO
713NMEDIT
714DSYMUTIL
715OBJDUMP
716LN_S
717NM
718ac_ct_DUMPBIN
719DUMPBIN
720LD
721FGREP
b4c522fa
IB
722SED
723LIBTOOL
724CFLAGS_FOR_BUILD
725CC_FOR_BUILD
726AR
727RANLIB
728MAINT
729MAINTAINER_MODE_FALSE
730MAINTAINER_MODE_TRUE
731GDCFLAGS
732GDC
733CCASFLAGS
734CCAS
22e05272
JM
735AM_BACKSLASH
736AM_DEFAULT_VERBOSITY
737AM_DEFAULT_V
738AM_V
b4c522fa
IB
739am__untar
740am__tar
741AMTAR
742am__leading_dot
743SET_MAKE
744AWK
745mkdir_p
746MKDIR_P
747INSTALL_STRIP_PROGRAM
748STRIP
749install_sh
750MAKEINFO
751AUTOHEADER
752AUTOMAKE
753AUTOCONF
754ACLOCAL
755VERSION
756PACKAGE
757CYGPATH_W
758am__isrc
759INSTALL_DATA
760INSTALL_SCRIPT
761INSTALL_PROGRAM
235d1c46
RO
762EGREP
763GREP
764CPP
765OBJEXT
766EXEEXT
767ac_ct_CC
768CPPFLAGS
769LDFLAGS
770CFLAGS
771CC
b4c522fa
IB
772target_os
773target_vendor
774target_cpu
775target
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784multi_basedir
785target_alias
786host_alias
787build_alias
788LIBS
789ECHO_T
790ECHO_N
791ECHO_C
792DEFS
793mandir
794localedir
795libdir
796psdir
797pdfdir
798dvidir
799htmldir
800infodir
801docdir
802oldincludedir
803includedir
804localstatedir
805sharedstatedir
806sysconfdir
807datadir
808datarootdir
809libexecdir
810sbindir
811bindir
812program_transform_name
813prefix
814exec_prefix
815PACKAGE_URL
816PACKAGE_BUGREPORT
817PACKAGE_STRING
818PACKAGE_VERSION
819PACKAGE_TARNAME
820PACKAGE_NAME
821PATH_SEPARATOR
822SHELL'
0b6e3127 823ac_subst_files='DRTSTUFF_SPEC'
b4c522fa
IB
824ac_user_opts='
825enable_option_checking
826enable_multilib
22e05272 827enable_silent_rules
b4c522fa
IB
828enable_maintainer_mode
829enable_shared
830enable_static
831with_pic
832enable_fast_install
833with_gnu_ld
834enable_libtool_lock
835with_gcc_major_version_only
836enable_werror
837enable_druntime_gc
b4c522fa
IB
838enable_thread_lib
839with_libatomic
840with_libbacktrace
841with_target_system_zlib
842with_cross_host
ac67752d 843enable_version_specific_runtime_libs
e8e66971 844with_toolexeclibdir
bca0a321 845enable_libphobos
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
b4c522fa
IB
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-werror turns on -Werror [default=no]
1487 --enable-druntime-gc enable D runtime garbage collector (default: yes)
b4c522fa
IB
1488 --enable-thread-lib=<arg>
1489 specify linker option for the system thread library
1490 (default: autodetect)
ac67752d
IB
1491 --enable-version-specific-runtime-libs
1492 Specify that runtime libraries should be installed
1493 in a compiler-specific directory
bca0a321 1494 --enable-libphobos Enable libphobos
b4c522fa
IB
1495
1496Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-gcc-major-version-only
1503 use only GCC major number in filesystem paths
1504 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1505 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1506 auto)
bb50312e 1507 --with-target-system-zlib={yes,no,auto}
b4c522fa
IB
1508 use installed libz (default: no)
1509 --with-cross-host=HOST configuring with a cross compiler
e8e66971
MR
1510 --with-toolexeclibdir=DIR
1511 install libraries built with a cross compiler within
1512 DIR
b4c522fa
IB
1513
1514Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b4c522fa 1521 you have headers in a nonstandard directory <include dir>
235d1c46 1522 CPP C preprocessor
b4c522fa
IB
1523 CCAS assembler compiler command (defaults to CC)
1524 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1525 GDC D compiler command
1526 GDCFLAGS D compiler flags
b4c522fa
IB
1527
1528Use these variables to override the choices made by `configure' or to help
1529it to find libraries and programs with nonstandard names/locations.
1530
1531Report bugs to the package provider.
1532_ACEOF
1533ac_status=$?
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
1542 ac_builddir=.
1543
1544case "$ac_dir" in
1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546*)
1547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554esac
1555ac_abs_top_builddir=$ac_pwd
1556ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557# for backward compatibility:
1558ac_top_builddir=$ac_top_build_prefix
1559
1560case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573esac
1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593 cat <<\_ACEOF
1594package-unused configure version-unused
22e05272 1595generated by GNU Autoconf 2.69
b4c522fa 1596
0b6e3127 1597Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601 exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635else
1636 $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640fi
22e05272
JM
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
b4c522fa
IB
1643
1644} # ac_fn_c_try_compile
1645
235d1c46
RO
1646# ac_fn_c_try_cpp LINENO
1647# ----------------------
1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_cpp ()
b4c522fa
IB
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
b4c522fa
IB
1653case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
235d1c46 1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
b4c522fa
IB
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b4c522fa 1669 test ! -s conftest.err
235d1c46 1670 }; then :
b4c522fa
IB
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
235d1c46 1676 ac_retval=1
b4c522fa 1677fi
22e05272
JM
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
b4c522fa 1680
235d1c46 1681} # ac_fn_c_try_cpp
b4c522fa 1682
235d1c46
RO
1683# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1686# the include files in INCLUDES and setting the cache variable VAR
1687# accordingly.
1688ac_fn_c_check_header_mongrel ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if eval \${$3+:} false; then :
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696fi
1697eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699$as_echo "$ac_res" >&6; }
1700else
1701 # Is the header compilable?
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1703$as_echo_n "checking $2 usability... " >&6; }
1704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h. */
1706$4
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"; then :
1710 ac_header_compiler=yes
1711else
1712 ac_header_compiler=no
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1716$as_echo "$ac_header_compiler" >&6; }
1717
1718# Is the header present?
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1720$as_echo_n "checking $2 presence... " >&6; }
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_cpp "$LINENO"; then :
1726 ac_header_preproc=yes
1727else
1728 ac_header_preproc=no
1729fi
1730rm -f conftest.err conftest.i conftest.$ac_ext
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1732$as_echo "$ac_header_preproc" >&6; }
1733
1734# So? What about this header?
1735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 yes:no: )
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1738$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 ;;
1742 no:yes:* )
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1744$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1746$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1748$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1750$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753 ;;
1754esac
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759else
1760 eval "$3=\$ac_header_compiler"
1761fi
1762eval ac_res=\$$3
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765fi
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
1768} # ac_fn_c_check_header_mongrel
1769
1770# ac_fn_c_try_run LINENO
1771# ----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773# that executables *can* be run.
1774ac_fn_c_try_run ()
b4c522fa
IB
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b4c522fa
IB
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
235d1c46 1784 (eval "$ac_link") 2>&5
b4c522fa 1785 ac_status=$?
b4c522fa 1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1787 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788 { { case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_try") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; }; }; then :
b4c522fa
IB
1798 ac_retval=0
1799else
235d1c46
RO
1800 $as_echo "$as_me: program exited with status $ac_status" >&5
1801 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
235d1c46 1804 ac_retval=$ac_status
b4c522fa 1805fi
b4c522fa 1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
b4c522fa 1809
235d1c46 1810} # ac_fn_c_try_run
b4c522fa
IB
1811
1812# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1813# -------------------------------------------------------
1814# Tests whether HEADER exists and can be compiled using the include files in
1815# INCLUDES, setting the cache variable VAR accordingly.
1816ac_fn_c_check_header_compile ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
22e05272 1821if eval \${$3+:} false; then :
b4c522fa
IB
1822 $as_echo_n "(cached) " >&6
1823else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h. */
1826$4
1827#include <$2>
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830 eval "$3=yes"
1831else
1832 eval "$3=no"
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
22e05272 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1840
1841} # ac_fn_c_check_header_compile
1842
235d1c46
RO
1843# ac_fn_d_try_compile LINENO
1844# --------------------------
1845# Try to compile conftest.$ac_ext, and return whether this succeeded.
1846ac_fn_d_try_compile ()
b4c522fa
IB
1847{
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46
RO
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
b4c522fa
IB
1851case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
235d1c46 1857 (eval "$ac_compile") 2>conftest.err
b4c522fa
IB
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1865 test $ac_status = 0; } && {
1866 test -z "$ac_d_werror_flag" ||
b4c522fa 1867 test ! -s conftest.err
235d1c46 1868 } && test -s conftest.$ac_objext; then :
b4c522fa
IB
1869 ac_retval=0
1870else
1871 $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
235d1c46 1874 ac_retval=1
b4c522fa 1875fi
22e05272
JM
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
b4c522fa 1878
235d1c46 1879} # ac_fn_d_try_compile
b4c522fa 1880
235d1c46
RO
1881# ac_fn_c_try_link LINENO
1882# -----------------------
1883# Try to link conftest.$ac_ext, and return whether this succeeded.
1884ac_fn_c_try_link ()
b4c522fa
IB
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
235d1c46 1887 rm -f conftest.$ac_objext conftest$ac_exeext
b4c522fa
IB
1888 if { { ac_try="$ac_link"
1889case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
235d1c46 1895 (eval "$ac_link") 2>conftest.err
b4c522fa 1896 ac_status=$?
235d1c46
RO
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
b4c522fa 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
235d1c46
RO
1903 test $ac_status = 0; } && {
1904 test -z "$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1909 }; then :
b4c522fa
IB
1910 ac_retval=0
1911else
235d1c46 1912 $as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
235d1c46 1915 ac_retval=1
b4c522fa 1916fi
235d1c46
RO
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
b4c522fa 1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
b4c522fa 1924
235d1c46 1925} # ac_fn_c_try_link
b4c522fa
IB
1926
1927# ac_fn_c_check_func LINENO FUNC VAR
1928# ----------------------------------
1929# Tests whether FUNC exists, setting the cache variable VAR accordingly
1930ac_fn_c_check_func ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
22e05272 1935if eval \${$3+:} false; then :
b4c522fa
IB
1936 $as_echo_n "(cached) " >&6
1937else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942#define $2 innocuous_$2
1943
1944/* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1948
1949#ifdef __STDC__
1950# include <limits.h>
1951#else
1952# include <assert.h>
1953#endif
1954
1955#undef $2
1956
1957/* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960#ifdef __cplusplus
1961extern "C"
1962#endif
1963char $2 ();
1964/* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967#if defined __stub_$2 || defined __stub___$2
1968choke me
1969#endif
1970
1971int
1972main ()
1973{
1974return $2 ();
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981else
1982 eval "$3=no"
1983fi
1984rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1986fi
1987eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
22e05272 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1991
1992} # ac_fn_c_check_func
1993
235d1c46
RO
1994# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995# ----------------------------------------------------
1996# Tries to find if the field MEMBER exists in type AGGR, after including
1997# INCLUDES, setting cache variable VAR accordingly.
1998ac_fn_c_check_member ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002$as_echo_n "checking for $2.$3... " >&6; }
2003if eval \${$4+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$5
2009int
2010main ()
2011{
2012static $2 ac_aggr;
2013if (ac_aggr.$3)
2014return 0;
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$5
2025int
2026main ()
2027{
2028static $2 ac_aggr;
2029if (sizeof ac_aggr.$3)
2030return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037else
2038 eval "$4=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$4
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049} # ac_fn_c_check_member
2050
2051# ac_fn_d_try_link LINENO
2052# -----------------------
2053# Try to link conftest.$ac_ext, and return whether this succeeded.
b4c522fa
IB
2054ac_fn_d_try_link ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 rm -f conftest.$ac_objext conftest$ac_exeext
2058 if { { ac_try="$ac_link"
2059case "(($ac_try" in
2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061 *) ac_try_echo=$ac_try;;
2062esac
2063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064$as_echo "$ac_try_echo"; } >&5
2065 (eval "$ac_link") 2>conftest.err
2066 ac_status=$?
2067 if test -s conftest.err; then
2068 grep -v '^ *+' conftest.err >conftest.er1
2069 cat conftest.er1 >&5
2070 mv -f conftest.er1 conftest.err
2071 fi
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; } && {
2074 test -z "$ac_d_werror_flag" ||
2075 test ! -s conftest.err
2076 } && test -s conftest$ac_exeext && {
2077 test "$cross_compiling" = yes ||
22e05272 2078 test -x conftest$ac_exeext
b4c522fa
IB
2079 }; then :
2080 ac_retval=0
2081else
2082 $as_echo "$as_me: failed program was:" >&5
2083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 ac_retval=1
2086fi
2087 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2088 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2089 # interfere with the next link command; also delete a directory that is
2090 # left behind by Apple's compiler. We do this before executing the actions.
2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
b4c522fa
IB
2094
2095} # ac_fn_d_try_link
b4c522fa
IB
2096cat >config.log <<_ACEOF
2097This file contains any messages produced by compilers while
2098running configure, to aid debugging if configure makes a mistake.
2099
2100It was created by package-unused $as_me version-unused, which was
22e05272 2101generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
2102
2103 $ $0 $@
2104
2105_ACEOF
2106exec 5>>config.log
2107{
2108cat <<_ASUNAME
2109## --------- ##
2110## Platform. ##
2111## --------- ##
2112
2113hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118
2119/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121
2122/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2126/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129
2130_ASUNAME
2131
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 $as_echo "PATH: $as_dir"
2138 done
2139IFS=$as_save_IFS
2140
2141} >&5
2142
2143cat >&5 <<_ACEOF
2144
2145
2146## ----------- ##
2147## Core tests. ##
2148## ----------- ##
2149
2150_ACEOF
2151
2152
2153# Keep a trace of the command line.
2154# Strip out --no-create and --no-recursion so they do not pile up.
2155# Strip out --silent because we don't want to record it for future runs.
2156# Also quote any args containing shell meta-characters.
2157# Make two passes to allow for proper duplicate-argument suppression.
2158ac_configure_args=
2159ac_configure_args0=
2160ac_configure_args1=
2161ac_must_keep_next=false
2162for ac_pass in 1 2
2163do
2164 for ac_arg
2165 do
2166 case $ac_arg in
2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169 | -silent | --silent | --silen | --sile | --sil)
2170 continue ;;
2171 *\'*)
2172 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2173 esac
2174 case $ac_pass in
2175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2176 2)
2177 as_fn_append ac_configure_args1 " '$ac_arg'"
2178 if test $ac_must_keep_next = true; then
2179 ac_must_keep_next=false # Got value, back to normal.
2180 else
2181 case $ac_arg in
2182 *=* | --config-cache | -C | -disable-* | --disable-* \
2183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185 | -with-* | --with-* | -without-* | --without-* | --x)
2186 case "$ac_configure_args0 " in
2187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188 esac
2189 ;;
2190 -* ) ac_must_keep_next=true ;;
2191 esac
2192 fi
2193 as_fn_append ac_configure_args " '$ac_arg'"
2194 ;;
2195 esac
2196 done
2197done
2198{ ac_configure_args0=; unset ac_configure_args0;}
2199{ ac_configure_args1=; unset ac_configure_args1;}
2200
2201# When interrupted or exit'd, cleanup temporary files, and complete
2202# config.log. We remove comments because anyway the quotes in there
2203# would cause problems or look ugly.
2204# WARNING: Use '\'' to represent an apostrophe within the trap.
2205# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206trap 'exit_status=$?
2207 # Save into config.log some information that might help in debugging.
2208 {
2209 echo
2210
22e05272 2211 $as_echo "## ---------------- ##
b4c522fa 2212## Cache variables. ##
22e05272 2213## ---------------- ##"
b4c522fa
IB
2214 echo
2215 # The following way of writing the cache mishandles newlines in values,
2216(
2217 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in #(
2220 *${as_nl}*)
2221 case $ac_var in #(
2222 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2223$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224 esac
2225 case $ac_var in #(
2226 _ | IFS | as_nl) ;; #(
2227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2228 *) { eval $ac_var=; unset $ac_var;} ;;
2229 esac ;;
2230 esac
2231 done
2232 (set) 2>&1 |
2233 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2234 *${as_nl}ac_space=\ *)
2235 sed -n \
2236 "s/'\''/'\''\\\\'\'''\''/g;
2237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2238 ;; #(
2239 *)
2240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 ;;
2242 esac |
2243 sort
2244)
2245 echo
2246
22e05272 2247 $as_echo "## ----------------- ##
b4c522fa 2248## Output variables. ##
22e05272 2249## ----------------- ##"
b4c522fa
IB
2250 echo
2251 for ac_var in $ac_subst_vars
2252 do
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 $as_echo "$ac_var='\''$ac_val'\''"
2258 done | sort
2259 echo
2260
2261 if test -n "$ac_subst_files"; then
22e05272 2262 $as_echo "## ------------------- ##
b4c522fa 2263## File substitutions. ##
22e05272 2264## ------------------- ##"
b4c522fa
IB
2265 echo
2266 for ac_var in $ac_subst_files
2267 do
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2275 fi
2276
2277 if test -s confdefs.h; then
22e05272 2278 $as_echo "## ----------- ##
b4c522fa 2279## confdefs.h. ##
22e05272 2280## ----------- ##"
b4c522fa
IB
2281 echo
2282 cat confdefs.h
2283 echo
2284 fi
2285 test "$ac_signal" != 0 &&
2286 $as_echo "$as_me: caught signal $ac_signal"
2287 $as_echo "$as_me: exit $exit_status"
2288 } >&5
2289 rm -f core *.core core.conftest.* &&
2290 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2291 exit $exit_status
2292' 0
2293for ac_signal in 1 2 13 15; do
2294 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2295done
2296ac_signal=0
2297
2298# confdefs.h avoids OS command line length limits that DEFS can exceed.
2299rm -f -r conftest* confdefs.h
2300
2301$as_echo "/* confdefs.h */" > confdefs.h
2302
2303# Predefined preprocessor variables.
2304
2305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_NAME "$PACKAGE_NAME"
2307_ACEOF
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_VERSION "$PACKAGE_VERSION"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_STRING "$PACKAGE_STRING"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_URL "$PACKAGE_URL"
2327_ACEOF
2328
2329
2330# Let the site file select an alternate cache file if it wants to.
2331# Prefer an explicitly selected file to automatically selected ones.
2332ac_site_file1=NONE
2333ac_site_file2=NONE
2334if test -n "$CONFIG_SITE"; then
22e05272
JM
2335 # We do not want a PATH search for config.site.
2336 case $CONFIG_SITE in #((
2337 -*) ac_site_file1=./$CONFIG_SITE;;
2338 */*) ac_site_file1=$CONFIG_SITE;;
2339 *) ac_site_file1=./$CONFIG_SITE;;
2340 esac
b4c522fa
IB
2341elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2344else
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2347fi
2348for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349do
2350 test "x$ac_site_file" = xNONE && continue
22e05272 2351 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b4c522fa
IB
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2355 . "$ac_site_file" \
2356 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358as_fn_error $? "failed to load site script $ac_site_file
2359See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2360 fi
2361done
2362
2363if test -r "$cache_file"; then
22e05272
JM
2364 # Some versions of bash will fail to source /dev/null (special files
2365 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2366 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b4c522fa
IB
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368$as_echo "$as_me: loading cache $cache_file" >&6;}
2369 case $cache_file in
2370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
2372 esac
2373 fi
2374else
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376$as_echo "$as_me: creating cache $cache_file" >&6;}
2377 >$cache_file
2378fi
2379
2380# Check that the precious variables saved in the cache have kept the same
2381# value.
2382ac_cache_corrupted=false
2383for ac_var in $ac_precious_vars; do
2384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385 eval ac_new_set=\$ac_env_${ac_var}_set
2386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387 eval ac_new_val=\$ac_env_${ac_var}_value
2388 case $ac_old_set,$ac_new_set in
2389 set,)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2391$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,set)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2395$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,);;
2398 *)
2399 if test "x$ac_old_val" != "x$ac_new_val"; then
2400 # differences in whitespace do not lead to failure.
2401 ac_old_val_w=`echo x $ac_old_val`
2402 ac_new_val_w=`echo x $ac_new_val`
2403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2405$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406 ac_cache_corrupted=:
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2409$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410 eval $ac_var=\$ac_old_val
2411 fi
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2413$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2415$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2416 fi;;
2417 esac
2418 # Pass precious variables to config.status.
2419 if test "$ac_new_set" = set; then
2420 case $ac_new_val in
2421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 *) ac_arg=$ac_var=$ac_new_val ;;
2423 esac
2424 case " $ac_configure_args " in
2425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2427 esac
2428 fi
2429done
2430if $ac_cache_corrupted; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2434$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2435 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b4c522fa
IB
2436fi
2437## -------------------- ##
2438## Main body of script. ##
2439## -------------------- ##
2440
2441ac_ext=c
2442ac_cpp='$CPP $CPPFLAGS'
2443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
2447
2448
2449
2450
2451
2452ac_config_headers="$ac_config_headers config.h"
2453
2454
2455# Default to --enable-multilib
2456# Check whether --enable-multilib was given.
2457if test "${enable_multilib+set}" = set; then :
2458 enableval=$enable_multilib; case "$enableval" in
2459 yes) multilib=yes ;;
2460 no) multilib=no ;;
22e05272 2461 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
b4c522fa
IB
2462 esac
2463else
2464 multilib=yes
2465fi
2466
2467
2468# We may get other options which we leave undocumented:
2469# --with-target-subdir, --with-multisrctop, --with-multisubdir
2470# See config-ml.in if you want the gory details.
2471
2472if test "$srcdir" = "."; then
2473 if test "$with_target_subdir" != "."; then
2474 multi_basedir="$srcdir/$with_multisrctop../.."
2475 else
2476 multi_basedir="$srcdir/$with_multisrctop.."
2477 fi
2478else
2479 multi_basedir="$srcdir/.."
2480fi
2481
2482
2483# Even if the default multilib is not a cross compilation,
2484# it may be that some of the other multilibs are.
2485if test $cross_compiling = no && test $multilib = yes \
2486 && test "x${with_multisubdir}" != x ; then
2487 cross_compiling=maybe
2488fi
2489
2490ac_config_commands="$ac_config_commands default-1"
2491
2492ac_aux_dir=
2493for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2494 if test -f "$ac_dir/install-sh"; then
2495 ac_aux_dir=$ac_dir
2496 ac_install_sh="$ac_aux_dir/install-sh -c"
2497 break
2498 elif 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/shtool"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/shtool install -c"
2505 break
2506 fi
b4c522fa
IB
2507done
2508if test -z "$ac_aux_dir"; then
22e05272 2509 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b4c522fa
IB
2510fi
2511
2512# These three variables are undocumented and unsupported,
2513# and are intended to be withdrawn in a future Autoconf release.
2514# They can cause serious problems if a builder's source tree is in a directory
2515# whose full name contains unusual characters.
2516ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2517ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2518ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2519
2520
2521# Make sure we can run config.sub.
2522$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2523 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b4c522fa
IB
2524
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2526$as_echo_n "checking build system type... " >&6; }
22e05272 2527if ${ac_cv_build+:} false; then :
b4c522fa
IB
2528 $as_echo_n "(cached) " >&6
2529else
2530 ac_build_alias=$build_alias
2531test "x$ac_build_alias" = x &&
2532 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2533test "x$ac_build_alias" = x &&
22e05272 2534 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b4c522fa 2535ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2536 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b4c522fa
IB
2537
2538fi
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2540$as_echo "$ac_cv_build" >&6; }
2541case $ac_cv_build in
2542*-*-*) ;;
22e05272 2543*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b4c522fa
IB
2544esac
2545build=$ac_cv_build
2546ac_save_IFS=$IFS; IFS='-'
2547set x $ac_cv_build
2548shift
2549build_cpu=$1
2550build_vendor=$2
2551shift; shift
2552# Remember, the first character of IFS is used to create $*,
2553# except with old shells:
2554build_os=$*
2555IFS=$ac_save_IFS
2556case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2557
2558
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2560$as_echo_n "checking host system type... " >&6; }
22e05272 2561if ${ac_cv_host+:} false; then :
b4c522fa
IB
2562 $as_echo_n "(cached) " >&6
2563else
2564 if test "x$host_alias" = x; then
2565 ac_cv_host=$ac_cv_build
2566else
2567 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b4c522fa
IB
2569fi
2570
2571fi
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2573$as_echo "$ac_cv_host" >&6; }
2574case $ac_cv_host in
2575*-*-*) ;;
22e05272 2576*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b4c522fa
IB
2577esac
2578host=$ac_cv_host
2579ac_save_IFS=$IFS; IFS='-'
2580set x $ac_cv_host
2581shift
2582host_cpu=$1
2583host_vendor=$2
2584shift; shift
2585# Remember, the first character of IFS is used to create $*,
2586# except with old shells:
2587host_os=$*
2588IFS=$ac_save_IFS
2589case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2590
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2593$as_echo_n "checking target system type... " >&6; }
22e05272 2594if ${ac_cv_target+:} false; then :
b4c522fa
IB
2595 $as_echo_n "(cached) " >&6
2596else
2597 if test "x$target_alias" = x; then
2598 ac_cv_target=$ac_cv_host
2599else
2600 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b4c522fa
IB
2602fi
2603
2604fi
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2606$as_echo "$ac_cv_target" >&6; }
2607case $ac_cv_target in
2608*-*-*) ;;
22e05272 2609*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b4c522fa
IB
2610esac
2611target=$ac_cv_target
2612ac_save_IFS=$IFS; IFS='-'
2613set x $ac_cv_target
2614shift
2615target_cpu=$1
2616target_vendor=$2
2617shift; shift
2618# Remember, the first character of IFS is used to create $*,
2619# except with old shells:
2620target_os=$*
2621IFS=$ac_save_IFS
2622case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2623
2624
2625# The aliases save the names the user supplied, while $host etc.
2626# will get canonicalized.
2627test -n "$target_alias" &&
2628 test "$program_prefix$program_suffix$program_transform_name" = \
2629 NONENONEs,x,x, &&
2630 program_prefix=${target_alias}-
2631
235d1c46
RO
2632# Expand $ac_aux_dir to an absolute path.
2633am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa 2634
235d1c46
RO
2635ac_ext=c
2636ac_cpp='$CPP $CPPFLAGS'
2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2642set dummy ${ac_tool_prefix}gcc; ac_word=$2
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644$as_echo_n "checking for $ac_word... " >&6; }
2645if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2646 $as_echo_n "(cached) " >&6
2647else
235d1c46
RO
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
2652for as_dir in $PATH
2653do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
235d1c46
RO
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662done
b4c522fa
IB
2663 done
2664IFS=$as_save_IFS
2665
b4c522fa 2666fi
b4c522fa 2667fi
235d1c46
RO
2668CC=$ac_cv_prog_CC
2669if test -n "$CC"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2671$as_echo "$CC" >&6; }
2672else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674$as_echo "no" >&6; }
2675fi
b4c522fa 2676
b4c522fa 2677
b4c522fa 2678fi
235d1c46
RO
2679if test -z "$ac_cv_prog_CC"; then
2680 ac_ct_CC=$CC
2681 # Extract the first word of "gcc", so it can be a program name with args.
2682set dummy gcc; ac_word=$2
b4c522fa
IB
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2685if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2686 $as_echo_n "(cached) " >&6
2687else
235d1c46
RO
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2698 ac_cv_prog_ac_ct_CC="gcc"
b4c522fa
IB
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703 done
2704IFS=$as_save_IFS
2705
2706fi
2707fi
235d1c46
RO
2708ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709if test -n "$ac_ct_CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2711$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
2712else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
235d1c46
RO
2717 if test "x$ac_ct_CC" = x; then
2718 CC=""
2719 else
2720 case $cross_compiling:$ac_tool_warned in
2721yes:)
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726 CC=$ac_ct_CC
2727 fi
2728else
2729 CC="$ac_cv_prog_CC"
b4c522fa 2730fi
235d1c46
RO
2731
2732if test -z "$CC"; then
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2735set dummy ${ac_tool_prefix}cc; ac_word=$2
b4c522fa
IB
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2738if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2739 $as_echo_n "(cached) " >&6
2740else
235d1c46
RO
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2751 ac_cv_prog_CC="${ac_tool_prefix}cc"
b4c522fa
IB
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756 done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
235d1c46
RO
2761CC=$ac_cv_prog_CC
2762if test -n "$CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764$as_echo "$CC" >&6; }
b4c522fa
IB
2765else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
b4c522fa 2770
b4c522fa
IB
2771 fi
2772fi
235d1c46
RO
2773if test -z "$CC"; then
2774 # Extract the first word of "cc", so it can be a program name with args.
2775set dummy cc; ac_word=$2
b4c522fa
IB
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 2778if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2779 $as_echo_n "(cached) " >&6
2780else
235d1c46
RO
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa 2783else
235d1c46 2784 ac_prog_rejected=no
b4c522fa
IB
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46
RO
2792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2793 ac_prog_rejected=yes
2794 continue
2795 fi
2796 ac_cv_prog_CC="cc"
b4c522fa
IB
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800done
2801 done
2802IFS=$as_save_IFS
2803
235d1c46
RO
2804if test $ac_prog_rejected = yes; then
2805 # We found a bogon in the path, so make sure we never use it.
2806 set dummy $ac_cv_prog_CC
2807 shift
2808 if test $# != 0; then
2809 # We chose a different compiler from the bogus one.
2810 # However, it has the same basename, so the bogon will be chosen
2811 # first if we set CC to just the basename; use the full file name.
2812 shift
2813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2814 fi
b4c522fa
IB
2815fi
2816fi
235d1c46
RO
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821$as_echo "$CC" >&6; }
b4c522fa
IB
2822else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
b4c522fa
IB
2825fi
2826
2827
22e05272 2828fi
235d1c46
RO
2829if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 for ac_prog in cl.exe
2832 do
2833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4c522fa
IB
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2837if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
2838 $as_echo_n "(cached) " >&6
2839else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855 done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860CC=$ac_cv_prog_CC
2861if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863$as_echo "$CC" >&6; }
2864else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
235d1c46
RO
2870 test -n "$CC" && break
2871 done
b4c522fa 2872fi
235d1c46 2873if test -z "$CC"; then
b4c522fa 2874 ac_ct_CC=$CC
235d1c46
RO
2875 for ac_prog in cl.exe
2876do
2877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2878set dummy $ac_prog; ac_word=$2
b4c522fa
IB
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2881if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
2882 $as_echo_n "(cached) " >&6
2883else
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 2894 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898done
2899 done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907$as_echo "$ac_ct_CC" >&6; }
2908else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
235d1c46
RO
2912
2913
2914 test -n "$ac_ct_CC" && break
2915done
b4c522fa
IB
2916
2917 if test "x$ac_ct_CC" = x; then
2918 CC=""
2919 else
2920 case $cross_compiling:$ac_tool_warned in
2921yes:)
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924ac_tool_warned=yes ;;
2925esac
2926 CC=$ac_ct_CC
2927 fi
2928fi
2929
2930fi
2931
2932
2933test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2935as_fn_error $? "no acceptable C compiler found in \$PATH
2936See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2937
2938# Provide some information about the compiler.
2939$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2940set X $ac_compile
2941ac_compiler=$2
2942for ac_option in --version -v -V -qversion; do
2943 { { ac_try="$ac_compiler $ac_option >&5"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949$as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2951 ac_status=$?
2952 if test -s conftest.err; then
2953 sed '10a\
2954... rest of stderr output deleted ...
2955 10q' conftest.err >conftest.er1
2956 cat conftest.er1 >&5
b4c522fa 2957 fi
22e05272 2958 rm -f conftest.er1 conftest.err
b4c522fa
IB
2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960 test $ac_status = 0; }
2961done
2962
2963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h. */
2965
2966int
2967main ()
2968{
2969
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974ac_clean_files_save=$ac_clean_files
22e05272 2975ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b4c522fa
IB
2976# Try to create an executable without -o first, disregard a.out.
2977# It will help us diagnose broken compilers, and finding out an intuition
2978# of exeext.
22e05272
JM
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2980$as_echo_n "checking whether the C compiler works... " >&6; }
b4c522fa
IB
2981ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982
2983# The possible output files:
2984ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2985
2986ac_rmfiles=
2987for ac_file in $ac_files
2988do
2989 case $ac_file in
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2991 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2992 esac
2993done
2994rm -f $ac_rmfiles
2995
2996if { { ac_try="$ac_link_default"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002$as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_link_default") 2>&5
3004 ac_status=$?
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }; then :
3007 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3008# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3009# in a Makefile. We should not override ac_cv_exeext if it was cached,
3010# so that the user can short-circuit this test for compilers unknown to
3011# Autoconf.
3012for ac_file in $ac_files ''
3013do
3014 test -f "$ac_file" || continue
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3017 ;;
3018 [ab].out )
3019 # We found the default executable, but exeext='' is most
3020 # certainly right.
3021 break;;
3022 *.* )
3023 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3024 then :; else
3025 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 fi
3027 # We set ac_cv_exeext here because the later test for it is not
3028 # safe: cross compilers may not add the suffix if given an `-o'
3029 # argument, so we may need to know it at that point already.
3030 # Even if this section looks crufty: it has the advantage of
3031 # actually working.
3032 break;;
3033 * )
3034 break;;
3035 esac
3036done
3037test "$ac_cv_exeext" = no && ac_cv_exeext=
3038
3039else
3040 ac_file=''
3041fi
b4c522fa 3042if test -z "$ac_file"; then :
22e05272
JM
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045$as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3050as_fn_error 77 "C compiler cannot create executables
3051See \`config.log' for more details" "$LINENO" 5; }
3052else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
b4c522fa 3055fi
22e05272
JM
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3057$as_echo_n "checking for C compiler default output file name... " >&6; }
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3059$as_echo "$ac_file" >&6; }
b4c522fa
IB
3060ac_exeext=$ac_cv_exeext
3061
22e05272 3062rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b4c522fa 3063ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3065$as_echo_n "checking for suffix of executables... " >&6; }
3066if { { ac_try="$ac_link"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_link") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }; then :
3077 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3078# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3079# work properly (i.e., refer to `conftest.exe'), while it won't with
3080# `rm'.
3081for ac_file in conftest.exe conftest conftest.*; do
3082 test -f "$ac_file" || continue
3083 case $ac_file in
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 break;;
3087 * ) break;;
3088 esac
3089done
3090else
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3093as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3094See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 3095fi
22e05272 3096rm -f conftest conftest$ac_cv_exeext
b4c522fa
IB
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3098$as_echo "$ac_cv_exeext" >&6; }
3099
3100rm -f conftest.$ac_ext
3101EXEEXT=$ac_cv_exeext
3102ac_exeext=$EXEEXT
22e05272
JM
3103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h. */
3105#include <stdio.h>
3106int
3107main ()
3108{
3109FILE *f = fopen ("conftest.out", "w");
3110 return ferror (f) || fclose (f) != 0;
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116ac_clean_files="$ac_clean_files conftest.out"
3117# Check that the compiler produces executables we can run. If not, either
3118# the compiler is broken, or we cross compile.
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3120$as_echo_n "checking whether we are cross compiling... " >&6; }
3121if test "$cross_compiling" != yes; then
3122 { { ac_try="$ac_link"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128$as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_link") 2>&5
3130 ac_status=$?
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }
3133 if { ac_try='./conftest$ac_cv_exeext'
3134 { { case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_try") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; }; then
3144 cross_compiling=no
3145 else
3146 if test "$cross_compiling" = maybe; then
3147 cross_compiling=yes
3148 else
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error $? "cannot run C compiled programs.
3152If you meant to cross compile, use \`--host'.
3153See \`config.log' for more details" "$LINENO" 5; }
3154 fi
3155 fi
3156fi
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3158$as_echo "$cross_compiling" >&6; }
3159
3160rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3161ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3163$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3164if ${ac_cv_objext+:} false; then :
b4c522fa
IB
3165 $as_echo_n "(cached) " >&6
3166else
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h. */
3169
3170int
3171main ()
3172{
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178rm -f conftest.o conftest.obj
3179if { { ac_try="$ac_compile"
3180case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_compile") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; then :
3190 for ac_file in conftest.o conftest.obj conftest.*; do
3191 test -f "$ac_file" || continue;
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3194 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3195 break;;
3196 esac
3197done
3198else
3199 $as_echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3204as_fn_error $? "cannot compute suffix of object files: cannot compile
3205See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3206fi
3207rm -f conftest.$ac_cv_objext conftest.$ac_ext
3208fi
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3210$as_echo "$ac_cv_objext" >&6; }
3211OBJEXT=$ac_cv_objext
3212ac_objext=$OBJEXT
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3214$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3215if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
3216 $as_echo_n "(cached) " >&6
3217else
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224#ifndef __GNUC__
3225 choke me
3226#endif
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232if ac_fn_c_try_compile "$LINENO"; then :
3233 ac_compiler_gnu=yes
3234else
3235 ac_compiler_gnu=no
3236fi
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3242$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3243if test $ac_compiler_gnu = yes; then
3244 GCC=yes
3245else
3246 GCC=
3247fi
3248ac_test_CFLAGS=${CFLAGS+set}
3249ac_save_CFLAGS=$CFLAGS
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3251$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3252if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
3253 $as_echo_n "(cached) " >&6
3254else
3255 ac_save_c_werror_flag=$ac_c_werror_flag
3256 ac_c_werror_flag=yes
3257 ac_cv_prog_cc_g=no
3258 CFLAGS="-g"
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h. */
3261
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270if ac_fn_c_try_compile "$LINENO"; then :
3271 ac_cv_prog_cc_g=yes
3272else
3273 CFLAGS=""
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h. */
3276
3277int
3278main ()
3279{
3280
3281 ;
3282 return 0;
3283}
3284_ACEOF
3285if ac_fn_c_try_compile "$LINENO"; then :
3286
3287else
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3289 CFLAGS="-g"
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h. */
3292
3293int
3294main ()
3295{
3296
3297 ;
3298 return 0;
3299}
3300_ACEOF
3301if ac_fn_c_try_compile "$LINENO"; then :
3302 ac_cv_prog_cc_g=yes
3303fi
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3312$as_echo "$ac_cv_prog_cc_g" >&6; }
3313if test "$ac_test_CFLAGS" = set; then
3314 CFLAGS=$ac_save_CFLAGS
3315elif test $ac_cv_prog_cc_g = yes; then
3316 if test "$GCC" = yes; then
3317 CFLAGS="-g -O2"
3318 else
3319 CFLAGS="-g"
3320 fi
3321else
3322 if test "$GCC" = yes; then
3323 CFLAGS="-O2"
3324 else
3325 CFLAGS=
3326 fi
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3329$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3330if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
3331 $as_echo_n "(cached) " >&6
3332else
3333 ac_cv_prog_cc_c89=no
3334ac_save_CC=$CC
3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h. */
3337#include <stdarg.h>
3338#include <stdio.h>
22e05272 3339struct stat;
b4c522fa
IB
3340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3341struct buf { int x; };
3342FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343static char *e (p, i)
3344 char **p;
3345 int i;
3346{
3347 return p[i];
3348}
3349static char *f (char * (*g) (char **, int), char **p, ...)
3350{
3351 char *s;
3352 va_list v;
3353 va_start (v,p);
3354 s = g (p, va_arg (v,int));
3355 va_end (v);
3356 return s;
3357}
3358
3359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3360 function prototypes and stuff, but not '\xHH' hex character constants.
3361 These don't provoke an error unfortunately, instead are silently treated
3362 as 'x'. The following induces an error, until -std is added to get
3363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3364 array size at least. It's necessary to write '\x00'==0 to get something
3365 that's true only with -std. */
3366int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367
3368/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3369 inside strings and character constants. */
3370#define FOO(x) 'x'
3371int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372
3373int test (int i, double x);
3374struct s1 {int (*f) (int a);};
3375struct s2 {int (*f) (double a);};
3376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377int argc;
3378char **argv;
3379int
3380main ()
3381{
3382return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389do
3390 CC="$ac_save_CC $ac_arg"
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392 ac_cv_prog_cc_c89=$ac_arg
3393fi
3394rm -f core conftest.err conftest.$ac_objext
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
3396done
3397rm -f conftest.$ac_ext
3398CC=$ac_save_CC
3399
3400fi
3401# AC_CACHE_VAL
3402case "x$ac_cv_prog_cc_c89" in
3403 x)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3405$as_echo "none needed" >&6; } ;;
3406 xno)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3408$as_echo "unsupported" >&6; } ;;
3409 *)
3410 CC="$CC $ac_cv_prog_cc_c89"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3412$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3413esac
3414if test "x$ac_cv_prog_cc_c89" != xno; then :
3415
3416fi
3417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
22e05272
JM
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3430$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3431if ${am_cv_prog_cc_c_o+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433else
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h. */
3436
3437int
3438main ()
3439{
3440
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445 # Make sure it works both with $CC and with simple cc.
3446 # Following AC_PROG_CC_C_O, we do the test twice because some
3447 # compilers refuse to overwrite an existing .o file with -o,
3448 # though they will create one.
3449 am_cv_prog_cc_c_o=yes
3450 for am_i in 1 2; do
3451 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3452 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } \
3456 && test -f conftest2.$ac_objext; then
3457 : OK
3458 else
3459 am_cv_prog_cc_c_o=no
3460 break
3461 fi
3462 done
3463 rm -f core conftest*
3464 unset am_i
3465fi
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3467$as_echo "$am_cv_prog_cc_c_o" >&6; }
3468if test "$am_cv_prog_cc_c_o" != yes; then
3469 # Losing compiler, so override with the script.
3470 # FIXME: It is wrong to rewrite CC.
3471 # But if we don't then we get into trouble of one sort or another.
3472 # A longer-term fix would be to have automake use am__CC in this case,
3473 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3474 CC="$am_aux_dir/compile $CC"
3475fi
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482
b4c522fa
IB
3483
3484ac_ext=c
3485ac_cpp='$CPP $CPPFLAGS'
3486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488ac_compiler_gnu=$ac_cv_c_compiler_gnu
235d1c46
RO
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3490$as_echo_n "checking how to run the C preprocessor... " >&6; }
3491# On Suns, sometimes $CPP names a directory.
3492if test -n "$CPP" && test -d "$CPP"; then
3493 CPP=
3494fi
3495if test -z "$CPP"; then
3496 if ${ac_cv_prog_CPP+:} false; then :
b4c522fa
IB
3497 $as_echo_n "(cached) " >&6
3498else
235d1c46
RO
3499 # Double quotes because CPP needs to be expanded
3500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3501 do
3502 ac_preproc_ok=false
3503for ac_c_preproc_warn_flag in '' yes
b4c522fa 3504do
235d1c46
RO
3505 # Use a header file that comes with gcc, so configuring glibc
3506 # with a fresh cross-compiler works.
3507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508 # <limits.h> exists even on freestanding compilers.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h. */
3513#ifdef __STDC__
3514# include <limits.h>
3515#else
3516# include <assert.h>
3517#endif
3518 Syntax error
3519_ACEOF
3520if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3521
b4c522fa 3522else
235d1c46
RO
3523 # Broken: fails on valid input.
3524continue
b4c522fa 3525fi
235d1c46 3526rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3527
235d1c46
RO
3528 # OK, works on sane cases. Now check whether nonexistent headers
3529 # can be detected and how.
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
3532#include <ac_nonexistent.h>
3533_ACEOF
3534if ac_fn_c_try_cpp "$LINENO"; then :
3535 # Broken: success on invalid input.
3536continue
b4c522fa 3537else
235d1c46
RO
3538 # Passes both tests.
3539ac_preproc_ok=:
3540break
3541fi
3542rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3543
235d1c46
RO
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.i conftest.err conftest.$ac_ext
3547if $ac_preproc_ok; then :
3548 break
b4c522fa 3549fi
235d1c46
RO
3550
3551 done
3552 ac_cv_prog_CPP=$CPP
3553
b4c522fa 3554fi
235d1c46 3555 CPP=$ac_cv_prog_CPP
b4c522fa 3556else
235d1c46 3557 ac_cv_prog_CPP=$CPP
b4c522fa 3558fi
235d1c46
RO
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3560$as_echo "$CPP" >&6; }
3561ac_preproc_ok=false
3562for ac_c_preproc_warn_flag in '' yes
3563do
3564 # Use a header file that comes with gcc, so configuring glibc
3565 # with a fresh cross-compiler works.
3566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3567 # <limits.h> exists even on freestanding compilers.
3568 # On the NeXT, cc -E runs the code through the compiler's parser,
3569 # not just through cpp. "Syntax error" is here to catch this case.
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h. */
3572#ifdef __STDC__
3573# include <limits.h>
3574#else
3575# include <assert.h>
3576#endif
3577 Syntax error
3578_ACEOF
3579if ac_fn_c_try_cpp "$LINENO"; then :
b4c522fa 3580
b4c522fa 3581else
235d1c46
RO
3582 # Broken: fails on valid input.
3583continue
b4c522fa 3584fi
235d1c46 3585rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa 3586
235d1c46
RO
3587 # OK, works on sane cases. Now check whether nonexistent headers
3588 # can be detected and how.
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h. */
3591#include <ac_nonexistent.h>
3592_ACEOF
3593if ac_fn_c_try_cpp "$LINENO"; then :
3594 # Broken: success on invalid input.
3595continue
b4c522fa 3596else
235d1c46
RO
3597 # Passes both tests.
3598ac_preproc_ok=:
3599break
3600fi
3601rm -f conftest.err conftest.i conftest.$ac_ext
3602
b4c522fa 3603done
235d1c46
RO
3604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3605rm -f conftest.i conftest.err conftest.$ac_ext
3606if $ac_preproc_ok; then :
b4c522fa 3607
b4c522fa 3608else
235d1c46
RO
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3612See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3613fi
3614
235d1c46
RO
3615ac_ext=c
3616ac_cpp='$CPP $CPPFLAGS'
3617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa 3620
235d1c46
RO
3621
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3623$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3624if ${ac_cv_path_GREP+:} false; then :
b4c522fa
IB
3625 $as_echo_n "(cached) " >&6
3626else
235d1c46
RO
3627 if test -z "$GREP"; then
3628 ac_path_GREP_found=false
3629 # Loop through the user's path and test for each of PROGNAME-LIST
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
b4c522fa
IB
3632do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
235d1c46 3635 for ac_prog in grep ggrep; do
b4c522fa 3636 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3638 as_fn_executable_p "$ac_path_GREP" || continue
3639# Check for GNU ac_path_GREP and select it if it is found.
3640 # Check for GNU $ac_path_GREP
3641case `"$ac_path_GREP" --version 2>&1` in
3642*GNU*)
3643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3644*)
3645 ac_count=0
3646 $as_echo_n 0123456789 >"conftest.in"
3647 while :
3648 do
3649 cat "conftest.in" "conftest.in" >"conftest.tmp"
3650 mv "conftest.tmp" "conftest.in"
3651 cp "conftest.in" "conftest.nl"
3652 $as_echo 'GREP' >> "conftest.nl"
3653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3655 as_fn_arith $ac_count + 1 && ac_count=$as_val
3656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3657 # Best one so far, save it but keep looking for a better one
3658 ac_cv_path_GREP="$ac_path_GREP"
3659 ac_path_GREP_max=$ac_count
3660 fi
3661 # 10*(2^10) chars as input seems more than enough
3662 test $ac_count -gt 10 && break
b4c522fa 3663 done
235d1c46
RO
3664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665esac
b4c522fa 3666
235d1c46
RO
3667 $ac_path_GREP_found && break 3
3668 done
3669 done
3670 done
3671IFS=$as_save_IFS
3672 if test -z "$ac_cv_path_GREP"; then
3673 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3674 fi
b4c522fa 3675else
235d1c46 3676 ac_cv_path_GREP=$GREP
b4c522fa
IB
3677fi
3678
b4c522fa 3679fi
235d1c46
RO
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3681$as_echo "$ac_cv_path_GREP" >&6; }
3682 GREP="$ac_cv_path_GREP"
3683
3684
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3686$as_echo_n "checking for egrep... " >&6; }
3687if ${ac_cv_path_EGREP+:} false; then :
b4c522fa
IB
3688 $as_echo_n "(cached) " >&6
3689else
235d1c46
RO
3690 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3691 then ac_cv_path_EGREP="$GREP -E"
3692 else
3693 if test -z "$EGREP"; then
3694 ac_path_EGREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698do
b4c522fa
IB
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
235d1c46 3701 for ac_prog in egrep; do
b4c522fa 3702 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
3703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3704 as_fn_executable_p "$ac_path_EGREP" || continue
3705# Check for GNU ac_path_EGREP and select it if it is found.
3706 # Check for GNU $ac_path_EGREP
3707case `"$ac_path_EGREP" --version 2>&1` in
3708*GNU*)
3709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3710*)
3711 ac_count=0
3712 $as_echo_n 0123456789 >"conftest.in"
3713 while :
3714 do
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 $as_echo 'EGREP' >> "conftest.nl"
3719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721 as_fn_arith $ac_count + 1 && ac_count=$as_val
3722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_EGREP="$ac_path_EGREP"
3725 ac_path_EGREP_max=$ac_count
3726 fi
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
b4c522fa 3729 done
235d1c46
RO
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731esac
b4c522fa 3732
235d1c46
RO
3733 $ac_path_EGREP_found && break 3
3734 done
b4c522fa 3735 done
b4c522fa
IB
3736 done
3737IFS=$as_save_IFS
235d1c46
RO
3738 if test -z "$ac_cv_path_EGREP"; then
3739 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa 3740 fi
235d1c46
RO
3741else
3742 ac_cv_path_EGREP=$EGREP
b4c522fa
IB
3743fi
3744
235d1c46 3745 fi
b4c522fa 3746fi
235d1c46
RO
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3748$as_echo "$ac_cv_path_EGREP" >&6; }
3749 EGREP="$ac_cv_path_EGREP"
b4c522fa
IB
3750
3751
235d1c46
RO
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3753$as_echo_n "checking for ANSI C header files... " >&6; }
3754if ${ac_cv_header_stdc+:} false; then :
b4c522fa
IB
3755 $as_echo_n "(cached) " >&6
3756else
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h. */
235d1c46
RO
3759#include <stdlib.h>
3760#include <stdarg.h>
3761#include <string.h>
3762#include <float.h>
b4c522fa
IB
3763
3764int
3765main ()
3766{
b4c522fa
IB
3767
3768 ;
3769 return 0;
3770}
3771_ACEOF
3772if ac_fn_c_try_compile "$LINENO"; then :
235d1c46 3773 ac_cv_header_stdc=yes
b4c522fa 3774else
235d1c46 3775 ac_cv_header_stdc=no
b4c522fa
IB
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b4c522fa 3778
235d1c46
RO
3779if test $ac_cv_header_stdc = yes; then
3780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782/* end confdefs.h. */
3783#include <string.h>
3784
3785_ACEOF
3786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "memchr" >/dev/null 2>&1; then :
3788
b4c522fa 3789else
235d1c46 3790 ac_cv_header_stdc=no
b4c522fa 3791fi
235d1c46 3792rm -f conftest*
b4c522fa 3793
235d1c46
RO
3794fi
3795
3796if test $ac_cv_header_stdc = yes; then
3797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h. */
3800#include <stdlib.h>
b4c522fa 3801
b4c522fa 3802_ACEOF
235d1c46
RO
3803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3804 $EGREP "free" >/dev/null 2>&1; then :
3805
b4c522fa 3806else
235d1c46
RO
3807 ac_cv_header_stdc=no
3808fi
3809rm -f conftest*
3810
3811fi
3812
3813if test $ac_cv_header_stdc = yes; then
3814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3815 if test "$cross_compiling" = yes; then :
3816 :
3817else
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 3819/* end confdefs.h. */
235d1c46
RO
3820#include <ctype.h>
3821#include <stdlib.h>
3822#if ((' ' & 0x0FF) == 0x020)
3823# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3824# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3825#else
3826# define ISLOWER(c) \
3827 (('a' <= (c) && (c) <= 'i') \
3828 || ('j' <= (c) && (c) <= 'r') \
3829 || ('s' <= (c) && (c) <= 'z'))
3830# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3831#endif
b4c522fa 3832
235d1c46 3833#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b4c522fa
IB
3834int
3835main ()
3836{
235d1c46
RO
3837 int i;
3838 for (i = 0; i < 256; i++)
3839 if (XOR (islower (i), ISLOWER (i))
3840 || toupper (i) != TOUPPER (i))
3841 return 2;
b4c522fa
IB
3842 return 0;
3843}
3844_ACEOF
235d1c46 3845if ac_fn_c_try_run "$LINENO"; then :
b4c522fa
IB
3846
3847else
235d1c46 3848 ac_cv_header_stdc=no
b4c522fa 3849fi
235d1c46
RO
3850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3851 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa 3852fi
235d1c46 3853
b4c522fa 3854fi
b4c522fa 3855fi
235d1c46
RO
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3857$as_echo "$ac_cv_header_stdc" >&6; }
3858if test $ac_cv_header_stdc = yes; then
b4c522fa 3859
235d1c46 3860$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b4c522fa 3861
235d1c46 3862fi
b4c522fa 3863
235d1c46
RO
3864# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3865for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3866 inttypes.h stdint.h unistd.h
3867do :
3868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3869ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3870"
3871if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3872 cat >>confdefs.h <<_ACEOF
3873#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b4c522fa 3874_ACEOF
235d1c46 3875
b4c522fa 3876fi
235d1c46 3877
b4c522fa 3878done
b4c522fa 3879
b4c522fa 3880
235d1c46
RO
3881
3882 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3883if test "x$ac_cv_header_minix_config_h" = xyes; then :
3884 MINIX=yes
3885else
3886 MINIX=
b4c522fa
IB
3887fi
3888
b4c522fa 3889
235d1c46
RO
3890 if test "$MINIX" = yes; then
3891
3892$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3893
3894
3895$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3896
3897
3898$as_echo "#define _MINIX 1" >>confdefs.h
3899
3900 fi
3901
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3904$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3905if ${ac_cv_safe_to_define___extensions__+:} false; then :
22e05272
JM
3906 $as_echo_n "(cached) " >&6
3907else
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910
235d1c46
RO
3911# define __EXTENSIONS__ 1
3912 $ac_includes_default
22e05272
JM
3913int
3914main ()
3915{
3916
3917 ;
3918 return 0;
3919}
3920_ACEOF
235d1c46
RO
3921if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_cv_safe_to_define___extensions__=yes
3923else
3924 ac_cv_safe_to_define___extensions__=no
22e05272 3925fi
235d1c46 3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 3927fi
235d1c46
RO
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3929$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3930 test $ac_cv_safe_to_define___extensions__ = yes &&
3931 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22e05272 3932
235d1c46 3933 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
22e05272 3934
235d1c46
RO
3935 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3936
3937 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3938
3939 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3940
3941
3942
3943target_alias=${target_alias-$target}
3944
3945
3946# 1.11.1: Require that version of automake.
3947# foreign: Don't require README, INSTALL, NEWS, etc.
3948# no-define: Don't define PACKAGE and VERSION.
3949# no-dependencies: Don't generate automatic dependencies.
3950# (because it breaks when using bootstrap-lean, since some of the
3951# headers are gone at "make install" time).
3952# subdir-objects: Build objects in sub-directories.
3953# -Wall: Issue all automake warnings.
3954# -Wno-portability: Don't warn about constructs supported by GNU make.
3955# (because GCC requires GNU make anyhow).
3956# -Wno-override: Overrides used in testsuite.
3957am__api_version='1.15'
3958
3959# Find a good install program. We prefer a C program (faster),
3960# so one script is as good as another. But avoid the broken or
3961# incompatible versions:
3962# SysV /etc/install, /usr/sbin/install
3963# SunOS /usr/etc/install
3964# IRIX /sbin/install
3965# AIX /bin/install
3966# AmigaOS /C/install, which installs bootblocks on floppy discs
3967# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3968# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3969# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3970# OS/2's system install, which has a completely different semantic
3971# ./install, which can be erroneously created by make from ./install.sh.
3972# Reject install programs that cannot install multiple files.
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3974$as_echo_n "checking for a BSD-compatible install... " >&6; }
3975if test -z "$INSTALL"; then
3976if ${ac_cv_path_install+:} false; then :
b4c522fa
IB
3977 $as_echo_n "(cached) " >&6
3978else
235d1c46 3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
235d1c46
RO
3984 # Account for people who put trailing slashes in PATH elements.
3985case $as_dir/ in #((
3986 ./ | .// | /[cC]/* | \
3987 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3988 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3989 /usr/ucb/* ) ;;
3990 *)
3991 # OSF1 and SCO ODT 3.0 have their own names for install.
3992 # Don't use installbsd from OSF since it installs stuff as root
3993 # by default.
3994 for ac_prog in ginstall scoinst install; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3997 if test $ac_prog = install &&
3998 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3999 # AIX install. It has an incompatible calling convention.
4000 :
4001 elif test $ac_prog = install &&
4002 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # program-specific install script used by HP pwplus--don't use.
4004 :
4005 else
4006 rm -rf conftest.one conftest.two conftest.dir
4007 echo one > conftest.one
4008 echo two > conftest.two
4009 mkdir conftest.dir
4010 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4011 test -s conftest.one && test -s conftest.two &&
4012 test -s conftest.dir/conftest.one &&
4013 test -s conftest.dir/conftest.two
4014 then
4015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4016 break 3
4017 fi
4018 fi
4019 fi
4020 done
4021 done
4022 ;;
4023esac
4024
b4c522fa
IB
4025 done
4026IFS=$as_save_IFS
4027
235d1c46
RO
4028rm -rf conftest.one conftest.two conftest.dir
4029
b4c522fa 4030fi
235d1c46
RO
4031 if test "${ac_cv_path_install+set}" = set; then
4032 INSTALL=$ac_cv_path_install
4033 else
4034 # As a last resort, use the slow shell script. Don't cache a
4035 # value for INSTALL within a source directory, because that will
4036 # break other packages using the cache if that directory is
4037 # removed, or if the value is a relative name.
4038 INSTALL=$ac_install_sh
4039 fi
b4c522fa 4040fi
235d1c46
RO
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4042$as_echo "$INSTALL" >&6; }
4043
4044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4045# It thinks the first close brace ends the variable substitution.
4046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4047
4048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4049
4050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4053$as_echo_n "checking whether build environment is sane... " >&6; }
4054# Reject unsafe characters in $srcdir or the absolute working directory
4055# name. Accept space and tab only in the latter.
4056am_lf='
4057'
4058case `pwd` in
4059 *[\\\"\#\$\&\'\`$am_lf]*)
4060 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4061esac
4062case $srcdir in
4063 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4064 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4065esac
4066
4067# Do 'set' in a subshell so we don't clobber the current shell's
4068# arguments. Must try -L first in case configure is actually a
4069# symlink; some systems play weird games with the mod time of symlinks
4070# (eg FreeBSD returns the mod time of the symlink's containing
4071# directory).
4072if (
4073 am_has_slept=no
4074 for am_try in 1 2; do
4075 echo "timestamp, slept: $am_has_slept" > conftest.file
4076 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4077 if test "$*" = "X"; then
4078 # -L didn't work.
4079 set X `ls -t "$srcdir/configure" conftest.file`
4080 fi
4081 if test "$*" != "X $srcdir/configure conftest.file" \
4082 && test "$*" != "X conftest.file $srcdir/configure"; then
4083
4084 # If neither matched, then we have a broken ls. This can happen
4085 # if, for instance, CONFIG_SHELL is bash and it inherits a
4086 # broken ls alias from the environment. This has actually
4087 # happened. Such a system could not be considered "sane".
4088 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4089 alias in your environment" "$LINENO" 5
4090 fi
4091 if test "$2" = conftest.file || test $am_try -eq 2; then
4092 break
4093 fi
4094 # Just in case.
4095 sleep 1
4096 am_has_slept=yes
4097 done
4098 test "$2" = conftest.file
4099 )
4100then
4101 # Ok.
4102 :
b4c522fa 4103else
235d1c46
RO
4104 as_fn_error $? "newly created file is older than distributed files!
4105Check your system clock" "$LINENO" 5
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4108$as_echo "yes" >&6; }
4109# If we didn't sleep, we still need to ensure time stamps of config.status and
4110# generated files are strictly newer.
4111am_sleep_pid=
4112if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4113 ( sleep 1 ) &
4114 am_sleep_pid=$!
b4c522fa
IB
4115fi
4116
235d1c46
RO
4117rm -f conftest.file
4118
4119test "$program_prefix" != NONE &&
4120 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4121# Use a double $ so make ignores it.
4122test "$program_suffix" != NONE &&
4123 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4124# Double any \ or $.
4125# By default was `s,x,x', remove it if useless.
4126ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4127program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b4c522fa 4128
235d1c46
RO
4129if test x"${MISSING+set}" != xset; then
4130 case $am_aux_dir in
4131 *\ * | *\ *)
4132 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4133 *)
4134 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4135 esac
b4c522fa 4136fi
235d1c46
RO
4137# Use eval to expand $SHELL
4138if eval "$MISSING --is-lightweight"; then
4139 am_missing_run="$MISSING "
4140else
4141 am_missing_run=
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4143$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4144fi
4145
4146if test x"${install_sh+set}" != xset; then
4147 case $am_aux_dir in
4148 *\ * | *\ *)
4149 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4150 *)
4151 install_sh="\${SHELL} $am_aux_dir/install-sh"
4152 esac
4153fi
4154
4155# Installed binaries are usually stripped using 'strip' when the user
4156# run "make install-strip". However 'strip' might not be the right
4157# tool to use in cross-compilation environments, therefore Automake
4158# will honor the 'STRIP' environment variable to overrule this program.
4159if test "$cross_compiling" != no; then
4160 if test -n "$ac_tool_prefix"; then
4161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4162set dummy ${ac_tool_prefix}strip; ac_word=$2
b4c522fa
IB
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4165if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
4166 $as_echo_n "(cached) " >&6
4167else
235d1c46
RO
4168 if test -n "$STRIP"; then
4169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b4c522fa
IB
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4178 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b4c522fa
IB
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183 done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
235d1c46
RO
4188STRIP=$ac_cv_prog_STRIP
4189if test -n "$STRIP"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4191$as_echo "$STRIP" >&6; }
b4c522fa
IB
4192else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
4196
b4c522fa 4197
235d1c46
RO
4198fi
4199if test -z "$ac_cv_prog_STRIP"; then
4200 ac_ct_STRIP=$STRIP
4201 # Extract the first word of "strip", so it can be a program name with args.
4202set dummy strip; ac_word=$2
b4c522fa
IB
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4205if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
4206 $as_echo_n "(cached) " >&6
4207else
235d1c46
RO
4208 if test -n "$ac_ct_STRIP"; then
4209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
b4c522fa
IB
4210else
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4218 ac_cv_prog_ac_ct_STRIP="strip"
b4c522fa
IB
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222done
4223 done
4224IFS=$as_save_IFS
4225
4226fi
4227fi
235d1c46
RO
4228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4229if test -n "$ac_ct_STRIP"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4231$as_echo "$ac_ct_STRIP" >&6; }
b4c522fa
IB
4232else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
4235fi
4236
235d1c46
RO
4237 if test "x$ac_ct_STRIP" = x; then
4238 STRIP=":"
4239 else
4240 case $cross_compiling:$ac_tool_warned in
4241yes:)
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244ac_tool_warned=yes ;;
4245esac
4246 STRIP=$ac_ct_STRIP
b4c522fa 4247 fi
b4c522fa 4248else
235d1c46 4249 STRIP="$ac_cv_prog_STRIP"
b4c522fa
IB
4250fi
4251
b4c522fa 4252fi
235d1c46 4253INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b4c522fa 4254
235d1c46
RO
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4256$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4257if test -z "$MKDIR_P"; then
4258 if ${ac_cv_path_mkdir+:} false; then :
b4c522fa
IB
4259 $as_echo_n "(cached) " >&6
4260else
235d1c46
RO
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
b4c522fa
IB
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
235d1c46
RO
4266 for ac_prog in mkdir gmkdir; do
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4269 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4270 'mkdir (GNU coreutils) '* | \
4271 'mkdir (coreutils) '* | \
4272 'mkdir (fileutils) '4.1*)
4273 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4274 break 3;;
4275 esac
4276 done
4277 done
b4c522fa
IB
4278 done
4279IFS=$as_save_IFS
4280
4281fi
b4c522fa 4282
235d1c46
RO
4283 test -d ./--version && rmdir ./--version
4284 if test "${ac_cv_path_mkdir+set}" = set; then
4285 MKDIR_P="$ac_cv_path_mkdir -p"
4286 else
4287 # As a last resort, use the slow shell script. Don't cache a
4288 # value for MKDIR_P within a source directory, because that will
4289 # break other packages using the cache if that directory is
4290 # removed, or if the value is a relative name.
4291 MKDIR_P="$ac_install_sh -d"
4292 fi
b4c522fa 4293fi
235d1c46
RO
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4295$as_echo "$MKDIR_P" >&6; }
4296
4297for ac_prog in gawk mawk nawk awk
4298do
4299 # Extract the first word of "$ac_prog", so it can be a program name with args.
4300set dummy $ac_prog; ac_word=$2
b4c522fa
IB
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4303if ${ac_cv_prog_AWK+:} false; then :
b4c522fa
IB
4304 $as_echo_n "(cached) " >&6
4305else
235d1c46
RO
4306 if test -n "$AWK"; then
4307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b4c522fa
IB
4308else
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4316 ac_cv_prog_AWK="$ac_prog"
b4c522fa
IB
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320done
4321 done
4322IFS=$as_save_IFS
4323
4324fi
4325fi
235d1c46
RO
4326AWK=$ac_cv_prog_AWK
4327if test -n "$AWK"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4329$as_echo "$AWK" >&6; }
b4c522fa
IB
4330else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333fi
4334
b4c522fa 4335
235d1c46
RO
4336 test -n "$AWK" && break
4337done
b4c522fa
IB
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4340$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4341set x ${MAKE-make}
4342ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4343if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
4344 $as_echo_n "(cached) " >&6
4345else
4346 cat >conftest.make <<\_ACEOF
4347SHELL = /bin/sh
4348all:
4349 @echo '@@@%%%=$(MAKE)=@@@%%%'
4350_ACEOF
22e05272 4351# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
4352case `${MAKE-make} -f conftest.make 2>/dev/null` in
4353 *@@@%%%=?*=@@@%%%*)
4354 eval ac_cv_prog_make_${ac_make}_set=yes;;
4355 *)
4356 eval ac_cv_prog_make_${ac_make}_set=no;;
4357esac
4358rm -f conftest.make
4359fi
4360if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362$as_echo "yes" >&6; }
4363 SET_MAKE=
4364else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366$as_echo "no" >&6; }
4367 SET_MAKE="MAKE=${MAKE-make}"
4368fi
4369
235d1c46
RO
4370rm -rf .tst 2>/dev/null
4371mkdir .tst 2>/dev/null
4372if test -d .tst; then
4373 am__leading_dot=.
4374else
4375 am__leading_dot=_
4376fi
4377rmdir .tst 2>/dev/null
b4c522fa 4378
235d1c46
RO
4379# Check whether --enable-silent-rules was given.
4380if test "${enable_silent_rules+set}" = set; then :
4381 enableval=$enable_silent_rules;
4382fi
b4c522fa 4383
235d1c46
RO
4384case $enable_silent_rules in # (((
4385 yes) AM_DEFAULT_VERBOSITY=0;;
4386 no) AM_DEFAULT_VERBOSITY=1;;
4387 *) AM_DEFAULT_VERBOSITY=1;;
b4c522fa 4388esac
235d1c46
RO
4389am_make=${MAKE-make}
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4391$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4392if ${am_cv_make_support_nested_variables+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394else
4395 if $as_echo 'TRUE=$(BAR$(V))
4396BAR0=false
4397BAR1=true
4398V=1
4399am__doit:
4400 @$(TRUE)
4401.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4402 am_cv_make_support_nested_variables=yes
4403else
4404 am_cv_make_support_nested_variables=no
4405fi
4406fi
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4408$as_echo "$am_cv_make_support_nested_variables" >&6; }
4409if test $am_cv_make_support_nested_variables = yes; then
4410 AM_V='$(V)'
4411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4412else
4413 AM_V=$AM_DEFAULT_VERBOSITY
4414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4415fi
4416AM_BACKSLASH='\'
b4c522fa 4417
235d1c46
RO
4418if test "`cd $srcdir && pwd`" != "`pwd`"; then
4419 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4420 # is not polluted with repeated "-I."
4421 am__isrc=' -I$(srcdir)'
4422 # test to see if srcdir already configured
4423 if test -f $srcdir/config.status; then
4424 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4425 fi
4426fi
b4c522fa 4427
235d1c46
RO
4428# test whether we have cygpath
4429if test -z "$CYGPATH_W"; then
4430 if (cygpath --version) >/dev/null 2>/dev/null; then
4431 CYGPATH_W='cygpath -w'
4432 else
4433 CYGPATH_W=echo
4434 fi
4435fi
b4c522fa 4436
b4c522fa 4437
235d1c46
RO
4438# Define the identity of the package.
4439 PACKAGE='libphobos'
4440 VERSION='version-unused'
b4c522fa
IB
4441
4442
235d1c46 4443# Some tools Automake needs.
b4c522fa 4444
235d1c46 4445ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b4c522fa
IB
4446
4447
235d1c46 4448AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
b4c522fa
IB
4449
4450
235d1c46 4451AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
b4c522fa
IB
4452
4453
235d1c46 4454AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
b4c522fa
IB
4455
4456
235d1c46 4457MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
b4c522fa 4458
235d1c46
RO
4459# For better backward compatibility. To be removed once Automake 1.9.x
4460# dies out for good. For more background, see:
4461# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4462# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4463mkdir_p='$(MKDIR_P)'
b4c522fa 4464
235d1c46
RO
4465# We need awk for the "check" target (and possibly the TAP driver). The
4466# system "awk" is bad on some platforms.
4467# Always define AMTAR for backward compatibility. Yes, it's still used
4468# in the wild :-( We should find a proper way to deprecate it ...
4469AMTAR='$${TAR-tar}'
b4c522fa 4470
b4c522fa 4471
235d1c46
RO
4472# We'll loop over all known methods to create a tar archive until one works.
4473_am_tools='gnutar pax cpio none'
b4c522fa 4474
235d1c46 4475am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b4c522fa 4476
b4c522fa 4477
b4c522fa 4478
b4c522fa 4479
b4c522fa 4480
b4c522fa 4481
235d1c46
RO
4482# POSIX will say in a future version that running "rm -f" with no argument
4483# is OK; and we want to be able to make that assumption in our Makefile
4484# recipes. So use an aggressive probe to check that the usage we want is
4485# actually supported "in the wild" to an acceptable degree.
4486# See automake bug#10828.
4487# To make any issue more visible, cause the running configure to be aborted
4488# by default if the 'rm' program in use doesn't match our expectations; the
4489# user can still override this though.
4490if rm -f && rm -fr && rm -rf; then : OK; else
4491 cat >&2 <<'END'
4492Oops!
4493
4494Your 'rm' program seems unable to run without file operands specified
4495on the command line, even when the '-f' option is present. This is contrary
4496to the behaviour of most rm programs out there, and not conforming with
4497the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
b4c522fa 4498
235d1c46
RO
4499Please tell bug-automake@gnu.org about your system, including the value
4500of your $PATH and any error possibly output before this message. This
4501can help us improve future automake versions.
b4c522fa 4502
235d1c46
RO
4503END
4504 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4505 echo 'Configuration will proceed anyway, since you have set the' >&2
4506 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4507 echo >&2
4508 else
4509 cat >&2 <<'END'
4510Aborting the configuration process, to ensure you take notice of the issue.
b4c522fa 4511
235d1c46
RO
4512You can download and install GNU coreutils to get an 'rm' implementation
4513that behaves properly: <http://www.gnu.org/software/coreutils/>.
b4c522fa 4514
235d1c46
RO
4515If you want to complete the configuration process using your problematic
4516'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4517to "yes", and re-run configure.
b4c522fa 4518
235d1c46
RO
4519END
4520 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4521 fi
4522fi
b4c522fa
IB
4523
4524
4525
4526
235d1c46 4527# By default we simply use the C compiler to build assembly code.
b4c522fa 4528
235d1c46
RO
4529test "${CCAS+set}" = set || CCAS=$CC
4530test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
b4c522fa
IB
4531
4532
4533
235d1c46
RO
4534ac_ext=c
4535ac_cpp='$CPP $CPPFLAGS'
4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4541set dummy ${ac_tool_prefix}gcc; ac_word=$2
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543$as_echo_n "checking for $ac_word... " >&6; }
4544if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4545 $as_echo_n "(cached) " >&6
4546else
235d1c46
RO
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4c522fa
IB
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
b4c522fa 4555 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
b4c522fa
IB
4562 done
4563IFS=$as_save_IFS
b4c522fa
IB
4564
4565fi
235d1c46
RO
4566fi
4567CC=$ac_cv_prog_CC
4568if test -n "$CC"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4570$as_echo "$CC" >&6; }
4571else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574fi
b4c522fa
IB
4575
4576
235d1c46
RO
4577fi
4578if test -z "$ac_cv_prog_CC"; then
4579 ac_ct_CC=$CC
4580 # Extract the first word of "gcc", so it can be a program name with args.
4581set dummy gcc; ac_word=$2
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583$as_echo_n "checking for $ac_word... " >&6; }
4584if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4585 $as_echo_n "(cached) " >&6
4586else
235d1c46
RO
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
b4c522fa
IB
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
b4c522fa 4595 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_ac_ct_CC="gcc"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
b4c522fa
IB
4602 done
4603IFS=$as_save_IFS
235d1c46
RO
4604
4605fi
4606fi
4607ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608if test -n "$ac_ct_CC"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4610$as_echo "$ac_ct_CC" >&6; }
b4c522fa 4611else
235d1c46
RO
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
b4c522fa
IB
4614fi
4615
235d1c46
RO
4616 if test "x$ac_ct_CC" = x; then
4617 CC=""
4618 else
4619 case $cross_compiling:$ac_tool_warned in
4620yes:)
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623ac_tool_warned=yes ;;
4624esac
4625 CC=$ac_ct_CC
4626 fi
4627else
4628 CC="$ac_cv_prog_CC"
b4c522fa 4629fi
b4c522fa 4630
235d1c46
RO
4631if test -z "$CC"; then
4632 if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4634set dummy ${ac_tool_prefix}cc; ac_word=$2
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636$as_echo_n "checking for $ac_word... " >&6; }
4637if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4638 $as_echo_n "(cached) " >&6
4639else
235d1c46
RO
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
b4c522fa
IB
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
b4c522fa 4648 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_CC="${ac_tool_prefix}cc"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
b4c522fa
IB
4655 done
4656IFS=$as_save_IFS
b4c522fa 4657
b4c522fa 4658fi
235d1c46
RO
4659fi
4660CC=$ac_cv_prog_CC
4661if test -n "$CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663$as_echo "$CC" >&6; }
4664else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666$as_echo "no" >&6; }
4667fi
b4c522fa
IB
4668
4669
235d1c46
RO
4670 fi
4671fi
4672if test -z "$CC"; then
4673 # Extract the first word of "cc", so it can be a program name with args.
4674set dummy cc; ac_word=$2
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676$as_echo_n "checking for $ac_word... " >&6; }
4677if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4678 $as_echo_n "(cached) " >&6
4679else
235d1c46
RO
4680 if test -n "$CC"; then
4681 ac_cv_prog_CC="$CC" # Let the user override the test.
4682else
4683 ac_prog_rejected=no
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
b4c522fa
IB
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
b4c522fa 4689 for ac_exec_ext in '' $ac_executable_extensions; do
235d1c46
RO
4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4692 ac_prog_rejected=yes
4693 continue
4694 fi
4695 ac_cv_prog_CC="cc"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699done
b4c522fa
IB
4700 done
4701IFS=$as_save_IFS
b4c522fa 4702
235d1c46
RO
4703if test $ac_prog_rejected = yes; then
4704 # We found a bogon in the path, so make sure we never use it.
4705 set dummy $ac_cv_prog_CC
4706 shift
4707 if test $# != 0; then
4708 # We chose a different compiler from the bogus one.
4709 # However, it has the same basename, so the bogon will be chosen
4710 # first if we set CC to just the basename; use the full file name.
4711 shift
4712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4713 fi
b4c522fa 4714fi
b4c522fa
IB
4715fi
4716fi
235d1c46
RO
4717CC=$ac_cv_prog_CC
4718if test -n "$CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720$as_echo "$CC" >&6; }
b4c522fa
IB
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
b4c522fa
IB
4725
4726
b4c522fa 4727fi
235d1c46
RO
4728if test -z "$CC"; then
4729 if test -n "$ac_tool_prefix"; then
4730 for ac_prog in cl.exe
b4c522fa
IB
4731 do
4732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4736if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4737 $as_echo_n "(cached) " >&6
4738else
235d1c46
RO
4739 if test -n "$CC"; then
4740 ac_cv_prog_CC="$CC" # Let the user override the test.
b4c522fa
IB
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b4c522fa
IB
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754 done
4755IFS=$as_save_IFS
4756
4757fi
4758fi
235d1c46
RO
4759CC=$ac_cv_prog_CC
4760if test -n "$CC"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4762$as_echo "$CC" >&6; }
b4c522fa
IB
4763else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767
4768
235d1c46 4769 test -n "$CC" && break
b4c522fa
IB
4770 done
4771fi
235d1c46
RO
4772if test -z "$CC"; then
4773 ac_ct_CC=$CC
4774 for ac_prog in cl.exe
b4c522fa
IB
4775do
4776 # Extract the first word of "$ac_prog", so it can be a program name with args.
4777set dummy $ac_prog; ac_word=$2
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 4780if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4781 $as_echo_n "(cached) " >&6
4782else
235d1c46
RO
4783 if test -n "$ac_ct_CC"; then
4784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b4c522fa
IB
4785else
4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 4793 ac_cv_prog_ac_ct_CC="$ac_prog"
b4c522fa
IB
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797done
4798 done
4799IFS=$as_save_IFS
4800
4801fi
4802fi
235d1c46
RO
4803ac_ct_CC=$ac_cv_prog_ac_ct_CC
4804if test -n "$ac_ct_CC"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4806$as_echo "$ac_ct_CC" >&6; }
b4c522fa
IB
4807else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809$as_echo "no" >&6; }
4810fi
4811
4812
235d1c46 4813 test -n "$ac_ct_CC" && break
b4c522fa
IB
4814done
4815
235d1c46
RO
4816 if test "x$ac_ct_CC" = x; then
4817 CC=""
b4c522fa
IB
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820yes:)
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823ac_tool_warned=yes ;;
4824esac
235d1c46 4825 CC=$ac_ct_CC
b4c522fa
IB
4826 fi
4827fi
4828
b4c522fa 4829fi
b4c522fa
IB
4830
4831
235d1c46
RO
4832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4834as_fn_error $? "no acceptable C compiler found in \$PATH
4835See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 4836
235d1c46
RO
4837# Provide some information about the compiler.
4838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4839set X $ac_compile
4840ac_compiler=$2
4841for ac_option in --version -v -V -qversion; do
4842 { { ac_try="$ac_compiler $ac_option >&5"
4843case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846esac
4847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848$as_echo "$ac_try_echo"; } >&5
4849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4850 ac_status=$?
4851 if test -s conftest.err; then
4852 sed '10a\
4853... rest of stderr output deleted ...
4854 10q' conftest.err >conftest.er1
4855 cat conftest.er1 >&5
4856 fi
4857 rm -f conftest.er1 conftest.err
4858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4859 test $ac_status = 0; }
4860done
b4c522fa 4861
235d1c46
RO
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4863$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4864if ${ac_cv_c_compiler_gnu+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866else
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h. */
b4c522fa 4869
235d1c46
RO
4870int
4871main ()
4872{
4873#ifndef __GNUC__
4874 choke me
4875#endif
b4c522fa 4876
235d1c46
RO
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881if ac_fn_c_try_compile "$LINENO"; then :
4882 ac_compiler_gnu=yes
b4c522fa 4883else
235d1c46 4884 ac_compiler_gnu=no
b4c522fa 4885fi
235d1c46
RO
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887ac_cv_c_compiler_gnu=$ac_compiler_gnu
b4c522fa 4888
235d1c46
RO
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4891$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4892if test $ac_compiler_gnu = yes; then
4893 GCC=yes
b4c522fa 4894else
235d1c46 4895 GCC=
b4c522fa 4896fi
235d1c46
RO
4897ac_test_CFLAGS=${CFLAGS+set}
4898ac_save_CFLAGS=$CFLAGS
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4900$as_echo_n "checking whether $CC accepts -g... " >&6; }
4901if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
4902 $as_echo_n "(cached) " >&6
4903else
235d1c46
RO
4904 ac_save_c_werror_flag=$ac_c_werror_flag
4905 ac_c_werror_flag=yes
4906 ac_cv_prog_cc_g=no
4907 CFLAGS="-g"
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h. */
b4c522fa 4910
235d1c46
RO
4911int
4912main ()
4913{
b4c522fa 4914
235d1c46
RO
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_g=yes
4921else
4922 CFLAGS=""
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h. */
b4c522fa 4925
235d1c46
RO
4926int
4927main ()
4928{
b4c522fa 4929
235d1c46
RO
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
b4c522fa 4935
235d1c46
RO
4936else
4937 ac_c_werror_flag=$ac_save_c_werror_flag
4938 CFLAGS="-g"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h. */
b4c522fa 4941
235d1c46
RO
4942int
4943main ()
4944{
b4c522fa 4945
235d1c46
RO
4946 ;
4947 return 0;
4948}
4949_ACEOF
4950if ac_fn_c_try_compile "$LINENO"; then :
4951 ac_cv_prog_cc_g=yes
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_c_werror_flag=$ac_save_c_werror_flag
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4961$as_echo "$ac_cv_prog_cc_g" >&6; }
4962if test "$ac_test_CFLAGS" = set; then
4963 CFLAGS=$ac_save_CFLAGS
4964elif test $ac_cv_prog_cc_g = yes; then
4965 if test "$GCC" = yes; then
4966 CFLAGS="-g -O2"
4967 else
4968 CFLAGS="-g"
4969 fi
4970else
4971 if test "$GCC" = yes; then
4972 CFLAGS="-O2"
4973 else
4974 CFLAGS=
4975 fi
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4978$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4979if ${ac_cv_prog_cc_c89+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981else
4982 ac_cv_prog_cc_c89=no
4983ac_save_CC=$CC
4984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h. */
4986#include <stdarg.h>
4987#include <stdio.h>
4988struct stat;
4989/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4990struct buf { int x; };
4991FILE * (*rcsopen) (struct buf *, struct stat *, int);
4992static char *e (p, i)
4993 char **p;
4994 int i;
4995{
4996 return p[i];
4997}
4998static char *f (char * (*g) (char **, int), char **p, ...)
4999{
5000 char *s;
5001 va_list v;
5002 va_start (v,p);
5003 s = g (p, va_arg (v,int));
5004 va_end (v);
5005 return s;
5006}
5007
5008/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5009 function prototypes and stuff, but not '\xHH' hex character constants.
5010 These don't provoke an error unfortunately, instead are silently treated
5011 as 'x'. The following induces an error, until -std is added to get
5012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5013 array size at least. It's necessary to write '\x00'==0 to get something
5014 that's true only with -std. */
5015int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5016
5017/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5018 inside strings and character constants. */
5019#define FOO(x) 'x'
5020int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5021
5022int test (int i, double x);
5023struct s1 {int (*f) (int a);};
5024struct s2 {int (*f) (double a);};
5025int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5026int argc;
5027char **argv;
5028int
5029main ()
5030{
5031return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5037 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5038do
5039 CC="$ac_save_CC $ac_arg"
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041 ac_cv_prog_cc_c89=$ac_arg
5042fi
5043rm -f core conftest.err conftest.$ac_objext
5044 test "x$ac_cv_prog_cc_c89" != "xno" && break
5045done
5046rm -f conftest.$ac_ext
5047CC=$ac_save_CC
5048
5049fi
5050# AC_CACHE_VAL
5051case "x$ac_cv_prog_cc_c89" in
5052 x)
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5054$as_echo "none needed" >&6; } ;;
5055 xno)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5057$as_echo "unsupported" >&6; } ;;
5058 *)
5059 CC="$CC $ac_cv_prog_cc_c89"
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5061$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5062esac
5063if test "x$ac_cv_prog_cc_c89" != xno; then :
5064
5065fi
5066
5067ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5079$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5080if ${am_cv_prog_cc_c_o+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h. */
5085
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094 # Make sure it works both with $CC and with simple cc.
5095 # Following AC_PROG_CC_C_O, we do the test twice because some
5096 # compilers refuse to overwrite an existing .o file with -o,
5097 # though they will create one.
5098 am_cv_prog_cc_c_o=yes
5099 for am_i in 1 2; do
5100 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5101 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } \
5105 && test -f conftest2.$ac_objext; then
5106 : OK
5107 else
5108 am_cv_prog_cc_c_o=no
5109 break
5110 fi
5111 done
5112 rm -f core conftest*
5113 unset am_i
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5116$as_echo "$am_cv_prog_cc_c_o" >&6; }
5117if test "$am_cv_prog_cc_c_o" != yes; then
5118 # Losing compiler, so override with the script.
5119 # FIXME: It is wrong to rewrite CC.
5120 # But if we don't then we get into trouble of one sort or another.
5121 # A longer-term fix would be to have automake use am__CC in this case,
5122 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5123 CC="$am_aux_dir/compile $CC"
5124fi
5125ac_ext=c
5126ac_cpp='$CPP $CPPFLAGS'
5127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131
5132ac_ext=d
5133ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5134ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=yes
5136if test -n "$ac_tool_prefix"; then
5137 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5138set dummy ${ac_tool_prefix}gdc; ac_word=$2
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
5141if ${ac_cv_prog_GDC+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143else
5144 if test -n "$GDC"; then
5145 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159 done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164GDC=$ac_cv_prog_GDC
5165if test -n "$GDC"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5167$as_echo "$GDC" >&6; }
5168else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173
5174fi
5175if test -z "$ac_cv_prog_GDC"; then
5176 ac_ct_GDC=$GDC
5177 # Extract the first word of "gdc", so it can be a program name with args.
5178set dummy gdc; ac_word=$2
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180$as_echo_n "checking for $ac_word... " >&6; }
5181if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183else
5184 if test -n "$ac_ct_GDC"; then
5185 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5186else
5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_ac_ct_GDC="gdc"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198done
5199 done
5200IFS=$as_save_IFS
5201
5202fi
5203fi
5204ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5205if test -n "$ac_ct_GDC"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5207$as_echo "$ac_ct_GDC" >&6; }
5208else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210$as_echo "no" >&6; }
5211fi
5212
5213 if test "x$ac_ct_GDC" = x; then
5214 GDC=""
5215 else
5216 case $cross_compiling:$ac_tool_warned in
5217yes:)
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5220ac_tool_warned=yes ;;
5221esac
5222 GDC=$ac_ct_GDC
5223 fi
5224else
5225 GDC="$ac_cv_prog_GDC"
5226fi
5227
5228if test -z "$GDC"; then
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5231set dummy ${ac_tool_prefix}gdc; ac_word=$2
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
5234if ${ac_cv_prog_GDC+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236else
5237 if test -n "$GDC"; then
5238 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252 done
5253IFS=$as_save_IFS
5254
5255fi
5256fi
5257GDC=$ac_cv_prog_GDC
5258if test -n "$GDC"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5260$as_echo "$GDC" >&6; }
5261else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
5264fi
5265
5266
5267 fi
5268fi
5269if test -z "$GDC"; then
5270 # Extract the first word of "gdc", so it can be a program name with args.
5271set dummy gdc; ac_word=$2
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273$as_echo_n "checking for $ac_word... " >&6; }
5274if ${ac_cv_prog_GDC+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 if test -n "$GDC"; then
5278 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5279else
5280 ac_prog_rejected=no
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5289 ac_prog_rejected=yes
5290 continue
5291 fi
5292 ac_cv_prog_GDC="gdc"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296done
5297 done
5298IFS=$as_save_IFS
5299
5300if test $ac_prog_rejected = yes; then
5301 # We found a bogon in the path, so make sure we never use it.
5302 set dummy $ac_cv_prog_GDC
5303 shift
5304 if test $# != 0; then
5305 # We chose a different compiler from the bogus one.
5306 # However, it has the same basename, so the bogon will be chosen
5307 # first if we set GDC to just the basename; use the full file name.
5308 shift
5309 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5310 fi
5311fi
5312fi
5313fi
5314GDC=$ac_cv_prog_GDC
5315if test -n "$GDC"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5317$as_echo "$GDC" >&6; }
5318else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323
5324fi
5325
5326
5327# Provide some information about the compiler.
5328$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5329set X $ac_compile
5330ac_compiler=$2
5331{ { ac_try="$ac_compiler --version >&5"
5332case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335esac
5336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5337$as_echo "$ac_try_echo"; } >&5
5338 (eval "$ac_compiler --version >&5") 2>conftest.err
5339 ac_status=$?
5340 if test -s conftest.err; then
5341 sed '10a\
5342... rest of stderr output deleted ...
5343 10q' conftest.err >conftest.er1
5344 cat conftest.er1 >&5
5345 fi
5346 rm -f conftest.er1 conftest.err
5347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5348 test $ac_status = 0; }
5349ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5357$as_echo_n "checking for absolute libphobos source path... " >&6; }
5358if ${phobos_cv_abs_srcdir+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360else
5361 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5364$as_echo "$phobos_cv_abs_srcdir" >&6; }
5365 if test -d "$phobos_cv_abs_srcdir"; then :
5366
5367else
5368 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5369fi
5370
5371
5372
5373
5374 gdc_save_DFLAGS=$GDCFLAGS
5375 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5376
5377 ac_ext=d
5378ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5379ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=yes
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5383$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5384 cat > conftest.$ac_ext <<_ACEOF
5385module mod;
5386
5387
5388extern(C) int main() {
5389 return 0;
5390}
5391_ACEOF
5392if ac_fn_d_try_compile "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394$as_echo "yes" >&6; }
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_ext=c
5402ac_cpp='$CPP $CPPFLAGS'
5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407
5408 GDCFLAGS=$gdc_save_DFLAGS
5409
5410
5411
5412
5413
5414
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5416$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5417 # Check whether --enable-maintainer-mode was given.
5418if test "${enable_maintainer_mode+set}" = set; then :
5419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5420else
5421 USE_MAINTAINER_MODE=no
5422fi
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5425$as_echo "$USE_MAINTAINER_MODE" >&6; }
5426 if test $USE_MAINTAINER_MODE = yes; then
5427 MAINTAINER_MODE_TRUE=
5428 MAINTAINER_MODE_FALSE='#'
5429else
5430 MAINTAINER_MODE_TRUE='#'
5431 MAINTAINER_MODE_FALSE=
5432fi
5433
5434 MAINT=$MAINTAINER_MODE_TRUE
5435
5436
5437if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if ${ac_cv_prog_RANLIB+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444else
5445 if test -n "$RANLIB"; then
5446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459done
5460 done
5461IFS=$as_save_IFS
5462
5463fi
5464fi
5465RANLIB=$ac_cv_prog_RANLIB
5466if test -n "$RANLIB"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5468$as_echo "$RANLIB" >&6; }
5469else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
5472fi
5473
5474
5475fi
5476if test -z "$ac_cv_prog_RANLIB"; then
5477 ac_ct_RANLIB=$RANLIB
5478 # Extract the first word of "ranlib", so it can be a program name with args.
5479set dummy ranlib; ac_word=$2
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481$as_echo_n "checking for $ac_word... " >&6; }
5482if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484else
5485 if test -n "$ac_ct_RANLIB"; then
5486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5487else
5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_ac_ct_RANLIB="ranlib"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499done
5500 done
5501IFS=$as_save_IFS
5502
5503fi
5504fi
5505ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5506if test -n "$ac_ct_RANLIB"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5508$as_echo "$ac_ct_RANLIB" >&6; }
5509else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511$as_echo "no" >&6; }
5512fi
5513
5514 if test "x$ac_ct_RANLIB" = x; then
5515 RANLIB=":"
5516 else
5517 case $cross_compiling:$ac_tool_warned in
5518yes:)
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5521ac_tool_warned=yes ;;
5522esac
5523 RANLIB=$ac_ct_RANLIB
5524 fi
5525else
5526 RANLIB="$ac_cv_prog_RANLIB"
5527fi
5528
5529
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5531$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5532set x ${MAKE-make}
5533ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5534if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536else
5537 cat >conftest.make <<\_ACEOF
5538SHELL = /bin/sh
5539all:
5540 @echo '@@@%%%=$(MAKE)=@@@%%%'
5541_ACEOF
5542# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5543case `${MAKE-make} -f conftest.make 2>/dev/null` in
5544 *@@@%%%=?*=@@@%%%*)
5545 eval ac_cv_prog_make_${ac_make}_set=yes;;
5546 *)
5547 eval ac_cv_prog_make_${ac_make}_set=no;;
5548esac
5549rm -f conftest.make
5550fi
5551if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553$as_echo "yes" >&6; }
5554 SET_MAKE=
5555else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558 SET_MAKE="MAKE=${MAKE-make}"
5559fi
5560
5561
5562# This should be inherited in the recursive make, but ensure it is defined.
5563test "$AR" || AR=ar
5564
5565
5566CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5567
5568
5569
5570# Enable libtool
5571case `pwd` in
5572 *\ * | *\ *)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5574$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5575esac
5576
5577
5578
5579macro_version='2.2.7a'
5580macro_revision='1.3134'
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594ltmain="$ac_aux_dir/ltmain.sh"
5595
5596# Backslashify metacharacters that are still active within
5597# double-quoted strings.
5598sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5599
5600# Same as above, but do not quote variable references.
5601double_quote_subst='s/\(["`\\]\)/\\\1/g'
5602
5603# Sed substitution to delay expansion of an escaped shell variable in a
5604# double_quote_subst'ed string.
5605delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5606
5607# Sed substitution to delay expansion of an escaped single quote.
5608delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5609
5610# Sed substitution to avoid accidental globbing in evaled expressions
5611no_glob_subst='s/\*/\\\*/g'
5612
5613ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5614ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5615ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5618$as_echo_n "checking how to print strings... " >&6; }
5619# Test print first, because it will be a builtin if present.
5620if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5621 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5622 ECHO='print -r --'
5623elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5624 ECHO='printf %s\n'
5625else
5626 # Use this function as a fallback that always works.
5627 func_fallback_echo ()
5628 {
5629 eval 'cat <<_LTECHO_EOF
5630$1
5631_LTECHO_EOF'
5632 }
5633 ECHO='func_fallback_echo'
5634fi
5635
5636# func_echo_all arg...
5637# Invoke $ECHO with all args, space-separated.
5638func_echo_all ()
5639{
5640 $ECHO ""
5641}
5642
5643case "$ECHO" in
5644 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5645$as_echo "printf" >&6; } ;;
5646 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5647$as_echo "print -r" >&6; } ;;
5648 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5649$as_echo "cat" >&6; } ;;
5650esac
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5666$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5667if ${ac_cv_path_SED+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5671 for ac_i in 1 2 3 4 5 6 7; do
5672 ac_script="$ac_script$as_nl$ac_script"
5673 done
5674 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5675 { ac_script=; unset ac_script;}
5676 if test -z "$SED"; then
5677 ac_path_SED_found=false
5678 # Loop through the user's path and test for each of PROGNAME-LIST
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_prog in sed gsed; do
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5687 as_fn_executable_p "$ac_path_SED" || continue
5688# Check for GNU ac_path_SED and select it if it is found.
5689 # Check for GNU $ac_path_SED
5690case `"$ac_path_SED" --version 2>&1` in
5691*GNU*)
5692 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5693*)
5694 ac_count=0
5695 $as_echo_n 0123456789 >"conftest.in"
5696 while :
5697 do
5698 cat "conftest.in" "conftest.in" >"conftest.tmp"
5699 mv "conftest.tmp" "conftest.in"
5700 cp "conftest.in" "conftest.nl"
5701 $as_echo '' >> "conftest.nl"
5702 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5704 as_fn_arith $ac_count + 1 && ac_count=$as_val
5705 if test $ac_count -gt ${ac_path_SED_max-0}; then
5706 # Best one so far, save it but keep looking for a better one
5707 ac_cv_path_SED="$ac_path_SED"
5708 ac_path_SED_max=$ac_count
5709 fi
5710 # 10*(2^10) chars as input seems more than enough
5711 test $ac_count -gt 10 && break
5712 done
5713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5714esac
5715
5716 $ac_path_SED_found && break 3
5717 done
5718 done
5719 done
5720IFS=$as_save_IFS
5721 if test -z "$ac_cv_path_SED"; then
5722 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5723 fi
5724else
5725 ac_cv_path_SED=$SED
5726fi
5727
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5730$as_echo "$ac_cv_path_SED" >&6; }
5731 SED="$ac_cv_path_SED"
5732 rm -f conftest.sed
5733
5734test -z "$SED" && SED=sed
5735Xsed="$SED -e 1s/^X//"
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5748$as_echo_n "checking for fgrep... " >&6; }
5749if ${ac_cv_path_FGREP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751else
5752 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5753 then ac_cv_path_FGREP="$GREP -F"
5754 else
5755 if test -z "$FGREP"; then
5756 ac_path_FGREP_found=false
5757 # Loop through the user's path and test for each of PROGNAME-LIST
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_prog in fgrep; do
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5766 as_fn_executable_p "$ac_path_FGREP" || continue
5767# Check for GNU ac_path_FGREP and select it if it is found.
5768 # Check for GNU $ac_path_FGREP
5769case `"$ac_path_FGREP" --version 2>&1` in
5770*GNU*)
5771 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5772*)
5773 ac_count=0
5774 $as_echo_n 0123456789 >"conftest.in"
5775 while :
5776 do
5777 cat "conftest.in" "conftest.in" >"conftest.tmp"
5778 mv "conftest.tmp" "conftest.in"
5779 cp "conftest.in" "conftest.nl"
5780 $as_echo 'FGREP' >> "conftest.nl"
5781 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5783 as_fn_arith $ac_count + 1 && ac_count=$as_val
5784 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5785 # Best one so far, save it but keep looking for a better one
5786 ac_cv_path_FGREP="$ac_path_FGREP"
5787 ac_path_FGREP_max=$ac_count
5788 fi
5789 # 10*(2^10) chars as input seems more than enough
5790 test $ac_count -gt 10 && break
5791 done
5792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5793esac
5794
5795 $ac_path_FGREP_found && break 3
5796 done
5797 done
5798 done
5799IFS=$as_save_IFS
5800 if test -z "$ac_cv_path_FGREP"; then
5801 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5802 fi
5803else
5804 ac_cv_path_FGREP=$FGREP
5805fi
5806
5807 fi
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5810$as_echo "$ac_cv_path_FGREP" >&6; }
5811 FGREP="$ac_cv_path_FGREP"
5812
5813
5814test -z "$GREP" && GREP=grep
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834# Check whether --with-gnu-ld was given.
5835if test "${with_gnu_ld+set}" = set; then :
5836 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5837else
5838 with_gnu_ld=no
5839fi
5840
5841ac_prog=ld
5842if test "$GCC" = yes; then
5843 # Check if gcc -print-prog-name=ld gives a path.
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5845$as_echo_n "checking for ld used by $CC... " >&6; }
5846 case $host in
5847 *-*-mingw*)
5848 # gcc leaves a trailing carriage return which upsets mingw
5849 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5850 *)
5851 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5852 esac
5853 case $ac_prog in
5854 # Accept absolute paths.
5855 [\\/]* | ?:[\\/]*)
5856 re_direlt='/[^/][^/]*/\.\./'
5857 # Canonicalize the pathname of ld
5858 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5859 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5860 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5861 done
5862 test -z "$LD" && LD="$ac_prog"
5863 ;;
5864 "")
5865 # If it fails, then pretend we aren't using GCC.
5866 ac_prog=ld
5867 ;;
5868 *)
5869 # If it is relative, then search for the first ld in PATH.
5870 with_gnu_ld=unknown
5871 ;;
5872 esac
5873elif test "$with_gnu_ld" = yes; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5875$as_echo_n "checking for GNU ld... " >&6; }
5876else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5878$as_echo_n "checking for non-GNU ld... " >&6; }
5879fi
5880if ${lt_cv_path_LD+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 if test -z "$LD"; then
5884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5885 for ac_dir in $PATH; do
5886 IFS="$lt_save_ifs"
5887 test -z "$ac_dir" && ac_dir=.
5888 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5889 lt_cv_path_LD="$ac_dir/$ac_prog"
5890 # Check to see if the program is GNU ld. I'd rather use --version,
5891 # but apparently some variants of GNU ld only accept -v.
5892 # Break only if it was the GNU/non-GNU ld that we prefer.
5893 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5894 *GNU* | *'with BFD'*)
5895 test "$with_gnu_ld" != no && break
5896 ;;
5897 *)
5898 test "$with_gnu_ld" != yes && break
5899 ;;
5900 esac
5901 fi
5902 done
5903 IFS="$lt_save_ifs"
5904else
5905 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5906fi
5907fi
5908
5909LD="$lt_cv_path_LD"
5910if test -n "$LD"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5912$as_echo "$LD" >&6; }
5913else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916fi
5917test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5919$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5920if ${lt_cv_prog_gnu_ld+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5924case `$LD -v 2>&1 </dev/null` in
5925*GNU* | *'with BFD'*)
5926 lt_cv_prog_gnu_ld=yes
5927 ;;
5928*)
5929 lt_cv_prog_gnu_ld=no
5930 ;;
5931esac
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5934$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5935with_gnu_ld=$lt_cv_prog_gnu_ld
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5946$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5947if ${lt_cv_path_NM+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949else
5950 if test -n "$NM"; then
5951 # Let the user override the test.
5952 lt_cv_path_NM="$NM"
5953else
5954 lt_nm_to_check="${ac_tool_prefix}nm"
5955 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5956 lt_nm_to_check="$lt_nm_to_check nm"
5957 fi
5958 for lt_tmp_nm in $lt_nm_to_check; do
5959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5960 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5961 IFS="$lt_save_ifs"
5962 test -z "$ac_dir" && ac_dir=.
5963 tmp_nm="$ac_dir/$lt_tmp_nm"
5964 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5965 # Check to see if the nm accepts a BSD-compat flag.
5966 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5967 # nm: unknown option "B" ignored
5968 # Tru64's nm complains that /dev/null is an invalid object file
5969 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5970 */dev/null* | *'Invalid file or object type'*)
5971 lt_cv_path_NM="$tmp_nm -B"
5972 break
5973 ;;
5974 *)
5975 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5976 */dev/null*)
5977 lt_cv_path_NM="$tmp_nm -p"
5978 break
5979 ;;
5980 *)
5981 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5982 continue # so that we can try to find one that supports BSD flags
5983 ;;
5984 esac
5985 ;;
5986 esac
5987 fi
5988 done
5989 IFS="$lt_save_ifs"
5990 done
5991 : ${lt_cv_path_NM=no}
5992fi
5993fi
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5995$as_echo "$lt_cv_path_NM" >&6; }
5996if test "$lt_cv_path_NM" != "no"; then
5997 NM="$lt_cv_path_NM"
5998else
5999 # Didn't find any BSD compatible name lister, look for dumpbin.
6000 if test -n "$DUMPBIN"; then :
6001 # Let the user override the test.
6002 else
6003 if test -n "$ac_tool_prefix"; then
6004 for ac_prog in dumpbin "link -dump"
6005 do
6006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if ${ac_cv_prog_DUMPBIN+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$DUMPBIN"; then
6014 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033DUMPBIN=$ac_cv_prog_DUMPBIN
6034if test -n "$DUMPBIN"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6036$as_echo "$DUMPBIN" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043 test -n "$DUMPBIN" && break
6044 done
6045fi
6046if test -z "$DUMPBIN"; then
6047 ac_ct_DUMPBIN=$DUMPBIN
6048 for ac_prog in dumpbin "link -dump"
6049do
6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
6051set dummy $ac_prog; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
6054if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056else
6057 if test -n "$ac_ct_DUMPBIN"; then
6058 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6078if test -n "$ac_ct_DUMPBIN"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6080$as_echo "$ac_ct_DUMPBIN" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086
6087 test -n "$ac_ct_DUMPBIN" && break
6088done
6089
6090 if test "x$ac_ct_DUMPBIN" = x; then
6091 DUMPBIN=":"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094yes:)
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097ac_tool_warned=yes ;;
6098esac
6099 DUMPBIN=$ac_ct_DUMPBIN
6100 fi
6101fi
6102
6103 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6104 *COFF*)
6105 DUMPBIN="$DUMPBIN -symbols"
6106 ;;
6107 *)
6108 DUMPBIN=:
6109 ;;
6110 esac
6111 fi
6112
6113 if test "$DUMPBIN" != ":"; then
6114 NM="$DUMPBIN"
6115 fi
6116fi
6117test -z "$NM" && NM=nm
6118
6119
6120
6121
6122
6123
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6125$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6126if ${lt_cv_nm_interface+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128else
6129 lt_cv_nm_interface="BSD nm"
6130 echo "int some_variable = 0;" > conftest.$ac_ext
6131 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6132 (eval "$ac_compile" 2>conftest.err)
6133 cat conftest.err >&5
6134 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6135 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6136 cat conftest.err >&5
6137 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6138 cat conftest.out >&5
6139 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6140 lt_cv_nm_interface="MS dumpbin"
6141 fi
6142 rm -f conftest*
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6145$as_echo "$lt_cv_nm_interface" >&6; }
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6148$as_echo_n "checking whether ln -s works... " >&6; }
6149LN_S=$as_ln_s
6150if test "$LN_S" = "ln -s"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152$as_echo "yes" >&6; }
6153else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6155$as_echo "no, using $LN_S" >&6; }
6156fi
6157
6158# find the maximum length of command line arguments
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6160$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6161if ${lt_cv_sys_max_cmd_len+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 i=0
6165 teststring="ABCD"
6166
6167 case $build_os in
6168 msdosdjgpp*)
6169 # On DJGPP, this test can blow up pretty badly due to problems in libc
6170 # (any single argument exceeding 2000 bytes causes a buffer overrun
6171 # during glob expansion). Even if it were fixed, the result of this
6172 # check would be larger than it should be.
6173 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6174 ;;
6175
6176 gnu*)
6177 # Under GNU Hurd, this test is not required because there is
6178 # no limit to the length of command line arguments.
6179 # Libtool will interpret -1 as no limit whatsoever
6180 lt_cv_sys_max_cmd_len=-1;
6181 ;;
6182
6183 cygwin* | mingw* | cegcc*)
6184 # On Win9x/ME, this test blows up -- it succeeds, but takes
6185 # about 5 minutes as the teststring grows exponentially.
6186 # Worse, since 9x/ME are not pre-emptively multitasking,
6187 # you end up with a "frozen" computer, even though with patience
6188 # the test eventually succeeds (with a max line length of 256k).
6189 # Instead, let's just punt: use the minimum linelength reported by
6190 # all of the supported platforms: 8192 (on NT/2K/XP).
6191 lt_cv_sys_max_cmd_len=8192;
6192 ;;
6193
6194 mint*)
6195 # On MiNT this can take a long time and run out of memory.
6196 lt_cv_sys_max_cmd_len=8192;
6197 ;;
6198
6199 amigaos*)
6200 # On AmigaOS with pdksh, this test takes hours, literally.
6201 # So we just punt and use a minimum line length of 8192.
6202 lt_cv_sys_max_cmd_len=8192;
6203 ;;
6204
6205 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6206 # This has been around since 386BSD, at least. Likely further.
6207 if test -x /sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209 elif test -x /usr/sbin/sysctl; then
6210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211 else
6212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6213 fi
6214 # And add a safety zone
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217 ;;
6218
6219 interix*)
6220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221 lt_cv_sys_max_cmd_len=196608
6222 ;;
6223
6224 osf*)
6225 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6226 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6227 # nice to cause kernel panics so lets avoid the loop below.
6228 # First set a reasonable default.
6229 lt_cv_sys_max_cmd_len=16384
6230 #
6231 if test -x /sbin/sysconfig; then
6232 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6233 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6234 esac
6235 fi
6236 ;;
6237 sco3.2v5*)
6238 lt_cv_sys_max_cmd_len=102400
6239 ;;
6240 sysv5* | sco5v6* | sysv4.2uw2*)
6241 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6242 if test -n "$kargmax"; then
6243 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6244 else
6245 lt_cv_sys_max_cmd_len=32768
6246 fi
6247 ;;
6248 *)
6249 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6250 if test -n "$lt_cv_sys_max_cmd_len"; then
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253 else
6254 # Make teststring a little bigger before we do anything with it.
6255 # a 1K string should be a reasonable start.
6256 for i in 1 2 3 4 5 6 7 8 ; do
6257 teststring=$teststring$teststring
6258 done
6259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6260 # If test is not a shell built-in, we'll probably end up computing a
6261 # maximum length that is only half of the actual maximum length, but
6262 # we can't tell.
6263 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6264 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6265 test $i != 17 # 1/2 MB should be enough
6266 do
6267 i=`expr $i + 1`
b4c522fa
IB
6268 teststring=$teststring$teststring
6269 done
6270 # Only check the string length outside the loop.
6271 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6272 teststring=
6273 # Add a significant safety factor because C++ compilers can tack on
6274 # massive amounts of additional arguments before passing them to the
6275 # linker. It appears as though 1/2 is a usable value.
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6277 fi
6278 ;;
6279 esac
6280
6281fi
6282
6283if test -n $lt_cv_sys_max_cmd_len ; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6285$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6286else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6288$as_echo "none" >&6; }
6289fi
6290max_cmd_len=$lt_cv_sys_max_cmd_len
6291
6292
6293
6294
6295
6296
6297: ${CP="cp -f"}
6298: ${MV="mv -f"}
6299: ${RM="rm -f"}
6300
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6302$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6303# Try some XSI features
6304xsi_shell=no
6305( _lt_dummy="a/b/c"
6306 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6307 = c,a/b,, \
6308 && eval 'test $(( 1 + 1 )) -eq 2 \
6309 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6310 && xsi_shell=yes
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6312$as_echo "$xsi_shell" >&6; }
6313
6314
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6316$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6317lt_shell_append=no
6318( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6319 >/dev/null 2>&1 \
6320 && lt_shell_append=yes
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6322$as_echo "$lt_shell_append" >&6; }
6323
6324
6325if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6326 lt_unset=unset
6327else
6328 lt_unset=false
6329fi
6330
6331
6332
6333
6334
6335# test EBCDIC or ASCII
6336case `echo X|tr X '\101'` in
6337 A) # ASCII based system
6338 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6339 lt_SP2NL='tr \040 \012'
6340 lt_NL2SP='tr \015\012 \040\040'
6341 ;;
6342 *) # EBCDIC based system
6343 lt_SP2NL='tr \100 \n'
6344 lt_NL2SP='tr \r\n \100\100'
6345 ;;
6346esac
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6357$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6358if ${lt_cv_ld_reload_flag+:} false; then :
b4c522fa
IB
6359 $as_echo_n "(cached) " >&6
6360else
6361 lt_cv_ld_reload_flag='-r'
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6364$as_echo "$lt_cv_ld_reload_flag" >&6; }
6365reload_flag=$lt_cv_ld_reload_flag
6366case $reload_flag in
6367"" | " "*) ;;
6368*) reload_flag=" $reload_flag" ;;
6369esac
6370reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371case $host_os in
6372 darwin*)
6373 if test "$GCC" = yes; then
6374 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6375 else
6376 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6377 fi
6378 ;;
6379esac
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389if test -n "$ac_tool_prefix"; then
6390 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6391set dummy ${ac_tool_prefix}objdump; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6394if ${ac_cv_prog_OBJDUMP+:} false; then :
b4c522fa
IB
6395 $as_echo_n "(cached) " >&6
6396else
6397 if test -n "$OBJDUMP"; then
6398 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6407 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6410 fi
6411done
6412 done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417OBJDUMP=$ac_cv_prog_OBJDUMP
6418if test -n "$OBJDUMP"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6420$as_echo "$OBJDUMP" >&6; }
6421else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426
6427fi
6428if test -z "$ac_cv_prog_OBJDUMP"; then
6429 ac_ct_OBJDUMP=$OBJDUMP
6430 # Extract the first word of "objdump", so it can be a program name with args.
6431set dummy objdump; ac_word=$2
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6434if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b4c522fa
IB
6435 $as_echo_n "(cached) " >&6
6436else
6437 if test -n "$ac_ct_OBJDUMP"; then
6438 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6447 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451done
6452 done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6458if test -n "$ac_ct_OBJDUMP"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6460$as_echo "$ac_ct_OBJDUMP" >&6; }
6461else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466 if test "x$ac_ct_OBJDUMP" = x; then
6467 OBJDUMP="false"
6468 else
6469 case $cross_compiling:$ac_tool_warned in
6470yes:)
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473ac_tool_warned=yes ;;
6474esac
6475 OBJDUMP=$ac_ct_OBJDUMP
6476 fi
6477else
6478 OBJDUMP="$ac_cv_prog_OBJDUMP"
6479fi
6480
6481test -z "$OBJDUMP" && OBJDUMP=objdump
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6492$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6493if ${lt_cv_deplibs_check_method+:} false; then :
b4c522fa
IB
6494 $as_echo_n "(cached) " >&6
6495else
6496 lt_cv_file_magic_cmd='$MAGIC_CMD'
6497lt_cv_file_magic_test_file=
6498lt_cv_deplibs_check_method='unknown'
6499# Need to set the preceding variable on all platforms that support
6500# interlibrary dependencies.
6501# 'none' -- dependencies not supported.
6502# `unknown' -- same as none, but documents that we really don't know.
6503# 'pass_all' -- all dependencies passed with no checks.
6504# 'test_compile' -- check by making test program.
6505# 'file_magic [[regex]]' -- check by looking for files in library path
6506# which responds to the $file_magic_cmd with a given extended regex.
6507# If you have `file' or equivalent on your system and you're not sure
6508# whether `pass_all' will *always* work, you probably want this one.
6509
6510case $host_os in
6511aix[4-9]*)
6512 lt_cv_deplibs_check_method=pass_all
6513 ;;
6514
6515beos*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519bsdi[45]*)
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6521 lt_cv_file_magic_cmd='/usr/bin/file -L'
6522 lt_cv_file_magic_test_file=/shlib/libc.so
6523 ;;
6524
6525cygwin*)
6526 # func_win32_libid is a shell function defined in ltmain.sh
6527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528 lt_cv_file_magic_cmd='func_win32_libid'
6529 ;;
6530
6531mingw* | pw32*)
6532 # Base MSYS/MinGW do not provide the 'file' command needed by
6533 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6534 # unless we find 'file', for example because we are cross-compiling.
6535 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6536 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6537 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6538 lt_cv_file_magic_cmd='func_win32_libid'
6539 else
6540 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6541 lt_cv_file_magic_cmd='$OBJDUMP -f'
6542 fi
6543 ;;
6544
6545cegcc*)
6546 # use the weaker test based on 'objdump'. See mingw*.
6547 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6548 lt_cv_file_magic_cmd='$OBJDUMP -f'
6549 ;;
6550
6551darwin* | rhapsody*)
6552 lt_cv_deplibs_check_method=pass_all
6553 ;;
6554
6555freebsd* | dragonfly*)
6556 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6557 case $host_cpu in
6558 i*86 )
6559 # Not sure whether the presence of OpenBSD here was a mistake.
6560 # Let's accept both of them until this is cleared up.
6561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6562 lt_cv_file_magic_cmd=/usr/bin/file
6563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6564 ;;
6565 esac
6566 else
6567 lt_cv_deplibs_check_method=pass_all
6568 fi
6569 ;;
6570
6571gnu*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574
6575haiku*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579hpux10.20* | hpux11*)
6580 lt_cv_file_magic_cmd=/usr/bin/file
6581 case $host_cpu in
6582 ia64*)
6583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6584 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6585 ;;
6586 hppa*64*)
6587 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]'
6588 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6589 ;;
6590 *)
6591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6592 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6593 ;;
6594 esac
6595 ;;
6596
6597interix[3-9]*)
6598 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6600 ;;
6601
6602irix5* | irix6* | nonstopux*)
6603 case $LD in
6604 *-32|*"-32 ") libmagic=32-bit;;
6605 *-n32|*"-n32 ") libmagic=N32;;
6606 *-64|*"-64 ") libmagic=64-bit;;
6607 *) libmagic=never-match;;
6608 esac
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611
6612# This must be Linux ELF.
e9085da5 6613linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
6614 lt_cv_deplibs_check_method=pass_all
6615 ;;
6616
6617netbsd*)
6618 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6620 else
6621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6622 fi
6623 ;;
6624
6625newos6*)
6626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6627 lt_cv_file_magic_cmd=/usr/bin/file
6628 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6629 ;;
6630
6631*nto* | *qnx*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634
6635openbsd*)
6636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6638 else
6639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6640 fi
6641 ;;
6642
6643osf3* | osf4* | osf5*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647rdos*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651solaris*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658
6659sysv4 | sysv4.3*)
6660 case $host_vendor in
6661 motorola)
6662 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]'
6663 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6664 ;;
6665 ncr)
6666 lt_cv_deplibs_check_method=pass_all
6667 ;;
6668 sequent)
6669 lt_cv_file_magic_cmd='/bin/file'
6670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6671 ;;
6672 sni)
6673 lt_cv_file_magic_cmd='/bin/file'
6674 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6675 lt_cv_file_magic_test_file=/lib/libc.so
6676 ;;
6677 siemens)
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
6680 pc)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683 esac
6684 ;;
6685
6686tpf*)
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689esac
6690
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6693$as_echo "$lt_cv_deplibs_check_method" >&6; }
6694file_magic_cmd=$lt_cv_file_magic_cmd
6695deplibs_check_method=$lt_cv_deplibs_check_method
6696test -z "$deplibs_check_method" && deplibs_check_method=unknown
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6711set dummy ${ac_tool_prefix}ar; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6714if ${ac_cv_prog_AR+:} false; then :
b4c522fa
IB
6715 $as_echo_n "(cached) " >&6
6716else
6717 if test -n "$AR"; then
6718 ac_cv_prog_AR="$AR" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6727 ac_cv_prog_AR="${ac_tool_prefix}ar"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732 done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737AR=$ac_cv_prog_AR
6738if test -n "$AR"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6740$as_echo "$AR" >&6; }
6741else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746
6747fi
6748if test -z "$ac_cv_prog_AR"; then
6749 ac_ct_AR=$AR
6750 # Extract the first word of "ar", so it can be a program name with args.
6751set dummy ar; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6754if ${ac_cv_prog_ac_ct_AR+:} false; then :
b4c522fa
IB
6755 $as_echo_n "(cached) " >&6
6756else
6757 if test -n "$ac_ct_AR"; then
6758 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6767 ac_cv_prog_ac_ct_AR="ar"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772 done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777ac_ct_AR=$ac_cv_prog_ac_ct_AR
6778if test -n "$ac_ct_AR"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6780$as_echo "$ac_ct_AR" >&6; }
6781else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786 if test "x$ac_ct_AR" = x; then
6787 AR="false"
6788 else
6789 case $cross_compiling:$ac_tool_warned in
6790yes:)
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793ac_tool_warned=yes ;;
6794esac
6795 AR=$ac_ct_AR
6796 fi
6797else
6798 AR="$ac_cv_prog_AR"
6799fi
6800
6801test -z "$AR" && AR=ar
6802test -z "$AR_FLAGS" && AR_FLAGS=cru
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6816set dummy ${ac_tool_prefix}strip; ac_word=$2
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6819if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
6820 $as_echo_n "(cached) " >&6
6821else
6822 if test -n "$STRIP"; then
6823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6824else
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836done
6837 done
6838IFS=$as_save_IFS
6839
6840fi
6841fi
6842STRIP=$ac_cv_prog_STRIP
6843if test -n "$STRIP"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6845$as_echo "$STRIP" >&6; }
6846else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848$as_echo "no" >&6; }
6849fi
6850
6851
6852fi
6853if test -z "$ac_cv_prog_STRIP"; then
6854 ac_ct_STRIP=$STRIP
6855 # Extract the first word of "strip", so it can be a program name with args.
6856set dummy strip; ac_word=$2
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6859if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
6860 $as_echo_n "(cached) " >&6
6861else
6862 if test -n "$ac_ct_STRIP"; then
6863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6872 ac_cv_prog_ac_ct_STRIP="strip"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877 done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
6882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6883if test -n "$ac_ct_STRIP"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6885$as_echo "$ac_ct_STRIP" >&6; }
6886else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888$as_echo "no" >&6; }
6889fi
6890
6891 if test "x$ac_ct_STRIP" = x; then
6892 STRIP=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895yes:)
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898ac_tool_warned=yes ;;
6899esac
6900 STRIP=$ac_ct_STRIP
6901 fi
6902else
6903 STRIP="$ac_cv_prog_STRIP"
6904fi
6905
6906test -z "$STRIP" && STRIP=:
6907
6908
6909
6910
6911
6912
6913if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6915set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6918if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
6919 $as_echo_n "(cached) " >&6
6920else
6921 if test -n "$RANLIB"; then
6922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936 done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941RANLIB=$ac_cv_prog_RANLIB
6942if test -n "$RANLIB"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6944$as_echo "$RANLIB" >&6; }
6945else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950
6951fi
6952if test -z "$ac_cv_prog_RANLIB"; then
6953 ac_ct_RANLIB=$RANLIB
6954 # Extract the first word of "ranlib", so it can be a program name with args.
6955set dummy ranlib; ac_word=$2
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6958if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
6959 $as_echo_n "(cached) " >&6
6960else
6961 if test -n "$ac_ct_RANLIB"; then
6962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6971 ac_cv_prog_ac_ct_RANLIB="ranlib"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976 done
6977IFS=$as_save_IFS
6978
6979fi
6980fi
6981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6982if test -n "$ac_ct_RANLIB"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6984$as_echo "$ac_ct_RANLIB" >&6; }
6985else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987$as_echo "no" >&6; }
6988fi
6989
6990 if test "x$ac_ct_RANLIB" = x; then
6991 RANLIB=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994yes:)
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997ac_tool_warned=yes ;;
6998esac
6999 RANLIB=$ac_ct_RANLIB
7000 fi
7001else
7002 RANLIB="$ac_cv_prog_RANLIB"
7003fi
7004
7005test -z "$RANLIB" && RANLIB=:
7006
7007
7008
7009
7010
7011
7012# Determine commands to create old-style static archives.
7013old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7014old_postinstall_cmds='chmod 644 $oldlib'
7015old_postuninstall_cmds=
7016
7017if test -n "$RANLIB"; then
7018 case $host_os in
7019 openbsd*)
7020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7021 ;;
7022 *)
7023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7024 ;;
7025 esac
7026 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7027fi
7028
7029case $host_os in
7030 darwin*)
7031 lock_old_archive_extraction=yes ;;
7032 *)
7033 lock_old_archive_extraction=no ;;
7034esac
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074# If no C compiler was specified, use CC.
7075LTCC=${LTCC-"$CC"}
7076
7077# If no C compiler flags were specified, use CFLAGS.
7078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079
7080# Allow CC to be a program name with arguments.
7081compiler=$CC
7082
7083
7084# Check for command to grab the raw symbol name followed by C symbol from nm.
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7086$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7087if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b4c522fa
IB
7088 $as_echo_n "(cached) " >&6
7089else
7090
7091# These are sane defaults that work on at least a few old systems.
7092# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7093
7094# Character class describing NM global symbol codes.
7095symcode='[BCDEGRST]'
7096
7097# Regexp to match symbols that can be accessed directly from C.
7098sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7099
7100# Define system-specific variables.
7101case $host_os in
7102aix*)
7103 symcode='[BCDT]'
7104 ;;
7105cygwin* | mingw* | pw32* | cegcc*)
7106 symcode='[ABCDGISTW]'
7107 ;;
7108hpux*)
7109 if test "$host_cpu" = ia64; then
7110 symcode='[ABCDEGRST]'
7111 fi
7112 ;;
7113irix* | nonstopux*)
7114 symcode='[BCDEGRST]'
7115 ;;
7116osf*)
7117 symcode='[BCDEGQRST]'
7118 ;;
7119solaris*)
7120 symcode='[BDRT]'
7121 ;;
7122sco3.2v5*)
7123 symcode='[DT]'
7124 ;;
7125sysv4.2uw2*)
7126 symcode='[DT]'
7127 ;;
7128sysv5* | sco5v6* | unixware* | OpenUNIX*)
7129 symcode='[ABDT]'
7130 ;;
7131sysv4)
7132 symcode='[DFNSTU]'
7133 ;;
7134esac
7135
7136# If we're using GNU nm, then use its standard symbol codes.
7137case `$NM -V 2>&1` in
7138*GNU* | *'with BFD'*)
7139 symcode='[ABCDGIRSTW]' ;;
7140esac
7141
7142# Transform an extracted symbol line into a proper C declaration.
7143# Some systems (esp. on ia64) link data and code symbols differently,
7144# so use this general approach.
7145lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7146
7147# Transform an extracted symbol line into symbol name and symbol address
7148lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7149lt_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'"
7150
7151# Handle CRLF in mingw tool chain
7152opt_cr=
7153case $build_os in
7154mingw*)
7155 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7156 ;;
7157esac
7158
7159# Try without a prefix underscore, then with it.
7160for ac_symprfx in "" "_"; do
7161
7162 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7163 symxfrm="\\1 $ac_symprfx\\2 \\2"
7164
7165 # Write the raw and C identifiers.
7166 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7167 # Fake it for dumpbin and say T for any non-static function
7168 # and D for any global variable.
7169 # Also find C++ and __fastcall symbols from MSVC++,
7170 # which start with @ or ?.
7171 lt_cv_sys_global_symbol_pipe="$AWK '"\
7172" {last_section=section; section=\$ 3};"\
7173" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7174" \$ 0!~/External *\|/{next};"\
7175" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7176" {if(hide[section]) next};"\
7177" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7178" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7179" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7180" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7181" ' prfx=^$ac_symprfx"
7182 else
7183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7184 fi
7185
7186 # Check to see that the pipe works correctly.
7187 pipe_works=no
7188
7189 rm -f conftest*
7190 cat > conftest.$ac_ext <<_LT_EOF
7191#ifdef __cplusplus
7192extern "C" {
7193#endif
7194char nm_test_var;
7195void nm_test_func(void);
7196void nm_test_func(void){}
7197#ifdef __cplusplus
7198}
7199#endif
7200int main(){nm_test_var='a';nm_test_func();return(0);}
7201_LT_EOF
7202
7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
7208 # Now try to grab the symbols.
7209 nlist=conftest.nm
7210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7211 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7212 ac_status=$?
7213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; } && test -s "$nlist"; then
7215 # Try sorting and uniquifying the output.
7216 if sort "$nlist" | uniq > "$nlist"T; then
7217 mv -f "$nlist"T "$nlist"
7218 else
7219 rm -f "$nlist"T
7220 fi
7221
7222 # Make sure that we snagged all the symbols we need.
7223 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7224 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7225 cat <<_LT_EOF > conftest.$ac_ext
7226#ifdef __cplusplus
7227extern "C" {
7228#endif
7229
7230_LT_EOF
7231 # Now generate the symbol file.
7232 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7233
7234 cat <<_LT_EOF >> conftest.$ac_ext
7235
7236/* The mapping between symbol names and symbols. */
7237const struct {
7238 const char *name;
7239 void *address;
7240}
7241lt__PROGRAM__LTX_preloaded_symbols[] =
7242{
7243 { "@PROGRAM@", (void *) 0 },
7244_LT_EOF
7245 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7246 cat <<\_LT_EOF >> conftest.$ac_ext
7247 {0, (void *) 0}
7248};
7249
7250/* This works around a problem in FreeBSD linker */
7251#ifdef FREEBSD_WORKAROUND
7252static const void *lt_preloaded_setup() {
7253 return lt__PROGRAM__LTX_preloaded_symbols;
7254}
7255#endif
7256
7257#ifdef __cplusplus
7258}
7259#endif
7260_LT_EOF
7261 # Now try linking the two files.
7262 mv conftest.$ac_objext conftstm.$ac_objext
7263 lt_save_LIBS="$LIBS"
7264 lt_save_CFLAGS="$CFLAGS"
7265 LIBS="conftstm.$ac_objext"
7266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7268 (eval $ac_link) 2>&5
7269 ac_status=$?
7270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7272 pipe_works=yes
7273 fi
7274 LIBS="$lt_save_LIBS"
7275 CFLAGS="$lt_save_CFLAGS"
7276 else
7277 echo "cannot find nm_test_func in $nlist" >&5
7278 fi
7279 else
7280 echo "cannot find nm_test_var in $nlist" >&5
7281 fi
7282 else
7283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7284 fi
7285 else
7286 echo "$progname: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7288 fi
7289 rm -rf conftest* conftst*
7290
7291 # Do not use the global_symbol_pipe unless it works.
7292 if test "$pipe_works" = yes; then
7293 break
7294 else
7295 lt_cv_sys_global_symbol_pipe=
7296 fi
7297done
7298
7299fi
7300
7301if test -z "$lt_cv_sys_global_symbol_pipe"; then
7302 lt_cv_sys_global_symbol_to_cdecl=
7303fi
7304if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7306$as_echo "failed" >&6; }
7307else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7309$as_echo "ok" >&6; }
7310fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
b4c522fa
IB
7331
7332
7333# Check whether --enable-libtool-lock was given.
7334if test "${enable_libtool_lock+set}" = set; then :
7335 enableval=$enable_libtool_lock;
7336fi
7337
7338test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7339
7340# Some flags need to be propagated to the compiler or linker for good
7341# libtool support.
7342case $host in
7343ia64-*-hpux*)
7344 # Find out which ABI we are using.
7345 echo 'int i;' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 case `/usr/bin/file conftest.$ac_objext` in
7352 *ELF-32*)
7353 HPUX_IA64_MODE="32"
7354 ;;
7355 *ELF-64*)
7356 HPUX_IA64_MODE="64"
7357 ;;
7358 esac
7359 fi
7360 rm -rf conftest*
7361 ;;
7362*-*-irix6*)
7363 # Find out which ABI we are using.
7364 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366 (eval $ac_compile) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 if test "$lt_cv_prog_gnu_ld" = yes; then
7371 case `/usr/bin/file conftest.$ac_objext` in
7372 *32-bit*)
7373 LD="${LD-ld} -melf32bsmip"
7374 ;;
7375 *N32*)
7376 LD="${LD-ld} -melf32bmipn32"
7377 ;;
7378 *64-bit*)
7379 LD="${LD-ld} -melf64bmip"
7380 ;;
7381 esac
7382 else
7383 case `/usr/bin/file conftest.$ac_objext` in
7384 *32-bit*)
7385 LD="${LD-ld} -32"
7386 ;;
7387 *N32*)
7388 LD="${LD-ld} -n32"
7389 ;;
7390 *64-bit*)
7391 LD="${LD-ld} -64"
7392 ;;
7393 esac
7394 fi
7395 fi
7396 rm -rf conftest*
7397 ;;
7398
7399x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7400s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7401 # Find out which ABI we are using.
7402 echo 'int i;' > conftest.$ac_ext
7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7405 ac_status=$?
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 case `/usr/bin/file conftest.o` in
7409 *32-bit*)
7410 case $host in
7411 x86_64-*kfreebsd*-gnu)
7412 LD="${LD-ld} -m elf_i386_fbsd"
7413 ;;
7414 x86_64-*linux*)
7415 case `/usr/bin/file conftest.o` in
7416 *x86-64*)
7417 LD="${LD-ld} -m elf32_x86_64"
7418 ;;
7419 *)
7420 LD="${LD-ld} -m elf_i386"
7421 ;;
7422 esac
7423 ;;
7424 powerpc64le-*linux*)
7425 LD="${LD-ld} -m elf32lppclinux"
7426 ;;
7427 powerpc64-*linux*)
7428 LD="${LD-ld} -m elf32ppclinux"
7429 ;;
7430 s390x-*linux*)
7431 LD="${LD-ld} -m elf_s390"
7432 ;;
7433 sparc64-*linux*)
7434 LD="${LD-ld} -m elf32_sparc"
7435 ;;
7436 esac
7437 ;;
7438 *64-bit*)
7439 case $host in
7440 x86_64-*kfreebsd*-gnu)
7441 LD="${LD-ld} -m elf_x86_64_fbsd"
7442 ;;
7443 x86_64-*linux*)
7444 LD="${LD-ld} -m elf_x86_64"
7445 ;;
7446 powerpcle-*linux*)
7447 LD="${LD-ld} -m elf64lppc"
7448 ;;
7449 powerpc-*linux*)
7450 LD="${LD-ld} -m elf64ppc"
7451 ;;
7452 s390*-*linux*|s390*-*tpf*)
7453 LD="${LD-ld} -m elf64_s390"
7454 ;;
7455 sparc*-*linux*)
7456 LD="${LD-ld} -m elf64_sparc"
7457 ;;
7458 esac
7459 ;;
7460 esac
7461 fi
7462 rm -rf conftest*
7463 ;;
7464
7465*-*-sco3.2v5*)
7466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7467 SAVE_CFLAGS="$CFLAGS"
7468 CFLAGS="$CFLAGS -belf"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7470$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7471if ${lt_cv_cc_needs_belf+:} false; then :
b4c522fa
IB
7472 $as_echo_n "(cached) " >&6
7473else
7474 ac_ext=c
7475ac_cpp='$CPP $CPPFLAGS'
7476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h. */
7482
7483int
7484main ()
7485{
7486
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491if ac_fn_c_try_link "$LINENO"; then :
7492 lt_cv_cc_needs_belf=yes
7493else
7494 lt_cv_cc_needs_belf=no
7495fi
7496rm -f core conftest.err conftest.$ac_objext \
7497 conftest$ac_exeext conftest.$ac_ext
7498 ac_ext=c
7499ac_cpp='$CPP $CPPFLAGS'
7500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7506$as_echo "$lt_cv_cc_needs_belf" >&6; }
7507 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7508 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7509 CFLAGS="$SAVE_CFLAGS"
7510 fi
7511 ;;
7512sparc*-*solaris*)
7513 # Find out which ABI we are using.
7514 echo 'int i;' > conftest.$ac_ext
7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
7520 case `/usr/bin/file conftest.o` in
7521 *64-bit*)
7522 case $lt_cv_prog_gnu_ld in
7523 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7524 *)
7525 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7526 LD="${LD-ld} -64"
7527 fi
7528 ;;
7529 esac
7530 ;;
7531 esac
7532 fi
7533 rm -rf conftest*
7534 ;;
7535esac
7536
7537need_locks="$enable_libtool_lock"
7538
7539
7540 case $host_os in
7541 rhapsody* | darwin*)
7542 if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7544set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7547if ${ac_cv_prog_DSYMUTIL+:} false; then :
b4c522fa
IB
7548 $as_echo_n "(cached) " >&6
7549else
7550 if test -n "$DSYMUTIL"; then
7551 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7560 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565 done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570DSYMUTIL=$ac_cv_prog_DSYMUTIL
7571if test -n "$DSYMUTIL"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7573$as_echo "$DSYMUTIL" >&6; }
7574else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579
7580fi
7581if test -z "$ac_cv_prog_DSYMUTIL"; then
7582 ac_ct_DSYMUTIL=$DSYMUTIL
7583 # Extract the first word of "dsymutil", so it can be a program name with args.
7584set dummy dsymutil; ac_word=$2
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7587if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b4c522fa
IB
7588 $as_echo_n "(cached) " >&6
7589else
7590 if test -n "$ac_ct_DSYMUTIL"; then
7591 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
235d1c46 7600 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b4c522fa
IB
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605 done
7606IFS=$as_save_IFS
7607
7608fi
7609fi
235d1c46
RO
7610ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7611if test -n "$ac_ct_DSYMUTIL"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7613$as_echo "$ac_ct_DSYMUTIL" >&6; }
b4c522fa
IB
7614else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
7618
235d1c46
RO
7619 if test "x$ac_ct_DSYMUTIL" = x; then
7620 DSYMUTIL=":"
b4c522fa
IB
7621 else
7622 case $cross_compiling:$ac_tool_warned in
7623yes:)
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7626ac_tool_warned=yes ;;
7627esac
235d1c46 7628 DSYMUTIL=$ac_ct_DSYMUTIL
b4c522fa
IB
7629 fi
7630else
235d1c46 7631 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b4c522fa
IB
7632fi
7633
7634 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7635 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7636set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b4c522fa
IB
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7639if ${ac_cv_prog_NMEDIT+:} false; then :
b4c522fa
IB
7640 $as_echo_n "(cached) " >&6
7641else
235d1c46
RO
7642 if test -n "$NMEDIT"; then
7643 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b4c522fa
IB
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
235d1c46 7652 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b4c522fa
IB
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
235d1c46
RO
7662NMEDIT=$ac_cv_prog_NMEDIT
7663if test -n "$NMEDIT"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7665$as_echo "$NMEDIT" >&6; }
b4c522fa
IB
7666else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671
7672fi
235d1c46
RO
7673if test -z "$ac_cv_prog_NMEDIT"; then
7674 ac_ct_NMEDIT=$NMEDIT
7675 # Extract the first word of "nmedit", so it can be a program name with args.
7676set dummy nmedit; ac_word=$2
b4c522fa
IB
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
235d1c46 7679if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b4c522fa
IB
7680 $as_echo_n "(cached) " >&6
7681else
235d1c46
RO
7682 if test -n "$ac_ct_NMEDIT"; then
7683 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b4c522fa
IB
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_NMEDIT="nmedit"
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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7703if test -n "$ac_ct_NMEDIT"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7705$as_echo "$ac_ct_NMEDIT" >&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_NMEDIT" = x; then
7712 NMEDIT=":"
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 NMEDIT=$ac_ct_NMEDIT
b4c522fa
IB
7721 fi
7722else
235d1c46 7723 NMEDIT="$ac_cv_prog_NMEDIT"
b4c522fa
IB
7724fi
7725
7726 if test -n "$ac_tool_prefix"; then
235d1c46
RO
7727 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7728set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
b4c522fa
IB
7732 $as_echo_n "(cached) " >&6
7733else
235d1c46
RO
7734 if test -n "$LIPO"; then
7735 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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
7754LIPO=$ac_cv_prog_LIPO
7755if test -n "$LIPO"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7757$as_echo "$LIPO" >&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_LIPO"; then
7766 ac_ct_LIPO=$LIPO
7767 # Extract the first word of "lipo", so it can be a program name with args.
7768set dummy lipo; 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_LIPO+:} false; then :
b4c522fa
IB
7772 $as_echo_n "(cached) " >&6
7773else
235d1c46
RO
7774 if test -n "$ac_ct_LIPO"; then
7775 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo"
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_LIPO=$ac_cv_prog_ac_ct_LIPO
7795if test -n "$ac_ct_LIPO"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7797$as_echo "$ac_ct_LIPO" >&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_LIPO" = x; then
7804 LIPO=":"
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 LIPO=$ac_ct_LIPO
b4c522fa
IB
7813 fi
7814else
235d1c46 7815 LIPO="$ac_cv_prog_LIPO"
b4c522fa
IB
7816fi
7817
235d1c46
RO
7818 if test -n "$ac_tool_prefix"; then
7819 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7820set dummy ${ac_tool_prefix}otool; ac_word=$2
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
7823if ${ac_cv_prog_OTOOL+:} false; then :
b4c522fa
IB
7824 $as_echo_n "(cached) " >&6
7825else
235d1c46
RO
7826 if test -n "$OTOOL"; then
7827 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b4c522fa 7828else
235d1c46
RO
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
7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
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
b4c522fa 7843
b4c522fa 7844fi
b4c522fa 7845fi
235d1c46
RO
7846OTOOL=$ac_cv_prog_OTOOL
7847if test -n "$OTOOL"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7849$as_echo "$OTOOL" >&6; }
b4c522fa 7850else
235d1c46
RO
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
b4c522fa 7853fi
b4c522fa 7854
235d1c46 7855
b4c522fa 7856fi
235d1c46
RO
7857if test -z "$ac_cv_prog_OTOOL"; then
7858 ac_ct_OTOOL=$OTOOL
7859 # Extract the first word of "otool", so it can be a program name with args.
7860set dummy otool; ac_word=$2
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862$as_echo_n "checking for $ac_word... " >&6; }
7863if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b4c522fa
IB
7864 $as_echo_n "(cached) " >&6
7865else
235d1c46
RO
7866 if test -n "$ac_ct_OTOOL"; then
7867 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
b4c522fa 7871do
235d1c46
RO
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_ac_ct_OTOOL="otool"
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
b4c522fa 7883
235d1c46
RO
7884fi
7885fi
7886ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7887if test -n "$ac_ct_OTOOL"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7889$as_echo "$ac_ct_OTOOL" >&6; }
b4c522fa 7890else
235d1c46
RO
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
b4c522fa 7893fi
b4c522fa 7894
235d1c46
RO
7895 if test "x$ac_ct_OTOOL" = x; then
7896 OTOOL=":"
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
7904 OTOOL=$ac_ct_OTOOL
7905 fi
b4c522fa 7906else
235d1c46 7907 OTOOL="$ac_cv_prog_OTOOL"
b4c522fa 7908fi
b4c522fa 7909
235d1c46
RO
7910 if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7912set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917else
7918 if test -n "$OTOOL64"; then
7919 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7920else
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_OTOOL64="${ac_tool_prefix}otool64"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
b4c522fa 7932done
235d1c46
RO
7933 done
7934IFS=$as_save_IFS
7935
7936fi
7937fi
7938OTOOL64=$ac_cv_prog_OTOOL64
7939if test -n "$OTOOL64"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7941$as_echo "$OTOOL64" >&6; }
7942else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
b4c522fa
IB
7945fi
7946
b4c522fa
IB
7947
7948fi
235d1c46
RO
7949if test -z "$ac_cv_prog_OTOOL64"; then
7950 ac_ct_OTOOL64=$OTOOL64
7951 # Extract the first word of "otool64", so it can be a program name with args.
7952set dummy otool64; 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_OTOOL64+:} false; then :
7956 $as_echo_n "(cached) " >&6
b4c522fa 7957else
235d1c46
RO
7958 if test -n "$ac_ct_OTOOL64"; then
7959 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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
b4c522fa 7976fi
235d1c46
RO
7977fi
7978ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7979if test -n "$ac_ct_OTOOL64"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7981$as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
7988 OTOOL64=":"
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 OTOOL64=$ac_ct_OTOOL64
7997 fi
b4c522fa 7998else
235d1c46 7999 OTOOL64="$ac_cv_prog_OTOOL64"
b4c522fa
IB
8000fi
8001
b4c522fa
IB
8002
8003
b4c522fa 8004
b4c522fa 8005
b4c522fa 8006
b4c522fa 8007
b4c522fa 8008
b4c522fa 8009
b4c522fa 8010
b4c522fa 8011
b4c522fa 8012
b4c522fa 8013
b4c522fa 8014
235d1c46
RO
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8029$as_echo_n "checking for -single_module linker flag... " >&6; }
8030if ${lt_cv_apple_cc_single_mod+:} false; then :
8031 $as_echo_n "(cached) " >&6
b4c522fa 8032else
235d1c46
RO
8033 lt_cv_apple_cc_single_mod=no
8034 if test -z "${LT_MULTI_MODULE}"; then
8035 # By default we will add the -single_module flag. You can override
8036 # by either setting the environment variable LT_MULTI_MODULE
8037 # non-empty at configure time, or by adding -multi_module to the
8038 # link flags.
8039 rm -rf libconftest.dylib*
8040 echo "int foo(void){return 1;}" > conftest.c
8041 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8042-dynamiclib -Wl,-single_module conftest.c" >&5
8043 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8044 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8045 _lt_result=$?
8046 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8047 lt_cv_apple_cc_single_mod=yes
8048 else
8049 cat conftest.err >&5
8050 fi
8051 rm -rf libconftest.dylib*
8052 rm -f conftest.*
8053 fi
8054fi
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8056$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8058$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8059if ${lt_cv_ld_exported_symbols_list+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061else
8062 lt_cv_ld_exported_symbols_list=no
8063 save_LDFLAGS=$LDFLAGS
8064 echo "_main" > conftest.sym
8065 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 8067/* end confdefs.h. */
b4c522fa 8068
b4c522fa
IB
8069int
8070main ()
8071{
235d1c46
RO
8072
8073 ;
b4c522fa
IB
8074 return 0;
8075}
8076_ACEOF
235d1c46
RO
8077if ac_fn_c_try_link "$LINENO"; then :
8078 lt_cv_ld_exported_symbols_list=yes
b4c522fa 8079else
235d1c46 8080 lt_cv_ld_exported_symbols_list=no
b4c522fa 8081fi
235d1c46
RO
8082rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LDFLAGS="$save_LDFLAGS"
b4c522fa
IB
8085
8086fi
235d1c46
RO
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8088$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8090$as_echo_n "checking for -force_load linker flag... " >&6; }
8091if ${lt_cv_ld_force_load+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093else
8094 lt_cv_ld_force_load=no
8095 cat > conftest.c << _LT_EOF
8096int forced_loaded() { return 2;}
8097_LT_EOF
8098 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8099 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8100 echo "$AR cru libconftest.a conftest.o" >&5
8101 $AR cru libconftest.a conftest.o 2>&5
8102 cat > conftest.c << _LT_EOF
8103int main() { return 0;}
8104_LT_EOF
8105 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8106 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8107 _lt_result=$?
8108 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8109 lt_cv_ld_force_load=yes
8110 else
8111 cat conftest.err >&5
8112 fi
8113 rm -f conftest.err libconftest.a conftest conftest.c
8114 rm -rf conftest.dSYM
b4c522fa
IB
8115
8116fi
235d1c46
RO
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8118$as_echo "$lt_cv_ld_force_load" >&6; }
8119 case $host_os in
8120 rhapsody* | darwin1.[012])
8121 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8122 darwin1.*)
8123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8124 darwin*) # darwin 5.x on
8125 # if running on 10.5 or later, the deployment target defaults
8126 # to the OS version, if on x86, and 10.4, the deployment
8127 # target defaults to 10.4. Don't you love it?
8128 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8129 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8131 10.[012][,.]*)
8132 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8133 10.*)
8134 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8135 esac
8136 ;;
8137 esac
8138 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8139 _lt_dar_single_mod='$single_module'
8140 fi
8141 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8142 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8143 else
8144 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8145 fi
8146 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8147 _lt_dsymutil='~$DSYMUTIL $lib || :'
8148 else
8149 _lt_dsymutil=
8150 fi
8151 ;;
8152 esac
b4c522fa
IB
8153
8154for ac_header in dlfcn.h
8155do :
8156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8157"
22e05272 8158if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b4c522fa
IB
8159 cat >>confdefs.h <<_ACEOF
8160#define HAVE_DLFCN_H 1
8161_ACEOF
8162
8163fi
8164
8165done
8166
8167
8168
8169
8170
8171# Set options
8172enable_dlopen=yes
8173
8174
8175
8176
8177 enable_win32_dll=no
8178
8179
8180 # Check whether --enable-shared was given.
8181if test "${enable_shared+set}" = set; then :
8182 enableval=$enable_shared; p=${PACKAGE-default}
8183 case $enableval in
8184 yes) enable_shared=yes ;;
8185 no) enable_shared=no ;;
8186 *)
8187 enable_shared=no
8188 # Look at the argument we got. We use all the common list separators.
8189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8190 for pkg in $enableval; do
8191 IFS="$lt_save_ifs"
8192 if test "X$pkg" = "X$p"; then
8193 enable_shared=yes
8194 fi
8195 done
8196 IFS="$lt_save_ifs"
8197 ;;
8198 esac
8199else
8200 enable_shared=yes
8201fi
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 # Check whether --enable-static was given.
8212if test "${enable_static+set}" = set; then :
8213 enableval=$enable_static; p=${PACKAGE-default}
8214 case $enableval in
8215 yes) enable_static=yes ;;
8216 no) enable_static=no ;;
8217 *)
8218 enable_static=no
8219 # Look at the argument we got. We use all the common list separators.
8220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8221 for pkg in $enableval; do
8222 IFS="$lt_save_ifs"
8223 if test "X$pkg" = "X$p"; then
8224 enable_static=yes
8225 fi
8226 done
8227 IFS="$lt_save_ifs"
8228 ;;
8229 esac
8230else
8231 enable_static=yes
8232fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243# Check whether --with-pic was given.
8244if test "${with_pic+set}" = set; then :
8245 withval=$with_pic; pic_mode="$withval"
8246else
8247 pic_mode=default
8248fi
8249
8250
8251test -z "$pic_mode" && pic_mode=default
8252
8253
8254
8255
8256
8257
8258
8259 # Check whether --enable-fast-install was given.
8260if test "${enable_fast_install+set}" = set; then :
8261 enableval=$enable_fast_install; p=${PACKAGE-default}
8262 case $enableval in
8263 yes) enable_fast_install=yes ;;
8264 no) enable_fast_install=no ;;
8265 *)
8266 enable_fast_install=no
8267 # Look at the argument we got. We use all the common list separators.
8268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8269 for pkg in $enableval; do
8270 IFS="$lt_save_ifs"
8271 if test "X$pkg" = "X$p"; then
8272 enable_fast_install=yes
8273 fi
8274 done
8275 IFS="$lt_save_ifs"
8276 ;;
8277 esac
8278else
8279 enable_fast_install=yes
8280fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292# This can be used to rebuild libtool when needed
8293LIBTOOL_DEPS="$ltmain"
8294
8295# Always use our own libtool.
8296LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323test -z "$LN_S" && LN_S="ln -s"
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338if test -n "${ZSH_VERSION+set}" ; then
8339 setopt NO_GLOB_SUBST
8340fi
8341
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8343$as_echo_n "checking for objdir... " >&6; }
22e05272 8344if ${lt_cv_objdir+:} false; then :
b4c522fa
IB
8345 $as_echo_n "(cached) " >&6
8346else
8347 rm -f .libs 2>/dev/null
8348mkdir .libs 2>/dev/null
8349if test -d .libs; then
8350 lt_cv_objdir=.libs
8351else
8352 # MS-DOS does not allow filenames that begin with a dot.
8353 lt_cv_objdir=_libs
8354fi
8355rmdir .libs 2>/dev/null
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8358$as_echo "$lt_cv_objdir" >&6; }
8359objdir=$lt_cv_objdir
8360
8361
8362
8363
8364
8365cat >>confdefs.h <<_ACEOF
8366#define LT_OBJDIR "$lt_cv_objdir/"
8367_ACEOF
8368
8369
8370
8371
8372case $host_os in
8373aix3*)
8374 # AIX sometimes has problems with the GCC collect2 program. For some
8375 # reason, if we set the COLLECT_NAMES environment variable, the problems
8376 # vanish in a puff of smoke.
8377 if test "X${COLLECT_NAMES+set}" != Xset; then
8378 COLLECT_NAMES=
8379 export COLLECT_NAMES
8380 fi
8381 ;;
8382esac
8383
8384# Global variables:
8385ofile=libtool
8386can_build_shared=yes
8387
8388# All known linkers require a `.a' archive for static linking (except MSVC,
8389# which needs '.lib').
8390libext=a
8391
8392with_gnu_ld="$lt_cv_prog_gnu_ld"
8393
8394old_CC="$CC"
8395old_CFLAGS="$CFLAGS"
8396
8397# Set sane defaults for various variables
8398test -z "$CC" && CC=cc
8399test -z "$LTCC" && LTCC=$CC
8400test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8401test -z "$LD" && LD=ld
8402test -z "$ac_objext" && ac_objext=o
8403
8404for cc_temp in $compiler""; do
8405 case $cc_temp in
8406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8408 \-*) ;;
8409 *) break;;
8410 esac
8411done
8412cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8413
8414
8415# Only perform the check for file, if the check method requires it
8416test -z "$MAGIC_CMD" && MAGIC_CMD=file
8417case $deplibs_check_method in
8418file_magic*)
8419 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8421$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8422if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8423 $as_echo_n "(cached) " >&6
8424else
8425 case $MAGIC_CMD in
8426[\\/*] | ?:[\\/]*)
8427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8428 ;;
8429*)
8430 lt_save_MAGIC_CMD="$MAGIC_CMD"
8431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433 for ac_dir in $ac_dummy; do
8434 IFS="$lt_save_ifs"
8435 test -z "$ac_dir" && ac_dir=.
8436 if test -f $ac_dir/${ac_tool_prefix}file; then
8437 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8438 if test -n "$file_magic_test_file"; then
8439 case $deplibs_check_method in
8440 "file_magic "*)
8441 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8442 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444 $EGREP "$file_magic_regex" > /dev/null; then
8445 :
8446 else
8447 cat <<_LT_EOF 1>&2
8448
8449*** Warning: the command libtool uses to detect shared libraries,
8450*** $file_magic_cmd, produces output that libtool cannot recognize.
8451*** The result is that libtool may fail to recognize shared libraries
8452*** as such. This will affect the creation of libtool libraries that
8453*** depend on shared libraries, but programs linked with such libtool
8454*** libraries will work regardless of this problem. Nevertheless, you
8455*** may want to report the problem to your system manager and/or to
8456*** bug-libtool@gnu.org
8457
8458_LT_EOF
8459 fi ;;
8460 esac
8461 fi
8462 break
8463 fi
8464 done
8465 IFS="$lt_save_ifs"
8466 MAGIC_CMD="$lt_save_MAGIC_CMD"
8467 ;;
8468esac
8469fi
8470
8471MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8472if test -n "$MAGIC_CMD"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8474$as_echo "$MAGIC_CMD" >&6; }
8475else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
8478fi
8479
8480
8481
8482
8483
8484if test -z "$lt_cv_path_MAGIC_CMD"; then
8485 if test -n "$ac_tool_prefix"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8487$as_echo_n "checking for file... " >&6; }
22e05272 8488if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8489 $as_echo_n "(cached) " >&6
8490else
8491 case $MAGIC_CMD in
8492[\\/*] | ?:[\\/]*)
8493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8494 ;;
8495*)
8496 lt_save_MAGIC_CMD="$MAGIC_CMD"
8497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499 for ac_dir in $ac_dummy; do
8500 IFS="$lt_save_ifs"
8501 test -z "$ac_dir" && ac_dir=.
8502 if test -f $ac_dir/file; then
8503 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8504 if test -n "$file_magic_test_file"; then
8505 case $deplibs_check_method in
8506 "file_magic "*)
8507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510 $EGREP "$file_magic_regex" > /dev/null; then
8511 :
8512 else
8513 cat <<_LT_EOF 1>&2
8514
8515*** Warning: the command libtool uses to detect shared libraries,
8516*** $file_magic_cmd, produces output that libtool cannot recognize.
8517*** The result is that libtool may fail to recognize shared libraries
8518*** as such. This will affect the creation of libtool libraries that
8519*** depend on shared libraries, but programs linked with such libtool
8520*** libraries will work regardless of this problem. Nevertheless, you
8521*** may want to report the problem to your system manager and/or to
8522*** bug-libtool@gnu.org
8523
8524_LT_EOF
8525 fi ;;
8526 esac
8527 fi
8528 break
8529 fi
8530 done
8531 IFS="$lt_save_ifs"
8532 MAGIC_CMD="$lt_save_MAGIC_CMD"
8533 ;;
8534esac
8535fi
8536
8537MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538if test -n "$MAGIC_CMD"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8540$as_echo "$MAGIC_CMD" >&6; }
8541else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
8544fi
8545
8546
8547 else
8548 MAGIC_CMD=:
8549 fi
8550fi
8551
8552 fi
8553 ;;
8554esac
8555
8556# Use C for the default configuration in the libtool script
8557
8558lt_save_CC="$CC"
8559ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566# Source file extension for C test sources.
8567ac_ext=c
8568
8569# Object file extension for compiled C test sources.
8570objext=o
8571objext=$objext
8572
8573# Code to be used in simple compile tests
8574lt_simple_compile_test_code="int some_variable = 0;"
8575
8576# Code to be used in simple link tests
8577lt_simple_link_test_code='int main(){return(0);}'
8578
8579
8580
8581
8582
8583
8584
8585# If no C compiler was specified, use CC.
8586LTCC=${LTCC-"$CC"}
8587
8588# If no C compiler flags were specified, use CFLAGS.
8589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8590
8591# Allow CC to be a program name with arguments.
8592compiler=$CC
8593
8594# Save the default compiler, since it gets overwritten when the other
8595# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8596compiler_DEFAULT=$CC
8597
8598# save warnings/boilerplate of simple test code
8599ac_outfile=conftest.$ac_objext
8600echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602_lt_compiler_boilerplate=`cat conftest.err`
8603$RM conftest*
8604
8605ac_outfile=conftest.$ac_objext
8606echo "$lt_simple_link_test_code" >conftest.$ac_ext
8607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8608_lt_linker_boilerplate=`cat conftest.err`
8609$RM -r conftest*
8610
8611
8612## CAVEAT EMPTOR:
8613## There is no encapsulation within the following macros, do not change
8614## the running order or otherwise move them around unless you know exactly
8615## what you are doing...
8616if test -n "$compiler"; then
8617
8618lt_prog_compiler_no_builtin_flag=
8619
8620if test "$GCC" = yes; then
8621 case $cc_basename in
8622 nvcc*)
8623 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8624 *)
8625 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8626 esac
8627
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8629$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8630if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
8631 $as_echo_n "(cached) " >&6
8632else
8633 lt_cv_prog_compiler_rtti_exceptions=no
8634 ac_outfile=conftest.$ac_objext
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636 lt_compiler_flag="-fno-rtti -fno-exceptions"
8637 # Insert the option either (1) after the last *FLAGS variable, or
8638 # (2) before a word containing "conftest.", or (3) at the end.
8639 # Note that $ac_compile itself does not contain backslashes and begins
8640 # with a dollar sign (not a hyphen), so the echo should work correctly.
8641 # The option is referenced via a variable to avoid confusing sed.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
8646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8647 (eval "$lt_compile" 2>conftest.err)
8648 ac_status=$?
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 if (exit $ac_status) && test -s "$ac_outfile"; then
8652 # The compiler can only warn and ignore the option if not recognized
8653 # So say no if there are warnings other than the usual output.
8654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8657 lt_cv_prog_compiler_rtti_exceptions=yes
8658 fi
8659 fi
8660 $RM conftest*
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8664$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8665
8666if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8667 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8668else
8669 :
8670fi
8671
8672fi
8673
8674
8675
8676
8677
8678
8679 lt_prog_compiler_wl=
8680lt_prog_compiler_pic=
8681lt_prog_compiler_static=
8682
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8684$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8685
8686 if test "$GCC" = yes; then
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_static='-static'
8689
8690 case $host_os in
8691 aix*)
8692 # All AIX code is PIC.
8693 if test "$host_cpu" = ia64; then
8694 # AIX 5 now supports IA64 processor
8695 lt_prog_compiler_static='-Bstatic'
8696 fi
8697 lt_prog_compiler_pic='-fPIC'
8698 ;;
8699
8700 amigaos*)
8701 case $host_cpu in
8702 powerpc)
8703 # see comment about AmigaOS4 .so support
8704 lt_prog_compiler_pic='-fPIC'
8705 ;;
8706 m68k)
8707 # FIXME: we need at least 68020 code to build shared libraries, but
8708 # adding the `-m68020' flag to GCC prevents building anything better,
8709 # like `-m68040'.
8710 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8711 ;;
8712 esac
8713 ;;
8714
8715 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8716 # PIC is the default for these OSes.
8717 ;;
8718
8719 mingw* | cygwin* | pw32* | os2* | cegcc*)
8720 # This hack is so that the source file can tell whether it is being
8721 # built for inclusion in a dll (and should export symbols for example).
8722 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8723 # (--disable-auto-import) libraries
8724 lt_prog_compiler_pic='-DDLL_EXPORT'
8725 ;;
8726
8727 darwin* | rhapsody*)
8728 # PIC is the default on this platform
8729 # Common symbols not allowed in MH_DYLIB files
8730 lt_prog_compiler_pic='-fno-common'
8731 ;;
8732
8733 haiku*)
8734 # PIC is the default for Haiku.
8735 # The "-static" flag exists, but is broken.
8736 lt_prog_compiler_static=
8737 ;;
8738
8739 hpux*)
8740 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8741 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8742 # sets the default TLS model and affects inlining.
8743 case $host_cpu in
8744 hppa*64*)
8745 # +Z the default
8746 ;;
8747 *)
8748 lt_prog_compiler_pic='-fPIC'
8749 ;;
8750 esac
8751 ;;
8752
8753 interix[3-9]*)
8754 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8755 # Instead, we relocate shared libraries at runtime.
8756 ;;
8757
8758 msdosdjgpp*)
8759 # Just because we use GCC doesn't mean we suddenly get shared libraries
8760 # on systems that don't support them.
8761 lt_prog_compiler_can_build_shared=no
8762 enable_shared=no
8763 ;;
8764
8765 *nto* | *qnx*)
8766 # QNX uses GNU C++, but need to define -shared option too, otherwise
8767 # it will coredump.
8768 lt_prog_compiler_pic='-fPIC -shared'
8769 ;;
8770
8771 sysv4*MP*)
8772 if test -d /usr/nec; then
8773 lt_prog_compiler_pic=-Kconform_pic
8774 fi
8775 ;;
8776
8777 *)
8778 lt_prog_compiler_pic='-fPIC'
8779 ;;
8780 esac
8781
8782 case $cc_basename in
8783 nvcc*) # Cuda Compiler Driver 2.2
8784 lt_prog_compiler_wl='-Xlinker '
8785 lt_prog_compiler_pic='-Xcompiler -fPIC'
8786 ;;
8787 esac
8788 else
8789 # PORTME Check for flag to pass linker flags through the system compiler.
8790 case $host_os in
8791 aix*)
8792 lt_prog_compiler_wl='-Wl,'
8793 if test "$host_cpu" = ia64; then
8794 # AIX 5 now supports IA64 processor
8795 lt_prog_compiler_static='-Bstatic'
8796 else
8797 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8798 fi
8799 ;;
8800
8801 mingw* | cygwin* | pw32* | os2* | cegcc*)
8802 # This hack is so that the source file can tell whether it is being
8803 # built for inclusion in a dll (and should export symbols for example).
8804 lt_prog_compiler_pic='-DDLL_EXPORT'
8805 ;;
8806
8807 hpux9* | hpux10* | hpux11*)
8808 lt_prog_compiler_wl='-Wl,'
8809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8810 # not for PA HP-UX.
8811 case $host_cpu in
8812 hppa*64*|ia64*)
8813 # +Z the default
8814 ;;
8815 *)
8816 lt_prog_compiler_pic='+Z'
8817 ;;
8818 esac
8819 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8820 lt_prog_compiler_static='${wl}-a ${wl}archive'
8821 ;;
8822
8823 irix5* | irix6* | nonstopux*)
8824 lt_prog_compiler_wl='-Wl,'
8825 # PIC (with -KPIC) is the default.
8826 lt_prog_compiler_static='-non_shared'
8827 ;;
8828
8829 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8830 case $cc_basename in
8831 # old Intel for x86_64 which still supported -KPIC.
8832 ecc*)
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-static'
8836 ;;
8837 # icc used to be incompatible with GCC.
8838 # ICC 10 doesn't accept -KPIC any more.
8839 icc* | ifort*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='-fPIC'
8842 lt_prog_compiler_static='-static'
8843 ;;
8844 # Lahey Fortran 8.1.
8845 lf95*)
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='--shared'
8848 lt_prog_compiler_static='--static'
8849 ;;
8850 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8851 # Portland Group compilers (*not* the Pentium gcc compiler,
8852 # which looks to be a dead project)
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='-fpic'
8855 lt_prog_compiler_static='-Bstatic'
8856 ;;
8857 ccc*)
8858 lt_prog_compiler_wl='-Wl,'
8859 # All Alpha code is PIC.
8860 lt_prog_compiler_static='-non_shared'
8861 ;;
8862 xl* | bgxl* | bgf* | mpixl*)
8863 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-qpic'
8866 lt_prog_compiler_static='-qstaticlink'
8867 ;;
8868 *)
8869 case `$CC -V 2>&1 | sed 5q` in
8870 *Sun\ F* | *Sun*Fortran*)
8871 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl=''
8875 ;;
8876 *Sun\ C*)
8877 # Sun C 5.9
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 lt_prog_compiler_wl='-Wl,'
8881 ;;
8882 esac
8883 ;;
8884 esac
8885 ;;
8886
8887 newsos6)
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
8891
8892 *nto* | *qnx*)
8893 # QNX uses GNU C++, but need to define -shared option too, otherwise
8894 # it will coredump.
8895 lt_prog_compiler_pic='-fPIC -shared'
8896 ;;
8897
8898 osf3* | osf4* | osf5*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # All OSF/1 code is PIC.
8901 lt_prog_compiler_static='-non_shared'
8902 ;;
8903
8904 rdos*)
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
8907
8908 solaris*)
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 case $cc_basename in
8912 f77* | f90* | f95*)
8913 lt_prog_compiler_wl='-Qoption ld ';;
8914 *)
8915 lt_prog_compiler_wl='-Wl,';;
8916 esac
8917 ;;
8918
8919 sunos4*)
8920 lt_prog_compiler_wl='-Qoption ld '
8921 lt_prog_compiler_pic='-PIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 ;;
8924
8925 sysv4 | sysv4.2uw2* | sysv4.3*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
8930
8931 sysv4*MP*)
8932 if test -d /usr/nec ;then
8933 lt_prog_compiler_pic='-Kconform_pic'
8934 lt_prog_compiler_static='-Bstatic'
8935 fi
8936 ;;
8937
8938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-KPIC'
8941 lt_prog_compiler_static='-Bstatic'
8942 ;;
8943
8944 unicos*)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_can_build_shared=no
8947 ;;
8948
8949 uts4*)
8950 lt_prog_compiler_pic='-pic'
8951 lt_prog_compiler_static='-Bstatic'
8952 ;;
8953
8954 *)
8955 lt_prog_compiler_can_build_shared=no
8956 ;;
8957 esac
8958 fi
8959
8960case $host_os in
8961 # For platforms which do not support PIC, -DPIC is meaningless:
8962 *djgpp*)
8963 lt_prog_compiler_pic=
8964 ;;
8965 *)
8966 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8967 ;;
8968esac
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8970$as_echo "$lt_prog_compiler_pic" >&6; }
8971
8972
8973
8974
8975
8976
8977#
8978# Check to make sure the PIC flag actually works.
8979#
8980if test -n "$lt_prog_compiler_pic"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8982$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8983if ${lt_cv_prog_compiler_pic_works+:} false; then :
b4c522fa
IB
8984 $as_echo_n "(cached) " >&6
8985else
8986 lt_cv_prog_compiler_pic_works=no
8987 ac_outfile=conftest.$ac_objext
8988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8990 # Insert the option either (1) after the last *FLAGS variable, or
8991 # (2) before a word containing "conftest.", or (3) at the end.
8992 # Note that $ac_compile itself does not contain backslashes and begins
8993 # with a dollar sign (not a hyphen), so the echo should work correctly.
8994 # The option is referenced via a variable to avoid confusing sed.
8995 lt_compile=`echo "$ac_compile" | $SED \
8996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8998 -e 's:$: $lt_compiler_flag:'`
8999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9000 (eval "$lt_compile" 2>conftest.err)
9001 ac_status=$?
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 if (exit $ac_status) && test -s "$ac_outfile"; then
9005 # The compiler can only warn and ignore the option if not recognized
9006 # So say no if there are warnings other than the usual output.
9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9010 lt_cv_prog_compiler_pic_works=yes
9011 fi
9012 fi
9013 $RM conftest*
9014
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9017$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9018
9019if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9020 case $lt_prog_compiler_pic in
9021 "" | " "*) ;;
9022 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9023 esac
9024else
9025 lt_prog_compiler_pic=
9026 lt_prog_compiler_can_build_shared=no
9027fi
9028
9029fi
9030
9031
9032
9033
9034
9035
9036#
9037# Check to make sure the static flag actually works.
9038#
9039wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9041$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9042if ${lt_cv_prog_compiler_static_works+:} false; then :
b4c522fa
IB
9043 $as_echo_n "(cached) " >&6
9044else
9045 lt_cv_prog_compiler_static_works=no
9046 save_LDFLAGS="$LDFLAGS"
9047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9050 # The linker can only warn and ignore the option if not recognized
9051 # So say no if there are warnings
9052 if test -s conftest.err; then
9053 # Append any errors to the config.log.
9054 cat conftest.err 1>&5
9055 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9057 if diff conftest.exp conftest.er2 >/dev/null; then
9058 lt_cv_prog_compiler_static_works=yes
9059 fi
9060 else
9061 lt_cv_prog_compiler_static_works=yes
9062 fi
9063 fi
9064 $RM -r conftest*
9065 LDFLAGS="$save_LDFLAGS"
9066
9067fi
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9069$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9070
9071if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9072 :
9073else
9074 lt_prog_compiler_static=
9075fi
9076
9077
9078
9079
9080
9081
9082
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9084$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9085if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9086 $as_echo_n "(cached) " >&6
9087else
9088 lt_cv_prog_compiler_c_o=no
9089 $RM -r conftest 2>/dev/null
9090 mkdir conftest
9091 cd conftest
9092 mkdir out
9093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094
9095 lt_compiler_flag="-o out/conftest2.$ac_objext"
9096 # Insert the option either (1) after the last *FLAGS variable, or
9097 # (2) before a word containing "conftest.", or (3) at the end.
9098 # Note that $ac_compile itself does not contain backslashes and begins
9099 # with a dollar sign (not a hyphen), so the echo should work correctly.
9100 lt_compile=`echo "$ac_compile" | $SED \
9101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103 -e 's:$: $lt_compiler_flag:'`
9104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105 (eval "$lt_compile" 2>out/conftest.err)
9106 ac_status=$?
9107 cat out/conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9110 then
9111 # The compiler can only warn and ignore the option if not recognized
9112 # So say no if there are warnings
9113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9114 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9115 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9116 lt_cv_prog_compiler_c_o=yes
9117 fi
9118 fi
9119 chmod u+w . 2>&5
9120 $RM conftest*
9121 # SGI C++ compiler will create directory out/ii_files/ for
9122 # template instantiation
9123 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9124 $RM out/* && rmdir out
9125 cd ..
9126 $RM -r conftest
9127 $RM conftest*
9128
9129fi
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9131$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9132
9133
9134
9135
9136
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9139$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9140if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9141 $as_echo_n "(cached) " >&6
9142else
9143 lt_cv_prog_compiler_c_o=no
9144 $RM -r conftest 2>/dev/null
9145 mkdir conftest
9146 cd conftest
9147 mkdir out
9148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149
9150 lt_compiler_flag="-o out/conftest2.$ac_objext"
9151 # Insert the option either (1) after the last *FLAGS variable, or
9152 # (2) before a word containing "conftest.", or (3) at the end.
9153 # Note that $ac_compile itself does not contain backslashes and begins
9154 # with a dollar sign (not a hyphen), so the echo should work correctly.
9155 lt_compile=`echo "$ac_compile" | $SED \
9156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9158 -e 's:$: $lt_compiler_flag:'`
9159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9160 (eval "$lt_compile" 2>out/conftest.err)
9161 ac_status=$?
9162 cat out/conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9165 then
9166 # The compiler can only warn and ignore the option if not recognized
9167 # So say no if there are warnings
9168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9171 lt_cv_prog_compiler_c_o=yes
9172 fi
9173 fi
9174 chmod u+w . 2>&5
9175 $RM conftest*
9176 # SGI C++ compiler will create directory out/ii_files/ for
9177 # template instantiation
9178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9179 $RM out/* && rmdir out
9180 cd ..
9181 $RM -r conftest
9182 $RM conftest*
9183
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9186$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9187
9188
9189
9190
9191hard_links="nottested"
9192if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9193 # do not overwrite the value of need_locks provided by the user
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9195$as_echo_n "checking if we can lock with hard links... " >&6; }
9196 hard_links=yes
9197 $RM conftest*
9198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9199 touch conftest.a
9200 ln conftest.a conftest.b 2>&5 || hard_links=no
9201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9203$as_echo "$hard_links" >&6; }
9204 if test "$hard_links" = no; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9206$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9207 need_locks=warn
9208 fi
9209else
9210 need_locks=no
9211fi
9212
9213
9214
9215
9216
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9219$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9220
9221 runpath_var=
9222 allow_undefined_flag=
9223 always_export_symbols=no
9224 archive_cmds=
9225 archive_expsym_cmds=
9226 compiler_needs_object=no
9227 enable_shared_with_static_runtimes=no
9228 export_dynamic_flag_spec=
9229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9230 hardcode_automatic=no
9231 hardcode_direct=no
9232 hardcode_direct_absolute=no
9233 hardcode_libdir_flag_spec=
9234 hardcode_libdir_flag_spec_ld=
9235 hardcode_libdir_separator=
9236 hardcode_minus_L=no
9237 hardcode_shlibpath_var=unsupported
9238 inherit_rpath=no
9239 link_all_deplibs=unknown
9240 module_cmds=
9241 module_expsym_cmds=
9242 old_archive_from_new_cmds=
9243 old_archive_from_expsyms_cmds=
9244 thread_safe_flag_spec=
9245 whole_archive_flag_spec=
9246 # include_expsyms should be a list of space-separated symbols to be *always*
9247 # included in the symbol list
9248 include_expsyms=
9249 # exclude_expsyms can be an extended regexp of symbols to exclude
9250 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9251 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9252 # as well as any symbol that contains `d'.
9253 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9255 # platforms (ab)use it in PIC code, but their linkers get confused if
9256 # the symbol is explicitly referenced. Since portable code cannot
9257 # rely on this symbol name, it's probably fine to never include it in
9258 # preloaded symbol tables.
9259 # Exclude shared library initialization/finalization symbols.
9260 extract_expsyms_cmds=
9261
9262 case $host_os in
9263 cygwin* | mingw* | pw32* | cegcc*)
9264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9265 # When not using gcc, we currently assume that we are using
9266 # Microsoft Visual C++.
9267 if test "$GCC" != yes; then
9268 with_gnu_ld=no
9269 fi
9270 ;;
9271 interix*)
9272 # we just hope/assume this is gcc and not c89 (= MSVC++)
9273 with_gnu_ld=yes
9274 ;;
9275 openbsd*)
9276 with_gnu_ld=no
9277 ;;
9278 esac
9279
9280 ld_shlibs=yes
9281
9282 # On some targets, GNU ld is compatible enough with the native linker
9283 # that we're better off using the native interface for both.
9284 lt_use_gnu_ld_interface=no
9285 if test "$with_gnu_ld" = yes; then
9286 case $host_os in
9287 aix*)
9288 # The AIX port of GNU ld has always aspired to compatibility
9289 # with the native linker. However, as the warning in the GNU ld
9290 # block says, versions before 2.19.5* couldn't really create working
9291 # shared libraries, regardless of the interface used.
9292 case `$LD -v 2>&1` in
9293 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9294 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9295 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9296 *)
9297 lt_use_gnu_ld_interface=yes
9298 ;;
9299 esac
9300 ;;
9301 *)
9302 lt_use_gnu_ld_interface=yes
9303 ;;
9304 esac
9305 fi
9306
9307 if test "$lt_use_gnu_ld_interface" = yes; then
9308 # If archive_cmds runs LD, not CC, wlarc should be empty
9309 wlarc='${wl}'
9310
9311 # Set some defaults for GNU ld with shared library support. These
9312 # are reset later if shared libraries are not supported. Putting them
9313 # here allows them to be overridden if necessary.
9314 runpath_var=LD_RUN_PATH
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 export_dynamic_flag_spec='${wl}--export-dynamic'
9317 # ancient GNU ld didn't support --whole-archive et. al.
9318 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9319 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9320 else
9321 whole_archive_flag_spec=
9322 fi
9323 supports_anon_versioning=no
9324 case `$LD -v 2>&1` in
9325 *GNU\ gold*) supports_anon_versioning=yes ;;
9326 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9329 *\ 2.11.*) ;; # other 2.11 versions
9330 *) supports_anon_versioning=yes ;;
9331 esac
9332
9333 # See if GNU ld supports shared libraries.
9334 case $host_os in
9335 aix[3-9]*)
9336 # On AIX/PPC, the GNU linker is very broken
9337 if test "$host_cpu" != ia64; then
9338 ld_shlibs=no
9339 cat <<_LT_EOF 1>&2
9340
9341*** Warning: the GNU linker, at least up to release 2.19, is reported
9342*** to be unable to reliably create shared libraries on AIX.
9343*** Therefore, libtool is disabling shared libraries support. If you
9344*** really care for shared libraries, you may want to install binutils
9345*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9346*** You will then need to restart the configuration process.
9347
9348_LT_EOF
9349 fi
9350 ;;
9351
9352 amigaos*)
9353 case $host_cpu in
9354 powerpc)
9355 # see comment about AmigaOS4 .so support
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds=''
9358 ;;
9359 m68k)
9360 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)'
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_minus_L=yes
9363 ;;
9364 esac
9365 ;;
9366
9367 beos*)
9368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9369 allow_undefined_flag=unsupported
9370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9371 # support --undefined. This deserves some investigation. FIXME
9372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373 else
9374 ld_shlibs=no
9375 fi
9376 ;;
9377
9378 cygwin* | mingw* | pw32* | cegcc*)
9379 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9380 # as there is no search path for DLLs.
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 export_dynamic_flag_spec='${wl}--export-all-symbols'
9383 allow_undefined_flag=unsupported
9384 always_export_symbols=no
9385 enable_shared_with_static_runtimes=yes
9386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9387
9388 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9390 # If the export-symbols file already is a .def file (1st line
9391 # is EXPORTS), use it as is; otherwise, prepend...
9392 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9393 cp $export_symbols $output_objdir/$soname.def;
9394 else
9395 echo EXPORTS > $output_objdir/$soname.def;
9396 cat $export_symbols >> $output_objdir/$soname.def;
9397 fi~
9398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9399 else
9400 ld_shlibs=no
9401 fi
9402 ;;
9403
9404 haiku*)
9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406 link_all_deplibs=yes
9407 ;;
9408
9409 interix[3-9]*)
9410 hardcode_direct=no
9411 hardcode_shlibpath_var=no
9412 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9413 export_dynamic_flag_spec='${wl}-E'
9414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9415 # Instead, shared libraries are loaded at an image base (0x10000000 by
9416 # default) and relocated if they conflict, which is a slow very memory
9417 # consuming and fragmenting process. To avoid this, we pick a random,
9418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9421 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'
9422 ;;
9423
e9085da5 9424 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
9425 tmp_diet=no
9426 if test "$host_os" = linux-dietlibc; then
9427 case $cc_basename in
9428 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9429 esac
9430 fi
9431 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9432 && test "$tmp_diet" = no
9433 then
9434 tmp_addflag=' $pic_flag'
9435 tmp_sharedflag='-shared'
9436 case $cc_basename,$host_cpu in
9437 pgcc*) # Portland Group C compiler
9438 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'
9439 tmp_addflag=' $pic_flag'
9440 ;;
9441 pgf77* | pgf90* | pgf95* | pgfortran*)
9442 # Portland Group f77 and f90 compilers
9443 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'
9444 tmp_addflag=' $pic_flag -Mnomain' ;;
9445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9446 tmp_addflag=' -i_dynamic' ;;
9447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9448 tmp_addflag=' -i_dynamic -nofor_main' ;;
9449 ifc* | ifort*) # Intel Fortran compiler
9450 tmp_addflag=' -nofor_main' ;;
9451 lf95*) # Lahey Fortran 8.1
9452 whole_archive_flag_spec=
9453 tmp_sharedflag='--shared' ;;
9454 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9455 tmp_sharedflag='-qmkshrobj'
9456 tmp_addflag= ;;
9457 nvcc*) # Cuda Compiler Driver 2.2
9458 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'
9459 compiler_needs_object=yes
9460 ;;
9461 esac
9462 case `$CC -V 2>&1 | sed 5q` in
9463 *Sun\ C*) # Sun C 5.9
9464 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'
9465 compiler_needs_object=yes
9466 tmp_sharedflag='-G' ;;
9467 *Sun\ F*) # Sun Fortran 8.3
9468 tmp_sharedflag='-G' ;;
9469 esac
9470 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471
9472 if test "x$supports_anon_versioning" = xyes; then
9473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9475 echo "local: *; };" >> $output_objdir/$libname.ver~
9476 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9477 fi
9478
9479 case $cc_basename in
9480 xlf* | bgf* | bgxlf* | mpixlf*)
9481 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9482 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9483 hardcode_libdir_flag_spec=
9484 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9485 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9486 if test "x$supports_anon_versioning" = xyes; then
9487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9489 echo "local: *; };" >> $output_objdir/$libname.ver~
9490 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9491 fi
9492 ;;
9493 esac
9494 else
9495 ld_shlibs=no
9496 fi
9497 ;;
9498
9499 netbsd*)
9500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9501 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9502 wlarc=
9503 else
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9506 fi
9507 ;;
9508
9509 solaris*)
9510 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9511 ld_shlibs=no
9512 cat <<_LT_EOF 1>&2
9513
9514*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9515*** create shared libraries on Solaris systems. Therefore, libtool
9516*** is disabling shared libraries support. We urge you to upgrade GNU
9517*** binutils to release 2.9.1 or newer. Another option is to modify
9518*** your PATH or compiler configuration so that the native linker is
9519*** used, and then restart.
9520
9521_LT_EOF
9522 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9525 else
9526 ld_shlibs=no
9527 fi
9528 ;;
9529
9530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9531 case `$LD -v 2>&1` in
9532 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9533 ld_shlibs=no
9534 cat <<_LT_EOF 1>&2
9535
9536*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9537*** reliably create shared libraries on SCO systems. Therefore, libtool
9538*** is disabling shared libraries support. We urge you to upgrade GNU
9539*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9540*** your PATH or compiler configuration so that the native linker is
9541*** used, and then restart.
9542
9543_LT_EOF
9544 ;;
9545 *)
9546 # For security reasons, it is highly recommended that you always
9547 # use absolute paths for naming shared libraries, and exclude the
9548 # DT_RUNPATH tag from executables and libraries. But doing so
9549 # requires that you compile everything twice, which is a pain.
9550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9554 else
9555 ld_shlibs=no
9556 fi
9557 ;;
9558 esac
9559 ;;
9560
9561 sunos4*)
9562 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563 wlarc=
9564 hardcode_direct=yes
9565 hardcode_shlibpath_var=no
9566 ;;
9567
9568 *)
9569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9572 else
9573 ld_shlibs=no
9574 fi
9575 ;;
9576 esac
9577
9578 if test "$ld_shlibs" = no; then
9579 runpath_var=
9580 hardcode_libdir_flag_spec=
9581 export_dynamic_flag_spec=
9582 whole_archive_flag_spec=
9583 fi
9584 else
9585 # PORTME fill in a description of your system's linker (not GNU ld)
9586 case $host_os in
9587 aix3*)
9588 allow_undefined_flag=unsupported
9589 always_export_symbols=yes
9590 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'
9591 # Note: this linker hardcodes the directories in LIBPATH if there
9592 # are no directories specified by -L.
9593 hardcode_minus_L=yes
9594 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9595 # Neither direct hardcoding nor static linking is supported with a
9596 # broken collect2.
9597 hardcode_direct=unsupported
9598 fi
9599 ;;
9600
9601 aix[4-9]*)
9602 if test "$host_cpu" = ia64; then
9603 # On IA64, the linker does run time linking by default, so we don't
9604 # have to do anything special.
9605 aix_use_runtimelinking=no
9606 exp_sym_flag='-Bexport'
9607 no_entry_flag=""
9608 else
9609 # If we're using GNU nm, then we don't want the "-C" option.
9610 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9611 # Also, AIX nm treats weak defined symbols like other global
9612 # defined symbols, whereas GNU nm marks them as "W".
9613 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9614 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'
9615 else
9616 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'
9617 fi
9618 aix_use_runtimelinking=no
9619
9620 # Test if we are trying to use run time linking or normal
9621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9622 # need to do runtime linking.
9623 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9624 for ld_flag in $LDFLAGS; do
9625 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9626 aix_use_runtimelinking=yes
9627 break
9628 fi
9629 done
9630 ;;
9631 esac
9632
9633 exp_sym_flag='-bexport'
9634 no_entry_flag='-bnoentry'
9635 fi
9636
9637 # When large executables or shared objects are built, AIX ld can
9638 # have problems creating the table of contents. If linking a library
9639 # or program results in "error TOC overflow" add -mminimal-toc to
9640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9642
9643 archive_cmds=''
9644 hardcode_direct=yes
9645 hardcode_direct_absolute=yes
9646 hardcode_libdir_separator=':'
9647 link_all_deplibs=yes
9648 file_list_spec='${wl}-f,'
9649
9650 if test "$GCC" = yes; then
9651 case $host_os in aix4.[012]|aix4.[012].*)
9652 # We only want to do this on AIX 4.2 and lower, the check
9653 # below for broken collect2 doesn't work under 4.3+
9654 collect2name=`${CC} -print-prog-name=collect2`
9655 if test -f "$collect2name" &&
9656 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9657 then
9658 # We have reworked collect2
9659 :
9660 else
9661 # We have old collect2
9662 hardcode_direct=unsupported
9663 # It fails to find uninstalled libraries when the uninstalled
9664 # path is not listed in the libpath. Setting hardcode_minus_L
9665 # to unsupported forces relinking
9666 hardcode_minus_L=yes
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_libdir_separator=
9669 fi
9670 ;;
9671 esac
9672 shared_flag='-shared'
9673 if test "$aix_use_runtimelinking" = yes; then
9674 shared_flag="$shared_flag "'${wl}-G'
9675 fi
9676 else
9677 # not using gcc
9678 if test "$host_cpu" = ia64; then
9679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9680 # chokes on -Wl,-G. The following line is correct:
9681 shared_flag='-G'
9682 else
9683 if test "$aix_use_runtimelinking" = yes; then
9684 shared_flag='${wl}-G'
9685 else
9686 shared_flag='${wl}-bM:SRE'
9687 fi
9688 fi
9689 fi
9690
9691 export_dynamic_flag_spec='${wl}-bexpall'
9692 # It seems that -bexpall does not export symbols beginning with
9693 # underscore (_), so it is better to generate a list of symbols to export.
9694 always_export_symbols=yes
9695 if test "$aix_use_runtimelinking" = yes; then
9696 # Warning - without using the other runtime loading flags (-brtl),
9697 # -berok will link without error, but may produce a broken library.
9698 allow_undefined_flag='-berok'
9699 # Determine the default libpath from the value encoded in an
9700 # empty executable.
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h. */
9703
9704int
9705main ()
9706{
9707
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_link "$LINENO"; then :
9713
9714lt_aix_libpath_sed='
9715 /Import File Strings/,/^$/ {
9716 /^0/ {
9717 s/^0 *\(.*\)$/\1/
9718 p
9719 }
9720 }'
9721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722# Check for a 64-bit object if we didn't find anything.
9723if test -z "$aix_libpath"; then
9724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725fi
9726fi
9727rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9730
9731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9732 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"
9733 else
9734 if test "$host_cpu" = ia64; then
9735 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9736 allow_undefined_flag="-z nodefs"
9737 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"
9738 else
9739 # Determine the default libpath from the value encoded in an
9740 # empty executable.
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h. */
9743
9744int
9745main ()
9746{
9747
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"; then :
9753
9754lt_aix_libpath_sed='
9755 /Import File Strings/,/^$/ {
9756 /^0/ {
9757 s/^0 *\(.*\)$/\1/
9758 p
9759 }
9760 }'
9761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9762# Check for a 64-bit object if we didn't find anything.
9763if test -z "$aix_libpath"; then
9764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765fi
9766fi
9767rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9770
9771 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9772 # Warning - without using the other run time loading flags,
9773 # -berok will link without error, but may produce a broken library.
9774 no_undefined_flag=' ${wl}-bernotok'
9775 allow_undefined_flag=' ${wl}-berok'
9776 if test "$with_gnu_ld" = yes; then
9777 # We only use this code for GNU lds that support --whole-archive.
9778 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9779 else
9780 # Exported symbols can be pulled into shared objects from archives
9781 whole_archive_flag_spec='$convenience'
9782 fi
9783 archive_cmds_need_lc=yes
9784 # This is similar to how AIX traditionally builds its shared libraries.
9785 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'
9786 fi
9787 fi
9788 ;;
9789
9790 amigaos*)
9791 case $host_cpu in
9792 powerpc)
9793 # see comment about AmigaOS4 .so support
9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795 archive_expsym_cmds=''
9796 ;;
9797 m68k)
9798 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)'
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_minus_L=yes
9801 ;;
9802 esac
9803 ;;
9804
9805 bsdi[45]*)
9806 export_dynamic_flag_spec=-rdynamic
9807 ;;
9808
9809 cygwin* | mingw* | pw32* | cegcc*)
9810 # When not using gcc, we currently assume that we are using
9811 # Microsoft Visual C++.
9812 # hardcode_libdir_flag_spec is actually meaningless, as there is
9813 # no search path for DLLs.
9814 hardcode_libdir_flag_spec=' '
9815 allow_undefined_flag=unsupported
9816 # Tell ltmain to make .lib files, not .a files.
9817 libext=lib
9818 # Tell ltmain to make .dll files, not .so files.
9819 shrext_cmds=".dll"
9820 # FIXME: Setting linknames here is a bad hack.
9821 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9822 # The linker will automatically build a .lib file if we build a DLL.
9823 old_archive_from_new_cmds='true'
9824 # FIXME: Should let the user specify the lib program.
9825 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9826 fix_srcfile_path='`cygpath -w "$srcfile"`'
9827 enable_shared_with_static_runtimes=yes
9828 ;;
9829
9830 darwin* | rhapsody*)
9831
9832
9833 archive_cmds_need_lc=no
9834 hardcode_direct=no
9835 hardcode_automatic=yes
9836 hardcode_shlibpath_var=unsupported
9837 if test "$lt_cv_ld_force_load" = "yes"; then
9838 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\"`'
9839 else
9840 whole_archive_flag_spec=''
9841 fi
9842 link_all_deplibs=yes
9843 allow_undefined_flag="$_lt_dar_allow_undefined"
9844 case $cc_basename in
9845 ifort*) _lt_dar_can_shared=yes ;;
9846 *) _lt_dar_can_shared=$GCC ;;
9847 esac
9848 if test "$_lt_dar_can_shared" = "yes"; then
9849 output_verbose_link_cmd=func_echo_all
9850 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9851 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9852 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}"
9853 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}"
9854
9855 else
9856 ld_shlibs=no
9857 fi
9858
9859 ;;
9860
9861 dgux*)
9862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863 hardcode_libdir_flag_spec='-L$libdir'
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9868 # support. Future versions do this automatically, but an explicit c++rt0.o
9869 # does not break anything, and helps significantly (at the cost of a little
9870 # extra space).
9871 freebsd2.2*)
9872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9873 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_direct=yes
9875 hardcode_shlibpath_var=no
9876 ;;
9877
9878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9879 freebsd2.*)
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=yes
9882 hardcode_minus_L=yes
9883 hardcode_shlibpath_var=no
9884 ;;
9885
9886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9887 freebsd* | dragonfly*)
9888 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9889 hardcode_libdir_flag_spec='-R$libdir'
9890 hardcode_direct=yes
9891 hardcode_shlibpath_var=no
9892 ;;
9893
9894 hpux9*)
9895 if test "$GCC" = yes; then
9896 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'
9897 else
9898 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'
9899 fi
9900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9901 hardcode_libdir_separator=:
9902 hardcode_direct=yes
9903
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9907 export_dynamic_flag_spec='${wl}-E'
9908 ;;
9909
9910 hpux10*)
9911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9912 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9913 else
9914 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9915 fi
9916 if test "$with_gnu_ld" = no; then
9917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9918 hardcode_libdir_flag_spec_ld='+b $libdir'
9919 hardcode_libdir_separator=:
9920 hardcode_direct=yes
9921 hardcode_direct_absolute=yes
9922 export_dynamic_flag_spec='${wl}-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9926 fi
9927 ;;
9928
9929 hpux11*)
9930 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9931 case $host_cpu in
9932 hppa*64*)
9933 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 ;;
9935 ia64*)
9936 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9937 ;;
9938 *)
9939 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9940 ;;
9941 esac
9942 else
9943 case $host_cpu in
9944 hppa*64*)
9945 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 ;;
9947 ia64*)
9948 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9949 ;;
9950 *)
9951
9952 # Older versions of the 11.00 compiler do not understand -b yet
9953 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9955$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9956if ${lt_cv_prog_compiler__b+:} false; then :
b4c522fa
IB
9957 $as_echo_n "(cached) " >&6
9958else
9959 lt_cv_prog_compiler__b=no
9960 save_LDFLAGS="$LDFLAGS"
9961 LDFLAGS="$LDFLAGS -b"
9962 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9964 # The linker can only warn and ignore the option if not recognized
9965 # So say no if there are warnings
9966 if test -s conftest.err; then
9967 # Append any errors to the config.log.
9968 cat conftest.err 1>&5
9969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9971 if diff conftest.exp conftest.er2 >/dev/null; then
9972 lt_cv_prog_compiler__b=yes
9973 fi
9974 else
9975 lt_cv_prog_compiler__b=yes
9976 fi
9977 fi
9978 $RM -r conftest*
9979 LDFLAGS="$save_LDFLAGS"
9980
9981fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9983$as_echo "$lt_cv_prog_compiler__b" >&6; }
9984
9985if test x"$lt_cv_prog_compiler__b" = xyes; then
9986 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987else
9988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9989fi
9990
9991 ;;
9992 esac
9993 fi
9994 if test "$with_gnu_ld" = no; then
9995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996 hardcode_libdir_separator=:
9997
9998 case $host_cpu in
9999 hppa*64*|ia64*)
10000 hardcode_direct=no
10001 hardcode_shlibpath_var=no
10002 ;;
10003 *)
10004 hardcode_direct=yes
10005 hardcode_direct_absolute=yes
10006 export_dynamic_flag_spec='${wl}-E'
10007
10008 # hardcode_minus_L: Not really in the search PATH,
10009 # but as the default location of the library.
10010 hardcode_minus_L=yes
10011 ;;
10012 esac
10013 fi
10014 ;;
10015
10016 irix5* | irix6* | nonstopux*)
10017 if test "$GCC" = yes; then
10018 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'
10019 # Try to use the -exported_symbol ld option, if it does not
10020 # work, assume that -exports_file does not work either and
10021 # implicitly export all symbols.
10022 save_LDFLAGS="$LDFLAGS"
10023 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h. */
10026int foo(void) {}
10027_ACEOF
10028if ac_fn_c_try_link "$LINENO"; then :
10029 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'
10030
10031fi
10032rm -f core conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LDFLAGS="$save_LDFLAGS"
10035 else
10036 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'
10037 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'
10038 fi
10039 archive_cmds_need_lc='no'
10040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041 hardcode_libdir_separator=:
10042 inherit_rpath=yes
10043 link_all_deplibs=yes
10044 ;;
10045
10046 netbsd*)
10047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10049 else
10050 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10051 fi
10052 hardcode_libdir_flag_spec='-R$libdir'
10053 hardcode_direct=yes
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 newsos6)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_direct=yes
10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10061 hardcode_libdir_separator=:
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 *nto* | *qnx*)
10066 ;;
10067
10068 openbsd*)
10069 if test -f /usr/libexec/ld.so; then
10070 hardcode_direct=yes
10071 hardcode_shlibpath_var=no
10072 hardcode_direct_absolute=yes
10073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10074 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10077 export_dynamic_flag_spec='${wl}-E'
10078 else
10079 case $host_os in
10080 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_libdir_flag_spec='-R$libdir'
10083 ;;
10084 *)
10085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10087 ;;
10088 esac
10089 fi
10090 else
10091 ld_shlibs=no
10092 fi
10093 ;;
10094
10095 os2*)
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_minus_L=yes
10098 allow_undefined_flag=unsupported
10099 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'
10100 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10101 ;;
10102
10103 osf3*)
10104 if test "$GCC" = yes; then
10105 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10106 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'
10107 else
10108 allow_undefined_flag=' -expect_unresolved \*'
10109 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'
10110 fi
10111 archive_cmds_need_lc='no'
10112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10113 hardcode_libdir_separator=:
10114 ;;
10115
10116 osf4* | osf5*) # as osf3* with the addition of -msym flag
10117 if test "$GCC" = yes; then
10118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10119 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'
10120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10121 else
10122 allow_undefined_flag=' -expect_unresolved \*'
10123 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'
10124 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~
10125 $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'
10126
10127 # Both c and cxx compiler support -rpath directly
10128 hardcode_libdir_flag_spec='-rpath $libdir'
10129 fi
10130 archive_cmds_need_lc='no'
10131 hardcode_libdir_separator=:
10132 ;;
10133
10134 solaris*)
10135 no_undefined_flag=' -z defs'
10136 if test "$GCC" = yes; then
10137 wlarc='${wl}'
10138 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10140 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10141 else
10142 case `$CC -V 2>&1` in
10143 *"Compilers 5.0"*)
10144 wlarc=''
10145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10148 ;;
10149 *)
10150 wlarc='${wl}'
10151 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10153 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10154 ;;
10155 esac
10156 fi
10157 hardcode_libdir_flag_spec='-R$libdir'
10158 hardcode_shlibpath_var=no
10159 case $host_os in
10160 solaris2.[0-5] | solaris2.[0-5].*) ;;
10161 *)
10162 # The compiler driver will combine and reorder linker options,
10163 # but understands `-z linker_flag'. GCC discards it without `$wl',
10164 # but is careful enough not to reorder.
10165 # Supported since Solaris 2.6 (maybe 2.5.1?)
10166 if test "$GCC" = yes; then
10167 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10168 else
10169 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10170 fi
10171 ;;
10172 esac
10173 link_all_deplibs=yes
10174 ;;
10175
10176 sunos4*)
10177 if test "x$host_vendor" = xsequent; then
10178 # Use $CC to link under sequent, because it throws in some extra .o
10179 # files that make .init and .fini sections work.
10180 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10181 else
10182 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10183 fi
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 hardcode_direct=yes
10186 hardcode_minus_L=yes
10187 hardcode_shlibpath_var=no
10188 ;;
10189
10190 sysv4)
10191 case $host_vendor in
10192 sni)
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_direct=yes # is this really true???
10195 ;;
10196 siemens)
10197 ## LD is ld it makes a PLAMLIB
10198 ## CC just makes a GrossModule.
10199 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10200 reload_cmds='$CC -r -o $output$reload_objs'
10201 hardcode_direct=no
10202 ;;
10203 motorola)
10204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10205 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10206 ;;
10207 esac
10208 runpath_var='LD_RUN_PATH'
10209 hardcode_shlibpath_var=no
10210 ;;
10211
10212 sysv4.3*)
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_shlibpath_var=no
10215 export_dynamic_flag_spec='-Bexport'
10216 ;;
10217
10218 sysv4*MP*)
10219 if test -d /usr/nec; then
10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 hardcode_shlibpath_var=no
10222 runpath_var=LD_RUN_PATH
10223 hardcode_runpath_var=yes
10224 ld_shlibs=yes
10225 fi
10226 ;;
10227
10228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10229 no_undefined_flag='${wl}-z,text'
10230 archive_cmds_need_lc=no
10231 hardcode_shlibpath_var=no
10232 runpath_var='LD_RUN_PATH'
10233
10234 if test "$GCC" = yes; then
10235 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 else
10238 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 fi
10241 ;;
10242
10243 sysv5* | sco3.2v5* | sco5v6*)
10244 # Note: We can NOT use -z defs as we might desire, because we do not
10245 # link with -lc, and that would cause any symbols used from libc to
10246 # always be unresolved, which means just about no library would
10247 # ever link correctly. If we're not using GNU ld we use -z text
10248 # though, which does catch some bad symbols but isn't as heavy-handed
10249 # as -z defs.
10250 no_undefined_flag='${wl}-z,text'
10251 allow_undefined_flag='${wl}-z,nodefs'
10252 archive_cmds_need_lc=no
10253 hardcode_shlibpath_var=no
10254 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10255 hardcode_libdir_separator=':'
10256 link_all_deplibs=yes
10257 export_dynamic_flag_spec='${wl}-Bexport'
10258 runpath_var='LD_RUN_PATH'
10259
10260 if test "$GCC" = yes; then
10261 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 else
10264 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 fi
10267 ;;
10268
10269 uts4*)
10270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_shlibpath_var=no
10273 ;;
10274
10275 *)
10276 ld_shlibs=no
10277 ;;
10278 esac
10279
10280 if test x$host_vendor = xsni; then
10281 case $host in
10282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10283 export_dynamic_flag_spec='${wl}-Blargedynsym'
10284 ;;
10285 esac
10286 fi
10287 fi
10288
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10290$as_echo "$ld_shlibs" >&6; }
10291test "$ld_shlibs" = no && can_build_shared=no
10292
10293with_gnu_ld=$with_gnu_ld
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309#
10310# Do we need to explicitly link libc?
10311#
10312case "x$archive_cmds_need_lc" in
10313x|xyes)
10314 # Assume -lc should be added
10315 archive_cmds_need_lc=yes
10316
10317 if test "$enable_shared" = yes && test "$GCC" = yes; then
10318 case $archive_cmds in
10319 *'~'*)
10320 # FIXME: we may have to deal with multi-command sequences.
10321 ;;
10322 '$CC '*)
10323 # Test whether the compiler implicitly links with -lc since on some
10324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10325 # to ld, don't add -lc before -lgcc.
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10327$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10328if ${lt_cv_archive_cmds_need_lc+:} false; then :
b4c522fa
IB
10329 $as_echo_n "(cached) " >&6
10330else
10331 $RM conftest*
10332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10333
10334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10335 (eval $ac_compile) 2>&5
10336 ac_status=$?
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; } 2>conftest.err; then
10339 soname=conftest
10340 lib=conftest
10341 libobjs=conftest.$ac_objext
10342 deplibs=
10343 wl=$lt_prog_compiler_wl
10344 pic_flag=$lt_prog_compiler_pic
10345 compiler_flags=-v
10346 linker_flags=-v
10347 verstring=
10348 output_objdir=.
10349 libname=conftest
10350 lt_save_allow_undefined_flag=$allow_undefined_flag
10351 allow_undefined_flag=
10352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10353 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10354 ac_status=$?
10355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10356 test $ac_status = 0; }
10357 then
10358 lt_cv_archive_cmds_need_lc=no
10359 else
10360 lt_cv_archive_cmds_need_lc=yes
10361 fi
10362 allow_undefined_flag=$lt_save_allow_undefined_flag
10363 else
10364 cat conftest.err 1>&5
10365 fi
10366 $RM conftest*
10367
10368fi
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10370$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10371 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10372 ;;
10373 esac
10374 fi
10375 ;;
10376esac
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10535$as_echo_n "checking dynamic linker characteristics... " >&6; }
10536
10537if test "$GCC" = yes; then
10538 case $host_os in
10539 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10540 *) lt_awk_arg="/^libraries:/" ;;
10541 esac
10542 case $host_os in
10543 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10544 *) lt_sed_strip_eq="s,=/,/,g" ;;
10545 esac
10546 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10547 case $lt_search_path_spec in
10548 *\;*)
10549 # if the path contains ";" then we assume it to be the separator
10550 # otherwise default to the standard path separator (i.e. ":") - it is
10551 # assumed that no part of a normal pathname contains ";" but that should
10552 # okay in the real world where ";" in dirpaths is itself problematic.
10553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10554 ;;
10555 *)
10556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10557 ;;
10558 esac
10559 # Ok, now we have the path, separated by spaces, we can step through it
10560 # and add multilib dir if necessary.
10561 lt_tmp_lt_search_path_spec=
10562 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10563 for lt_sys_path in $lt_search_path_spec; do
10564 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10565 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10566 else
10567 test -d "$lt_sys_path" && \
10568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10569 fi
10570 done
10571 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10572BEGIN {RS=" "; FS="/|\n";} {
10573 lt_foo="";
10574 lt_count=0;
10575 for (lt_i = NF; lt_i > 0; lt_i--) {
10576 if ($lt_i != "" && $lt_i != ".") {
10577 if ($lt_i == "..") {
10578 lt_count++;
10579 } else {
10580 if (lt_count == 0) {
10581 lt_foo="/" $lt_i lt_foo;
10582 } else {
10583 lt_count--;
10584 }
10585 }
10586 }
10587 }
10588 if (lt_foo != "") { lt_freq[lt_foo]++; }
10589 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10590}'`
10591 # AWK program above erroneously prepends '/' to C:/dos/paths
10592 # for these hosts.
10593 case $host_os in
10594 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10595 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10596 esac
10597 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10598else
10599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10600fi
10601library_names_spec=
10602libname_spec='lib$name'
10603soname_spec=
10604shrext_cmds=".so"
10605postinstall_cmds=
10606postuninstall_cmds=
10607finish_cmds=
10608finish_eval=
10609shlibpath_var=
10610shlibpath_overrides_runpath=unknown
10611version_type=none
10612dynamic_linker="$host_os ld.so"
10613sys_lib_dlsearch_path_spec="/lib /usr/lib"
10614need_lib_prefix=unknown
10615hardcode_into_libs=no
10616
10617# when you set need_version to no, make sure it does not cause -set_version
10618# flags to be left without arguments
10619need_version=unknown
10620
10621case $host_os in
10622aix3*)
10623 version_type=linux
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10625 shlibpath_var=LIBPATH
10626
10627 # AIX 3 has no versioning support, so we append a major version to the name.
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 ;;
10630
10631aix[4-9]*)
10632 version_type=linux
10633 need_lib_prefix=no
10634 need_version=no
10635 hardcode_into_libs=yes
10636 if test "$host_cpu" = ia64; then
10637 # AIX 5 supports IA64
10638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 else
10641 # With GCC up to 2.95.x, collect2 would create an import file
10642 # for dependence libraries. The import file would start with
10643 # the line `#! .'. This would cause the generated library to
10644 # depend on `.', always an invalid library. This was fixed in
10645 # development snapshots of GCC prior to 3.0.
10646 case $host_os in
10647 aix4 | aix4.[01] | aix4.[01].*)
10648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10649 echo ' yes '
10650 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10651 :
10652 else
10653 can_build_shared=no
10654 fi
10655 ;;
10656 esac
10657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10658 # soname into executable. Probably we can add versioning support to
10659 # collect2, so additional links can be useful in future.
10660 if test "$aix_use_runtimelinking" = yes; then
10661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10662 # instead of lib<name>.a to let people know that these are not
10663 # typical AIX shared libraries.
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 else
10666 # We preserve .a as extension for shared libraries through AIX4.2
10667 # and later when we are not doing run time linking.
10668 library_names_spec='${libname}${release}.a $libname.a'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 fi
10671 shlibpath_var=LIBPATH
10672 fi
10673 ;;
10674
10675amigaos*)
10676 case $host_cpu in
10677 powerpc)
10678 # Since July 2007 AmigaOS4 officially supports .so libraries.
10679 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 ;;
10682 m68k)
10683 library_names_spec='$libname.ixlibrary $libname.a'
10684 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10685 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'
10686 ;;
10687 esac
10688 ;;
10689
10690beos*)
10691 library_names_spec='${libname}${shared_ext}'
10692 dynamic_linker="$host_os ld.so"
10693 shlibpath_var=LIBRARY_PATH
10694 ;;
10695
10696bsdi[45]*)
10697 version_type=linux
10698 need_version=no
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10705 # the default ld.so.conf also contains /usr/contrib/lib and
10706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10707 # libtool to hard-code these into programs
10708 ;;
10709
10710cygwin* | mingw* | pw32* | cegcc*)
10711 version_type=windows
10712 shrext_cmds=".dll"
10713 need_version=no
10714 need_lib_prefix=no
10715
10716 case $GCC,$host_os in
10717 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10718 library_names_spec='$libname.dll.a'
10719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10720 postinstall_cmds='base_file=`basename \${file}`~
10721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10722 dldir=$destdir/`dirname \$dlpath`~
10723 test -d \$dldir || mkdir -p \$dldir~
10724 $install_prog $dir/$dlname \$dldir/$dlname~
10725 chmod a+x \$dldir/$dlname~
10726 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10727 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10728 fi'
10729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10730 dlpath=$dir/\$dldll~
10731 $RM \$dlpath'
10732 shlibpath_overrides_runpath=yes
10733
10734 case $host_os in
10735 cygwin*)
10736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738
10739 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10740 ;;
10741 mingw* | cegcc*)
10742 # MinGW DLLs use traditional 'lib' prefix
10743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10744 ;;
10745 pw32*)
10746 # pw32 DLLs use 'pw' prefix rather than 'lib'
10747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10748 ;;
10749 esac
10750 ;;
10751
10752 *)
10753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10754 ;;
10755 esac
10756 dynamic_linker='Win32 ld.exe'
10757 # FIXME: first we should search . and the directory the executable is in
10758 shlibpath_var=PATH
10759 ;;
10760
10761darwin* | rhapsody*)
10762 dynamic_linker="$host_os dyld"
10763 version_type=darwin
10764 need_lib_prefix=no
10765 need_version=no
10766 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10767 soname_spec='${libname}${release}${major}$shared_ext'
10768 shlibpath_overrides_runpath=yes
10769 shlibpath_var=DYLD_LIBRARY_PATH
10770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10771
10772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10774 ;;
10775
10776dgux*)
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 ;;
10784
10785freebsd* | dragonfly*)
10786 # DragonFly does not have aout. When/if they implement a new
10787 # versioning mechanism, adjust this.
10788 if test -x /usr/bin/objformat; then
10789 objformat=`/usr/bin/objformat`
10790 else
10791 case $host_os in
10792 freebsd[23].*) objformat=aout ;;
10793 *) objformat=elf ;;
10794 esac
10795 fi
10796 version_type=freebsd-$objformat
10797 case $version_type in
10798 freebsd-elf*)
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10800 need_version=no
10801 need_lib_prefix=no
10802 ;;
10803 freebsd-*)
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10805 need_version=yes
10806 ;;
10807 esac
10808 shlibpath_var=LD_LIBRARY_PATH
10809 case $host_os in
10810 freebsd2.*)
10811 shlibpath_overrides_runpath=yes
10812 ;;
10813 freebsd3.[01]* | freebsdelf3.[01]*)
10814 shlibpath_overrides_runpath=yes
10815 hardcode_into_libs=yes
10816 ;;
10817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10819 shlibpath_overrides_runpath=no
10820 hardcode_into_libs=yes
10821 ;;
10822 *) # from 4.6 on, and DragonFly
10823 shlibpath_overrides_runpath=yes
10824 hardcode_into_libs=yes
10825 ;;
10826 esac
10827 ;;
10828
10829gnu*)
10830 version_type=linux
10831 need_lib_prefix=no
10832 need_version=no
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 hardcode_into_libs=yes
10837 ;;
10838
10839haiku*)
10840 version_type=linux
10841 need_lib_prefix=no
10842 need_version=no
10843 dynamic_linker="$host_os runtime_loader"
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 shlibpath_var=LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes
10848 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10849 hardcode_into_libs=yes
10850 ;;
10851
10852hpux9* | hpux10* | hpux11*)
10853 # Give a soname corresponding to the major version so that dld.sl refuses to
10854 # link against other versions.
10855 version_type=sunos
10856 need_lib_prefix=no
10857 need_version=no
10858 case $host_cpu in
10859 ia64*)
10860 shrext_cmds='.so'
10861 hardcode_into_libs=yes
10862 dynamic_linker="$host_os dld.so"
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 if test "X$HPUX_IA64_MODE" = X32; then
10868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10869 else
10870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10871 fi
10872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10873 ;;
10874 hppa*64*)
10875 shrext_cmds='.sl'
10876 hardcode_into_libs=yes
10877 dynamic_linker="$host_os dld.sl"
10878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884 ;;
10885 *)
10886 shrext_cmds='.sl'
10887 dynamic_linker="$host_os dld.sl"
10888 shlibpath_var=SHLIB_PATH
10889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 ;;
10893 esac
10894 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10895 postinstall_cmds='chmod 555 $lib'
10896 # or fails outright, so override atomically:
10897 install_override_mode=555
10898 ;;
10899
10900interix[3-9]*)
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=no
10909 hardcode_into_libs=yes
10910 ;;
10911
10912irix5* | irix6* | nonstopux*)
10913 case $host_os in
10914 nonstopux*) version_type=nonstopux ;;
10915 *)
10916 if test "$lt_cv_prog_gnu_ld" = yes; then
10917 version_type=linux
10918 else
10919 version_type=irix
10920 fi ;;
10921 esac
10922 need_lib_prefix=no
10923 need_version=no
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10926 case $host_os in
10927 irix5* | nonstopux*)
10928 libsuff= shlibsuff=
10929 ;;
10930 *)
10931 case $LD in # libtool.m4 will add one of these switches to LD
10932 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10933 libsuff= shlibsuff= libmagic=32-bit;;
10934 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10935 libsuff=32 shlibsuff=N32 libmagic=N32;;
10936 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10937 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10938 *) libsuff= shlibsuff= libmagic=never-match;;
10939 esac
10940 ;;
10941 esac
10942 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10943 shlibpath_overrides_runpath=no
10944 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10945 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10946 hardcode_into_libs=yes
10947 ;;
10948
10949# No shared lib support for Linux oldld, aout, or coff.
10950linux*oldld* | linux*aout* | linux*coff*)
10951 dynamic_linker=no
10952 ;;
10953
10954# This must be Linux ELF.
e9085da5
MR
10955
10956# uclinux* changes (here and below) have been submitted to the libtool
10957# project, but have not yet been accepted: they are GCC-local changes
10958# for the time being. (See
10959# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10960linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
10961 version_type=linux
10962 need_lib_prefix=no
10963 need_version=no
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=no
10969
10970 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10971 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b4c522fa
IB
10972 $as_echo_n "(cached) " >&6
10973else
10974 lt_cv_shlibpath_overrides_runpath=no
10975 save_LDFLAGS=$LDFLAGS
10976 save_libdir=$libdir
10977 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10978 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980/* end confdefs.h. */
10981
10982int
10983main ()
10984{
10985
10986 ;
10987 return 0;
10988}
10989_ACEOF
10990if ac_fn_c_try_link "$LINENO"; then :
10991 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10992 lt_cv_shlibpath_overrides_runpath=yes
10993fi
10994fi
10995rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LDFLAGS=$save_LDFLAGS
10998 libdir=$save_libdir
10999
11000fi
11001
11002 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11003
11004 # This implies no fast_install, which is unacceptable.
11005 # Some rework will be needed to allow for fast_install
11006 # before this can be enabled.
11007 hardcode_into_libs=yes
11008
11009 # Append ld.so.conf contents to the search path
11010 if test -f /etc/ld.so.conf; then
11011 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' ' '`
11012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11013 fi
11014
11015 # We used to test for /lib/ld.so.1 and disable shared libraries on
11016 # powerpc, because MkLinux only supported shared libraries with the
11017 # GNU dynamic linker. Since this was broken with cross compilers,
11018 # most powerpc-linux boxes support dynamic linking these days and
11019 # people can always --disable-shared, the test was removed, and we
11020 # assume the GNU/Linux dynamic linker is in use.
11021 dynamic_linker='GNU/Linux ld.so'
11022 ;;
11023
11024netbsd*)
11025 version_type=sunos
11026 need_lib_prefix=no
11027 need_version=no
11028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11031 dynamic_linker='NetBSD (a.out) ld.so'
11032 else
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 dynamic_linker='NetBSD ld.elf_so'
11036 fi
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 hardcode_into_libs=yes
11040 ;;
11041
11042newsos6)
11043 version_type=linux
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 ;;
11048
11049*nto* | *qnx*)
11050 version_type=qnx
11051 need_lib_prefix=no
11052 need_version=no
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=no
11057 hardcode_into_libs=yes
11058 dynamic_linker='ldqnx.so'
11059 ;;
11060
11061openbsd*)
11062 version_type=sunos
11063 sys_lib_dlsearch_path_spec="/usr/lib"
11064 need_lib_prefix=no
11065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11066 case $host_os in
11067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11068 *) need_version=no ;;
11069 esac
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11074 case $host_os in
11075 openbsd2.[89] | openbsd2.[89].*)
11076 shlibpath_overrides_runpath=no
11077 ;;
11078 *)
11079 shlibpath_overrides_runpath=yes
11080 ;;
11081 esac
11082 else
11083 shlibpath_overrides_runpath=yes
11084 fi
11085 ;;
11086
11087os2*)
11088 libname_spec='$name'
11089 shrext_cmds=".dll"
11090 need_lib_prefix=no
11091 library_names_spec='$libname${shared_ext} $libname.a'
11092 dynamic_linker='OS/2 ld.exe'
11093 shlibpath_var=LIBPATH
11094 ;;
11095
11096osf3* | osf4* | osf5*)
11097 version_type=osf
11098 need_lib_prefix=no
11099 need_version=no
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11105 ;;
11106
11107rdos*)
11108 dynamic_linker=no
11109 ;;
11110
11111solaris*)
11112 version_type=linux
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 hardcode_into_libs=yes
11120 # ldd complains unless libraries are executable
11121 postinstall_cmds='chmod +x $lib'
11122 ;;
11123
11124sunos4*)
11125 version_type=sunos
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes
11130 if test "$with_gnu_ld" = yes; then
11131 need_lib_prefix=no
11132 fi
11133 need_version=yes
11134 ;;
11135
11136sysv4 | sysv4.3*)
11137 version_type=linux
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 case $host_vendor in
11142 sni)
11143 shlibpath_overrides_runpath=no
11144 need_lib_prefix=no
11145 runpath_var=LD_RUN_PATH
11146 ;;
11147 siemens)
11148 need_lib_prefix=no
11149 ;;
11150 motorola)
11151 need_lib_prefix=no
11152 need_version=no
11153 shlibpath_overrides_runpath=no
11154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11155 ;;
11156 esac
11157 ;;
11158
11159sysv4*MP*)
11160 if test -d /usr/nec ;then
11161 version_type=linux
11162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11163 soname_spec='$libname${shared_ext}.$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 fi
11166 ;;
11167
11168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11169 version_type=freebsd-elf
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 hardcode_into_libs=yes
11177 if test "$with_gnu_ld" = yes; then
11178 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11179 else
11180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11181 case $host_os in
11182 sco3.2v5*)
11183 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11184 ;;
11185 esac
11186 fi
11187 sys_lib_dlsearch_path_spec='/usr/lib'
11188 ;;
11189
11190tpf*)
11191 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11192 version_type=linux
11193 need_lib_prefix=no
11194 need_version=no
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11199 ;;
11200
11201uts4*)
11202 version_type=linux
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 ;;
11207
11208*)
11209 dynamic_linker=no
11210 ;;
11211esac
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11213$as_echo "$dynamic_linker" >&6; }
11214test "$dynamic_linker" = no && can_build_shared=no
11215
11216variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11217if test "$GCC" = yes; then
11218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11219fi
11220
11221if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11222 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11223fi
11224if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11226fi
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11320$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11321hardcode_action=
11322if test -n "$hardcode_libdir_flag_spec" ||
11323 test -n "$runpath_var" ||
11324 test "X$hardcode_automatic" = "Xyes" ; then
11325
11326 # We can hardcode non-existent directories.
11327 if test "$hardcode_direct" != no &&
11328 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11329 # have to relink, otherwise we might link with an installed library
11330 # when we should be linking with a yet-to-be-installed one
11331 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11332 test "$hardcode_minus_L" != no; then
11333 # Linking always hardcodes the temporary library directory.
11334 hardcode_action=relink
11335 else
11336 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11337 hardcode_action=immediate
11338 fi
11339else
11340 # We cannot hardcode anything, or else we can only hardcode existing
11341 # directories.
11342 hardcode_action=unsupported
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11345$as_echo "$hardcode_action" >&6; }
11346
11347if test "$hardcode_action" = relink ||
11348 test "$inherit_rpath" = yes; then
11349 # Fast installation is not supported
11350 enable_fast_install=no
11351elif test "$shlibpath_overrides_runpath" = yes ||
11352 test "$enable_shared" = no; then
11353 # Fast installation is not necessary
11354 enable_fast_install=needless
11355fi
11356
11357
11358
11359
11360
11361
11362 if test "x$enable_dlopen" != xyes; then
11363 enable_dlopen=unknown
11364 enable_dlopen_self=unknown
11365 enable_dlopen_self_static=unknown
11366else
11367 lt_cv_dlopen=no
11368 lt_cv_dlopen_libs=
11369
11370 case $host_os in
11371 beos*)
11372 lt_cv_dlopen="load_add_on"
11373 lt_cv_dlopen_libs=
11374 lt_cv_dlopen_self=yes
11375 ;;
11376
11377 mingw* | pw32* | cegcc*)
11378 lt_cv_dlopen="LoadLibrary"
11379 lt_cv_dlopen_libs=
11380 ;;
11381
11382 cygwin*)
11383 lt_cv_dlopen="dlopen"
11384 lt_cv_dlopen_libs=
11385 ;;
11386
11387 darwin*)
11388 # if libdl is installed we need to link against it
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11390$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11391if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11392 $as_echo_n "(cached) " >&6
11393else
11394 ac_check_lib_save_LIBS=$LIBS
11395LIBS="-ldl $LIBS"
11396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397/* end confdefs.h. */
11398
11399/* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402#ifdef __cplusplus
11403extern "C"
11404#endif
11405char dlopen ();
11406int
11407main ()
11408{
11409return dlopen ();
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414if ac_fn_c_try_link "$LINENO"; then :
11415 ac_cv_lib_dl_dlopen=yes
11416else
11417 ac_cv_lib_dl_dlopen=no
11418fi
11419rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421LIBS=$ac_check_lib_save_LIBS
11422fi
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11424$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11425if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11427else
11428
11429 lt_cv_dlopen="dyld"
11430 lt_cv_dlopen_libs=
11431 lt_cv_dlopen_self=yes
11432
11433fi
11434
11435 ;;
11436
11437 *)
11438 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11439if test "x$ac_cv_func_shl_load" = xyes; then :
b4c522fa
IB
11440 lt_cv_dlopen="shl_load"
11441else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11443$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11444if ${ac_cv_lib_dld_shl_load+:} false; then :
b4c522fa
IB
11445 $as_echo_n "(cached) " >&6
11446else
11447 ac_check_lib_save_LIBS=$LIBS
11448LIBS="-ldld $LIBS"
11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450/* end confdefs.h. */
11451
11452/* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11455#ifdef __cplusplus
11456extern "C"
11457#endif
11458char shl_load ();
11459int
11460main ()
11461{
11462return shl_load ();
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467if ac_fn_c_try_link "$LINENO"; then :
11468 ac_cv_lib_dld_shl_load=yes
11469else
11470 ac_cv_lib_dld_shl_load=no
11471fi
11472rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474LIBS=$ac_check_lib_save_LIBS
11475fi
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11477$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11478if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b4c522fa
IB
11479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11480else
11481 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11482if test "x$ac_cv_func_dlopen" = xyes; then :
b4c522fa
IB
11483 lt_cv_dlopen="dlopen"
11484else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11486$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11487if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11488 $as_echo_n "(cached) " >&6
11489else
11490 ac_check_lib_save_LIBS=$LIBS
11491LIBS="-ldl $LIBS"
11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493/* end confdefs.h. */
11494
11495/* Override any GCC internal prototype to avoid an error.
11496 Use char because int might match the return type of a GCC
11497 builtin and then its argument prototype would still apply. */
11498#ifdef __cplusplus
11499extern "C"
11500#endif
11501char dlopen ();
11502int
11503main ()
11504{
11505return dlopen ();
11506 ;
11507 return 0;
11508}
11509_ACEOF
11510if ac_fn_c_try_link "$LINENO"; then :
11511 ac_cv_lib_dl_dlopen=yes
11512else
11513 ac_cv_lib_dl_dlopen=no
11514fi
11515rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517LIBS=$ac_check_lib_save_LIBS
11518fi
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11520$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11521if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11523else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11525$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11526if ${ac_cv_lib_svld_dlopen+:} false; then :
b4c522fa
IB
11527 $as_echo_n "(cached) " >&6
11528else
11529 ac_check_lib_save_LIBS=$LIBS
11530LIBS="-lsvld $LIBS"
11531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h. */
11533
11534/* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537#ifdef __cplusplus
11538extern "C"
11539#endif
11540char dlopen ();
11541int
11542main ()
11543{
11544return dlopen ();
11545 ;
11546 return 0;
11547}
11548_ACEOF
11549if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_svld_dlopen=yes
11551else
11552 ac_cv_lib_svld_dlopen=no
11553fi
11554rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556LIBS=$ac_check_lib_save_LIBS
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11559$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11560if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b4c522fa
IB
11561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11562else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11564$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11565if ${ac_cv_lib_dld_dld_link+:} false; then :
b4c522fa
IB
11566 $as_echo_n "(cached) " >&6
11567else
11568 ac_check_lib_save_LIBS=$LIBS
11569LIBS="-ldld $LIBS"
11570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571/* end confdefs.h. */
11572
11573/* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579char dld_link ();
11580int
11581main ()
11582{
11583return dld_link ();
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_dld_dld_link=yes
11590else
11591 ac_cv_lib_dld_dld_link=no
11592fi
11593rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595LIBS=$ac_check_lib_save_LIBS
11596fi
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11598$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11599if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b4c522fa
IB
11600 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11601fi
11602
11603
11604fi
11605
11606
11607fi
11608
11609
11610fi
11611
11612
11613fi
11614
11615
11616fi
11617
11618 ;;
11619 esac
11620
11621 if test "x$lt_cv_dlopen" != xno; then
11622 enable_dlopen=yes
11623 else
11624 enable_dlopen=no
11625 fi
11626
11627 case $lt_cv_dlopen in
11628 dlopen)
11629 save_CPPFLAGS="$CPPFLAGS"
11630 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11631
11632 save_LDFLAGS="$LDFLAGS"
11633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11634
11635 save_LIBS="$LIBS"
11636 LIBS="$lt_cv_dlopen_libs $LIBS"
11637
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11639$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11640if ${lt_cv_dlopen_self+:} false; then :
b4c522fa
IB
11641 $as_echo_n "(cached) " >&6
11642else
11643 if test "$cross_compiling" = yes; then :
11644 lt_cv_dlopen_self=cross
11645else
11646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11647 lt_status=$lt_dlunknown
11648 cat > conftest.$ac_ext <<_LT_EOF
72c136c9 11649#line 11649 "configure"
b4c522fa
IB
11650#include "confdefs.h"
11651
11652#if HAVE_DLFCN_H
11653#include <dlfcn.h>
11654#endif
11655
11656#include <stdio.h>
11657
11658#ifdef RTLD_GLOBAL
11659# define LT_DLGLOBAL RTLD_GLOBAL
11660#else
11661# ifdef DL_GLOBAL
11662# define LT_DLGLOBAL DL_GLOBAL
11663# else
11664# define LT_DLGLOBAL 0
11665# endif
11666#endif
11667
11668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11669 find out it does not work in some platform. */
11670#ifndef LT_DLLAZY_OR_NOW
11671# ifdef RTLD_LAZY
11672# define LT_DLLAZY_OR_NOW RTLD_LAZY
11673# else
11674# ifdef DL_LAZY
11675# define LT_DLLAZY_OR_NOW DL_LAZY
11676# else
11677# ifdef RTLD_NOW
11678# define LT_DLLAZY_OR_NOW RTLD_NOW
11679# else
11680# ifdef DL_NOW
11681# define LT_DLLAZY_OR_NOW DL_NOW
11682# else
11683# define LT_DLLAZY_OR_NOW 0
11684# endif
11685# endif
11686# endif
11687# endif
11688#endif
11689
11690/* When -fvisbility=hidden is used, assume the code has been annotated
11691 correspondingly for the symbols needed. */
11692#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11693void fnord () __attribute__((visibility("default")));
11694#endif
11695
11696void fnord () { int i=42; }
11697int main ()
11698{
11699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11700 int status = $lt_dlunknown;
11701
11702 if (self)
11703 {
11704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11705 else
11706 {
11707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11708 else puts (dlerror ());
11709 }
11710 /* dlclose (self); */
11711 }
11712 else
11713 puts (dlerror ());
11714
11715 return status;
11716}
11717_LT_EOF
11718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11719 (eval $ac_link) 2>&5
11720 ac_status=$?
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11723 (./conftest; exit; ) >&5 2>/dev/null
11724 lt_status=$?
11725 case x$lt_status in
11726 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11727 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11728 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11729 esac
11730 else :
11731 # compilation failed
11732 lt_cv_dlopen_self=no
11733 fi
11734fi
11735rm -fr conftest*
11736
11737
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11740$as_echo "$lt_cv_dlopen_self" >&6; }
11741
11742 if test "x$lt_cv_dlopen_self" = xyes; then
11743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11745$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11746if ${lt_cv_dlopen_self_static+:} false; then :
b4c522fa
IB
11747 $as_echo_n "(cached) " >&6
11748else
11749 if test "$cross_compiling" = yes; then :
11750 lt_cv_dlopen_self_static=cross
11751else
11752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11753 lt_status=$lt_dlunknown
11754 cat > conftest.$ac_ext <<_LT_EOF
72c136c9 11755#line 11755 "configure"
b4c522fa
IB
11756#include "confdefs.h"
11757
11758#if HAVE_DLFCN_H
11759#include <dlfcn.h>
11760#endif
11761
11762#include <stdio.h>
11763
11764#ifdef RTLD_GLOBAL
11765# define LT_DLGLOBAL RTLD_GLOBAL
11766#else
11767# ifdef DL_GLOBAL
11768# define LT_DLGLOBAL DL_GLOBAL
11769# else
11770# define LT_DLGLOBAL 0
11771# endif
11772#endif
11773
11774/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11775 find out it does not work in some platform. */
11776#ifndef LT_DLLAZY_OR_NOW
11777# ifdef RTLD_LAZY
11778# define LT_DLLAZY_OR_NOW RTLD_LAZY
11779# else
11780# ifdef DL_LAZY
11781# define LT_DLLAZY_OR_NOW DL_LAZY
11782# else
11783# ifdef RTLD_NOW
11784# define LT_DLLAZY_OR_NOW RTLD_NOW
11785# else
11786# ifdef DL_NOW
11787# define LT_DLLAZY_OR_NOW DL_NOW
11788# else
11789# define LT_DLLAZY_OR_NOW 0
11790# endif
11791# endif
11792# endif
11793# endif
11794#endif
11795
11796/* When -fvisbility=hidden is used, assume the code has been annotated
11797 correspondingly for the symbols needed. */
11798#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11799void fnord () __attribute__((visibility("default")));
11800#endif
11801
11802void fnord () { int i=42; }
11803int main ()
11804{
11805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11806 int status = $lt_dlunknown;
11807
11808 if (self)
11809 {
11810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11811 else
11812 {
11813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11814 else puts (dlerror ());
11815 }
11816 /* dlclose (self); */
11817 }
11818 else
11819 puts (dlerror ());
11820
11821 return status;
11822}
11823_LT_EOF
11824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11825 (eval $ac_link) 2>&5
11826 ac_status=$?
11827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11828 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11829 (./conftest; exit; ) >&5 2>/dev/null
11830 lt_status=$?
11831 case x$lt_status in
11832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11835 esac
11836 else :
11837 # compilation failed
11838 lt_cv_dlopen_self_static=no
11839 fi
11840fi
11841rm -fr conftest*
11842
11843
11844fi
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11846$as_echo "$lt_cv_dlopen_self_static" >&6; }
11847 fi
11848
11849 CPPFLAGS="$save_CPPFLAGS"
11850 LDFLAGS="$save_LDFLAGS"
11851 LIBS="$save_LIBS"
11852 ;;
11853 esac
11854
11855 case $lt_cv_dlopen_self in
11856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11857 *) enable_dlopen_self=unknown ;;
11858 esac
11859
11860 case $lt_cv_dlopen_self_static in
11861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11862 *) enable_dlopen_self_static=unknown ;;
11863 esac
11864fi
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882striplib=
11883old_striplib=
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11885$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11886if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11887 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11888 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11890$as_echo "yes" >&6; }
11891else
11892# FIXME - insert some real tests, host_os isn't really good enough
11893 case $host_os in
11894 darwin*)
11895 if test -n "$STRIP" ; then
11896 striplib="$STRIP -x"
11897 old_striplib="$STRIP -S"
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899$as_echo "yes" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903 fi
11904 ;;
11905 *)
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907$as_echo "no" >&6; }
11908 ;;
11909 esac
11910fi
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923 # Report which library types will actually be built
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11925$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11927$as_echo "$can_build_shared" >&6; }
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11930$as_echo_n "checking whether to build shared libraries... " >&6; }
11931 test "$can_build_shared" = "no" && enable_shared=no
11932
11933 # On AIX, shared libraries and static libraries use the same namespace, and
11934 # are all built from PIC.
11935 case $host_os in
11936 aix3*)
11937 test "$enable_shared" = yes && enable_static=no
11938 if test -n "$RANLIB"; then
11939 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11940 postinstall_cmds='$RANLIB $lib'
11941 fi
11942 ;;
11943
11944 aix[4-9]*)
11945 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11946 test "$enable_shared" = yes && enable_static=no
11947 fi
11948 ;;
11949 esac
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11951$as_echo "$enable_shared" >&6; }
11952
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11954$as_echo_n "checking whether to build static libraries... " >&6; }
11955 # Make sure either enable_shared or enable_static is yes.
11956 test "$enable_shared" = yes || enable_static=yes
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11958$as_echo "$enable_static" >&6; }
11959
11960
11961
11962
11963fi
11964ac_ext=c
11965ac_cpp='$CPP $CPPFLAGS'
11966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969
11970CC="$lt_save_CC"
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 ac_config_commands="$ac_config_commands libtool"
11985
11986
11987
11988
11989# Only expand once:
11990
11991
11992
11993
11994
11995 gdc_save_DFLAGS=$GDCFLAGS
11996 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11997
11998
11999# Source file extension for D test sources.
12000ac_ext=d
12001
12002# Object file extension for compiled D test sources.
12003objext=o
12004objext_D=$objext
12005
12006# Code to be used in simple compile tests
9bedfe18
IB
12007lt_simple_compile_test_code="\
12008 module object;
12009 shared int some_variable = 0;
12010"
b4c522fa
IB
12011
12012# Code to be used in simple link tests
9bedfe18
IB
12013lt_simple_link_test_code="\
12014 module object;
12015 extern(C) int main() { return 0; }
12016"
b4c522fa
IB
12017
12018# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12019
12020
12021
12022
12023
12024
12025# If no C compiler was specified, use CC.
12026LTCC=${LTCC-"$CC"}
12027
12028# If no C compiler flags were specified, use CFLAGS.
12029LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12030
12031# Allow CC to be a program name with arguments.
12032compiler=$CC
12033
12034
12035# save warnings/boilerplate of simple test code
12036ac_outfile=conftest.$ac_objext
12037echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12038eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12039_lt_compiler_boilerplate=`cat conftest.err`
12040$RM conftest*
12041
12042ac_outfile=conftest.$ac_objext
12043echo "$lt_simple_link_test_code" >conftest.$ac_ext
12044eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12045_lt_linker_boilerplate=`cat conftest.err`
12046$RM -r conftest*
12047
12048
12049# Allow CC to be a program name with arguments.
12050lt_save_CC=$CC
12051lt_save_CFLAGS=$CFLAGS
b4c522fa
IB
12052lt_save_GCC=$GCC
12053GCC=yes
12054CC=${GDC-"gdc"}
b4c522fa
IB
12055CFLAGS=$GDCFLAGS
12056compiler=$CC
12057compiler_D=$CC
12058LD_D=$CC
12059for cc_temp in $compiler""; do
12060 case $cc_temp in
12061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12063 \-*) ;;
12064 *) break;;
12065 esac
12066done
12067cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12068
12069
12070# GDC did not exist at the time GCC didn't implicitly link libc in.
12071archive_cmds_need_lc_D=no
12072
12073old_archive_cmds_D=$old_archive_cmds
12074reload_flag_D=$reload_flag
12075reload_cmds_D=$reload_cmds
12076
12077## CAVEAT EMPTOR:
12078## There is no encapsulation within the following macros, do not change
12079## the running order or otherwise move them around unless you know exactly
12080## what you are doing...
12081if test -n "$compiler"; then
12082
12083lt_prog_compiler_no_builtin_flag_D=
12084
12085if test "$GCC" = yes; then
12086 case $cc_basename in
12087 nvcc*)
12088 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12089 *)
12090 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12091 esac
12092
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12094$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 12095if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
12096 $as_echo_n "(cached) " >&6
12097else
12098 lt_cv_prog_compiler_rtti_exceptions=no
12099 ac_outfile=conftest.$ac_objext
12100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12101 lt_compiler_flag="-fno-rtti -fno-exceptions"
12102 # Insert the option either (1) after the last *FLAGS variable, or
12103 # (2) before a word containing "conftest.", or (3) at the end.
12104 # Note that $ac_compile itself does not contain backslashes and begins
12105 # with a dollar sign (not a hyphen), so the echo should work correctly.
12106 # The option is referenced via a variable to avoid confusing sed.
12107 lt_compile=`echo "$ac_compile" | $SED \
12108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12110 -e 's:$: $lt_compiler_flag:'`
12111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12112 (eval "$lt_compile" 2>conftest.err)
12113 ac_status=$?
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 if (exit $ac_status) && test -s "$ac_outfile"; then
12117 # The compiler can only warn and ignore the option if not recognized
12118 # So say no if there are warnings other than the usual output.
12119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12122 lt_cv_prog_compiler_rtti_exceptions=yes
12123 fi
12124 fi
12125 $RM conftest*
12126
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12129$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12130
12131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12132 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12133else
12134 :
12135fi
12136
12137fi
12138
12139
12140
12141 lt_prog_compiler_wl_D=
12142lt_prog_compiler_pic_D=
12143lt_prog_compiler_static_D=
12144
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12146$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12147
12148 if test "$GCC" = yes; then
12149 lt_prog_compiler_wl_D='-Wl,'
12150 lt_prog_compiler_static_D='-static'
12151
12152 case $host_os in
12153 aix*)
12154 # All AIX code is PIC.
12155 if test "$host_cpu" = ia64; then
12156 # AIX 5 now supports IA64 processor
12157 lt_prog_compiler_static_D='-Bstatic'
12158 fi
12159 lt_prog_compiler_pic_D='-fPIC'
12160 ;;
12161
12162 amigaos*)
12163 case $host_cpu in
12164 powerpc)
12165 # see comment about AmigaOS4 .so support
12166 lt_prog_compiler_pic_D='-fPIC'
12167 ;;
12168 m68k)
12169 # FIXME: we need at least 68020 code to build shared libraries, but
12170 # adding the `-m68020' flag to GCC prevents building anything better,
12171 # like `-m68040'.
12172 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12173 ;;
12174 esac
12175 ;;
12176
12177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12178 # PIC is the default for these OSes.
12179 ;;
12180
12181 mingw* | cygwin* | pw32* | os2* | cegcc*)
12182 # This hack is so that the source file can tell whether it is being
12183 # built for inclusion in a dll (and should export symbols for example).
12184 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12185 # (--disable-auto-import) libraries
12186 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12187 ;;
12188
12189 darwin* | rhapsody*)
12190 # PIC is the default on this platform
12191 # Common symbols not allowed in MH_DYLIB files
12192 lt_prog_compiler_pic_D='-fno-common'
12193 ;;
12194
12195 haiku*)
12196 # PIC is the default for Haiku.
12197 # The "-static" flag exists, but is broken.
12198 lt_prog_compiler_static_D=
12199 ;;
12200
12201 hpux*)
12202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12204 # sets the default TLS model and affects inlining.
12205 case $host_cpu in
12206 hppa*64*)
12207 # +Z the default
12208 ;;
12209 *)
12210 lt_prog_compiler_pic_D='-fPIC'
12211 ;;
12212 esac
12213 ;;
12214
12215 interix[3-9]*)
12216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12217 # Instead, we relocate shared libraries at runtime.
12218 ;;
12219
12220 msdosdjgpp*)
12221 # Just because we use GCC doesn't mean we suddenly get shared libraries
12222 # on systems that don't support them.
12223 lt_prog_compiler_can_build_shared_D=no
12224 enable_shared=no
12225 ;;
12226
12227 *nto* | *qnx*)
12228 # QNX uses GNU C++, but need to define -shared option too, otherwise
12229 # it will coredump.
12230 lt_prog_compiler_pic_D='-fPIC -shared'
12231 ;;
12232
12233 sysv4*MP*)
12234 if test -d /usr/nec; then
12235 lt_prog_compiler_pic_D=-Kconform_pic
12236 fi
12237 ;;
12238
12239 *)
12240 lt_prog_compiler_pic_D='-fPIC'
12241 ;;
12242 esac
12243
12244 case $cc_basename in
12245 nvcc*) # Cuda Compiler Driver 2.2
12246 lt_prog_compiler_wl_D='-Xlinker '
12247 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12248 ;;
12249 esac
12250 else
12251 # PORTME Check for flag to pass linker flags through the system compiler.
12252 case $host_os in
12253 aix*)
12254 lt_prog_compiler_wl_D='-Wl,'
12255 if test "$host_cpu" = ia64; then
12256 # AIX 5 now supports IA64 processor
12257 lt_prog_compiler_static_D='-Bstatic'
12258 else
12259 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12260 fi
12261 ;;
12262
12263 mingw* | cygwin* | pw32* | os2* | cegcc*)
12264 # This hack is so that the source file can tell whether it is being
12265 # built for inclusion in a dll (and should export symbols for example).
12266 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12267 ;;
12268
12269 hpux9* | hpux10* | hpux11*)
12270 lt_prog_compiler_wl_D='-Wl,'
12271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12272 # not for PA HP-UX.
12273 case $host_cpu in
12274 hppa*64*|ia64*)
12275 # +Z the default
12276 ;;
12277 *)
12278 lt_prog_compiler_pic_D='+Z'
12279 ;;
12280 esac
12281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12282 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12283 ;;
12284
12285 irix5* | irix6* | nonstopux*)
12286 lt_prog_compiler_wl_D='-Wl,'
12287 # PIC (with -KPIC) is the default.
12288 lt_prog_compiler_static_D='-non_shared'
12289 ;;
12290
12291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12292 case $cc_basename in
12293 # old Intel for x86_64 which still supported -KPIC.
12294 ecc*)
12295 lt_prog_compiler_wl_D='-Wl,'
12296 lt_prog_compiler_pic_D='-KPIC'
12297 lt_prog_compiler_static_D='-static'
12298 ;;
12299 # icc used to be incompatible with GCC.
12300 # ICC 10 doesn't accept -KPIC any more.
12301 icc* | ifort*)
12302 lt_prog_compiler_wl_D='-Wl,'
12303 lt_prog_compiler_pic_D='-fPIC'
12304 lt_prog_compiler_static_D='-static'
12305 ;;
12306 # Lahey Fortran 8.1.
12307 lf95*)
12308 lt_prog_compiler_wl_D='-Wl,'
12309 lt_prog_compiler_pic_D='--shared'
12310 lt_prog_compiler_static_D='--static'
12311 ;;
12312 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12313 # Portland Group compilers (*not* the Pentium gcc compiler,
12314 # which looks to be a dead project)
12315 lt_prog_compiler_wl_D='-Wl,'
12316 lt_prog_compiler_pic_D='-fpic'
12317 lt_prog_compiler_static_D='-Bstatic'
12318 ;;
12319 ccc*)
12320 lt_prog_compiler_wl_D='-Wl,'
12321 # All Alpha code is PIC.
12322 lt_prog_compiler_static_D='-non_shared'
12323 ;;
12324 xl* | bgxl* | bgf* | mpixl*)
12325 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12326 lt_prog_compiler_wl_D='-Wl,'
12327 lt_prog_compiler_pic_D='-qpic'
12328 lt_prog_compiler_static_D='-qstaticlink'
12329 ;;
12330 *)
12331 case `$CC -V 2>&1 | sed 5q` in
12332 *Sun\ F* | *Sun*Fortran*)
12333 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12334 lt_prog_compiler_pic_D='-KPIC'
12335 lt_prog_compiler_static_D='-Bstatic'
12336 lt_prog_compiler_wl_D=''
12337 ;;
12338 *Sun\ C*)
12339 # Sun C 5.9
12340 lt_prog_compiler_pic_D='-KPIC'
12341 lt_prog_compiler_static_D='-Bstatic'
12342 lt_prog_compiler_wl_D='-Wl,'
12343 ;;
12344 esac
12345 ;;
12346 esac
12347 ;;
12348
12349 newsos6)
12350 lt_prog_compiler_pic_D='-KPIC'
12351 lt_prog_compiler_static_D='-Bstatic'
12352 ;;
12353
12354 *nto* | *qnx*)
12355 # QNX uses GNU C++, but need to define -shared option too, otherwise
12356 # it will coredump.
12357 lt_prog_compiler_pic_D='-fPIC -shared'
12358 ;;
12359
12360 osf3* | osf4* | osf5*)
12361 lt_prog_compiler_wl_D='-Wl,'
12362 # All OSF/1 code is PIC.
12363 lt_prog_compiler_static_D='-non_shared'
12364 ;;
12365
12366 rdos*)
12367 lt_prog_compiler_static_D='-non_shared'
12368 ;;
12369
12370 solaris*)
12371 lt_prog_compiler_pic_D='-KPIC'
12372 lt_prog_compiler_static_D='-Bstatic'
12373 case $cc_basename in
12374 f77* | f90* | f95*)
12375 lt_prog_compiler_wl_D='-Qoption ld ';;
12376 *)
12377 lt_prog_compiler_wl_D='-Wl,';;
12378 esac
12379 ;;
12380
12381 sunos4*)
12382 lt_prog_compiler_wl_D='-Qoption ld '
12383 lt_prog_compiler_pic_D='-PIC'
12384 lt_prog_compiler_static_D='-Bstatic'
12385 ;;
12386
12387 sysv4 | sysv4.2uw2* | sysv4.3*)
12388 lt_prog_compiler_wl_D='-Wl,'
12389 lt_prog_compiler_pic_D='-KPIC'
12390 lt_prog_compiler_static_D='-Bstatic'
12391 ;;
12392
12393 sysv4*MP*)
12394 if test -d /usr/nec ;then
12395 lt_prog_compiler_pic_D='-Kconform_pic'
12396 lt_prog_compiler_static_D='-Bstatic'
12397 fi
12398 ;;
12399
12400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12401 lt_prog_compiler_wl_D='-Wl,'
12402 lt_prog_compiler_pic_D='-KPIC'
12403 lt_prog_compiler_static_D='-Bstatic'
12404 ;;
12405
12406 unicos*)
12407 lt_prog_compiler_wl_D='-Wl,'
12408 lt_prog_compiler_can_build_shared_D=no
12409 ;;
12410
12411 uts4*)
12412 lt_prog_compiler_pic_D='-pic'
12413 lt_prog_compiler_static_D='-Bstatic'
12414 ;;
12415
12416 *)
12417 lt_prog_compiler_can_build_shared_D=no
12418 ;;
12419 esac
12420 fi
12421
12422case $host_os in
12423 # For platforms which do not support PIC, -DPIC is meaningless:
12424 *djgpp*)
12425 lt_prog_compiler_pic_D=
12426 ;;
12427 *)
12428 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12429 ;;
12430esac
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12432$as_echo "$lt_prog_compiler_pic_D" >&6; }
12433
12434
12435
12436#
12437# Check to make sure the PIC flag actually works.
12438#
12439if test -n "$lt_prog_compiler_pic_D"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12441$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
22e05272 12442if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
b4c522fa
IB
12443 $as_echo_n "(cached) " >&6
12444else
12445 lt_cv_prog_compiler_pic_works_D=no
12446 ac_outfile=conftest.$ac_objext
12447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12448 lt_compiler_flag="$lt_prog_compiler_pic_D"
12449 # Insert the option either (1) after the last *FLAGS variable, or
12450 # (2) before a word containing "conftest.", or (3) at the end.
12451 # Note that $ac_compile itself does not contain backslashes and begins
12452 # with a dollar sign (not a hyphen), so the echo should work correctly.
12453 # The option is referenced via a variable to avoid confusing sed.
12454 lt_compile=`echo "$ac_compile" | $SED \
12455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12457 -e 's:$: $lt_compiler_flag:'`
12458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12459 (eval "$lt_compile" 2>conftest.err)
12460 ac_status=$?
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 if (exit $ac_status) && test -s "$ac_outfile"; then
12464 # The compiler can only warn and ignore the option if not recognized
12465 # So say no if there are warnings other than the usual output.
12466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12469 lt_cv_prog_compiler_pic_works_D=yes
12470 fi
12471 fi
12472 $RM conftest*
12473
12474fi
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12476$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12477
12478if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12479 case $lt_prog_compiler_pic_D in
12480 "" | " "*) ;;
12481 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12482 esac
12483else
12484 lt_prog_compiler_pic_D=
12485 lt_prog_compiler_can_build_shared_D=no
12486fi
12487
12488fi
12489
12490
12491
12492#
12493# Check to make sure the static flag actually works.
12494#
12495wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12497$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12498if ${lt_cv_prog_compiler_static_works_D+:} false; then :
b4c522fa
IB
12499 $as_echo_n "(cached) " >&6
12500else
12501 lt_cv_prog_compiler_static_works_D=no
12502 save_LDFLAGS="$LDFLAGS"
12503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12506 # The linker can only warn and ignore the option if not recognized
12507 # So say no if there are warnings
12508 if test -s conftest.err; then
12509 # Append any errors to the config.log.
12510 cat conftest.err 1>&5
12511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12513 if diff conftest.exp conftest.er2 >/dev/null; then
12514 lt_cv_prog_compiler_static_works_D=yes
12515 fi
12516 else
12517 lt_cv_prog_compiler_static_works_D=yes
12518 fi
12519 fi
12520 $RM -r conftest*
12521 LDFLAGS="$save_LDFLAGS"
12522
12523fi
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12525$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12526
12527if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12528 :
12529else
12530 lt_prog_compiler_static_D=
12531fi
12532
12533
12534
12535
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12537$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12538if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12539 $as_echo_n "(cached) " >&6
12540else
12541 lt_cv_prog_compiler_c_o_D=no
12542 $RM -r conftest 2>/dev/null
12543 mkdir conftest
12544 cd conftest
12545 mkdir out
12546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12547
12548 lt_compiler_flag="-o out/conftest2.$ac_objext"
12549 # Insert the option either (1) after the last *FLAGS variable, or
12550 # (2) before a word containing "conftest.", or (3) at the end.
12551 # Note that $ac_compile itself does not contain backslashes and begins
12552 # with a dollar sign (not a hyphen), so the echo should work correctly.
12553 lt_compile=`echo "$ac_compile" | $SED \
12554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12556 -e 's:$: $lt_compiler_flag:'`
12557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12558 (eval "$lt_compile" 2>out/conftest.err)
12559 ac_status=$?
12560 cat out/conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12563 then
12564 # The compiler can only warn and ignore the option if not recognized
12565 # So say no if there are warnings
12566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12569 lt_cv_prog_compiler_c_o_D=yes
12570 fi
12571 fi
12572 chmod u+w . 2>&5
12573 $RM conftest*
12574 # SGI C++ compiler will create directory out/ii_files/ for
12575 # template instantiation
12576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12577 $RM out/* && rmdir out
12578 cd ..
12579 $RM -r conftest
12580 $RM conftest*
12581
12582fi
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12584$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12585
12586
12587
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12589$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12590if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12591 $as_echo_n "(cached) " >&6
12592else
12593 lt_cv_prog_compiler_c_o_D=no
12594 $RM -r conftest 2>/dev/null
12595 mkdir conftest
12596 cd conftest
12597 mkdir out
12598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12599
12600 lt_compiler_flag="-o out/conftest2.$ac_objext"
12601 # Insert the option either (1) after the last *FLAGS variable, or
12602 # (2) before a word containing "conftest.", or (3) at the end.
12603 # Note that $ac_compile itself does not contain backslashes and begins
12604 # with a dollar sign (not a hyphen), so the echo should work correctly.
12605 lt_compile=`echo "$ac_compile" | $SED \
12606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12608 -e 's:$: $lt_compiler_flag:'`
12609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12610 (eval "$lt_compile" 2>out/conftest.err)
12611 ac_status=$?
12612 cat out/conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12615 then
12616 # The compiler can only warn and ignore the option if not recognized
12617 # So say no if there are warnings
12618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12621 lt_cv_prog_compiler_c_o_D=yes
12622 fi
12623 fi
12624 chmod u+w . 2>&5
12625 $RM conftest*
12626 # SGI C++ compiler will create directory out/ii_files/ for
12627 # template instantiation
12628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12629 $RM out/* && rmdir out
12630 cd ..
12631 $RM -r conftest
12632 $RM conftest*
12633
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12636$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12637
12638
12639
12640
12641hard_links="nottested"
12642if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12643 # do not overwrite the value of need_locks provided by the user
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12645$as_echo_n "checking if we can lock with hard links... " >&6; }
12646 hard_links=yes
12647 $RM conftest*
12648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12649 touch conftest.a
12650 ln conftest.a conftest.b 2>&5 || hard_links=no
12651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12653$as_echo "$hard_links" >&6; }
12654 if test "$hard_links" = no; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12656$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12657 need_locks=warn
12658 fi
12659else
12660 need_locks=no
12661fi
12662
12663
12664
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12666$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12667
12668 runpath_var=
12669 allow_undefined_flag_D=
12670 always_export_symbols_D=no
12671 archive_cmds_D=
12672 archive_expsym_cmds_D=
12673 compiler_needs_object_D=no
12674 enable_shared_with_static_runtimes_D=no
12675 export_dynamic_flag_spec_D=
12676 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12677 hardcode_automatic_D=no
12678 hardcode_direct_D=no
12679 hardcode_direct_absolute_D=no
12680 hardcode_libdir_flag_spec_D=
12681 hardcode_libdir_flag_spec_ld_D=
12682 hardcode_libdir_separator_D=
12683 hardcode_minus_L_D=no
12684 hardcode_shlibpath_var_D=unsupported
12685 inherit_rpath_D=no
12686 link_all_deplibs_D=unknown
12687 module_cmds_D=
12688 module_expsym_cmds_D=
12689 old_archive_from_new_cmds_D=
12690 old_archive_from_expsyms_cmds_D=
12691 thread_safe_flag_spec_D=
12692 whole_archive_flag_spec_D=
12693 # include_expsyms should be a list of space-separated symbols to be *always*
12694 # included in the symbol list
12695 include_expsyms_D=
12696 # exclude_expsyms can be an extended regexp of symbols to exclude
12697 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12698 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12699 # as well as any symbol that contains `d'.
12700 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12702 # platforms (ab)use it in PIC code, but their linkers get confused if
12703 # the symbol is explicitly referenced. Since portable code cannot
12704 # rely on this symbol name, it's probably fine to never include it in
12705 # preloaded symbol tables.
12706 # Exclude shared library initialization/finalization symbols.
12707 extract_expsyms_cmds=
12708
12709 case $host_os in
12710 cygwin* | mingw* | pw32* | cegcc*)
12711 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12712 # When not using gcc, we currently assume that we are using
12713 # Microsoft Visual C++.
12714 if test "$GCC" != yes; then
12715 with_gnu_ld=no
12716 fi
12717 ;;
12718 interix*)
12719 # we just hope/assume this is gcc and not c89 (= MSVC++)
12720 with_gnu_ld=yes
12721 ;;
12722 openbsd*)
12723 with_gnu_ld=no
12724 ;;
12725 esac
12726
12727 ld_shlibs_D=yes
12728
12729 # On some targets, GNU ld is compatible enough with the native linker
12730 # that we're better off using the native interface for both.
12731 lt_use_gnu_ld_interface=no
12732 if test "$with_gnu_ld" = yes; then
12733 case $host_os in
12734 aix*)
12735 # The AIX port of GNU ld has always aspired to compatibility
12736 # with the native linker. However, as the warning in the GNU ld
12737 # block says, versions before 2.19.5* couldn't really create working
12738 # shared libraries, regardless of the interface used.
12739 case `$LD -v 2>&1` in
12740 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12741 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12742 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12743 *)
12744 lt_use_gnu_ld_interface=yes
12745 ;;
12746 esac
12747 ;;
12748 *)
12749 lt_use_gnu_ld_interface=yes
12750 ;;
12751 esac
12752 fi
12753
12754 if test "$lt_use_gnu_ld_interface" = yes; then
12755 # If archive_cmds runs LD, not CC, wlarc should be empty
12756 wlarc='${wl}'
12757
12758 # Set some defaults for GNU ld with shared library support. These
12759 # are reset later if shared libraries are not supported. Putting them
12760 # here allows them to be overridden if necessary.
12761 runpath_var=LD_RUN_PATH
12762 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12763 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12764 # ancient GNU ld didn't support --whole-archive et. al.
12765 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12766 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12767 else
12768 whole_archive_flag_spec_D=
12769 fi
12770 supports_anon_versioning=no
12771 case `$LD -v 2>&1` in
12772 *GNU\ gold*) supports_anon_versioning=yes ;;
12773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12776 *\ 2.11.*) ;; # other 2.11 versions
12777 *) supports_anon_versioning=yes ;;
12778 esac
12779
12780 # See if GNU ld supports shared libraries.
12781 case $host_os in
12782 aix[3-9]*)
12783 # On AIX/PPC, the GNU linker is very broken
12784 if test "$host_cpu" != ia64; then
12785 ld_shlibs_D=no
12786 cat <<_LT_EOF 1>&2
12787
12788*** Warning: the GNU linker, at least up to release 2.19, is reported
12789*** to be unable to reliably create shared libraries on AIX.
12790*** Therefore, libtool is disabling shared libraries support. If you
12791*** really care for shared libraries, you may want to install binutils
12792*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12793*** You will then need to restart the configuration process.
12794
12795_LT_EOF
12796 fi
12797 ;;
12798
12799 amigaos*)
12800 case $host_cpu in
12801 powerpc)
12802 # see comment about AmigaOS4 .so support
12803 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804 archive_expsym_cmds_D=''
12805 ;;
12806 m68k)
12807 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)'
12808 hardcode_libdir_flag_spec_D='-L$libdir'
12809 hardcode_minus_L_D=yes
12810 ;;
12811 esac
12812 ;;
12813
12814 beos*)
12815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12816 allow_undefined_flag_D=unsupported
12817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12818 # support --undefined. This deserves some investigation. FIXME
12819 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 else
12821 ld_shlibs_D=no
12822 fi
12823 ;;
12824
12825 cygwin* | mingw* | pw32* | cegcc*)
12826 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12827 # as there is no search path for DLLs.
12828 hardcode_libdir_flag_spec_D='-L$libdir'
12829 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12830 allow_undefined_flag_D=unsupported
12831 always_export_symbols_D=no
12832 enable_shared_with_static_runtimes_D=yes
12833 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12834
12835 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12836 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12837 # If the export-symbols file already is a .def file (1st line
12838 # is EXPORTS), use it as is; otherwise, prepend...
12839 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12840 cp $export_symbols $output_objdir/$soname.def;
12841 else
12842 echo EXPORTS > $output_objdir/$soname.def;
12843 cat $export_symbols >> $output_objdir/$soname.def;
12844 fi~
12845 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12846 else
12847 ld_shlibs_D=no
12848 fi
12849 ;;
12850
12851 haiku*)
12852 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853 link_all_deplibs_D=yes
12854 ;;
12855
12856 interix[3-9]*)
12857 hardcode_direct_D=no
12858 hardcode_shlibpath_var_D=no
12859 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12860 export_dynamic_flag_spec_D='${wl}-E'
12861 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12862 # Instead, shared libraries are loaded at an image base (0x10000000 by
12863 # default) and relocated if they conflict, which is a slow very memory
12864 # consuming and fragmenting process. To avoid this, we pick a random,
12865 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12866 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12867 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'
12868 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'
12869 ;;
12870
e9085da5 12871 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b4c522fa
IB
12872 tmp_diet=no
12873 if test "$host_os" = linux-dietlibc; then
12874 case $cc_basename in
12875 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12876 esac
12877 fi
12878 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12879 && test "$tmp_diet" = no
12880 then
12881 tmp_addflag=' $pic_flag'
12882 tmp_sharedflag='-shared'
12883 case $cc_basename,$host_cpu in
12884 pgcc*) # Portland Group C compiler
12885 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'
12886 tmp_addflag=' $pic_flag'
12887 ;;
12888 pgf77* | pgf90* | pgf95* | pgfortran*)
12889 # Portland Group f77 and f90 compilers
12890 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'
12891 tmp_addflag=' $pic_flag -Mnomain' ;;
12892 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12893 tmp_addflag=' -i_dynamic' ;;
12894 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12895 tmp_addflag=' -i_dynamic -nofor_main' ;;
12896 ifc* | ifort*) # Intel Fortran compiler
12897 tmp_addflag=' -nofor_main' ;;
12898 lf95*) # Lahey Fortran 8.1
12899 whole_archive_flag_spec_D=
12900 tmp_sharedflag='--shared' ;;
12901 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12902 tmp_sharedflag='-qmkshrobj'
12903 tmp_addflag= ;;
12904 nvcc*) # Cuda Compiler Driver 2.2
12905 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'
12906 compiler_needs_object_D=yes
12907 ;;
12908 esac
12909 case `$CC -V 2>&1 | sed 5q` in
12910 *Sun\ C*) # Sun C 5.9
12911 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'
12912 compiler_needs_object_D=yes
12913 tmp_sharedflag='-G' ;;
12914 *Sun\ F*) # Sun Fortran 8.3
12915 tmp_sharedflag='-G' ;;
12916 esac
12917 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918
12919 if test "x$supports_anon_versioning" = xyes; then
12920 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12922 echo "local: *; };" >> $output_objdir/$libname.ver~
12923 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12924 fi
12925
12926 case $cc_basename in
12927 xlf* | bgf* | bgxlf* | mpixlf*)
12928 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12929 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12930 hardcode_libdir_flag_spec_D=
12931 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12932 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12933 if test "x$supports_anon_versioning" = xyes; then
12934 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12936 echo "local: *; };" >> $output_objdir/$libname.ver~
12937 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12938 fi
12939 ;;
12940 esac
12941 else
12942 ld_shlibs_D=no
12943 fi
12944 ;;
12945
12946 netbsd*)
12947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12948 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12949 wlarc=
12950 else
12951 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12953 fi
12954 ;;
12955
12956 solaris*)
12957 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12958 ld_shlibs_D=no
12959 cat <<_LT_EOF 1>&2
12960
12961*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12962*** create shared libraries on Solaris systems. Therefore, libtool
12963*** is disabling shared libraries support. We urge you to upgrade GNU
12964*** binutils to release 2.9.1 or newer. Another option is to modify
12965*** your PATH or compiler configuration so that the native linker is
12966*** used, and then restart.
12967
12968_LT_EOF
12969 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12970 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12972 else
12973 ld_shlibs_D=no
12974 fi
12975 ;;
12976
12977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12978 case `$LD -v 2>&1` in
12979 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12980 ld_shlibs_D=no
12981 cat <<_LT_EOF 1>&2
12982
12983*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12984*** reliably create shared libraries on SCO systems. Therefore, libtool
12985*** is disabling shared libraries support. We urge you to upgrade GNU
12986*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12987*** your PATH or compiler configuration so that the native linker is
12988*** used, and then restart.
12989
12990_LT_EOF
12991 ;;
12992 *)
12993 # For security reasons, it is highly recommended that you always
12994 # use absolute paths for naming shared libraries, and exclude the
12995 # DT_RUNPATH tag from executables and libraries. But doing so
12996 # requires that you compile everything twice, which is a pain.
12997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12998 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12999 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13001 else
13002 ld_shlibs_D=no
13003 fi
13004 ;;
13005 esac
13006 ;;
13007
13008 sunos4*)
13009 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13010 wlarc=
13011 hardcode_direct_D=yes
13012 hardcode_shlibpath_var_D=no
13013 ;;
13014
13015 *)
13016 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13017 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13019 else
13020 ld_shlibs_D=no
13021 fi
13022 ;;
13023 esac
13024
13025 if test "$ld_shlibs_D" = no; then
13026 runpath_var=
13027 hardcode_libdir_flag_spec_D=
13028 export_dynamic_flag_spec_D=
13029 whole_archive_flag_spec_D=
13030 fi
13031 else
13032 # PORTME fill in a description of your system's linker (not GNU ld)
13033 case $host_os in
13034 aix3*)
13035 allow_undefined_flag_D=unsupported
13036 always_export_symbols_D=yes
13037 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'
13038 # Note: this linker hardcodes the directories in LIBPATH if there
13039 # are no directories specified by -L.
13040 hardcode_minus_L_D=yes
13041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13042 # Neither direct hardcoding nor static linking is supported with a
13043 # broken collect2.
13044 hardcode_direct_D=unsupported
13045 fi
13046 ;;
13047
13048 aix[4-9]*)
13049 if test "$host_cpu" = ia64; then
13050 # On IA64, the linker does run time linking by default, so we don't
13051 # have to do anything special.
13052 aix_use_runtimelinking=no
13053 exp_sym_flag='-Bexport'
13054 no_entry_flag=""
13055 else
13056 # If we're using GNU nm, then we don't want the "-C" option.
13057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13058 # Also, AIX nm treats weak defined symbols like other global
13059 # defined symbols, whereas GNU nm marks them as "W".
13060 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13061 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'
13062 else
13063 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'
13064 fi
13065 aix_use_runtimelinking=no
13066
13067 # Test if we are trying to use run time linking or normal
13068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13069 # need to do runtime linking.
13070 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13071 for ld_flag in $LDFLAGS; do
13072 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13073 aix_use_runtimelinking=yes
13074 break
13075 fi
13076 done
13077 ;;
13078 esac
13079
13080 exp_sym_flag='-bexport'
13081 no_entry_flag='-bnoentry'
13082 fi
13083
13084 # When large executables or shared objects are built, AIX ld can
13085 # have problems creating the table of contents. If linking a library
13086 # or program results in "error TOC overflow" add -mminimal-toc to
13087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13089
13090 archive_cmds_D=''
13091 hardcode_direct_D=yes
13092 hardcode_direct_absolute_D=yes
13093 hardcode_libdir_separator_D=':'
13094 link_all_deplibs_D=yes
13095 file_list_spec_D='${wl}-f,'
13096
13097 if test "$GCC" = yes; then
13098 case $host_os in aix4.[012]|aix4.[012].*)
13099 # We only want to do this on AIX 4.2 and lower, the check
13100 # below for broken collect2 doesn't work under 4.3+
13101 collect2name=`${CC} -print-prog-name=collect2`
13102 if test -f "$collect2name" &&
13103 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13104 then
13105 # We have reworked collect2
13106 :
13107 else
13108 # We have old collect2
13109 hardcode_direct_D=unsupported
13110 # It fails to find uninstalled libraries when the uninstalled
13111 # path is not listed in the libpath. Setting hardcode_minus_L
13112 # to unsupported forces relinking
13113 hardcode_minus_L_D=yes
13114 hardcode_libdir_flag_spec_D='-L$libdir'
13115 hardcode_libdir_separator_D=
13116 fi
13117 ;;
13118 esac
13119 shared_flag='-shared'
13120 if test "$aix_use_runtimelinking" = yes; then
13121 shared_flag="$shared_flag "'${wl}-G'
13122 fi
13123 else
13124 # not using gcc
13125 if test "$host_cpu" = ia64; then
13126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13127 # chokes on -Wl,-G. The following line is correct:
13128 shared_flag='-G'
13129 else
13130 if test "$aix_use_runtimelinking" = yes; then
13131 shared_flag='${wl}-G'
13132 else
13133 shared_flag='${wl}-bM:SRE'
13134 fi
13135 fi
13136 fi
13137
13138 export_dynamic_flag_spec_D='${wl}-bexpall'
13139 # It seems that -bexpall does not export symbols beginning with
13140 # underscore (_), so it is better to generate a list of symbols to export.
13141 always_export_symbols_D=yes
13142 if test "$aix_use_runtimelinking" = yes; then
13143 # Warning - without using the other runtime loading flags (-brtl),
13144 # -berok will link without error, but may produce a broken library.
13145 allow_undefined_flag_D='-berok'
13146 # Determine the default libpath from the value encoded in an
13147 # empty executable.
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150
13151int
13152main ()
13153{
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_link "$LINENO"; then :
13160
13161lt_aix_libpath_sed='
13162 /Import File Strings/,/^$/ {
13163 /^0/ {
13164 s/^0 *\(.*\)$/\1/
13165 p
13166 }
13167 }'
13168aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169# Check for a 64-bit object if we didn't find anything.
13170if test -z "$aix_libpath"; then
13171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172fi
13173fi
13174rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13177
13178 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13179 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"
13180 else
13181 if test "$host_cpu" = ia64; then
13182 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13183 allow_undefined_flag_D="-z nodefs"
13184 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"
13185 else
13186 # Determine the default libpath from the value encoded in an
13187 # empty executable.
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189/* end confdefs.h. */
13190
13191int
13192main ()
13193{
13194
13195 ;
13196 return 0;
13197}
13198_ACEOF
13199if ac_fn_c_try_link "$LINENO"; then :
13200
13201lt_aix_libpath_sed='
13202 /Import File Strings/,/^$/ {
13203 /^0/ {
13204 s/^0 *\(.*\)$/\1/
13205 p
13206 }
13207 }'
13208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13209# Check for a 64-bit object if we didn't find anything.
13210if test -z "$aix_libpath"; then
13211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212fi
13213fi
13214rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13217
13218 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13219 # Warning - without using the other run time loading flags,
13220 # -berok will link without error, but may produce a broken library.
13221 no_undefined_flag_D=' ${wl}-bernotok'
13222 allow_undefined_flag_D=' ${wl}-berok'
13223 if test "$with_gnu_ld" = yes; then
13224 # We only use this code for GNU lds that support --whole-archive.
13225 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13226 else
13227 # Exported symbols can be pulled into shared objects from archives
13228 whole_archive_flag_spec_D='$convenience'
13229 fi
13230 archive_cmds_need_lc_D=yes
13231 # This is similar to how AIX traditionally builds its shared libraries.
13232 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'
13233 fi
13234 fi
13235 ;;
13236
13237 amigaos*)
13238 case $host_cpu in
13239 powerpc)
13240 # see comment about AmigaOS4 .so support
13241 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13242 archive_expsym_cmds_D=''
13243 ;;
13244 m68k)
13245 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)'
13246 hardcode_libdir_flag_spec_D='-L$libdir'
13247 hardcode_minus_L_D=yes
13248 ;;
13249 esac
13250 ;;
13251
13252 bsdi[45]*)
13253 export_dynamic_flag_spec_D=-rdynamic
13254 ;;
13255
13256 cygwin* | mingw* | pw32* | cegcc*)
13257 # When not using gcc, we currently assume that we are using
13258 # Microsoft Visual C++.
13259 # hardcode_libdir_flag_spec is actually meaningless, as there is
13260 # no search path for DLLs.
13261 hardcode_libdir_flag_spec_D=' '
13262 allow_undefined_flag_D=unsupported
13263 # Tell ltmain to make .lib files, not .a files.
13264 libext=lib
13265 # Tell ltmain to make .dll files, not .so files.
13266 shrext_cmds=".dll"
13267 # FIXME: Setting linknames here is a bad hack.
13268 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13269 # The linker will automatically build a .lib file if we build a DLL.
13270 old_archive_from_new_cmds_D='true'
13271 # FIXME: Should let the user specify the lib program.
13272 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13273 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13274 enable_shared_with_static_runtimes_D=yes
13275 ;;
13276
13277 darwin* | rhapsody*)
13278
13279
13280 archive_cmds_need_lc_D=no
13281 hardcode_direct_D=no
13282 hardcode_automatic_D=yes
13283 hardcode_shlibpath_var_D=unsupported
13284 if test "$lt_cv_ld_force_load" = "yes"; then
13285 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\"`'
13286 else
13287 whole_archive_flag_spec_D=''
13288 fi
13289 link_all_deplibs_D=yes
13290 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13291 case $cc_basename in
13292 ifort*) _lt_dar_can_shared=yes ;;
13293 *) _lt_dar_can_shared=$GCC ;;
13294 esac
13295 if test "$_lt_dar_can_shared" = "yes"; then
13296 output_verbose_link_cmd=func_echo_all
13297 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}"
13298 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13299 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}"
13300 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}"
13301
13302 else
13303 ld_shlibs_D=no
13304 fi
13305
13306 ;;
13307
13308 dgux*)
13309 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13310 hardcode_libdir_flag_spec_D='-L$libdir'
13311 hardcode_shlibpath_var_D=no
13312 ;;
13313
13314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13315 # support. Future versions do this automatically, but an explicit c++rt0.o
13316 # does not break anything, and helps significantly (at the cost of a little
13317 # extra space).
13318 freebsd2.2*)
13319 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13320 hardcode_libdir_flag_spec_D='-R$libdir'
13321 hardcode_direct_D=yes
13322 hardcode_shlibpath_var_D=no
13323 ;;
13324
13325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13326 freebsd2.*)
13327 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13328 hardcode_direct_D=yes
13329 hardcode_minus_L_D=yes
13330 hardcode_shlibpath_var_D=no
13331 ;;
13332
13333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13334 freebsd* | dragonfly*)
13335 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13336 hardcode_libdir_flag_spec_D='-R$libdir'
13337 hardcode_direct_D=yes
13338 hardcode_shlibpath_var_D=no
13339 ;;
13340
13341 hpux9*)
13342 if test "$GCC" = yes; then
13343 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'
13344 else
13345 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'
13346 fi
13347 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13348 hardcode_libdir_separator_D=:
13349 hardcode_direct_D=yes
13350
13351 # hardcode_minus_L: Not really in the search PATH,
13352 # but as the default location of the library.
13353 hardcode_minus_L_D=yes
13354 export_dynamic_flag_spec_D='${wl}-E'
13355 ;;
13356
13357 hpux10*)
13358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13359 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13360 else
13361 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13362 fi
13363 if test "$with_gnu_ld" = no; then
13364 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13365 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13366 hardcode_libdir_separator_D=:
13367 hardcode_direct_D=yes
13368 hardcode_direct_absolute_D=yes
13369 export_dynamic_flag_spec_D='${wl}-E'
13370 # hardcode_minus_L: Not really in the search PATH,
13371 # but as the default location of the library.
13372 hardcode_minus_L_D=yes
13373 fi
13374 ;;
13375
13376 hpux11*)
13377 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13378 case $host_cpu in
13379 hppa*64*)
13380 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13381 ;;
13382 ia64*)
13383 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13384 ;;
13385 *)
13386 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 esac
13389 else
13390 case $host_cpu in
13391 hppa*64*)
13392 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 ;;
13394 ia64*)
13395 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13396 ;;
13397 *)
13398 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13399 ;;
13400 esac
13401 fi
13402 if test "$with_gnu_ld" = no; then
13403 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13404 hardcode_libdir_separator_D=:
13405
13406 case $host_cpu in
13407 hppa*64*|ia64*)
13408 hardcode_direct_D=no
13409 hardcode_shlibpath_var_D=no
13410 ;;
13411 *)
13412 hardcode_direct_D=yes
13413 hardcode_direct_absolute_D=yes
13414 export_dynamic_flag_spec_D='${wl}-E'
13415
13416 # hardcode_minus_L: Not really in the search PATH,
13417 # but as the default location of the library.
13418 hardcode_minus_L_D=yes
13419 ;;
13420 esac
13421 fi
13422 ;;
13423
13424 irix5* | irix6* | nonstopux*)
13425 if test "$GCC" = yes; then
13426 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'
13427 # Try to use the -exported_symbol ld option, if it does not
13428 # work, assume that -exports_file does not work either and
13429 # implicitly export all symbols.
13430 save_LDFLAGS="$LDFLAGS"
13431 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433/* end confdefs.h. */
13434int foo(void) {}
13435_ACEOF
13436if ac_fn_c_try_link "$LINENO"; then :
13437 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'
13438
13439fi
13440rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13442 LDFLAGS="$save_LDFLAGS"
13443 else
13444 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'
13445 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'
13446 fi
13447 archive_cmds_need_lc_D='no'
13448 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13449 hardcode_libdir_separator_D=:
13450 inherit_rpath_D=yes
13451 link_all_deplibs_D=yes
13452 ;;
13453
13454 netbsd*)
13455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13456 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13457 else
13458 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13459 fi
13460 hardcode_libdir_flag_spec_D='-R$libdir'
13461 hardcode_direct_D=yes
13462 hardcode_shlibpath_var_D=no
13463 ;;
13464
13465 newsos6)
13466 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_direct_D=yes
13468 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13469 hardcode_libdir_separator_D=:
13470 hardcode_shlibpath_var_D=no
13471 ;;
13472
13473 *nto* | *qnx*)
13474 ;;
13475
13476 openbsd*)
13477 if test -f /usr/libexec/ld.so; then
13478 hardcode_direct_D=yes
13479 hardcode_shlibpath_var_D=no
13480 hardcode_direct_absolute_D=yes
13481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13482 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13484 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13485 export_dynamic_flag_spec_D='${wl}-E'
13486 else
13487 case $host_os in
13488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13489 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13490 hardcode_libdir_flag_spec_D='-R$libdir'
13491 ;;
13492 *)
13493 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13494 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13495 ;;
13496 esac
13497 fi
13498 else
13499 ld_shlibs_D=no
13500 fi
13501 ;;
13502
13503 os2*)
13504 hardcode_libdir_flag_spec_D='-L$libdir'
13505 hardcode_minus_L_D=yes
13506 allow_undefined_flag_D=unsupported
13507 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'
13508 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13509 ;;
13510
13511 osf3*)
13512 if test "$GCC" = yes; then
13513 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13514 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'
13515 else
13516 allow_undefined_flag_D=' -expect_unresolved \*'
13517 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'
13518 fi
13519 archive_cmds_need_lc_D='no'
13520 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13521 hardcode_libdir_separator_D=:
13522 ;;
13523
13524 osf4* | osf5*) # as osf3* with the addition of -msym flag
13525 if test "$GCC" = yes; then
13526 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13527 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'
13528 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13529 else
13530 allow_undefined_flag_D=' -expect_unresolved \*'
13531 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'
13532 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~
13533 $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'
13534
13535 # Both c and cxx compiler support -rpath directly
13536 hardcode_libdir_flag_spec_D='-rpath $libdir'
13537 fi
13538 archive_cmds_need_lc_D='no'
13539 hardcode_libdir_separator_D=:
13540 ;;
13541
13542 solaris*)
13543 no_undefined_flag_D=' -z defs'
13544 if test "$GCC" = yes; then
13545 wlarc='${wl}'
13546 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13549 else
13550 case `$CC -V 2>&1` in
13551 *"Compilers 5.0"*)
13552 wlarc=''
13553 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13554 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13556 ;;
13557 *)
13558 wlarc='${wl}'
13559 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13561 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13562 ;;
13563 esac
13564 fi
13565 hardcode_libdir_flag_spec_D='-R$libdir'
13566 hardcode_shlibpath_var_D=no
13567 case $host_os in
13568 solaris2.[0-5] | solaris2.[0-5].*) ;;
13569 *)
13570 # The compiler driver will combine and reorder linker options,
13571 # but understands `-z linker_flag'. GCC discards it without `$wl',
13572 # but is careful enough not to reorder.
13573 # Supported since Solaris 2.6 (maybe 2.5.1?)
13574 if test "$GCC" = yes; then
13575 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13576 else
13577 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13578 fi
13579 ;;
13580 esac
13581 link_all_deplibs_D=yes
13582 ;;
13583
13584 sunos4*)
13585 if test "x$host_vendor" = xsequent; then
13586 # Use $CC to link under sequent, because it throws in some extra .o
13587 # files that make .init and .fini sections work.
13588 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13589 else
13590 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13591 fi
13592 hardcode_libdir_flag_spec_D='-L$libdir'
13593 hardcode_direct_D=yes
13594 hardcode_minus_L_D=yes
13595 hardcode_shlibpath_var_D=no
13596 ;;
13597
13598 sysv4)
13599 case $host_vendor in
13600 sni)
13601 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602 hardcode_direct_D=yes # is this really true???
13603 ;;
13604 siemens)
13605 ## LD is ld it makes a PLAMLIB
13606 ## CC just makes a GrossModule.
13607 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13608 reload_cmds_D='$CC -r -o $output$reload_objs'
13609 hardcode_direct_D=no
13610 ;;
13611 motorola)
13612 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13613 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13614 ;;
13615 esac
13616 runpath_var='LD_RUN_PATH'
13617 hardcode_shlibpath_var_D=no
13618 ;;
13619
13620 sysv4.3*)
13621 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13622 hardcode_shlibpath_var_D=no
13623 export_dynamic_flag_spec_D='-Bexport'
13624 ;;
13625
13626 sysv4*MP*)
13627 if test -d /usr/nec; then
13628 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_shlibpath_var_D=no
13630 runpath_var=LD_RUN_PATH
13631 hardcode_runpath_var=yes
13632 ld_shlibs_D=yes
13633 fi
13634 ;;
13635
13636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13637 no_undefined_flag_D='${wl}-z,text'
13638 archive_cmds_need_lc_D=no
13639 hardcode_shlibpath_var_D=no
13640 runpath_var='LD_RUN_PATH'
13641
13642 if test "$GCC" = yes; then
13643 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 else
13646 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 fi
13649 ;;
13650
13651 sysv5* | sco3.2v5* | sco5v6*)
13652 # Note: We can NOT use -z defs as we might desire, because we do not
13653 # link with -lc, and that would cause any symbols used from libc to
13654 # always be unresolved, which means just about no library would
13655 # ever link correctly. If we're not using GNU ld we use -z text
13656 # though, which does catch some bad symbols but isn't as heavy-handed
13657 # as -z defs.
13658 no_undefined_flag_D='${wl}-z,text'
13659 allow_undefined_flag_D='${wl}-z,nodefs'
13660 archive_cmds_need_lc_D=no
13661 hardcode_shlibpath_var_D=no
13662 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13663 hardcode_libdir_separator_D=':'
13664 link_all_deplibs_D=yes
13665 export_dynamic_flag_spec_D='${wl}-Bexport'
13666 runpath_var='LD_RUN_PATH'
13667
13668 if test "$GCC" = yes; then
13669 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 else
13672 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 fi
13675 ;;
13676
13677 uts4*)
13678 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_libdir_flag_spec_D='-L$libdir'
13680 hardcode_shlibpath_var_D=no
13681 ;;
13682
13683 *)
13684 ld_shlibs_D=no
13685 ;;
13686 esac
13687
13688 if test x$host_vendor = xsni; then
13689 case $host in
13690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13691 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13692 ;;
13693 esac
13694 fi
13695 fi
13696
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13698$as_echo "$ld_shlibs_D" >&6; }
13699test "$ld_shlibs_D" = no && can_build_shared=no
13700
13701with_gnu_ld_D=$with_gnu_ld
13702
13703
13704
13705
13706
13707
13708#
13709# Do we need to explicitly link libc?
13710#
13711case "x$archive_cmds_need_lc_D" in
13712x|xyes)
13713 # Assume -lc should be added
13714 archive_cmds_need_lc_D=yes
13715
13716 if test "$enable_shared" = yes && test "$GCC" = yes; then
13717 case $archive_cmds_D in
13718 *'~'*)
13719 # FIXME: we may have to deal with multi-command sequences.
13720 ;;
13721 '$CC '*)
13722 # Test whether the compiler implicitly links with -lc since on some
13723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13724 # to ld, don't add -lc before -lgcc.
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13726$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13727if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
b4c522fa
IB
13728 $as_echo_n "(cached) " >&6
13729else
13730 $RM conftest*
13731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13732
13733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13734 (eval $ac_compile) 2>&5
13735 ac_status=$?
13736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13737 test $ac_status = 0; } 2>conftest.err; then
13738 soname=conftest
13739 lib=conftest
13740 libobjs=conftest.$ac_objext
13741 deplibs=
13742 wl=$lt_prog_compiler_wl_D
13743 pic_flag=$lt_prog_compiler_pic_D
13744 compiler_flags=-v
13745 linker_flags=-v
13746 verstring=
13747 output_objdir=.
13748 libname=conftest
13749 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13750 allow_undefined_flag_D=
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13752 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13753 ac_status=$?
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; }
13756 then
13757 lt_cv_archive_cmds_need_lc_D=no
13758 else
13759 lt_cv_archive_cmds_need_lc_D=yes
13760 fi
13761 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13762 else
13763 cat conftest.err 1>&5
13764 fi
13765 $RM conftest*
13766
13767fi
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13769$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13770 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13771 ;;
13772 esac
13773 fi
13774 ;;
13775esac
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13841$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13842hardcode_action_D=
13843if test -n "$hardcode_libdir_flag_spec_D" ||
13844 test -n "$runpath_var_D" ||
13845 test "X$hardcode_automatic_D" = "Xyes" ; then
13846
13847 # We can hardcode non-existent directories.
13848 if test "$hardcode_direct_D" != no &&
13849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13850 # have to relink, otherwise we might link with an installed library
13851 # when we should be linking with a yet-to-be-installed one
13852 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13853 test "$hardcode_minus_L_D" != no; then
13854 # Linking always hardcodes the temporary library directory.
13855 hardcode_action_D=relink
13856 else
13857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13858 hardcode_action_D=immediate
13859 fi
13860else
13861 # We cannot hardcode anything, or else we can only hardcode existing
13862 # directories.
13863 hardcode_action_D=unsupported
13864fi
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13866$as_echo "$hardcode_action_D" >&6; }
13867
13868if test "$hardcode_action_D" = relink ||
13869 test "$inherit_rpath_D" = yes; then
13870 # Fast installation is not supported
13871 enable_fast_install=no
13872elif test "$shlibpath_overrides_runpath" = yes ||
13873 test "$enable_shared" = no; then
13874 # Fast installation is not necessary
13875 enable_fast_install=needless
13876fi
13877
13878
13879
13880
13881
13882
13883
13884fi
13885
13886ac_ext=c
13887ac_cpp='$CPP $CPPFLAGS'
13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892
13893GCC=$lt_save_GCC
13894CC=$lt_save_CC
13895CFLAGS=$lt_save_CFLAGS
b4c522fa
IB
13896
13897 GDCFLAGS=$gdc_save_DFLAGS
13898
b4c522fa
IB
13899
13900# libtool variables for Phobos shared and position-independent compiles.
13901#
13902# Use phobos_compiler_shared_flag to designate the compile-time flags for
13903# creating shared objects. Default: -fversion=Shared.
13904#
13905# Use phobos_compiler_pic_flag to designate the compile-time flags for
13906# creating position-independent objects. This varies with the target
13907# hardware and operating system, but is often: -fPIC.
13908#
13909# The distinction between pic and shared compilation flags is not present in
13910# libtool, and so we make it here. How it is handled is that in shared
13911# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13912# ensure that conditional compilation of shared runtime code is compiled in.
13913# The original PIC flags are then used in the compilation of every object.
13914#
13915# Why are objects destined for libgphobos.a compiled with -fPIC?
13916# Because -fPIC is not harmful to use for objects destined for static
13917# libraries. In addition, using -fPIC will allow the use of static
13918# libgphobos.a in the creation of other D shared libraries.
13919if test "$enable_shared" = yes; then
13920 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13921 phobos_compiler_shared_flag="-fversion=Shared"
13922else
13923 phobos_compiler_pic_flag=
13924 phobos_compiler_shared_flag=
13925fi
13926
13927
13928
13929# Override the libtool's pic_flag and pic_mode.
13930# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13931# NB: this impacts --with-pic and --without-pic.
13932lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13933pic_mode='default'
13934
13935# Determine what GCC version number to use in filesystem paths.
13936
13937 get_gcc_base_ver="cat"
13938
13939# Check whether --with-gcc-major-version-only was given.
13940if test "${with_gcc_major_version_only+set}" = set; then :
13941 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13942 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13943 fi
13944
13945fi
13946
13947
13948
13949
13950# libphobos/libdruntime specific options and feature detection
13951
13952 # These need to be absolute paths, yet at the same time need to
13953 # canonicalize only relative paths, because then amd will not unmount
13954 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13955 libphobos_builddir=`${PWDCMD-pwd}`
13956 case $srcdir in
13957 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13958 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13959 esac
13960
13961
13962
13963
13964 if test ${multilib} = yes; then
13965 multilib_arg="--enable-multilib"
13966 else
13967 multilib_arg=
13968 fi
13969
13970
13971 # Check whether --enable-werror was given.
13972if test "${enable_werror+set}" = set; then :
13973 enableval=$enable_werror;
13974fi
13975
13976 WERROR_FLAG=""
13977 if test "x$enable_werror" = "xyes"; then
13978 WERROR_FLAG="-Werror"
13979 fi
13980
13981
13982 # Check whether --enable-druntime-gc was given.
13983if test "${enable_druntime_gc+set}" = set; then :
13984 enableval=$enable_druntime_gc; enable_druntime_gc=no
13985else
13986 enable_druntime_gc=yes
13987fi
13988
13989
13990 if test "$enable_druntime_gc" = "yes"; then
13991 DRUNTIME_GC_ENABLE_TRUE=
13992 DRUNTIME_GC_ENABLE_FALSE='#'
13993else
13994 DRUNTIME_GC_ENABLE_TRUE='#'
13995 DRUNTIME_GC_ENABLE_FALSE=
13996fi
13997
13998
13999
2493e718
IB
14000 druntime_target_cpu_parsed=""
14001 case "$target_cpu" in
14002 aarch64*)
14003 druntime_target_cpu_parsed="aarch64"
14004 ;;
14005 arm*) druntime_target_cpu_parsed="arm"
14006 ;;
14007 mips*) druntime_target_cpu_parsed="mips"
14008 ;;
14009 powerpc) druntime_target_cpu_parsed="powerpc"
14010 ;;
14011 powerpc64)
14012 druntime_target_cpu_parsed="powerpc64"
14013 ;;
b16f2147 14014 i[34567]86|x86_64)
2493e718
IB
14015 druntime_target_cpu_parsed="x86"
14016 ;;
88e508f9
RD
14017 s390x)
14018 druntime_target_cpu_parsed="s390x"
14019 ;;
14020 s390)
14021 druntime_target_cpu_parsed="s390"
14022 ;;
2493e718
IB
14023 esac
14024 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14025 DRUNTIME_CPU_AARCH64_TRUE=
14026 DRUNTIME_CPU_AARCH64_FALSE='#'
14027else
14028 DRUNTIME_CPU_AARCH64_TRUE='#'
14029 DRUNTIME_CPU_AARCH64_FALSE=
14030fi
14031
14032 if test "$druntime_target_cpu_parsed" = "arm"; then
14033 DRUNTIME_CPU_ARM_TRUE=
14034 DRUNTIME_CPU_ARM_FALSE='#'
14035else
14036 DRUNTIME_CPU_ARM_TRUE='#'
14037 DRUNTIME_CPU_ARM_FALSE=
14038fi
14039
14040 if test "$druntime_target_cpu_parsed" = "mips"; then
14041 DRUNTIME_CPU_MIPS_TRUE=
14042 DRUNTIME_CPU_MIPS_FALSE='#'
14043else
14044 DRUNTIME_CPU_MIPS_TRUE='#'
14045 DRUNTIME_CPU_MIPS_FALSE=
14046fi
14047
14048 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14049 DRUNTIME_CPU_POWERPC_TRUE=
14050 DRUNTIME_CPU_POWERPC_FALSE='#'
14051else
14052 DRUNTIME_CPU_POWERPC_TRUE='#'
14053 DRUNTIME_CPU_POWERPC_FALSE=
14054fi
14055
14056 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14057 DRUNTIME_CPU_POWERPC64_TRUE=
14058 DRUNTIME_CPU_POWERPC64_FALSE='#'
14059else
14060 DRUNTIME_CPU_POWERPC64_TRUE='#'
14061 DRUNTIME_CPU_POWERPC64_FALSE=
14062fi
14063
14064 if test "$druntime_target_cpu_parsed" = "x86"; then
14065 DRUNTIME_CPU_X86_TRUE=
14066 DRUNTIME_CPU_X86_FALSE='#'
14067else
14068 DRUNTIME_CPU_X86_TRUE='#'
14069 DRUNTIME_CPU_X86_FALSE=
14070fi
14071
88e508f9
RD
14072 if test "$druntime_target_cpu_parsed" = "s390x"; then
14073 DRUNTIME_CPU_SYSTEMZ_TRUE=
14074 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14075else
14076 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14077 DRUNTIME_CPU_SYSTEMZ_FALSE=
14078fi
14079
14080 if test "$druntime_target_cpu_parsed" = "s390"; then
14081 DRUNTIME_CPU_S390_TRUE=
14082 DRUNTIME_CPU_S390_FALSE='#'
14083else
14084 DRUNTIME_CPU_S390_TRUE='#'
14085 DRUNTIME_CPU_S390_FALSE=
14086fi
14087
2493e718
IB
14088
14089
b4c522fa
IB
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14091$as_echo_n "checking for target OS... " >&6; }
22e05272 14092if ${druntime_cv_target_os+:} false; then :
b4c522fa
IB
14093 $as_echo_n "(cached) " >&6
14094else
14095 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14096fi
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14098$as_echo "$druntime_cv_target_os" >&6; }
14099 if test -z "$druntime_cv_target_os"; then :
22e05272 14100 as_fn_error $? "can't detect target OS" "$LINENO" 5
b4c522fa
IB
14101fi
14102
14103
14104
b4c522fa
IB
14105
14106 druntime_target_os_parsed=""
14107 case "$druntime_cv_target_os" in
14108 aix*) druntime_target_os_parsed="aix"
14109 ;;
14110 *android*)
14111 druntime_target_os_parsed="android"
14112 ;;
14113 darwin*) druntime_target_os_parsed="darwin"
14114 ;;
14115 dragonfly*)
14116 druntime_target_os_parsed="dragonflybsd"
14117 ;;
14118 freebsd*|k*bsd*-gnu)
14119 druntime_target_os_parsed="freebsd"
14120 ;;
14121 openbsd*)
14122 druntime_target_os_parsed="openbsd"
14123 ;;
14124 netbsd*)
14125 druntime_target_os_parsed="netbsd"
14126 ;;
14127 linux*) druntime_target_os_parsed="linux"
14128 ;;
14129 mingw*) druntime_target_os_parsed="mingw"
14130 ;;
14131 *solaris*) druntime_target_os_parsed="solaris"
14132 esac
14133 if test "$druntime_target_os_parsed" = "aix"; then
14134 DRUNTIME_OS_AIX_TRUE=
14135 DRUNTIME_OS_AIX_FALSE='#'
14136else
14137 DRUNTIME_OS_AIX_TRUE='#'
14138 DRUNTIME_OS_AIX_FALSE=
14139fi
14140
14141 if test "$druntime_target_os_parsed" = "android"; then
14142 DRUNTIME_OS_ANDROID_TRUE=
14143 DRUNTIME_OS_ANDROID_FALSE='#'
14144else
14145 DRUNTIME_OS_ANDROID_TRUE='#'
14146 DRUNTIME_OS_ANDROID_FALSE=
14147fi
14148
14149 if test "$druntime_target_os_parsed" = "darwin"; then
14150 DRUNTIME_OS_DARWIN_TRUE=
14151 DRUNTIME_OS_DARWIN_FALSE='#'
14152else
14153 DRUNTIME_OS_DARWIN_TRUE='#'
14154 DRUNTIME_OS_DARWIN_FALSE=
14155fi
14156
14157 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14158 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14159 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14160else
14161 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14162 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14163fi
14164
14165 if test "$druntime_target_os_parsed" = "freebsd"; then
14166 DRUNTIME_OS_FREEBSD_TRUE=
14167 DRUNTIME_OS_FREEBSD_FALSE='#'
14168else
14169 DRUNTIME_OS_FREEBSD_TRUE='#'
14170 DRUNTIME_OS_FREEBSD_FALSE=
14171fi
14172
14173 if test "$druntime_target_os_parsed" = "netbsd"; then
14174 DRUNTIME_OS_NETBSD_TRUE=
14175 DRUNTIME_OS_NETBSD_FALSE='#'
14176else
14177 DRUNTIME_OS_NETBSD_TRUE='#'
14178 DRUNTIME_OS_NETBSD_FALSE=
14179fi
14180
14181 if test "$druntime_target_os_parsed" = "openbsd"; then
14182 DRUNTIME_OS_OPENBSD_TRUE=
14183 DRUNTIME_OS_OPENBSD_FALSE='#'
14184else
14185 DRUNTIME_OS_OPENBSD_TRUE='#'
14186 DRUNTIME_OS_OPENBSD_FALSE=
14187fi
14188
14189 if test "$druntime_target_os_parsed" = "linux"; then
14190 DRUNTIME_OS_LINUX_TRUE=
14191 DRUNTIME_OS_LINUX_FALSE='#'
14192else
14193 DRUNTIME_OS_LINUX_TRUE='#'
14194 DRUNTIME_OS_LINUX_FALSE=
14195fi
14196
14197 if test "$druntime_target_os_parsed" = "mingw"; then
14198 DRUNTIME_OS_MINGW_TRUE=
14199 DRUNTIME_OS_MINGW_FALSE='#'
14200else
14201 DRUNTIME_OS_MINGW_TRUE='#'
14202 DRUNTIME_OS_MINGW_FALSE=
14203fi
14204
14205 if test "$druntime_target_os_parsed" = "solaris"; then
14206 DRUNTIME_OS_SOLARIS_TRUE=
14207 DRUNTIME_OS_SOLARIS_FALSE='#'
14208else
14209 DRUNTIME_OS_SOLARIS_TRUE='#'
14210 DRUNTIME_OS_SOLARIS_FALSE=
14211fi
14212
14213
72c136c9
IB
14214 druntime_target_posix="no"
14215 case "$druntime_cv_target_os" in
14216 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14217 druntime_target_posix="yes"
14218 ;;
14219 esac
14220 if test "$druntime_target_posix" = "yes"; then
14221 DRUNTIME_OS_POSIX_TRUE=
14222 DRUNTIME_OS_POSIX_FALSE='#'
14223else
14224 DRUNTIME_OS_POSIX_TRUE='#'
14225 DRUNTIME_OS_POSIX_FALSE=
14226fi
14227
14228
b4c522fa
IB
14229
14230
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14232$as_echo_n "checking for thread model used by GDC... " >&6; }
14233 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14235$as_echo "$d_thread_model" >&6; }
14236
14237 # Map from thread model to thread interface.
14238
14239case $d_thread_model in
14240 aix) DCFG_THREAD_MODEL="Posix" ;;
14241 lynx) DCFG_THREAD_MODEL="Posix" ;;
14242 posix) DCFG_THREAD_MODEL="Posix" ;;
14243 single) DCFG_THREAD_MODEL="Single" ;;
14244 win32) DCFG_THREAD_MODEL="Win32" ;;
14245 # TODO: These targets need porting.
14246 dce|mipssde|rtems|tpf|vxworks)
14247 DCFG_THREAD_MODEL="Single" ;;
14248 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14249esac
14250
14251
14252
14253
14254 ac_ext=c
14255ac_cpp='$CPP $CPPFLAGS'
14256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14258ac_compiler_gnu=$ac_cv_c_compiler_gnu
14259
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14261$as_echo_n "checking for ARM unwinder... " >&6; }
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h. */
14264#include <unwind.h>
14265int
14266main ()
14267{
14268
14269 #if __ARM_EABI_UNWINDER__
14270 #error Yes, it is.
14271 #endif
14272
14273 ;
14274 return 0;
14275}
14276_ACEOF
14277if ac_fn_c_try_compile "$LINENO"; then :
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279$as_echo "no" >&6; }
14280 DCFG_ARM_EABI_UNWINDER=false
14281else
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14283$as_echo "yes" >&6; }
14284 DCFG_ARM_EABI_UNWINDER=true
14285fi
14286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287
14288 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14289 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14290 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14291else
14292 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14293 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14294fi
14295
14296 ac_ext=c
14297ac_cpp='$CPP $CPPFLAGS'
14298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14300ac_compiler_gnu=$ac_cv_c_compiler_gnu
14301
14302
14303
14304 ac_ext=c
14305ac_cpp='$CPP $CPPFLAGS'
14306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308ac_compiler_gnu=$ac_cv_c_compiler_gnu
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14311$as_echo_n "checking for minfo section bracketing... " >&6; }
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313/* end confdefs.h. */
14314
14315 void* module_info_ptr __attribute__((section ("minfo")));
14316 extern void* __start_minfo __attribute__((visibility ("hidden")));
14317 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14318
14319 int main()
14320 {
14321 // Never run, just to prevent compiler from optimizing access
14322 return &__start_minfo == &__stop_minfo;
14323 }
14324
14325_ACEOF
14326if ac_fn_c_try_link "$LINENO"; then :
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14328$as_echo "yes" >&6; }
14329 DCFG_MINFO_BRACKETING=true
14330else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332$as_echo "no" >&6; }
14333 DCFG_MINFO_BRACKETING=false
14334fi
14335rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337
0b6e3127
RO
14338 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14339 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14340 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14341else
14342 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14343 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14344fi
14345
b4c522fa
IB
14346 ac_ext=c
14347ac_cpp='$CPP $CPPFLAGS'
14348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350ac_compiler_gnu=$ac_cv_c_compiler_gnu
14351
14352
14353
235d1c46
RO
14354 ac_ext=c
14355ac_cpp='$CPP $CPPFLAGS'
14356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360 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>
14361"
14362if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14363 DCFG_DLPI_TLS_MODID=true
14364else
14365 DCFG_DLPI_TLS_MODID=false
14366fi
14367
14368
14369 ac_ext=c
14370ac_cpp='$CPP $CPPFLAGS'
14371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14373ac_compiler_gnu=$ac_cv_c_compiler_gnu
14374
14375
14376
ba838aa6
RO
14377 case $target in
14378 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14379 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14380 # relocs. Work around by disabling TLS transitions. Not necessary
14381 # on 32-bit x86, but cannot be distinguished reliably in specs.
14382 druntime_ld_prog=`$CC -print-prog-name=ld`
bca0a321
RO
14383 druntime_ld_gld=no
14384 druntime_ld_relax_transtls=no
ba838aa6
RO
14385 if test -n "$druntime_ld_prog" \
14386 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
bca0a321 14387 druntime_ld_gld=yes
ba838aa6 14388 else
bca0a321
RO
14389 echo 'int main (void) { return 0; }' > conftest.c
14390 save_LDFLAGS="$LDFLAGS"
14391 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14392 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14393 druntime_ld_relax_transtls=yes
14394 fi
14395 LDFLAGS="$save_LDFLAGS"
14396 rm -f conftest.c conftest
14397 fi
14398 if test "$druntime_ld_relax_transtls" = "yes"; then
ba838aa6
RO
14399 OS_LINK_SPEC='-z relax=transtls'
14400 fi
14401 ;;
14402 esac
14403
14404
14405
36d7f151
JP
14406 ac_ext=c
14407ac_cpp='$CPP $CPPFLAGS'
14408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14410ac_compiler_gnu=$ac_cv_c_compiler_gnu
14411
14412 DCFG_HAVE_QSORT_R=false
14413 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14414if test "x$ac_cv_func_qsort_r" = xyes; then :
14415 DCFG_HAVE_QSORT_R=true
14416fi
14417
14418
14419 ac_ext=c
14420ac_cpp='$CPP $CPPFLAGS'
14421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423ac_compiler_gnu=$ac_cv_c_compiler_gnu
14424
14425
14426
b4c522fa
IB
14427
14428
14429 gdc_save_DFLAGS=$GDCFLAGS
14430 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14431
14432 ac_ext=d
14433ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14434ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14435ac_compiler_gnu=yes
14436
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14438$as_echo_n "checking for library containing malloc... " >&6; }
22e05272 14439if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14440 $as_echo_n "(cached) " >&6
14441else
14442 ac_func_search_save_LIBS=$LIBS
14443cat > conftest.$ac_ext <<_ACEOF
14444module mod;
14445 extern(C) int malloc();
14446
14447extern(C) int main() {
14448 malloc(); return 0;
14449}
14450_ACEOF
14451for ac_lib in '' c; do
14452 if test -z "$ac_lib"; then
14453 ac_res="none required"
14454 else
14455 ac_res=-l$ac_lib
14456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14457 fi
14458 if ac_fn_d_try_link "$LINENO"; then :
14459 ac_cv_search_malloc=$ac_res
14460fi
14461rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext
22e05272 14463 if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14464 break
14465fi
14466done
22e05272 14467if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14468
14469else
14470 ac_cv_search_malloc=no
14471fi
14472rm conftest.$ac_ext
14473LIBS=$ac_func_search_save_LIBS
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14476$as_echo "$ac_cv_search_malloc" >&6; }
14477ac_res=$ac_cv_search_malloc
14478if test "$ac_res" != no; then :
14479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14480
14481fi
14482
14483
14484 enable_thread_lib=yes
14485 # Check whether --enable-thread-lib was given.
14486if test "${enable_thread_lib+set}" = set; then :
14487 enableval=$enable_thread_lib;
14488fi
14489
14490
14491 if test "x$enable_thread_lib" = "xyes"; then :
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14494$as_echo_n "checking for library containing pthread_create... " >&6; }
22e05272 14495if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14496 $as_echo_n "(cached) " >&6
14497else
14498 ac_func_search_save_LIBS=$LIBS
14499cat > conftest.$ac_ext <<_ACEOF
14500module mod;
14501 extern(C) int pthread_create();
14502
14503extern(C) int main() {
14504 pthread_create(); return 0;
14505}
14506_ACEOF
14507for ac_lib in '' pthread; do
14508 if test -z "$ac_lib"; then
14509 ac_res="none required"
14510 else
14511 ac_res=-l$ac_lib
14512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14513 fi
14514 if ac_fn_d_try_link "$LINENO"; then :
14515 ac_cv_search_pthread_create=$ac_res
14516fi
14517rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext
22e05272 14519 if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14520 break
14521fi
14522done
22e05272 14523if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14524
14525else
14526 ac_cv_search_pthread_create=no
14527fi
14528rm conftest.$ac_ext
14529LIBS=$ac_func_search_save_LIBS
14530fi
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14532$as_echo "$ac_cv_search_pthread_create" >&6; }
14533ac_res=$ac_cv_search_pthread_create
14534if test "$ac_res" != no; then :
14535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14536
14537fi
14538
14539
14540else
14541
14542 if test "x$enable_thread_lib" = "xno"; then :
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14545$as_echo_n "checking for thread library... " >&6; }
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14547$as_echo "disabled" >&6; }
14548
14549else
14550
14551 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14553$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
22e05272 14554if eval \${$as_ac_Lib+:} false; then :
b4c522fa
IB
14555 $as_echo_n "(cached) " >&6
14556else
14557 ac_check_lib_save_LIBS=$LIBS
14558LIBS="-l$enable_thread_lib $LIBS"
14559cat > conftest.$ac_ext <<_ACEOF
14560module mod;
14561 extern(C) int pthread_create();
14562
14563extern(C) int main() {
14564 pthread_create(); return 0;
14565}
14566_ACEOF
14567if ac_fn_d_try_link "$LINENO"; then :
14568 eval "$as_ac_Lib=yes"
14569else
14570 eval "$as_ac_Lib=no"
14571fi
14572rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574LIBS=$ac_check_lib_save_LIBS
14575fi
14576eval ac_res=\$$as_ac_Lib
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14578$as_echo "$ac_res" >&6; }
22e05272 14579if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
b4c522fa
IB
14580 cat >>confdefs.h <<_ACEOF
14581#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14582_ACEOF
14583
14584 LIBS="-l$enable_thread_lib $LIBS"
14585
14586else
14587
22e05272 14588 as_fn_error $? "Thread library not found" "$LINENO" 5
b4c522fa
IB
14589
14590fi
14591
14592
14593fi
14594
14595fi
14596
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14598$as_echo_n "checking for library containing cosf... " >&6; }
22e05272 14599if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14600 $as_echo_n "(cached) " >&6
14601else
14602 ac_func_search_save_LIBS=$LIBS
14603cat > conftest.$ac_ext <<_ACEOF
14604module mod;
14605 extern(C) int cosf();
14606
14607extern(C) int main() {
14608 cosf(); return 0;
14609}
14610_ACEOF
14611for ac_lib in '' m; do
14612 if test -z "$ac_lib"; then
14613 ac_res="none required"
14614 else
14615 ac_res=-l$ac_lib
14616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14617 fi
14618 if ac_fn_d_try_link "$LINENO"; then :
14619 ac_cv_search_cosf=$ac_res
14620fi
14621rm -f core conftest.err conftest.$ac_objext \
14622 conftest$ac_exeext
22e05272 14623 if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14624 break
14625fi
14626done
22e05272 14627if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14628
14629else
14630 ac_cv_search_cosf=no
14631fi
14632rm conftest.$ac_ext
14633LIBS=$ac_func_search_save_LIBS
14634fi
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14636$as_echo "$ac_cv_search_cosf" >&6; }
14637ac_res=$ac_cv_search_cosf
14638if test "$ac_res" != no; then :
14639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14640
14641fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14644$as_echo_n "checking for library containing clock_gettime... " >&6; }
22e05272 14645if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14646 $as_echo_n "(cached) " >&6
14647else
14648 ac_func_search_save_LIBS=$LIBS
14649cat > conftest.$ac_ext <<_ACEOF
14650module mod;
14651 extern(C) int clock_gettime();
14652
14653extern(C) int main() {
14654 clock_gettime(); return 0;
14655}
14656_ACEOF
14657for ac_lib in '' rt; do
14658 if test -z "$ac_lib"; then
14659 ac_res="none required"
14660 else
14661 ac_res=-l$ac_lib
14662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14663 fi
14664 if ac_fn_d_try_link "$LINENO"; then :
14665 ac_cv_search_clock_gettime=$ac_res
14666fi
14667rm -f core conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext
22e05272 14669 if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14670 break
14671fi
14672done
22e05272 14673if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14674
14675else
14676 ac_cv_search_clock_gettime=no
14677fi
14678rm conftest.$ac_ext
14679LIBS=$ac_func_search_save_LIBS
14680fi
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14682$as_echo "$ac_cv_search_clock_gettime" >&6; }
14683ac_res=$ac_cv_search_clock_gettime
14684if test "$ac_res" != no; then :
14685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14686
14687fi
14688
14689
14690 # This checks to see if the host supports the compiler-generated builtins
14691 # for atomic operations for various integral sizes. Note, this is intended
14692 # to be an all-or-nothing switch, so all the atomic operations that are
14693 # used should be checked.
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14695$as_echo_n "checking for atomic builtins for byte... " >&6; }
22e05272 14696 if ${druntime_cv_atomic_byte+:} false; then :
b4c522fa
IB
14697 $as_echo_n "(cached) " >&6
14698else
14699
14700 cat > conftest.$ac_ext <<_ACEOF
14701module mod;
14702import gcc.builtins;
14703
14704extern(C) int main() {
14705
14706 shared(byte) c1;
14707 byte c2, c3;
14708 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14709 __atomic_load_1(&c1, 5);
14710 __atomic_store_1(&c1, c2, 5);
14711 return 0;
14712
14713}
14714_ACEOF
14715if ac_fn_d_try_link "$LINENO"; then :
14716 druntime_cv_atomic_byte=yes
14717else
14718 druntime_cv_atomic_byte=no
14719fi
14720rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14722
14723fi
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14726$as_echo "$druntime_cv_atomic_byte" >&6; }
14727
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14729$as_echo_n "checking for atomic builtins for short... " >&6; }
22e05272 14730 if ${druntime_cv_atomic_short+:} false; then :
b4c522fa
IB
14731 $as_echo_n "(cached) " >&6
14732else
14733
14734 cat > conftest.$ac_ext <<_ACEOF
14735module mod;
14736import gcc.builtins;
14737
14738extern(C) int main() {
14739
14740 shared(short) c1;
14741 short c2, c3;
14742 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14743 __atomic_load_2(&c1, 5);
14744 __atomic_store_2(&c1, c2, 5);
14745 return 0;
14746
14747}
14748_ACEOF
14749if ac_fn_d_try_link "$LINENO"; then :
14750 druntime_cv_atomic_short=yes
14751else
14752 druntime_cv_atomic_short=no
14753fi
14754rm -f core conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext conftest.$ac_ext
14756
14757fi
14758
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14760$as_echo "$druntime_cv_atomic_short" >&6; }
14761
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14763$as_echo_n "checking for atomic builtins for int... " >&6; }
22e05272 14764 if ${druntime_cv_atomic_int+:} false; then :
b4c522fa
IB
14765 $as_echo_n "(cached) " >&6
14766else
14767
14768 cat > conftest.$ac_ext <<_ACEOF
14769module mod;
14770import gcc.builtins;
14771
14772extern(C) int main() {
14773
14774 shared(int) c1;
14775 int c2, c3;
14776 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14777 __atomic_load_4(&c1, 5);
14778 __atomic_store_4(&c1, c2, 5);
14779 return 0;
14780
14781}
14782_ACEOF
14783if ac_fn_d_try_link "$LINENO"; then :
14784 druntime_cv_atomic_int=yes
14785else
14786 druntime_cv_atomic_int=no
14787fi
14788rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790
14791fi
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14794$as_echo "$druntime_cv_atomic_int" >&6; }
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14797$as_echo_n "checking for atomic builtins for long... " >&6; }
22e05272 14798 if ${druntime_cv_atomic_long+:} false; then :
b4c522fa
IB
14799 $as_echo_n "(cached) " >&6
14800else
14801
14802 cat > conftest.$ac_ext <<_ACEOF
14803module mod;
14804import gcc.builtins;
14805
14806extern(C) int main() {
14807
14808 shared(long) c1;
14809 long c2, c3;
14810 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14811 __atomic_load_8(&c1, 5);
14812 __atomic_store_8(&c1, c2, 5);
14813 return 0;
14814
14815}
14816_ACEOF
14817if ac_fn_d_try_link "$LINENO"; then :
14818 druntime_cv_atomic_long=yes
14819else
14820 druntime_cv_atomic_long=no
14821fi
14822rm -f core conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14824
14825fi
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14828$as_echo "$druntime_cv_atomic_long" >&6; }
14829
14830 # Have atomic builtin support if all but the long test above passes.
14831 DCFG_HAVE_ATOMIC_BUILTINS=false
14832 if test "$druntime_cv_atomic_byte" = yes \
14833 && test "$druntime_cv_atomic_short" = yes \
14834 && test "$druntime_cv_atomic_int" = yes; then \
14835 DCFG_HAVE_ATOMIC_BUILTINS=true
14836 fi
14837
14838 # Have 64-bit atomic support if the long test above passes.
14839 DCFG_HAVE_64BIT_ATOMICS=false
14840 if test "$druntime_cv_atomic_long" = yes; then
14841 DCFG_HAVE_64BIT_ATOMICS=true
14842 fi
14843
14844
14845
14846
14847 ac_ext=c
14848ac_cpp='$CPP $CPPFLAGS'
14849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852
14853
14854 GDCFLAGS=$gdc_save_DFLAGS
14855
14856
14857
14858
14859# Check whether --with-libatomic was given.
14860if test "${with_libatomic+set}" = set; then :
14861 withval=$with_libatomic;
14862fi
14863
14864
14865 DCFG_HAVE_LIBATOMIC=false
14866 LIBATOMIC=
14867 if test "x$with_libatomic" != "xno"; then :
14868
14869 DCFG_HAVE_LIBATOMIC=true
14870 LIBATOMIC=../../libatomic/libatomic_convenience.la
14871
14872else
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14875$as_echo_n "checking for libatomic... " >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14877$as_echo "disabled" >&6; }
14878
14879fi
14880
14881
14882
14883
14884
14885 ac_ext=c
14886ac_cpp='$CPP $CPPFLAGS'
14887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889ac_compiler_gnu=$ac_cv_c_compiler_gnu
14890
14891 BACKTRACE_SUPPORTED=false
14892 BACKTRACE_USES_MALLOC=false
14893 BACKTRACE_SUPPORTS_THREADS=false
14894 LIBBACKTRACE=""
14895
14896
14897# Check whether --with-libbacktrace was given.
14898if test "${with_libbacktrace+set}" = set; then :
14899 withval=$with_libbacktrace;
14900fi
14901
14902
14903 if test "x$with_libbacktrace" != "xno"; then :
14904
14905 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14906
14907 gdc_save_CPPFLAGS=$CPPFLAGS
5d71d6f2 14908 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
b4c522fa
IB
14909
14910 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
22e05272 14911if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
b4c522fa
IB
14912 have_libbacktrace_h=true
14913else
14914 have_libbacktrace_h=false
14915fi
14916
14917
14918
14919 if $have_libbacktrace_h; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14921$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923/* end confdefs.h. */
14924
14925 #include <backtrace-supported.h>
14926 #if BACKTRACE_SUPPORTED
14927 FOUND_LIBBACKTRACE_RESULT_GDC
14928 #endif
14929
14930_ACEOF
14931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14932 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14933 BACKTRACE_SUPPORTED=true
14934else
14935 BACKTRACE_SUPPORTED=false
14936fi
14937rm -f conftest*
14938
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14940$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14943$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h. */
14946
14947 #include <backtrace-supported.h>
14948 #if BACKTRACE_USES_MALLOC
14949 FOUND_LIBBACKTRACE_RESULT_GDC
14950 #endif
14951
14952_ACEOF
14953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14955 BACKTRACE_USES_MALLOC=true
14956else
14957 BACKTRACE_USES_MALLOC=false
14958fi
14959rm -f conftest*
14960
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14962$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14965$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967/* end confdefs.h. */
14968
14969 #include <backtrace-supported.h>
14970 #if BACKTRACE_SUPPORTS_THREADS
14971 FOUND_LIBBACKTRACE_RESULT_GDC
14972 #endif
14973
14974_ACEOF
14975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14976 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14977 BACKTRACE_SUPPORTS_THREADS=true
14978else
14979 BACKTRACE_SUPPORTS_THREADS=false
14980fi
14981rm -f conftest*
14982
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14984$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14985 fi
14986 CPPFLAGS=$gdc_save_CPPFLAGS
14987
14988else
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14991$as_echo_n "checking for libbacktrace... " >&6; }
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14993$as_echo "disabled" >&6; }
14994
14995fi
14996
14997
14998
14999
15000
15001 ac_ext=c
15002ac_cpp='$CPP $CPPFLAGS'
15003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15005ac_compiler_gnu=$ac_cv_c_compiler_gnu
15006
15007
15008
15009 # Libtool has already checked this, so re-use the inferred dlopen lib.
15010 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15011
15012 LIBS="$LIBS $lt_cv_dlopen_libs"
15013
15014fi
15015
15016
1d679134
RO
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15018$as_echo_n "checking for socket libraries... " >&6; }
15019if ${druntime_cv_lib_sockets+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021else
15022 druntime_cv_lib_sockets=
15023 druntime_check_both=no
15024 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15025if test "x$ac_cv_func_connect" = xyes; then :
15026 druntime_check_socket=no
15027else
15028 druntime_check_socket=yes
15029fi
15030
15031 if test "$druntime_check_socket" = "yes"; then
15032 unset ac_cv_func_connect
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15034$as_echo_n "checking for main in -lsocket... " >&6; }
15035if ${ac_cv_lib_socket_main+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037else
15038 ac_check_lib_save_LIBS=$LIBS
15039LIBS="-lsocket $LIBS"
15040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041/* end confdefs.h. */
15042
15043
15044int
15045main ()
15046{
15047return main ();
15048 ;
15049 return 0;
15050}
15051_ACEOF
15052if ac_fn_c_try_link "$LINENO"; then :
15053 ac_cv_lib_socket_main=yes
15054else
15055 ac_cv_lib_socket_main=no
15056fi
15057rm -f core conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15059LIBS=$ac_check_lib_save_LIBS
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15062$as_echo "$ac_cv_lib_socket_main" >&6; }
15063if test "x$ac_cv_lib_socket_main" = xyes; then :
15064 druntime_cv_lib_sockets="-lsocket"
15065else
15066 druntime_check_both=yes
15067fi
15068
15069 fi
15070 if test "$druntime_check_both" = "yes"; then
15071 druntime_old_libs=$LIBS
15072 LIBS="$LIBS -lsocket -lnsl"
15073 unset ac_cv_func_accept
15074 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15075if test "x$ac_cv_func_accept" = xyes; then :
15076 druntime_check_nsl=no
15077 druntime_cv_lib_sockets="-lsocket -lnsl"
15078fi
15079
15080 unset ac_cv_func_accept
15081 LIBS=$druntime_old_libs
15082 fi
15083 unset ac_cv_func_gethostbyname
15084 druntime_old_libs="$LIBS"
15085 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15086if test "x$ac_cv_func_gethostbyname" = xyes; then :
15087
15088else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15090$as_echo_n "checking for main in -lnsl... " >&6; }
15091if ${ac_cv_lib_nsl_main+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093else
15094 ac_check_lib_save_LIBS=$LIBS
15095LIBS="-lnsl $LIBS"
15096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h. */
15098
15099
15100int
15101main ()
15102{
15103return main ();
15104 ;
15105 return 0;
15106}
15107_ACEOF
15108if ac_fn_c_try_link "$LINENO"; then :
15109 ac_cv_lib_nsl_main=yes
15110else
15111 ac_cv_lib_nsl_main=no
15112fi
15113rm -f core conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115LIBS=$ac_check_lib_save_LIBS
15116fi
15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15118$as_echo "$ac_cv_lib_nsl_main" >&6; }
15119if test "x$ac_cv_lib_nsl_main" = xyes; then :
15120 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15121fi
15122
15123fi
15124
15125
15126fi
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15128$as_echo "$druntime_cv_lib_sockets" >&6; }
15129 LIBS="$LIBS $druntime_cv_lib_sockets"
15130
15131
bb50312e
IB
15132 ac_ext=c
15133ac_cpp='$CPP $CPPFLAGS'
15134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137
15138 LIBZ=""
15139
b4c522fa
IB
15140
15141# Check whether --with-target-system-zlib was given.
15142if test "${with_target_system_zlib+set}" = set; then :
15143 withval=$with_target_system_zlib;
bb50312e
IB
15144else
15145 with_target_system_zlib=no
b4c522fa
IB
15146fi
15147
15148
bb50312e
IB
15149 case "$with_target_system_zlib" in
15150 yes|no|auto) ;;
15151 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15152 esac
b4c522fa 15153
bb50312e
IB
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15155$as_echo_n "checking for system zlib... " >&6; }
15156 save_LIBS=$LIBS
15157 LIBS="$LIBS -lz"
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4c522fa 15159/* end confdefs.h. */
bb50312e 15160#include <zlib.h>
b4c522fa
IB
15161int
15162main ()
15163{
bb50312e 15164gzopen("none", "rb")
b4c522fa
IB
15165 ;
15166 return 0;
15167}
15168_ACEOF
15169if ac_fn_c_try_link "$LINENO"; then :
b4c522fa 15170
bb50312e
IB
15171 if test "$cross_compiling" = yes; then :
15172 system_zlib_found=no
b4c522fa
IB
15173
15174else
bb50312e
IB
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h. */
b4c522fa 15177
bb50312e
IB
15178 #include <zlib.h>
15179 int main() {
15180 gzFile file = gzopen("none", "rb");
15181 return 0;
15182 }
b4c522fa 15183
bb50312e
IB
15184_ACEOF
15185if ac_fn_c_try_run "$LINENO"; then :
15186 system_zlib_found=yes
15187else
15188 system_zlib_found=no
15189fi
15190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15191 conftest.$ac_objext conftest.beam conftest.$ac_ext
b4c522fa
IB
15192fi
15193
15194
15195else
bb50312e
IB
15196 system_zlib_found=no
15197fi
15198rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$save_LIBS
15201
15202 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15204$as_echo "found" >&6; }
15205 LIBS="$LIBS -lz"
15206 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15207 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15208 else
b4c522fa
IB
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15210$as_echo "just compiled" >&6; }
bb50312e
IB
15211 LIBZ=../../zlib/libz_convenience.la
15212 fi
b4c522fa 15213
b4c522fa 15214
bb50312e
IB
15215 ac_ext=c
15216ac_cpp='$CPP $CPPFLAGS'
15217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15219ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4c522fa
IB
15220
15221
15222
15223
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15226$as_echo_n "checking D GCC version... " >&6; }
15227 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15229$as_echo "$gcc_version" >&6; }
15230
15231
15232
15233# Check whether --with-cross-host was given.
15234if test "${with_cross_host+set}" = set; then :
15235 withval=$with_cross_host;
15236fi
15237
15238
ac67752d
IB
15239 libphobos_toolexecdir=no
15240 libphobos_toolexeclibdir=no
b4c522fa 15241
ac67752d
IB
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15243$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15244 # Check whether --enable-version-specific-runtime-libs was given.
15245if test "${enable_version_specific_runtime_libs+set}" = set; then :
15246 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15247 yes) version_specific_libs=yes ;;
15248 no) version_specific_libs=no ;;
15249 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15250 esac
15251else
b4c522fa 15252 version_specific_libs=no
ac67752d
IB
15253fi
15254
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15256$as_echo "$version_specific_libs" >&6; }
b4c522fa 15257
e8e66971
MR
15258
15259# Check whether --with-toolexeclibdir was given.
15260if test "${with_toolexeclibdir+set}" = set; then :
15261 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15262 /)
15263 ;;
15264 */)
15265 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15266 ;;
15267esac
15268else
15269 with_toolexeclibdir=no
15270fi
15271
15272
15273
b4c522fa
IB
15274 # Version-specific runtime libs processing.
15275 if test $version_specific_libs = yes; then
ac67752d
IB
15276 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15277 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
b4c522fa 15278 else
ac67752d
IB
15279 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15280 # Install a library built with a cross compiler in tooldir, not libdir.
15281 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15282 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
e8e66971
MR
15283 case ${with_toolexeclibdir} in
15284 no)
15285 libphobos_toolexeclibdir='${toolexecdir}/lib'
15286 ;;
15287 *)
15288 libphobos_toolexeclibdir=${with_toolexeclibdir}
15289 ;;
15290 esac
ac67752d
IB
15291 else
15292 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15293 libphobos_toolexeclibdir='${libdir}'
15294 fi
15295 multi_os_directory=`$GDC -print-multi-os-directory`
15296 case $multi_os_directory in
15297 .) ;; # Avoid trailing /.
15298 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15299 esac
b4c522fa
IB
15300 fi
15301
15302
15303
15304 # Default case for install directory for D sources files.
15305 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15306
15307
15308
bca0a321
RO
15309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15310$as_echo_n "checking for --enable-libphobos... " >&6; }
15311# Check whether --enable-libphobos was given.
15312if test "${enable_libphobos+set}" = set; then :
15313 enableval=$enable_libphobos;
15314fi
15315
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15317$as_echo "$enable_libphobos" >&6; }
15318
15319# See if supported.
15320unset LIBPHOBOS_SUPPORTED
15321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15322$as_echo_n "checking for host support for libphobos... " >&6; }
15323. ${srcdir}/configure.tgt
15324case ${host} in
15325 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15326 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15327 # relatively low linelength limit.
15328 as_prog=`$CC -print-prog-name=as`
15329 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15330 druntime_cv_use_gas=yes;
15331 else
15332 druntime_cv_use_gas=no;
15333 fi
15334 rm -f a.out
15335 if test x$druntime_cv_use_gas = xno; then
15336 LIBPHOBOS_SUPPORTED=no
15337 fi
15338 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15339 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15340 LIBPHOBOS_SUPPORTED=no
15341 fi
15342 ;;
15343esac
15344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15345$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15346
15347# Decide if it's usable.
15348case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15349*:no) use_libphobos=no ;;
15350*:yes) use_libphobos=yes ;;
15351yes:*) use_libphobos=yes ;;
15352*:*) use_libphobos=no ;;
15353esac
15354 if test x$use_libphobos = xyes; then
15355 ENABLE_LIBPHOBOS_TRUE=
15356 ENABLE_LIBPHOBOS_FALSE='#'
15357else
15358 ENABLE_LIBPHOBOS_TRUE='#'
15359 ENABLE_LIBPHOBOS_FALSE=
15360fi
15361
15362
0b6e3127
RO
15363# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15364if test "$DCFG_MINFO_BRACKETING" = "false"; then
15365 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15366else
15367 DRTSTUFF_SPEC=/dev/null
15368fi
15369
15370
b4c522fa
IB
15371# Add dependencies for libgphobos.spec file
15372SPEC_PHOBOS_DEPS="$LIBS"
15373
15374
15375# Libdruntime / phobos soname version
bc093503 15376libtool_VERSION=1:0:0
b4c522fa
IB
15377
15378
15379# Set default flags (after DRUNTIME_WERROR!)
15380if test -z "$GDCFLAGS"; then
38c3017f 15381 GDCFLAGS="-g -frelease -O2"
b4c522fa
IB
15382fi
15383
15384
15385if test -z "$GDCFLAGSX"; then
38c3017f 15386 GDCFLAGSX="-g -fno-release -funittest"
b4c522fa
IB
15387fi
15388
15389
38c3017f
IB
15390WARN_DFLAGS="-Wall $WERROR_FLAG"
15391
15392
b4c522fa
IB
15393# Sanity check for the cross-compilation case:
15394ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22e05272 15395if test "x$ac_cv_header_stdio_h" = xyes; then :
b4c522fa
IB
15396 :
15397else
22e05272 15398 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
b4c522fa
IB
15399fi
15400
15401
15402
ac67752d 15403ac_config_files="$ac_config_files Makefile"
b4c522fa
IB
15404
15405
15406ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15407
15408ac_config_files="$ac_config_files src/libgphobos.spec"
15409
15410ac_config_files="$ac_config_files testsuite/testsuite_flags"
15411
15412
ac67752d
IB
15413# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15414# that multilib installs will end up installed in the correct place.
15415# The testsuite needs it for multilib-aware ABI baseline files.
15416# To work around this not being passed down from config-ml.in ->
15417# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15418# append it here. Only modify Makefiles that have just been created.
15419#
15420# Also, get rid of this simulated-VPATH thing that automake does.
15421ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
b4c522fa
IB
15422
15423
15424cat >confcache <<\_ACEOF
15425# This file is a shell script that caches the results of configure
15426# tests run on this system so they can be shared between configure
15427# scripts and configure runs, see configure's option --config-cache.
15428# It is not useful on other systems. If it contains results you don't
15429# want to keep, you may remove or edit it.
15430#
15431# config.status only pays attention to the cache file if you give it
15432# the --recheck option to rerun configure.
15433#
15434# `ac_cv_env_foo' variables (set or unset) will be overridden when
15435# loading this file, other *unset* `ac_cv_foo' will be assigned the
15436# following values.
15437
15438_ACEOF
15439
15440# The following way of writing the cache mishandles newlines in values,
15441# but we know of no workaround that is simple, portable, and efficient.
15442# So, we kill variables containing newlines.
15443# Ultrix sh set writes to stderr and can't be redirected directly,
15444# and sets the high bit in the cache file unless we assign to the vars.
15445(
15446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15447 eval ac_val=\$$ac_var
15448 case $ac_val in #(
15449 *${as_nl}*)
15450 case $ac_var in #(
15451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15452$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15453 esac
15454 case $ac_var in #(
15455 _ | IFS | as_nl) ;; #(
15456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15457 *) { eval $ac_var=; unset $ac_var;} ;;
15458 esac ;;
15459 esac
15460 done
15461
15462 (set) 2>&1 |
15463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15464 *${as_nl}ac_space=\ *)
15465 # `set' does not quote correctly, so add quotes: double-quote
15466 # substitution turns \\\\ into \\, and sed turns \\ into \.
15467 sed -n \
15468 "s/'/'\\\\''/g;
15469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15470 ;; #(
15471 *)
15472 # `set' quotes correctly as required by POSIX, so do not add quotes.
15473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15474 ;;
15475 esac |
15476 sort
15477) |
15478 sed '
15479 /^ac_cv_env_/b end
15480 t clear
15481 :clear
15482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15483 t end
15484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15485 :end' >>confcache
15486if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15487 if test -w "$cache_file"; then
22e05272 15488 if test "x$cache_file" != "x/dev/null"; then
b4c522fa
IB
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15490$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15491 if test ! -f "$cache_file" || test -h "$cache_file"; then
15492 cat confcache >"$cache_file"
15493 else
15494 case $cache_file in #(
15495 */* | ?:*)
15496 mv -f confcache "$cache_file"$$ &&
15497 mv -f "$cache_file"$$ "$cache_file" ;; #(
15498 *)
15499 mv -f confcache "$cache_file" ;;
15500 esac
15501 fi
15502 fi
b4c522fa
IB
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15505$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15506 fi
15507fi
15508rm -f confcache
15509
15510test "x$prefix" = xNONE && prefix=$ac_default_prefix
15511# Let make expand exec_prefix.
15512test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15513
15514DEFS=-DHAVE_CONFIG_H
15515
15516ac_libobjs=
15517ac_ltlibobjs=
22e05272 15518U=
b4c522fa
IB
15519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15520 # 1. Remove the extension, and $U if already installed.
15521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15522 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15524 # will be set to the directory where LIBOBJS objects are built.
15525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15527done
15528LIBOBJS=$ac_libobjs
15529
15530LTLIBOBJS=$ac_ltlibobjs
15531
15532
22e05272
JM
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15534$as_echo_n "checking that generated files are newer than configure... " >&6; }
15535 if test -n "$am_sleep_pid"; then
15536 # Hide warnings about reused PIDs.
15537 wait $am_sleep_pid 2>/dev/null
15538 fi
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15540$as_echo "done" >&6; }
b4c522fa
IB
15541 if test -n "$EXEEXT"; then
15542 am__EXEEXT_TRUE=
15543 am__EXEEXT_FALSE='#'
15544else
15545 am__EXEEXT_TRUE='#'
15546 am__EXEEXT_FALSE=
15547fi
15548
15549if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15550 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b4c522fa
IB
15551Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552fi
b4c522fa 15553if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
22e05272 15554 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
b4c522fa
IB
15555Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556fi
2493e718
IB
15557if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15558 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15559Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560fi
15561if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15562 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15563Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564fi
15565if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15566 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15567Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568fi
15569if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15570 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15571Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572fi
15573if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15574 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15575Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576fi
15577if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15578 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15579Usually this means the macro was only invoked conditionally." "$LINENO" 5
15580fi
88e508f9
RD
15581if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15582 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15583Usually this means the macro was only invoked conditionally." "$LINENO" 5
15584fi
15585if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15586 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15587Usually this means the macro was only invoked conditionally." "$LINENO" 5
15588fi
b4c522fa 15589if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
22e05272 15590 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
b4c522fa
IB
15591Usually this means the macro was only invoked conditionally." "$LINENO" 5
15592fi
15593if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
22e05272 15594 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
b4c522fa
IB
15595Usually this means the macro was only invoked conditionally." "$LINENO" 5
15596fi
15597if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
22e05272 15598 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
b4c522fa
IB
15599Usually this means the macro was only invoked conditionally." "$LINENO" 5
15600fi
15601if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
22e05272 15602 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
b4c522fa
IB
15603Usually this means the macro was only invoked conditionally." "$LINENO" 5
15604fi
15605if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
22e05272 15606 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
b4c522fa
IB
15607Usually this means the macro was only invoked conditionally." "$LINENO" 5
15608fi
15609if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
22e05272 15610 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
b4c522fa
IB
15611Usually this means the macro was only invoked conditionally." "$LINENO" 5
15612fi
15613if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
22e05272 15614 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
b4c522fa
IB
15615Usually this means the macro was only invoked conditionally." "$LINENO" 5
15616fi
15617if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
22e05272 15618 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
b4c522fa
IB
15619Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620fi
15621if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
22e05272 15622 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
b4c522fa
IB
15623Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624fi
15625if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
22e05272 15626 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
b4c522fa
IB
15627Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628fi
72c136c9
IB
15629if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15630 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15631Usually this means the macro was only invoked conditionally." "$LINENO" 5
15632fi
b4c522fa 15633if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
22e05272 15634 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
b4c522fa
IB
15635Usually this means the macro was only invoked conditionally." "$LINENO" 5
15636fi
0b6e3127
RO
15637if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15638 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15639Usually this means the macro was only invoked conditionally." "$LINENO" 5
15640fi
bca0a321
RO
15641if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15642 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15643Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644fi
b4c522fa 15645
22e05272 15646: "${CONFIG_STATUS=./config.status}"
b4c522fa
IB
15647ac_write_fail=0
15648ac_clean_files_save=$ac_clean_files
15649ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15651$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15652as_write_fail=0
15653cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15654#! $SHELL
15655# Generated by $as_me.
15656# Run this file to recreate the current configuration.
15657# Compiler output produced by configure, useful for debugging
15658# configure, is in config.log if it exists.
15659
15660debug=false
15661ac_cs_recheck=false
15662ac_cs_silent=false
15663
15664SHELL=\${CONFIG_SHELL-$SHELL}
15665export SHELL
15666_ASEOF
15667cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15668## -------------------- ##
15669## M4sh Initialization. ##
15670## -------------------- ##
15671
15672# Be more Bourne compatible
15673DUALCASE=1; export DUALCASE # for MKS sh
15674if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15675 emulate sh
15676 NULLCMD=:
15677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15678 # is contrary to our usage. Disable this feature.
15679 alias -g '${1+"$@"}'='"$@"'
15680 setopt NO_GLOB_SUBST
15681else
15682 case `(set -o) 2>/dev/null` in #(
15683 *posix*) :
15684 set -o posix ;; #(
15685 *) :
15686 ;;
15687esac
15688fi
15689
15690
15691as_nl='
15692'
15693export as_nl
15694# Printing a long string crashes Solaris 7 /usr/bin/printf.
15695as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15696as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15698# Prefer a ksh shell builtin over an external printf program on Solaris,
15699# but without wasting forks for bash or zsh.
15700if test -z "$BASH_VERSION$ZSH_VERSION" \
15701 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15702 as_echo='print -r --'
15703 as_echo_n='print -rn --'
15704elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15705 as_echo='printf %s\n'
15706 as_echo_n='printf %s'
15707else
15708 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15709 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15710 as_echo_n='/usr/ucb/echo -n'
15711 else
15712 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15713 as_echo_n_body='eval
15714 arg=$1;
15715 case $arg in #(
15716 *"$as_nl"*)
15717 expr "X$arg" : "X\\(.*\\)$as_nl";
15718 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15719 esac;
15720 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15721 '
15722 export as_echo_n_body
15723 as_echo_n='sh -c $as_echo_n_body as_echo'
15724 fi
15725 export as_echo_body
15726 as_echo='sh -c $as_echo_body as_echo'
15727fi
15728
15729# The user is always right.
15730if test "${PATH_SEPARATOR+set}" != set; then
15731 PATH_SEPARATOR=:
15732 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15733 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15734 PATH_SEPARATOR=';'
15735 }
15736fi
15737
15738
15739# IFS
15740# We need space, tab and new line, in precisely that order. Quoting is
15741# there to prevent editors from complaining about space-tab.
15742# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15743# splitting by setting IFS to empty value.)
15744IFS=" "" $as_nl"
15745
15746# Find who we are. Look in the path if we contain no directory separator.
22e05272 15747as_myself=
b4c522fa
IB
15748case $0 in #((
15749 *[\\/]* ) as_myself=$0 ;;
15750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15751for as_dir in $PATH
15752do
15753 IFS=$as_save_IFS
15754 test -z "$as_dir" && as_dir=.
15755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15756 done
15757IFS=$as_save_IFS
15758
15759 ;;
15760esac
15761# We did not find ourselves, most probably we were run as `sh COMMAND'
15762# in which case we are not to be found in the path.
15763if test "x$as_myself" = x; then
15764 as_myself=$0
15765fi
15766if test ! -f "$as_myself"; then
15767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15768 exit 1
15769fi
15770
15771# Unset variables that we do not need and which cause bugs (e.g. in
15772# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15773# suppresses any "Segmentation fault" message there. '((' could
15774# trigger a bug in pdksh 5.2.14.
15775for as_var in BASH_ENV ENV MAIL MAILPATH
15776do eval test x\${$as_var+set} = xset \
15777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15778done
15779PS1='$ '
15780PS2='> '
15781PS4='+ '
15782
15783# NLS nuisances.
15784LC_ALL=C
15785export LC_ALL
15786LANGUAGE=C
15787export LANGUAGE
15788
15789# CDPATH.
15790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15791
15792
22e05272
JM
15793# as_fn_error STATUS ERROR [LINENO LOG_FD]
15794# ----------------------------------------
b4c522fa
IB
15795# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15796# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15797# script with STATUS, using 1 if that was 0.
b4c522fa
IB
15798as_fn_error ()
15799{
22e05272
JM
15800 as_status=$1; test $as_status -eq 0 && as_status=1
15801 if test "$4"; then
15802 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 15804 fi
22e05272 15805 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
15806 as_fn_exit $as_status
15807} # as_fn_error
15808
15809
15810# as_fn_set_status STATUS
15811# -----------------------
15812# Set $? to STATUS, without forking.
15813as_fn_set_status ()
15814{
15815 return $1
15816} # as_fn_set_status
15817
15818# as_fn_exit STATUS
15819# -----------------
15820# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15821as_fn_exit ()
15822{
15823 set +e
15824 as_fn_set_status $1
15825 exit $1
15826} # as_fn_exit
15827
15828# as_fn_unset VAR
15829# ---------------
15830# Portably unset VAR.
15831as_fn_unset ()
15832{
15833 { eval $1=; unset $1;}
15834}
15835as_unset=as_fn_unset
15836# as_fn_append VAR VALUE
15837# ----------------------
15838# Append the text in VALUE to the end of the definition contained in VAR. Take
15839# advantage of any shell optimizations that allow amortized linear growth over
15840# repeated appends, instead of the typical quadratic growth present in naive
15841# implementations.
15842if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15843 eval 'as_fn_append ()
15844 {
15845 eval $1+=\$2
15846 }'
15847else
15848 as_fn_append ()
15849 {
15850 eval $1=\$$1\$2
15851 }
15852fi # as_fn_append
15853
15854# as_fn_arith ARG...
15855# ------------------
15856# Perform arithmetic evaluation on the ARGs, and store the result in the
15857# global $as_val. Take advantage of shells that can avoid forks. The arguments
15858# must be portable across $(()) and expr.
15859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15860 eval 'as_fn_arith ()
15861 {
15862 as_val=$(( $* ))
15863 }'
15864else
15865 as_fn_arith ()
15866 {
15867 as_val=`expr "$@" || test $? -eq 1`
15868 }
15869fi # as_fn_arith
15870
15871
15872if expr a : '\(a\)' >/dev/null 2>&1 &&
15873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15874 as_expr=expr
15875else
15876 as_expr=false
15877fi
15878
15879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15880 as_basename=basename
15881else
15882 as_basename=false
15883fi
15884
15885if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15886 as_dirname=dirname
15887else
15888 as_dirname=false
15889fi
15890
15891as_me=`$as_basename -- "$0" ||
15892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15893 X"$0" : 'X\(//\)$' \| \
15894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15895$as_echo X/"$0" |
15896 sed '/^.*\/\([^/][^/]*\)\/*$/{
15897 s//\1/
15898 q
15899 }
15900 /^X\/\(\/\/\)$/{
15901 s//\1/
15902 q
15903 }
15904 /^X\/\(\/\).*/{
15905 s//\1/
15906 q
15907 }
15908 s/.*/./; q'`
15909
15910# Avoid depending upon Character Ranges.
15911as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15913as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15914as_cr_digits='0123456789'
15915as_cr_alnum=$as_cr_Letters$as_cr_digits
15916
15917ECHO_C= ECHO_N= ECHO_T=
15918case `echo -n x` in #(((((
15919-n*)
15920 case `echo 'xy\c'` in
15921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15922 xy) ECHO_C='\c';;
15923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15924 ECHO_T=' ';;
15925 esac;;
15926*)
15927 ECHO_N='-n';;
15928esac
15929
15930rm -f conf$$ conf$$.exe conf$$.file
15931if test -d conf$$.dir; then
15932 rm -f conf$$.dir/conf$$.file
15933else
15934 rm -f conf$$.dir
15935 mkdir conf$$.dir 2>/dev/null
15936fi
15937if (echo >conf$$.file) 2>/dev/null; then
15938 if ln -s conf$$.file conf$$ 2>/dev/null; then
15939 as_ln_s='ln -s'
15940 # ... but there are two gotchas:
15941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15943 # In both cases, we have to default to `cp -pR'.
b4c522fa 15944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15945 as_ln_s='cp -pR'
b4c522fa
IB
15946 elif ln conf$$.file conf$$ 2>/dev/null; then
15947 as_ln_s=ln
15948 else
22e05272 15949 as_ln_s='cp -pR'
b4c522fa
IB
15950 fi
15951else
22e05272 15952 as_ln_s='cp -pR'
b4c522fa
IB
15953fi
15954rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15955rmdir conf$$.dir 2>/dev/null
15956
15957
15958# as_fn_mkdir_p
15959# -------------
15960# Create "$as_dir" as a directory, including parents if necessary.
15961as_fn_mkdir_p ()
15962{
15963
15964 case $as_dir in #(
15965 -*) as_dir=./$as_dir;;
15966 esac
15967 test -d "$as_dir" || eval $as_mkdir_p || {
15968 as_dirs=
15969 while :; do
15970 case $as_dir in #(
15971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15972 *) as_qdir=$as_dir;;
15973 esac
15974 as_dirs="'$as_qdir' $as_dirs"
15975 as_dir=`$as_dirname -- "$as_dir" ||
15976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15977 X"$as_dir" : 'X\(//\)[^/]' \| \
15978 X"$as_dir" : 'X\(//\)$' \| \
15979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15980$as_echo X"$as_dir" |
15981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15982 s//\1/
15983 q
15984 }
15985 /^X\(\/\/\)[^/].*/{
15986 s//\1/
15987 q
15988 }
15989 /^X\(\/\/\)$/{
15990 s//\1/
15991 q
15992 }
15993 /^X\(\/\).*/{
15994 s//\1/
15995 q
15996 }
15997 s/.*/./; q'`
15998 test -d "$as_dir" && break
15999 done
16000 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
16002
16003
16004} # as_fn_mkdir_p
16005if mkdir -p . 2>/dev/null; then
16006 as_mkdir_p='mkdir -p "$as_dir"'
16007else
16008 test -d ./-p && rmdir ./-p
16009 as_mkdir_p=false
16010fi
16011
22e05272
JM
16012
16013# as_fn_executable_p FILE
16014# -----------------------
16015# Test if FILE is an executable regular file.
16016as_fn_executable_p ()
16017{
16018 test -f "$1" && test -x "$1"
16019} # as_fn_executable_p
16020as_test_x='test -x'
16021as_executable_p=as_fn_executable_p
b4c522fa
IB
16022
16023# Sed expression to map a string onto a valid CPP name.
16024as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16025
16026# Sed expression to map a string onto a valid variable name.
16027as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16028
16029
16030exec 6>&1
16031## ----------------------------------- ##
16032## Main body of $CONFIG_STATUS script. ##
16033## ----------------------------------- ##
16034_ASEOF
16035test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16036
16037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16038# Save the log message, to keep $0 and so on meaningful, and to
16039# report actual input values of CONFIG_FILES etc. instead of their
16040# values after options handling.
16041ac_log="
16042This file was extended by package-unused $as_me version-unused, which was
22e05272 16043generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
16044
16045 CONFIG_FILES = $CONFIG_FILES
16046 CONFIG_HEADERS = $CONFIG_HEADERS
16047 CONFIG_LINKS = $CONFIG_LINKS
16048 CONFIG_COMMANDS = $CONFIG_COMMANDS
16049 $ $0 $@
16050
16051on `(hostname || uname -n) 2>/dev/null | sed 1q`
16052"
16053
16054_ACEOF
16055
16056case $ac_config_files in *"
16057"*) set x $ac_config_files; shift; ac_config_files=$*;;
16058esac
16059
16060case $ac_config_headers in *"
16061"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16062esac
16063
16064
16065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16066# Files that config.status was made for.
16067config_files="$ac_config_files"
16068config_headers="$ac_config_headers"
16069config_commands="$ac_config_commands"
16070
16071_ACEOF
16072
16073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16074ac_cs_usage="\
16075\`$as_me' instantiates files and other configuration actions
16076from templates according to the current configuration. Unless the files
16077and actions are specified as TAGs, all are instantiated by default.
16078
16079Usage: $0 [OPTION]... [TAG]...
16080
16081 -h, --help print this help, then exit
16082 -V, --version print version number and configuration settings, then exit
22e05272 16083 --config print configuration, then exit
b4c522fa
IB
16084 -q, --quiet, --silent
16085 do not print progress messages
16086 -d, --debug don't remove temporary files
16087 --recheck update $as_me by reconfiguring in the same conditions
16088 --file=FILE[:TEMPLATE]
16089 instantiate the configuration file FILE
16090 --header=FILE[:TEMPLATE]
16091 instantiate the configuration header FILE
16092
16093Configuration files:
16094$config_files
16095
16096Configuration headers:
16097$config_headers
16098
16099Configuration commands:
16100$config_commands
16101
16102Report bugs to the package provider."
16103
16104_ACEOF
16105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16106ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b4c522fa
IB
16107ac_cs_version="\\
16108package-unused config.status version-unused
22e05272
JM
16109configured by $0, generated by GNU Autoconf 2.69,
16110 with options \\"\$ac_cs_config\\"
b4c522fa 16111
0b6e3127 16112Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
16113This config.status script is free software; the Free Software Foundation
16114gives unlimited permission to copy, distribute and modify it."
16115
16116ac_pwd='$ac_pwd'
16117srcdir='$srcdir'
16118INSTALL='$INSTALL'
16119MKDIR_P='$MKDIR_P'
16120AWK='$AWK'
16121test -n "\$AWK" || AWK=awk
16122_ACEOF
16123
16124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125# The default lists apply if the user does not specify any file.
16126ac_need_defaults=:
16127while test $# != 0
16128do
16129 case $1 in
22e05272 16130 --*=?*)
b4c522fa
IB
16131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16132 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16133 ac_shift=:
16134 ;;
22e05272
JM
16135 --*=)
16136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16137 ac_optarg=
16138 ac_shift=:
16139 ;;
b4c522fa
IB
16140 *)
16141 ac_option=$1
16142 ac_optarg=$2
16143 ac_shift=shift
16144 ;;
16145 esac
16146
16147 case $ac_option in
16148 # Handling of the options.
16149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16150 ac_cs_recheck=: ;;
16151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16152 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16153 --config | --confi | --conf | --con | --co | --c )
16154 $as_echo "$ac_cs_config"; exit ;;
b4c522fa
IB
16155 --debug | --debu | --deb | --de | --d | -d )
16156 debug=: ;;
16157 --file | --fil | --fi | --f )
16158 $ac_shift
16159 case $ac_optarg in
16160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16161 '') as_fn_error $? "missing file argument" ;;
b4c522fa
IB
16162 esac
16163 as_fn_append CONFIG_FILES " '$ac_optarg'"
16164 ac_need_defaults=false;;
16165 --header | --heade | --head | --hea )
16166 $ac_shift
16167 case $ac_optarg in
16168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16169 esac
16170 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16171 ac_need_defaults=false;;
16172 --he | --h)
16173 # Conflict between --help and --header
22e05272 16174 as_fn_error $? "ambiguous option: \`$1'
b4c522fa
IB
16175Try \`$0 --help' for more information.";;
16176 --help | --hel | -h )
16177 $as_echo "$ac_cs_usage"; exit ;;
16178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16180 ac_cs_silent=: ;;
16181
16182 # This is an error.
22e05272 16183 -*) as_fn_error $? "unrecognized option: \`$1'
b4c522fa
IB
16184Try \`$0 --help' for more information." ;;
16185
16186 *) as_fn_append ac_config_targets " $1"
16187 ac_need_defaults=false ;;
16188
16189 esac
16190 shift
16191done
16192
16193ac_configure_extra_args=
16194
16195if $ac_cs_silent; then
16196 exec 6>/dev/null
16197 ac_configure_extra_args="$ac_configure_extra_args --silent"
16198fi
16199
16200_ACEOF
16201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202if \$ac_cs_recheck; then
22e05272 16203 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b4c522fa
IB
16204 shift
16205 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16206 CONFIG_SHELL='$SHELL'
16207 export CONFIG_SHELL
16208 exec "\$@"
16209fi
16210
16211_ACEOF
16212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213exec 5>>config.log
16214{
16215 echo
16216 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16217## Running $as_me. ##
16218_ASBOX
16219 $as_echo "$ac_log"
16220} >&5
16221
16222_ACEOF
16223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224#
16225# INIT-COMMANDS
16226#
16227
16228srcdir="$srcdir"
16229host="$host"
16230target="$target"
16231with_multisubdir="$with_multisubdir"
16232with_multisrctop="$with_multisrctop"
16233with_target_subdir="$with_target_subdir"
16234ac_configure_args="${multilib_arg} ${ac_configure_args}"
16235multi_basedir="$multi_basedir"
16236CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16237CC="$CC"
16238CXX="$CXX"
16239GFORTRAN="$GFORTRAN"
16240GDC="$GDC"
16241
16242
16243# The HP-UX ksh and POSIX shell print the target directory to stdout
16244# if CDPATH is set.
16245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16246
16247sed_quote_subst='$sed_quote_subst'
16248double_quote_subst='$double_quote_subst'
16249delay_variable_subst='$delay_variable_subst'
16250macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16251macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16252enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16253enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16254pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16255enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16256SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16257ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16258host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16259host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16260host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16261build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16262build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16263build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16264SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16265Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16266GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16267EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16268FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16269LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16270NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16271LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16272max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16273ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16274exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16275lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16276lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16277lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16278reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16279reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16280OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16281deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16282file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16283AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16284AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16285STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16286RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16287old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16288old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16289old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16290lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16291CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16292CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16293compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16294GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16295lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16296lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16297lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16298lt_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"`'
16299objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16300MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16301lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16302lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16303lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16304lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16305lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16306need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16307DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16308NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16309LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16310OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16311OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16312libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16313shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16314extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16315archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16316enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16317export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16318whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16319compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16320old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16321old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16322archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16323archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16324module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16325module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16326with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16327allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16328no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16329hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16330hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16331hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16332hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16333hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16334hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16335hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16336hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16337inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16338link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16339fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16340always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16341export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16342exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16343include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16344prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16345file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16346variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16347need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16348need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16349version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16350runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16351shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16352shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16353libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16354library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16355soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16356install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16357postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16358postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16359finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16360finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16361hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16362sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16363sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16364hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16365enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16366enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16367enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16368old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16369striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16370LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16371reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16372reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16373old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16374compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16375GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16376lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16377lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16378lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16379lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16380lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16381archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16382enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16383export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16384whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16385compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16386old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16387old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16388archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16389archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16390module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16391module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16392with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16393allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16394no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16395hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16396hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16397hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16398hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16399hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16400hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16401hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16402hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16403inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16404link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16405fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16406always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16407export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16408exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16409include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16410prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16411file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16412hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16413
16414LTCC='$LTCC'
16415LTCFLAGS='$LTCFLAGS'
16416compiler='$compiler_DEFAULT'
16417
16418# A function that is used when there is no print builtin or printf.
16419func_fallback_echo ()
16420{
16421 eval 'cat <<_LTECHO_EOF
16422\$1
16423_LTECHO_EOF'
16424}
16425
16426# Quote evaled strings.
16427for var in SHELL \
16428ECHO \
16429SED \
16430GREP \
16431EGREP \
16432FGREP \
16433LD \
16434NM \
16435LN_S \
16436lt_SP2NL \
16437lt_NL2SP \
16438reload_flag \
16439OBJDUMP \
16440deplibs_check_method \
16441file_magic_cmd \
16442AR \
16443AR_FLAGS \
16444STRIP \
16445RANLIB \
16446CC \
16447CFLAGS \
16448compiler \
16449lt_cv_sys_global_symbol_pipe \
16450lt_cv_sys_global_symbol_to_cdecl \
16451lt_cv_sys_global_symbol_to_c_name_address \
16452lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16453lt_prog_compiler_no_builtin_flag \
16454lt_prog_compiler_wl \
16455lt_prog_compiler_pic \
16456lt_prog_compiler_static \
16457lt_cv_prog_compiler_c_o \
16458need_locks \
16459DSYMUTIL \
16460NMEDIT \
16461LIPO \
16462OTOOL \
16463OTOOL64 \
16464shrext_cmds \
16465export_dynamic_flag_spec \
16466whole_archive_flag_spec \
16467compiler_needs_object \
16468with_gnu_ld \
16469allow_undefined_flag \
16470no_undefined_flag \
16471hardcode_libdir_flag_spec \
16472hardcode_libdir_flag_spec_ld \
16473hardcode_libdir_separator \
16474fix_srcfile_path \
16475exclude_expsyms \
16476include_expsyms \
16477file_list_spec \
16478variables_saved_for_relink \
16479libname_spec \
16480library_names_spec \
16481soname_spec \
16482install_override_mode \
16483finish_eval \
16484old_striplib \
16485striplib \
16486LD_D \
16487reload_flag_D \
16488compiler_D \
16489lt_prog_compiler_no_builtin_flag_D \
16490lt_prog_compiler_wl_D \
16491lt_prog_compiler_pic_D \
16492lt_prog_compiler_static_D \
16493lt_cv_prog_compiler_c_o_D \
16494export_dynamic_flag_spec_D \
16495whole_archive_flag_spec_D \
16496compiler_needs_object_D \
16497with_gnu_ld_D \
16498allow_undefined_flag_D \
16499no_undefined_flag_D \
16500hardcode_libdir_flag_spec_D \
16501hardcode_libdir_flag_spec_ld_D \
16502hardcode_libdir_separator_D \
16503fix_srcfile_path_D \
16504exclude_expsyms_D \
16505include_expsyms_D \
16506file_list_spec_D; do
16507 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16508 *[\\\\\\\`\\"\\\$]*)
16509 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16510 ;;
16511 *)
16512 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16513 ;;
16514 esac
16515done
16516
16517# Double-quote double-evaled strings.
16518for var in reload_cmds \
16519old_postinstall_cmds \
16520old_postuninstall_cmds \
16521old_archive_cmds \
16522extract_expsyms_cmds \
16523old_archive_from_new_cmds \
16524old_archive_from_expsyms_cmds \
16525archive_cmds \
16526archive_expsym_cmds \
16527module_cmds \
16528module_expsym_cmds \
16529export_symbols_cmds \
16530prelink_cmds \
16531postinstall_cmds \
16532postuninstall_cmds \
16533finish_cmds \
16534sys_lib_search_path_spec \
16535sys_lib_dlsearch_path_spec \
16536reload_cmds_D \
16537old_archive_cmds_D \
16538old_archive_from_new_cmds_D \
16539old_archive_from_expsyms_cmds_D \
16540archive_cmds_D \
16541archive_expsym_cmds_D \
16542module_cmds_D \
16543module_expsym_cmds_D \
16544export_symbols_cmds_D \
16545prelink_cmds_D; do
16546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16547 *[\\\\\\\`\\"\\\$]*)
16548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16549 ;;
16550 *)
16551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16552 ;;
16553 esac
16554done
16555
16556ac_aux_dir='$ac_aux_dir'
16557xsi_shell='$xsi_shell'
16558lt_shell_append='$lt_shell_append'
16559
16560# See if we are running on zsh, and set the options which allow our
16561# commands through without removal of \ escapes INIT.
16562if test -n "\${ZSH_VERSION+set}" ; then
16563 setopt NO_GLOB_SUBST
16564fi
16565
16566
16567 PACKAGE='$PACKAGE'
16568 VERSION='$VERSION'
16569 TIMESTAMP='$TIMESTAMP'
16570 RM='$RM'
16571 ofile='$ofile'
16572
16573
16574
16575
16576
16577
b4c522fa
IB
16578_ACEOF
16579
16580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16581
16582# Handling of arguments.
16583for ac_config_target in $ac_config_targets
16584do
16585 case $ac_config_target in
16586 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16587 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16588 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16589 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b4c522fa
IB
16590 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16591 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16592 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16593 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
ac67752d
IB
16594 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16595 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16596 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b4c522fa 16597
22e05272 16598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b4c522fa
IB
16599 esac
16600done
16601
16602
16603# If the user did not use the arguments to specify the items to instantiate,
16604# then the envvar interface is used. Set only those that are not.
16605# We use the long form for the default assignment because of an extremely
16606# bizarre bug on SunOS 4.1.3.
16607if $ac_need_defaults; then
16608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16611fi
16612
16613# Have a temporary directory for convenience. Make it in the build tree
16614# simply because there is no reason against having it here, and in addition,
16615# creating and moving files from /tmp can sometimes cause problems.
16616# Hook for its removal unless debugging.
16617# Note that there is a small window in which the directory will not be cleaned:
16618# after its creation but before its name has been assigned to `$tmp'.
16619$debug ||
16620{
22e05272 16621 tmp= ac_tmp=
b4c522fa 16622 trap 'exit_status=$?
22e05272
JM
16623 : "${ac_tmp:=$tmp}"
16624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b4c522fa
IB
16625' 0
16626 trap 'as_fn_exit 1' 1 2 13 15
16627}
16628# Create a (secure) tmp directory for tmp files.
16629
16630{
16631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16632 test -d "$tmp"
b4c522fa
IB
16633} ||
16634{
16635 tmp=./conf$$-$RANDOM
16636 (umask 077 && mkdir "$tmp")
22e05272
JM
16637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16638ac_tmp=$tmp
b4c522fa
IB
16639
16640# Set up the scripts for CONFIG_FILES section.
16641# No need to generate them if there are no CONFIG_FILES.
16642# This happens for instance with `./config.status config.h'.
16643if test -n "$CONFIG_FILES"; then
16644
0b6e3127
RO
16645if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16646 ac_cs_awk_getline=:
16647 ac_cs_awk_pipe_init=
16648 ac_cs_awk_read_file='
16649 while ((getline aline < (F[key])) > 0)
16650 print(aline)
16651 close(F[key])'
16652 ac_cs_awk_pipe_fini=
16653else
16654 ac_cs_awk_getline=false
16655 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16656 ac_cs_awk_read_file='
16657 print "|#_!!_#|"
16658 print "cat " F[key] " &&"
16659 '$ac_cs_awk_pipe_init
16660 # The final `:' finishes the AND list.
16661 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16662fi
b4c522fa
IB
16663ac_cr=`echo X | tr X '\015'`
16664# On cygwin, bash can eat \r inside `` if the user requested igncr.
16665# But we know of no other shell where ac_cr would be empty at this
16666# point, so we can use a bashism as a fallback.
16667if test "x$ac_cr" = x; then
16668 eval ac_cr=\$\'\\r\'
16669fi
16670ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16671if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16672 ac_cs_awk_cr='\\r'
b4c522fa
IB
16673else
16674 ac_cs_awk_cr=$ac_cr
16675fi
16676
22e05272 16677echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b4c522fa
IB
16678_ACEOF
16679
0b6e3127
RO
16680# Create commands to substitute file output variables.
16681{
16682 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16683 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16684 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16685 echo "_ACAWK" &&
16686 echo "_ACEOF"
16687} >conf$$files.sh &&
16688. ./conf$$files.sh ||
16689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16690rm -f conf$$files.sh
b4c522fa
IB
16691
16692{
16693 echo "cat >conf$$subs.awk <<_ACEOF" &&
16694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16695 echo "_ACEOF"
16696} >conf$$subs.sh ||
22e05272
JM
16697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16698ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b4c522fa
IB
16699ac_delim='%!_!# '
16700for ac_last_try in false false false false false :; do
16701 . ./conf$$subs.sh ||
22e05272 16702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16703
16704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16705 if test $ac_delim_n = $ac_delim_num; then
16706 break
16707 elif $ac_last_try; then
22e05272 16708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16709 else
16710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16711 fi
16712done
16713rm -f conf$$subs.sh
16714
16715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16716cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b4c522fa
IB
16717_ACEOF
16718sed -n '
16719h
16720s/^/S["/; s/!.*/"]=/
16721p
16722g
16723s/^[^!]*!//
16724:repl
16725t repl
16726s/'"$ac_delim"'$//
16727t delim
16728:nl
16729h
22e05272 16730s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16731t more1
16732s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16733p
16734n
16735b repl
16736:more1
16737s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16738p
16739g
16740s/.\{148\}//
16741t nl
16742:delim
16743h
22e05272 16744s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16745t more2
16746s/["\\]/\\&/g; s/^/"/; s/$/"/
16747p
16748b
16749:more2
16750s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16751p
16752g
16753s/.\{148\}//
16754t delim
16755' <conf$$subs.awk | sed '
16756/^[^""]/{
16757 N
16758 s/\n//
16759}
16760' >>$CONFIG_STATUS || ac_write_fail=1
16761rm -f conf$$subs.awk
16762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16763_ACAWK
22e05272 16764cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b4c522fa
IB
16765 for (key in S) S_is_set[key] = 1
16766 FS = "\a"
0b6e3127 16767 \$ac_cs_awk_pipe_init
b4c522fa
IB
16768}
16769{
16770 line = $ 0
16771 nfields = split(line, field, "@")
16772 substed = 0
16773 len = length(field[1])
16774 for (i = 2; i < nfields; i++) {
16775 key = field[i]
16776 keylen = length(key)
16777 if (S_is_set[key]) {
16778 value = S[key]
16779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16780 len += length(value) + length(field[++i])
16781 substed = 1
16782 } else
16783 len += 1 + keylen
16784 }
0b6e3127
RO
16785 if (nfields == 3 && !substed) {
16786 key = field[2]
16787 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16788 \$ac_cs_awk_read_file
16789 next
16790 }
16791 }
b4c522fa
IB
16792 print line
16793}
0b6e3127 16794\$ac_cs_awk_pipe_fini
b4c522fa
IB
16795_ACAWK
16796_ACEOF
16797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16798if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16800else
16801 cat
22e05272
JM
16802fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b4c522fa
IB
16804_ACEOF
16805
22e05272
JM
16806# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16807# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b4c522fa
IB
16808# trailing colons and then remove the whole line if VPATH becomes empty
16809# (actually we leave an empty line to preserve line numbers).
16810if test "x$srcdir" = x.; then
22e05272
JM
16811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16812h
16813s///
16814s/^/:/
16815s/[ ]*$/:/
16816s/:\$(srcdir):/:/g
16817s/:\${srcdir}:/:/g
16818s/:@srcdir@:/:/g
16819s/^:*//
b4c522fa 16820s/:*$//
22e05272
JM
16821x
16822s/\(=[ ]*\).*/\1/
16823G
16824s/\n//
b4c522fa
IB
16825s/^[^=]*=[ ]*$//
16826}'
16827fi
16828
16829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830fi # test -n "$CONFIG_FILES"
16831
16832# Set up the scripts for CONFIG_HEADERS section.
16833# No need to generate them if there are no CONFIG_HEADERS.
16834# This happens for instance with `./config.status Makefile'.
16835if test -n "$CONFIG_HEADERS"; then
22e05272 16836cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
b4c522fa
IB
16837BEGIN {
16838_ACEOF
16839
16840# Transform confdefs.h into an awk script `defines.awk', embedded as
16841# here-document in config.status, that substitutes the proper values into
16842# config.h.in to produce config.h.
16843
16844# Create a delimiter string that does not exist in confdefs.h, to ease
16845# handling of long lines.
16846ac_delim='%!_!# '
16847for ac_last_try in false false :; do
22e05272
JM
16848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16849 if test -z "$ac_tt"; then
b4c522fa
IB
16850 break
16851 elif $ac_last_try; then
22e05272 16852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b4c522fa
IB
16853 else
16854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16855 fi
16856done
16857
16858# For the awk script, D is an array of macro values keyed by name,
16859# likewise P contains macro parameters if any. Preserve backslash
16860# newline sequences.
16861
16862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16863sed -n '
16864s/.\{148\}/&'"$ac_delim"'/g
16865t rset
16866:rset
16867s/^[ ]*#[ ]*define[ ][ ]*/ /
16868t def
16869d
16870:def
16871s/\\$//
16872t bsnl
16873s/["\\]/\\&/g
16874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16875D["\1"]=" \3"/p
16876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16877d
16878:bsnl
16879s/["\\]/\\&/g
16880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16881D["\1"]=" \3\\\\\\n"\\/p
16882t cont
16883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16884t cont
16885d
16886:cont
16887n
16888s/.\{148\}/&'"$ac_delim"'/g
16889t clear
16890:clear
16891s/\\$//
16892t bsnlc
16893s/["\\]/\\&/g; s/^/"/; s/$/"/p
16894d
16895:bsnlc
16896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16897b cont
16898' <confdefs.h | sed '
16899s/'"$ac_delim"'/"\\\
16900"/g' >>$CONFIG_STATUS || ac_write_fail=1
16901
16902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16903 for (key in D) D_is_set[key] = 1
16904 FS = "\a"
16905}
16906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16907 line = \$ 0
16908 split(line, arg, " ")
16909 if (arg[1] == "#") {
16910 defundef = arg[2]
16911 mac1 = arg[3]
16912 } else {
16913 defundef = substr(arg[1], 2)
16914 mac1 = arg[2]
16915 }
16916 split(mac1, mac2, "(") #)
16917 macro = mac2[1]
16918 prefix = substr(line, 1, index(line, defundef) - 1)
16919 if (D_is_set[macro]) {
16920 # Preserve the white space surrounding the "#".
16921 print prefix "define", macro P[macro] D[macro]
16922 next
16923 } else {
16924 # Replace #undef with comments. This is necessary, for example,
16925 # in the case of _POSIX_SOURCE, which is predefined and required
16926 # on some systems where configure will not decide to define it.
16927 if (defundef == "undef") {
16928 print "/*", prefix defundef, macro, "*/"
16929 next
16930 }
16931 }
16932}
16933{ print }
16934_ACAWK
16935_ACEOF
16936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 16937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
b4c522fa
IB
16938fi # test -n "$CONFIG_HEADERS"
16939
16940
16941eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16942shift
16943for ac_tag
16944do
16945 case $ac_tag in
16946 :[FHLC]) ac_mode=$ac_tag; continue;;
16947 esac
16948 case $ac_mode$ac_tag in
16949 :[FHL]*:*);;
22e05272 16950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b4c522fa
IB
16951 :[FH]-) ac_tag=-:-;;
16952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16953 esac
16954 ac_save_IFS=$IFS
16955 IFS=:
16956 set x $ac_tag
16957 IFS=$ac_save_IFS
16958 shift
16959 ac_file=$1
16960 shift
16961
16962 case $ac_mode in
16963 :L) ac_source=$1;;
16964 :[FH])
16965 ac_file_inputs=
16966 for ac_f
16967 do
16968 case $ac_f in
22e05272 16969 -) ac_f="$ac_tmp/stdin";;
b4c522fa
IB
16970 *) # Look for the file first in the build tree, then in the source tree
16971 # (if the path is not absolute). The absolute path cannot be DOS-style,
16972 # because $ac_f cannot contain `:'.
16973 test -f "$ac_f" ||
16974 case $ac_f in
16975 [\\/$]*) false;;
16976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16977 esac ||
22e05272 16978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b4c522fa
IB
16979 esac
16980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16981 as_fn_append ac_file_inputs " '$ac_f'"
16982 done
16983
16984 # Let's still pretend it is `configure' which instantiates (i.e., don't
16985 # use $as_me), people would be surprised to read:
16986 # /* config.h. Generated by config.status. */
16987 configure_input='Generated from '`
16988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16989 `' by configure.'
16990 if test x"$ac_file" != x-; then
16991 configure_input="$ac_file. $configure_input"
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16993$as_echo "$as_me: creating $ac_file" >&6;}
16994 fi
16995 # Neutralize special characters interpreted by sed in replacement strings.
16996 case $configure_input in #(
16997 *\&* | *\|* | *\\* )
16998 ac_sed_conf_input=`$as_echo "$configure_input" |
16999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17000 *) ac_sed_conf_input=$configure_input;;
17001 esac
17002
17003 case $ac_tag in
22e05272
JM
17004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b4c522fa
IB
17006 esac
17007 ;;
17008 esac
17009
17010 ac_dir=`$as_dirname -- "$ac_file" ||
17011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17012 X"$ac_file" : 'X\(//\)[^/]' \| \
17013 X"$ac_file" : 'X\(//\)$' \| \
17014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17015$as_echo X"$ac_file" |
17016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17017 s//\1/
17018 q
17019 }
17020 /^X\(\/\/\)[^/].*/{
17021 s//\1/
17022 q
17023 }
17024 /^X\(\/\/\)$/{
17025 s//\1/
17026 q
17027 }
17028 /^X\(\/\).*/{
17029 s//\1/
17030 q
17031 }
17032 s/.*/./; q'`
17033 as_dir="$ac_dir"; as_fn_mkdir_p
17034 ac_builddir=.
17035
17036case "$ac_dir" in
17037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17038*)
17039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17040 # A ".." for each directory in $ac_dir_suffix.
17041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17042 case $ac_top_builddir_sub in
17043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17045 esac ;;
17046esac
17047ac_abs_top_builddir=$ac_pwd
17048ac_abs_builddir=$ac_pwd$ac_dir_suffix
17049# for backward compatibility:
17050ac_top_builddir=$ac_top_build_prefix
17051
17052case $srcdir in
17053 .) # We are building in place.
17054 ac_srcdir=.
17055 ac_top_srcdir=$ac_top_builddir_sub
17056 ac_abs_top_srcdir=$ac_pwd ;;
17057 [\\/]* | ?:[\\/]* ) # Absolute name.
17058 ac_srcdir=$srcdir$ac_dir_suffix;
17059 ac_top_srcdir=$srcdir
17060 ac_abs_top_srcdir=$srcdir ;;
17061 *) # Relative name.
17062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17063 ac_top_srcdir=$ac_top_build_prefix$srcdir
17064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17065esac
17066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17067
17068
17069 case $ac_mode in
17070 :F)
17071 #
17072 # CONFIG_FILE
17073 #
17074
17075 case $INSTALL in
17076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17078 esac
17079 ac_MKDIR_P=$MKDIR_P
17080 case $MKDIR_P in
17081 [\\/$]* | ?:[\\/]* ) ;;
17082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17083 esac
17084_ACEOF
17085
17086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17087# If the template does not know about datarootdir, expand it.
17088# FIXME: This hack should be removed a few years after 2.60.
17089ac_datarootdir_hack=; ac_datarootdir_seen=
17090ac_sed_dataroot='
17091/datarootdir/ {
17092 p
17093 q
17094}
17095/@datadir@/p
17096/@docdir@/p
17097/@infodir@/p
17098/@localedir@/p
17099/@mandir@/p'
17100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17101*datarootdir*) ac_datarootdir_seen=yes;;
17102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17105_ACEOF
17106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 ac_datarootdir_hack='
17108 s&@datadir@&$datadir&g
17109 s&@docdir@&$docdir&g
17110 s&@infodir@&$infodir&g
17111 s&@localedir@&$localedir&g
17112 s&@mandir@&$mandir&g
17113 s&\\\${datarootdir}&$datarootdir&g' ;;
17114esac
17115_ACEOF
17116
17117# Neutralize VPATH when `$srcdir' = `.'.
17118# Shell code in configure.ac might set extrasub.
17119# FIXME: do we really want to maintain this feature?
17120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17121ac_sed_extra="$ac_vpsub
17122$extrasub
17123_ACEOF
17124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125:t
17126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17127s|@configure_input@|$ac_sed_conf_input|;t t
17128s&@top_builddir@&$ac_top_builddir_sub&;t t
17129s&@top_build_prefix@&$ac_top_build_prefix&;t t
17130s&@srcdir@&$ac_srcdir&;t t
17131s&@abs_srcdir@&$ac_abs_srcdir&;t t
17132s&@top_srcdir@&$ac_top_srcdir&;t t
17133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17134s&@builddir@&$ac_builddir&;t t
17135s&@abs_builddir@&$ac_abs_builddir&;t t
17136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17137s&@INSTALL@&$ac_INSTALL&;t t
17138s&@MKDIR_P@&$ac_MKDIR_P&;t t
17139$ac_datarootdir_hack
17140"
0b6e3127
RO
17141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17142if $ac_cs_awk_getline; then
17143 $AWK -f "$ac_tmp/subs.awk"
17144else
17145 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17146fi \
22e05272 17147 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17148
17149test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17150 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17151 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17152 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b4c522fa 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17154which seems to be undefined. Please make sure it is defined" >&5
b4c522fa 17155$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17156which seems to be undefined. Please make sure it is defined" >&2;}
b4c522fa 17157
22e05272 17158 rm -f "$ac_tmp/stdin"
b4c522fa 17159 case $ac_file in
22e05272
JM
17160 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17161 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b4c522fa 17162 esac \
22e05272 17163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17164 ;;
17165 :H)
17166 #
17167 # CONFIG_HEADER
17168 #
17169 if test x"$ac_file" != x-; then
17170 {
17171 $as_echo "/* $configure_input */" \
22e05272
JM
17172 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17173 } >"$ac_tmp/config.h" \
17174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17175 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b4c522fa
IB
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17177$as_echo "$as_me: $ac_file is unchanged" >&6;}
17178 else
17179 rm -f "$ac_file"
22e05272
JM
17180 mv "$ac_tmp/config.h" "$ac_file" \
17181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
17182 fi
17183 else
17184 $as_echo "/* $configure_input */" \
22e05272
JM
17185 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17186 || as_fn_error $? "could not create -" "$LINENO" 5
b4c522fa
IB
17187 fi
17188# Compute "$ac_file"'s index in $config_headers.
17189_am_arg="$ac_file"
17190_am_stamp_count=1
17191for _am_header in $config_headers :; do
17192 case $_am_header in
17193 $_am_arg | $_am_arg:* )
17194 break ;;
17195 * )
17196 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17197 esac
17198done
17199echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17200$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17201 X"$_am_arg" : 'X\(//\)[^/]' \| \
17202 X"$_am_arg" : 'X\(//\)$' \| \
17203 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17204$as_echo X"$_am_arg" |
17205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17206 s//\1/
17207 q
17208 }
17209 /^X\(\/\/\)[^/].*/{
17210 s//\1/
17211 q
17212 }
17213 /^X\(\/\/\)$/{
17214 s//\1/
17215 q
17216 }
17217 /^X\(\/\).*/{
17218 s//\1/
17219 q
17220 }
17221 s/.*/./; q'`/stamp-h$_am_stamp_count
17222 ;;
17223
17224 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17225$as_echo "$as_me: executing $ac_file commands" >&6;}
17226 ;;
17227 esac
17228
17229
17230 case $ac_file$ac_mode in
17231 "default-1":C)
17232# Only add multilib support code if we just rebuilt the top-level
17233# Makefile.
17234case " $CONFIG_FILES " in
17235 *" Makefile "*)
17236 ac_file=Makefile . ${multi_basedir}/config-ml.in
17237 ;;
17238esac ;;
17239 "libtool":C)
17240
17241 # See if we are running on zsh, and set the options which allow our
17242 # commands through without removal of \ escapes.
17243 if test -n "${ZSH_VERSION+set}" ; then
17244 setopt NO_GLOB_SUBST
17245 fi
17246
17247 cfgfile="${ofile}T"
17248 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17249 $RM "$cfgfile"
17250
17251 cat <<_LT_EOF >> "$cfgfile"
17252#! $SHELL
17253
17254# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17255# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17256# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17257# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17258#
0b6e3127
RO
17259# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17260# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b4c522fa
IB
17261# Written by Gordon Matzigkeit, 1996
17262#
17263# This file is part of GNU Libtool.
17264#
17265# GNU Libtool is free software; you can redistribute it and/or
17266# modify it under the terms of the GNU General Public License as
17267# published by the Free Software Foundation; either version 2 of
17268# the License, or (at your option) any later version.
17269#
17270# As a special exception to the GNU General Public License,
17271# if you distribute this file as part of a program or library that
17272# is built using GNU Libtool, you may include this file under the
17273# same distribution terms that you use for the rest of that program.
17274#
17275# GNU Libtool is distributed in the hope that it will be useful,
17276# but WITHOUT ANY WARRANTY; without even the implied warranty of
17277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17278# GNU General Public License for more details.
17279#
17280# You should have received a copy of the GNU General Public License
17281# along with GNU Libtool; see the file COPYING. If not, a copy
17282# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17283# obtained by writing to the Free Software Foundation, Inc.,
17284# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17285
17286
17287# The names of the tagged configurations supported by this script.
17288available_tags="D "
17289
17290# ### BEGIN LIBTOOL CONFIG
17291
17292# Which release of libtool.m4 was used?
17293macro_version=$macro_version
17294macro_revision=$macro_revision
17295
17296# Whether or not to build shared libraries.
17297build_libtool_libs=$enable_shared
17298
17299# Whether or not to build static libraries.
17300build_old_libs=$enable_static
17301
17302# What type of objects to build.
17303pic_mode=$pic_mode
17304
17305# Whether or not to optimize for fast installation.
17306fast_install=$enable_fast_install
17307
17308# Shell to use when invoking shell scripts.
17309SHELL=$lt_SHELL
17310
17311# An echo program that protects backslashes.
17312ECHO=$lt_ECHO
17313
17314# The host system.
17315host_alias=$host_alias
17316host=$host
17317host_os=$host_os
17318
17319# The build system.
17320build_alias=$build_alias
17321build=$build
17322build_os=$build_os
17323
17324# A sed program that does not truncate output.
17325SED=$lt_SED
17326
17327# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17328Xsed="\$SED -e 1s/^X//"
17329
17330# A grep program that handles long lines.
17331GREP=$lt_GREP
17332
17333# An ERE matcher.
17334EGREP=$lt_EGREP
17335
17336# A literal string matcher.
17337FGREP=$lt_FGREP
17338
17339# A BSD- or MS-compatible name lister.
17340NM=$lt_NM
17341
17342# Whether we need soft or hard links.
17343LN_S=$lt_LN_S
17344
17345# What is the maximum length of a command?
17346max_cmd_len=$max_cmd_len
17347
17348# Object file suffix (normally "o").
17349objext=$ac_objext
17350
17351# Executable file suffix (normally "").
17352exeext=$exeext
17353
17354# whether the shell understands "unset".
17355lt_unset=$lt_unset
17356
17357# turn spaces into newlines.
17358SP2NL=$lt_lt_SP2NL
17359
17360# turn newlines into spaces.
17361NL2SP=$lt_lt_NL2SP
17362
17363# An object symbol dumper.
17364OBJDUMP=$lt_OBJDUMP
17365
17366# Method to check whether dependent libraries are shared objects.
17367deplibs_check_method=$lt_deplibs_check_method
17368
17369# Command to use when deplibs_check_method == "file_magic".
17370file_magic_cmd=$lt_file_magic_cmd
17371
17372# The archiver.
17373AR=$lt_AR
17374AR_FLAGS=$lt_AR_FLAGS
17375
17376# A symbol stripping program.
17377STRIP=$lt_STRIP
17378
17379# Commands used to install an old-style archive.
17380RANLIB=$lt_RANLIB
17381old_postinstall_cmds=$lt_old_postinstall_cmds
17382old_postuninstall_cmds=$lt_old_postuninstall_cmds
17383
17384# Whether to use a lock for old archive extraction.
17385lock_old_archive_extraction=$lock_old_archive_extraction
17386
17387# A C compiler.
17388LTCC=$lt_CC
17389
17390# LTCC compiler flags.
17391LTCFLAGS=$lt_CFLAGS
17392
17393# Take the output of nm and produce a listing of raw symbols and C names.
17394global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17395
17396# Transform the output of nm in a proper C declaration.
17397global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17398
17399# Transform the output of nm in a C name address pair.
17400global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17401
17402# Transform the output of nm in a C name address pair when lib prefix is needed.
17403global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17404
17405# The name of the directory that contains temporary libtool files.
17406objdir=$objdir
17407
17408# Used to examine libraries when file_magic_cmd begins with "file".
17409MAGIC_CMD=$MAGIC_CMD
17410
17411# Must we lock files when doing compilation?
17412need_locks=$lt_need_locks
17413
17414# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17415DSYMUTIL=$lt_DSYMUTIL
17416
17417# Tool to change global to local symbols on Mac OS X.
17418NMEDIT=$lt_NMEDIT
17419
17420# Tool to manipulate fat objects and archives on Mac OS X.
17421LIPO=$lt_LIPO
17422
17423# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17424OTOOL=$lt_OTOOL
17425
17426# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17427OTOOL64=$lt_OTOOL64
17428
17429# Old archive suffix (normally "a").
17430libext=$libext
17431
17432# Shared library suffix (normally ".so").
17433shrext_cmds=$lt_shrext_cmds
17434
17435# The commands to extract the exported symbol list from a shared archive.
17436extract_expsyms_cmds=$lt_extract_expsyms_cmds
17437
17438# Variables whose values should be saved in libtool wrapper scripts and
17439# restored at link time.
17440variables_saved_for_relink=$lt_variables_saved_for_relink
17441
17442# Do we need the "lib" prefix for modules?
17443need_lib_prefix=$need_lib_prefix
17444
17445# Do we need a version for libraries?
17446need_version=$need_version
17447
17448# Library versioning type.
17449version_type=$version_type
17450
17451# Shared library runtime path variable.
17452runpath_var=$runpath_var
17453
17454# Shared library path variable.
17455shlibpath_var=$shlibpath_var
17456
17457# Is shlibpath searched before the hard-coded library search path?
17458shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17459
17460# Format of library name prefix.
17461libname_spec=$lt_libname_spec
17462
17463# List of archive names. First name is the real one, the rest are links.
17464# The last name is the one that the linker finds with -lNAME
17465library_names_spec=$lt_library_names_spec
17466
17467# The coded name of the library, if different from the real name.
17468soname_spec=$lt_soname_spec
17469
17470# Permission mode override for installation of shared libraries.
17471install_override_mode=$lt_install_override_mode
17472
17473# Command to use after installation of a shared archive.
17474postinstall_cmds=$lt_postinstall_cmds
17475
17476# Command to use after uninstallation of a shared archive.
17477postuninstall_cmds=$lt_postuninstall_cmds
17478
17479# Commands used to finish a libtool library installation in a directory.
17480finish_cmds=$lt_finish_cmds
17481
17482# As "finish_cmds", except a single script fragment to be evaled but
17483# not shown.
17484finish_eval=$lt_finish_eval
17485
17486# Whether we should hardcode library paths into libraries.
17487hardcode_into_libs=$hardcode_into_libs
17488
17489# Compile-time system search path for libraries.
17490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17491
17492# Run-time system search path for libraries.
17493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17494
17495# Whether dlopen is supported.
17496dlopen_support=$enable_dlopen
17497
17498# Whether dlopen of programs is supported.
17499dlopen_self=$enable_dlopen_self
17500
17501# Whether dlopen of statically linked programs is supported.
17502dlopen_self_static=$enable_dlopen_self_static
17503
17504# Commands to strip libraries.
17505old_striplib=$lt_old_striplib
17506striplib=$lt_striplib
17507
17508
17509# The linker used to build libraries.
17510LD=$lt_LD
17511
17512# How to create reloadable object files.
17513reload_flag=$lt_reload_flag
17514reload_cmds=$lt_reload_cmds
17515
17516# Commands used to build an old-style archive.
17517old_archive_cmds=$lt_old_archive_cmds
17518
17519# A language specific compiler.
17520CC=$lt_compiler
17521
17522# Is the compiler the GNU compiler?
17523with_gcc=$GCC
17524
17525# Compiler flag to turn off builtin functions.
17526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17527
17528# How to pass a linker flag through the compiler.
17529wl=$lt_lt_prog_compiler_wl
17530
17531# Additional compiler flags for building library objects.
17532pic_flag=$lt_lt_prog_compiler_pic
17533
17534# Compiler flag to prevent dynamic linking.
17535link_static_flag=$lt_lt_prog_compiler_static
17536
17537# Does compiler simultaneously support -c and -o options?
17538compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17539
17540# Whether or not to add -lc for building shared libraries.
17541build_libtool_need_lc=$archive_cmds_need_lc
17542
17543# Whether or not to disallow shared libs when runtime libs are static.
17544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17545
17546# Compiler flag to allow reflexive dlopens.
17547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17548
17549# Compiler flag to generate shared objects directly from archives.
17550whole_archive_flag_spec=$lt_whole_archive_flag_spec
17551
17552# Whether the compiler copes with passing no objects directly.
17553compiler_needs_object=$lt_compiler_needs_object
17554
17555# Create an old-style archive from a shared archive.
17556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17557
17558# Create a temporary old-style archive to link instead of a shared archive.
17559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17560
17561# Commands used to build a shared archive.
17562archive_cmds=$lt_archive_cmds
17563archive_expsym_cmds=$lt_archive_expsym_cmds
17564
17565# Commands used to build a loadable module if different from building
17566# a shared archive.
17567module_cmds=$lt_module_cmds
17568module_expsym_cmds=$lt_module_expsym_cmds
17569
17570# Whether we are building with GNU ld or not.
17571with_gnu_ld=$lt_with_gnu_ld
17572
17573# Flag that allows shared libraries with undefined symbols to be built.
17574allow_undefined_flag=$lt_allow_undefined_flag
17575
17576# Flag that enforces no undefined symbols.
17577no_undefined_flag=$lt_no_undefined_flag
17578
17579# Flag to hardcode \$libdir into a binary during linking.
17580# This must work even if \$libdir does not exist
17581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17582
17583# If ld is used when linking, flag to hardcode \$libdir into a binary
17584# during linking. This must work even if \$libdir does not exist.
17585hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17586
17587# Whether we need a single "-rpath" flag with a separated argument.
17588hardcode_libdir_separator=$lt_hardcode_libdir_separator
17589
17590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17591# DIR into the resulting binary.
17592hardcode_direct=$hardcode_direct
17593
17594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17595# DIR into the resulting binary and the resulting library dependency is
17596# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17597# library is relocated.
17598hardcode_direct_absolute=$hardcode_direct_absolute
17599
17600# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17601# into the resulting binary.
17602hardcode_minus_L=$hardcode_minus_L
17603
17604# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17605# into the resulting binary.
17606hardcode_shlibpath_var=$hardcode_shlibpath_var
17607
17608# Set to "yes" if building a shared library automatically hardcodes DIR
17609# into the library and all subsequent libraries and executables linked
17610# against it.
17611hardcode_automatic=$hardcode_automatic
17612
17613# Set to yes if linker adds runtime paths of dependent libraries
17614# to runtime path list.
17615inherit_rpath=$inherit_rpath
17616
17617# Whether libtool must link a program against all its dependency libraries.
17618link_all_deplibs=$link_all_deplibs
17619
17620# Fix the shell variable \$srcfile for the compiler.
17621fix_srcfile_path=$lt_fix_srcfile_path
17622
17623# Set to "yes" if exported symbols are required.
17624always_export_symbols=$always_export_symbols
17625
17626# The commands to list exported symbols.
17627export_symbols_cmds=$lt_export_symbols_cmds
17628
17629# Symbols that should not be listed in the preloaded symbols.
17630exclude_expsyms=$lt_exclude_expsyms
17631
17632# Symbols that must always be exported.
17633include_expsyms=$lt_include_expsyms
17634
17635# Commands necessary for linking programs (against libraries) with templates.
17636prelink_cmds=$lt_prelink_cmds
17637
17638# Specify filename containing input files.
17639file_list_spec=$lt_file_list_spec
17640
17641# How to hardcode a shared library path into an executable.
17642hardcode_action=$hardcode_action
17643
17644# ### END LIBTOOL CONFIG
17645
17646_LT_EOF
17647
17648 case $host_os in
17649 aix3*)
17650 cat <<\_LT_EOF >> "$cfgfile"
17651# AIX sometimes has problems with the GCC collect2 program. For some
17652# reason, if we set the COLLECT_NAMES environment variable, the problems
17653# vanish in a puff of smoke.
17654if test "X${COLLECT_NAMES+set}" != Xset; then
17655 COLLECT_NAMES=
17656 export COLLECT_NAMES
17657fi
17658_LT_EOF
17659 ;;
17660 esac
17661
17662
17663ltmain="$ac_aux_dir/ltmain.sh"
17664
17665
17666 # We use sed instead of cat because bash on DJGPP gets confused if
17667 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17668 # text mode, it properly converts lines to CR/LF. This bash problem
17669 # is reportedly fixed, but why not run on old versions too?
17670 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17671 || (rm -f "$cfgfile"; exit 1)
17672
17673 case $xsi_shell in
17674 yes)
17675 cat << \_LT_EOF >> "$cfgfile"
17676
17677# func_dirname file append nondir_replacement
17678# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17679# otherwise set result to NONDIR_REPLACEMENT.
17680func_dirname ()
17681{
17682 case ${1} in
17683 */*) func_dirname_result="${1%/*}${2}" ;;
17684 * ) func_dirname_result="${3}" ;;
17685 esac
17686}
17687
17688# func_basename file
17689func_basename ()
17690{
17691 func_basename_result="${1##*/}"
17692}
17693
17694# func_dirname_and_basename file append nondir_replacement
17695# perform func_basename and func_dirname in a single function
17696# call:
17697# dirname: Compute the dirname of FILE. If nonempty,
17698# add APPEND to the result, otherwise set result
17699# to NONDIR_REPLACEMENT.
17700# value returned in "$func_dirname_result"
17701# basename: Compute filename of FILE.
17702# value retuned in "$func_basename_result"
17703# Implementation must be kept synchronized with func_dirname
17704# and func_basename. For efficiency, we do not delegate to
17705# those functions but instead duplicate the functionality here.
17706func_dirname_and_basename ()
17707{
17708 case ${1} in
17709 */*) func_dirname_result="${1%/*}${2}" ;;
17710 * ) func_dirname_result="${3}" ;;
17711 esac
17712 func_basename_result="${1##*/}"
17713}
17714
17715# func_stripname prefix suffix name
17716# strip PREFIX and SUFFIX off of NAME.
17717# PREFIX and SUFFIX must not contain globbing or regex special
17718# characters, hashes, percent signs, but SUFFIX may contain a leading
17719# dot (in which case that matches only a dot).
17720func_stripname ()
17721{
17722 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17723 # positional parameters, so assign one to ordinary parameter first.
17724 func_stripname_result=${3}
17725 func_stripname_result=${func_stripname_result#"${1}"}
17726 func_stripname_result=${func_stripname_result%"${2}"}
17727}
17728
17729# func_opt_split
17730func_opt_split ()
17731{
17732 func_opt_split_opt=${1%%=*}
17733 func_opt_split_arg=${1#*=}
17734}
17735
17736# func_lo2o object
17737func_lo2o ()
17738{
17739 case ${1} in
17740 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17741 *) func_lo2o_result=${1} ;;
17742 esac
17743}
17744
17745# func_xform libobj-or-source
17746func_xform ()
17747{
17748 func_xform_result=${1%.*}.lo
17749}
17750
17751# func_arith arithmetic-term...
17752func_arith ()
17753{
17754 func_arith_result=$(( $* ))
17755}
17756
17757# func_len string
17758# STRING may not start with a hyphen.
17759func_len ()
17760{
17761 func_len_result=${#1}
17762}
17763
17764_LT_EOF
17765 ;;
17766 *) # Bourne compatible functions.
17767 cat << \_LT_EOF >> "$cfgfile"
17768
17769# func_dirname file append nondir_replacement
17770# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17771# otherwise set result to NONDIR_REPLACEMENT.
17772func_dirname ()
17773{
17774 # Extract subdirectory from the argument.
17775 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17776 if test "X$func_dirname_result" = "X${1}"; then
17777 func_dirname_result="${3}"
17778 else
17779 func_dirname_result="$func_dirname_result${2}"
17780 fi
17781}
17782
17783# func_basename file
17784func_basename ()
17785{
17786 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17787}
17788
17789
17790# func_stripname prefix suffix name
17791# strip PREFIX and SUFFIX off of NAME.
17792# PREFIX and SUFFIX must not contain globbing or regex special
17793# characters, hashes, percent signs, but SUFFIX may contain a leading
17794# dot (in which case that matches only a dot).
17795# func_strip_suffix prefix name
17796func_stripname ()
17797{
17798 case ${2} in
17799 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17800 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17801 esac
17802}
17803
17804# sed scripts:
17805my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17806my_sed_long_arg='1s/^-[^=]*=//'
17807
17808# func_opt_split
17809func_opt_split ()
17810{
17811 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17812 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17813}
17814
17815# func_lo2o object
17816func_lo2o ()
17817{
17818 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17819}
17820
17821# func_xform libobj-or-source
17822func_xform ()
17823{
17824 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17825}
17826
17827# func_arith arithmetic-term...
17828func_arith ()
17829{
17830 func_arith_result=`expr "$@"`
17831}
17832
17833# func_len string
17834# STRING may not start with a hyphen.
17835func_len ()
17836{
17837 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17838}
17839
17840_LT_EOF
17841esac
17842
17843case $lt_shell_append in
17844 yes)
17845 cat << \_LT_EOF >> "$cfgfile"
17846
17847# func_append var value
17848# Append VALUE to the end of shell variable VAR.
17849func_append ()
17850{
17851 eval "$1+=\$2"
17852}
17853_LT_EOF
17854 ;;
17855 *)
17856 cat << \_LT_EOF >> "$cfgfile"
17857
17858# func_append var value
17859# Append VALUE to the end of shell variable VAR.
17860func_append ()
17861{
17862 eval "$1=\$$1\$2"
17863}
17864
17865_LT_EOF
17866 ;;
17867 esac
17868
17869
17870 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17871 || (rm -f "$cfgfile"; exit 1)
17872
17873 mv -f "$cfgfile" "$ofile" ||
17874 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17875 chmod +x "$ofile"
17876
17877
17878 cat <<_LT_EOF >> "$ofile"
17879
17880# ### BEGIN LIBTOOL TAG CONFIG: D
17881
17882# The linker used to build libraries.
17883LD=$lt_LD_D
17884
17885# How to create reloadable object files.
17886reload_flag=$lt_reload_flag_D
17887reload_cmds=$lt_reload_cmds_D
17888
17889# Commands used to build an old-style archive.
17890old_archive_cmds=$lt_old_archive_cmds_D
17891
17892# A language specific compiler.
17893CC=$lt_compiler_D
17894
17895# Is the compiler the GNU compiler?
17896with_gcc=$GCC_D
17897
17898# Compiler flag to turn off builtin functions.
17899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17900
17901# How to pass a linker flag through the compiler.
17902wl=$lt_lt_prog_compiler_wl_D
17903
17904# Additional compiler flags for building library objects.
17905pic_flag=$lt_lt_prog_compiler_pic_D
17906
17907# Compiler flag to prevent dynamic linking.
17908link_static_flag=$lt_lt_prog_compiler_static_D
17909
17910# Does compiler simultaneously support -c and -o options?
17911compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17912
17913# Whether or not to add -lc for building shared libraries.
17914build_libtool_need_lc=$archive_cmds_need_lc_D
17915
17916# Whether or not to disallow shared libs when runtime libs are static.
17917allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17918
17919# Compiler flag to allow reflexive dlopens.
17920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17921
17922# Compiler flag to generate shared objects directly from archives.
17923whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17924
17925# Whether the compiler copes with passing no objects directly.
17926compiler_needs_object=$lt_compiler_needs_object_D
17927
17928# Create an old-style archive from a shared archive.
17929old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17930
17931# Create a temporary old-style archive to link instead of a shared archive.
17932old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17933
17934# Commands used to build a shared archive.
17935archive_cmds=$lt_archive_cmds_D
17936archive_expsym_cmds=$lt_archive_expsym_cmds_D
17937
17938# Commands used to build a loadable module if different from building
17939# a shared archive.
17940module_cmds=$lt_module_cmds_D
17941module_expsym_cmds=$lt_module_expsym_cmds_D
17942
17943# Whether we are building with GNU ld or not.
17944with_gnu_ld=$lt_with_gnu_ld_D
17945
17946# Flag that allows shared libraries with undefined symbols to be built.
17947allow_undefined_flag=$lt_allow_undefined_flag_D
17948
17949# Flag that enforces no undefined symbols.
17950no_undefined_flag=$lt_no_undefined_flag_D
17951
17952# Flag to hardcode \$libdir into a binary during linking.
17953# This must work even if \$libdir does not exist
17954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17955
17956# If ld is used when linking, flag to hardcode \$libdir into a binary
17957# during linking. This must work even if \$libdir does not exist.
17958hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17959
17960# Whether we need a single "-rpath" flag with a separated argument.
17961hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17962
17963# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17964# DIR into the resulting binary.
17965hardcode_direct=$hardcode_direct_D
17966
17967# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17968# DIR into the resulting binary and the resulting library dependency is
17969# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17970# library is relocated.
17971hardcode_direct_absolute=$hardcode_direct_absolute_D
17972
17973# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17974# into the resulting binary.
17975hardcode_minus_L=$hardcode_minus_L_D
17976
17977# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17978# into the resulting binary.
17979hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17980
17981# Set to "yes" if building a shared library automatically hardcodes DIR
17982# into the library and all subsequent libraries and executables linked
17983# against it.
17984hardcode_automatic=$hardcode_automatic_D
17985
17986# Set to yes if linker adds runtime paths of dependent libraries
17987# to runtime path list.
17988inherit_rpath=$inherit_rpath_D
17989
17990# Whether libtool must link a program against all its dependency libraries.
17991link_all_deplibs=$link_all_deplibs_D
17992
17993# Fix the shell variable \$srcfile for the compiler.
17994fix_srcfile_path=$lt_fix_srcfile_path_D
17995
17996# Set to "yes" if exported symbols are required.
17997always_export_symbols=$always_export_symbols_D
17998
17999# The commands to list exported symbols.
18000export_symbols_cmds=$lt_export_symbols_cmds_D
18001
18002# Symbols that should not be listed in the preloaded symbols.
18003exclude_expsyms=$lt_exclude_expsyms_D
18004
18005# Symbols that must always be exported.
18006include_expsyms=$lt_include_expsyms_D
18007
18008# Commands necessary for linking programs (against libraries) with templates.
18009prelink_cmds=$lt_prelink_cmds_D
18010
18011# Specify filename containing input files.
18012file_list_spec=$lt_file_list_spec_D
18013
18014# How to hardcode a shared library path into an executable.
18015hardcode_action=$hardcode_action_D
18016
18017# ### END LIBTOOL TAG CONFIG: D
18018_LT_EOF
18019
18020 ;;
18021 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
ac67752d
IB
18022 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18023s!`test -f '$<' || echo '$(srcdir)/'`!!
b4c522fa 18024_EOF
ac67752d
IB
18025 sed -f vpsed$$ $ac_file > tmp$$
18026 mv tmp$$ $ac_file
18027 rm vpsed$$
18028 echo 'MULTISUBDIR =' >> $ac_file
18029 ml_norecursion=yes
18030 . ${multi_basedir}/config-ml.in
18031 { ml_norecursion=; unset ml_norecursion;}
18032 ;;
18033 "src/Makefile":F) cat > vpsed$$ << \_EOF
18034s!`test -f '$<' || echo '$(srcdir)/'`!!
18035_EOF
18036 sed -f vpsed$$ $ac_file > tmp$$
18037 mv tmp$$ $ac_file
18038 rm vpsed$$
18039 echo 'MULTISUBDIR =' >> $ac_file
18040 ml_norecursion=yes
18041 . ${multi_basedir}/config-ml.in
18042 { ml_norecursion=; unset ml_norecursion;}
18043 ;;
18044 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18045s!`test -f '$<' || echo '$(srcdir)/'`!!
18046_EOF
18047 sed -f vpsed$$ $ac_file > tmp$$
18048 mv tmp$$ $ac_file
18049 rm vpsed$$
18050 echo 'MULTISUBDIR =' >> $ac_file
18051 ml_norecursion=yes
18052 . ${multi_basedir}/config-ml.in
18053 { ml_norecursion=; unset ml_norecursion;}
b4c522fa
IB
18054 ;;
18055
18056 esac
18057done # for ac_tag
18058
18059
18060as_fn_exit 0
18061_ACEOF
18062ac_clean_files=$ac_clean_files_save
18063
18064test $ac_write_fail = 0 ||
22e05272 18065 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
18066
18067
18068# configure is writing to config.log, and then calls config.status.
18069# config.status does its own redirection, appending to config.log.
18070# Unfortunately, on DOS this fails, as config.log is still kept open
18071# by configure, so config.status won't be able to write to it; its
18072# output is simply discarded. So we exec the FD to /dev/null,
18073# effectively closing config.log, so it can be properly (re)opened and
18074# appended to by config.status. When coming back to configure, we
18075# need to make the FD available again.
18076if test "$no_create" != yes; then
18077 ac_cs_success=:
18078 ac_config_status_args=
18079 test "$silent" = yes &&
18080 ac_config_status_args="$ac_config_status_args --quiet"
18081 exec 5>/dev/null
18082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18083 exec 5>>config.log
18084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18085 # would make configure fail if this is the last instruction.
22e05272 18086 $ac_cs_success || as_fn_exit 1
b4c522fa
IB
18087fi
18088if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18090$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18091fi
18092