]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[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#
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
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
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
636GDCFLAGSX
637PHOBOS_SOVERSION
638DRUNTIME_SOVERSION
639SPEC_PHOBOS_DEPS
640gdc_include_dir
641toolexeclibdir
642toolexecdir
643gcc_version
644DRUNTIME_ZLIB_SYSTEM_FALSE
645DRUNTIME_ZLIB_SYSTEM_TRUE
646BACKTRACE_SUPPORTS_THREADS
647BACKTRACE_USES_MALLOC
648BACKTRACE_SUPPORTED
649LIBBACKTRACE
650LIBATOMIC
651DCFG_HAVE_LIBATOMIC
652DCFG_HAVE_64BIT_ATOMICS
653DCFG_HAVE_ATOMIC_BUILTINS
654DCFG_MINFO_BRACKETING
655DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
656DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
657DCFG_ARM_EABI_UNWINDER
658DCFG_THREAD_MODEL
659DRUNTIME_OS_SOLARIS_FALSE
660DRUNTIME_OS_SOLARIS_TRUE
661DRUNTIME_OS_MINGW_FALSE
662DRUNTIME_OS_MINGW_TRUE
663DRUNTIME_OS_LINUX_FALSE
664DRUNTIME_OS_LINUX_TRUE
665DRUNTIME_OS_OPENBSD_FALSE
666DRUNTIME_OS_OPENBSD_TRUE
667DRUNTIME_OS_NETBSD_FALSE
668DRUNTIME_OS_NETBSD_TRUE
669DRUNTIME_OS_FREEBSD_FALSE
670DRUNTIME_OS_FREEBSD_TRUE
671DRUNTIME_OS_DRAGONFLYBSD_FALSE
672DRUNTIME_OS_DRAGONFLYBSD_TRUE
673DRUNTIME_OS_DARWIN_FALSE
674DRUNTIME_OS_DARWIN_TRUE
675DRUNTIME_OS_ANDROID_FALSE
676DRUNTIME_OS_ANDROID_TRUE
677DRUNTIME_OS_AIX_FALSE
678DRUNTIME_OS_AIX_TRUE
679DRUNTIME_OS_UNIX_FALSE
680DRUNTIME_OS_UNIX_TRUE
681DRUNTIME_GC_ENABLE_FALSE
682DRUNTIME_GC_ENABLE_TRUE
683libphobos_srcdir
684libphobos_builddir
685get_gcc_base_ver
686phobos_compiler_shared_flag
687phobos_compiler_pic_flag
688ENABLE_STATIC_FALSE
689ENABLE_STATIC_TRUE
690ENABLE_SHARED_FALSE
691ENABLE_SHARED_TRUE
692CPP
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
708LIBTOOL
709CFLAGS_FOR_BUILD
710CC_FOR_BUILD
711AR
712RANLIB
713MAINT
714MAINTAINER_MODE_FALSE
715MAINTAINER_MODE_TRUE
716GDCFLAGS
717GDC
718CCASFLAGS
719CCAS
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
22e05272
JM
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
b4c522fa
IB
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_os
755target_vendor
756target_cpu
757target
758host_os
759host_vendor
760host_cpu
761host
762build_os
763build_vendor
764build_cpu
765build
766multi_basedir
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786localstatedir
787sharedstatedir
788sysconfdir
789datadir
790datarootdir
791libexecdir
792sbindir
793bindir
794program_transform_name
795prefix
796exec_prefix
797PACKAGE_URL
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
805ac_subst_files=''
806ac_user_opts='
807enable_option_checking
808enable_multilib
22e05272 809enable_silent_rules
b4c522fa
IB
810enable_maintainer_mode
811enable_shared
812enable_static
813with_pic
814enable_fast_install
815with_gnu_ld
816enable_libtool_lock
817with_gcc_major_version_only
818enable_werror
819enable_druntime_gc
820enable_unix
821enable_thread_lib
822with_libatomic
823with_libbacktrace
824with_target_system_zlib
825with_cross_host
826'
827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CPP
831CPPFLAGS'
832
833
834# Initialize some variables set by options.
835ac_init_help=
836ac_init_version=false
837ac_unrecognized_opts=
838ac_unrecognized_sep=
839# The variables have the same names as the options, with
840# dashes changed to underlines.
841cache_file=/dev/null
842exec_prefix=NONE
843no_create=
844no_recursion=
845prefix=NONE
846program_prefix=NONE
847program_suffix=NONE
848program_transform_name=s,x,x,
849silent=
850site=
851srcdir=
852verbose=
853x_includes=NONE
854x_libraries=NONE
855
856# Installation directory options.
857# These are left unexpanded so users can "make install exec_prefix=/foo"
858# and all the variables that are supposed to be based on exec_prefix
859# by default will actually change.
860# Use braces instead of parens because sh, perl, etc. also accept them.
861# (The list follows the same order as the GNU Coding Standards.)
862bindir='${exec_prefix}/bin'
863sbindir='${exec_prefix}/sbin'
864libexecdir='${exec_prefix}/libexec'
865datarootdir='${prefix}/share'
866datadir='${datarootdir}'
867sysconfdir='${prefix}/etc'
868sharedstatedir='${prefix}/com'
869localstatedir='${prefix}/var'
870includedir='${prefix}/include'
871oldincludedir='/usr/include'
872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
881
882ac_prev=
883ac_dashdash=
884for ac_option
885do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
22e05272
JM
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
b4c522fa
IB
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 941 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946"enable_$ac_useropt"
947"*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 967 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972"enable_$ac_useropt"
973"*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1171 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1187 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192"with_$ac_useropt"
1193"*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
22e05272
JM
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218Try \`$0 --help' for more information"
b4c522fa
IB
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b4c522fa
IB
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b4c522fa
IB
1237 ;;
1238
1239 esac
1240done
1241
1242if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1244 as_fn_error $? "missing argument to $ac_option"
b4c522fa
IB
1245fi
1246
1247if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
22e05272 1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
b4c522fa
IB
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253fi
1254
1255# Check all directory arguments for consistency.
1256for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
22e05272 1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b4c522fa
IB
1274done
1275
1276# There might be people who depend on the old broken behavior: `$host'
1277# used to hold the argument of --host etc.
1278# FIXME: To remove some day.
1279build=$build_alias
1280host=$host_alias
1281target=$target_alias
1282
1283# FIXME: To remove some day.
1284if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
b4c522fa
IB
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
1296
1297
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1301 as_fn_error $? "working directory cannot be determined"
b4c522fa 1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1303 as_fn_error $? "pwd does not report name of working directory"
b4c522fa
IB
1304
1305
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b4c522fa
IB
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
22e05272 1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b4c522fa
IB
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1358for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
22e05272 1386 -q, --quiet, --silent do not print \`checking ...' messages
b4c522fa
IB
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425_ACEOF
1426
1427 cat <<\_ACEOF
1428
1429Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438_ACEOF
1439fi
1440
1441if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of package-unused version-unused:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-multilib build many library versions (default)
22e05272
JM
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
b4c522fa
IB
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-werror turns on -Werror [default=no]
1463 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1464 --enable-unix enables Unix runtime (default: yes, for Unix
1465 targets)
1466 --enable-thread-lib=<arg>
1467 specify linker option for the system thread library
1468 (default: autodetect)
1469
1470Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pic try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-gcc-major-version-only
1477 use only GCC major number in filesystem paths
1478 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1479 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1480 auto)
1481 --with-target-system-zlib
1482 use installed libz (default: no)
1483 --with-cross-host=HOST configuring with a cross compiler
1484
1485Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b4c522fa
IB
1492 you have headers in a nonstandard directory <include dir>
1493 CCAS assembler compiler command (defaults to CC)
1494 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1495 GDC D compiler command
1496 GDCFLAGS D compiler flags
1497 CPP C preprocessor
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to the package provider.
1503_ACEOF
1504ac_status=$?
1505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515case "$ac_dir" in
1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517*)
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525esac
1526ac_abs_top_builddir=$ac_pwd
1527ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528# for backward compatibility:
1529ac_top_builddir=$ac_top_build_prefix
1530
1531case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544esac
1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1560fi
1561
1562test -n "$ac_init_help" && exit $ac_status
1563if $ac_init_version; then
1564 cat <<\_ACEOF
1565package-unused configure version-unused
22e05272 1566generated by GNU Autoconf 2.69
b4c522fa 1567
22e05272 1568Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572 exit
1573fi
1574
1575## ------------------------ ##
1576## Autoconf initialization. ##
1577## ------------------------ ##
1578
1579# ac_fn_c_try_compile LINENO
1580# --------------------------
1581# Try to compile conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_compile ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611fi
22e05272
JM
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
b4c522fa
IB
1614
1615} # ac_fn_c_try_compile
1616
1617# ac_fn_d_try_compile LINENO
1618# --------------------------
1619# Try to compile conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_d_try_compile ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_d_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649fi
22e05272
JM
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
b4c522fa
IB
1652
1653} # ac_fn_d_try_compile
1654
1655# ac_fn_c_try_link LINENO
1656# -----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_link ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
22e05272 1682 test -x conftest$ac_exeext
b4c522fa
IB
1683 }; then :
1684 ac_retval=0
1685else
1686 $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690fi
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
b4c522fa
IB
1698
1699} # ac_fn_c_try_link
1700
1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702# -------------------------------------------------------
1703# Tests whether HEADER exists and can be compiled using the include files in
1704# INCLUDES, setting the cache variable VAR accordingly.
1705ac_fn_c_check_header_compile ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
22e05272 1710if eval \${$3+:} false; then :
b4c522fa
IB
1711 $as_echo_n "(cached) " >&6
1712else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h. */
1715$4
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719 eval "$3=yes"
1720else
1721 eval "$3=no"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
22e05272 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1729
1730} # ac_fn_c_check_header_compile
1731
1732# ac_fn_c_try_cpp LINENO
1733# ----------------------
1734# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_cpp ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1753 test $ac_status = 0; } > conftest.i && {
b4c522fa
IB
1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 }; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763fi
22e05272
JM
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
b4c522fa
IB
1766
1767} # ac_fn_c_try_cpp
1768
1769# ac_fn_c_try_run LINENO
1770# ----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772# that executables *can* be run.
1773ac_fn_c_try_run ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1784 ac_status=$?
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=$ac_status
1804fi
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
b4c522fa
IB
1808
1809} # ac_fn_c_try_run
1810
1811# ac_fn_c_check_func LINENO FUNC VAR
1812# ----------------------------------
1813# Tests whether FUNC exists, setting the cache variable VAR accordingly
1814ac_fn_c_check_func ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
22e05272 1819if eval \${$3+:} false; then :
b4c522fa
IB
1820 $as_echo_n "(cached) " >&6
1821else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826#define $2 innocuous_$2
1827
1828/* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1832
1833#ifdef __STDC__
1834# include <limits.h>
1835#else
1836# include <assert.h>
1837#endif
1838
1839#undef $2
1840
1841/* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844#ifdef __cplusplus
1845extern "C"
1846#endif
1847char $2 ();
1848/* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851#if defined __stub_$2 || defined __stub___$2
1852choke me
1853#endif
1854
1855int
1856main ()
1857{
1858return $2 ();
1859 ;
1860 return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865else
1866 eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
22e05272 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1875
1876} # ac_fn_c_check_func
1877
1878# ac_fn_d_try_link LINENO
1879# -----------------------
1880# Try to link conftest.$ac_ext, and return whether this succeeded.
1881ac_fn_d_try_link ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1886case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_d_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest$ac_exeext && {
1904 test "$cross_compiling" = yes ||
22e05272 1905 test -x conftest$ac_exeext
b4c522fa
IB
1906 }; then :
1907 ac_retval=0
1908else
1909 $as_echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=1
1913fi
1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916 # interfere with the next link command; also delete a directory that is
1917 # left behind by Apple's compiler. We do this before executing the actions.
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
b4c522fa
IB
1921
1922} # ac_fn_d_try_link
1923
1924# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925# -------------------------------------------------------
1926# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927# the include files in INCLUDES and setting the cache variable VAR
1928# accordingly.
1929ac_fn_c_check_header_mongrel ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1932 if eval \${$3+:} false; then :
b4c522fa
IB
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
1937fi
1938eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941else
1942 # Is the header compilable?
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944$as_echo_n "checking $2 usability... " >&6; }
1945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h. */
1947$4
1948#include <$2>
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1952else
1953 ac_header_compiler=no
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957$as_echo "$ac_header_compiler" >&6; }
1958
1959# Is the header present?
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961$as_echo_n "checking $2 presence... " >&6; }
1962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964#include <$2>
1965_ACEOF
1966if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1968else
1969 ac_header_preproc=no
1970fi
22e05272 1971rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973$as_echo "$ac_header_preproc" >&6; }
1974
1975# So? What about this header?
1976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977 yes:no: )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 ;;
1983 no:yes:* )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995esac
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
22e05272 1998if eval \${$3+:} false; then :
b4c522fa
IB
1999 $as_echo_n "(cached) " >&6
2000else
2001 eval "$3=\$ac_header_compiler"
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006fi
22e05272 2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
2008
2009} # ac_fn_c_check_header_mongrel
2010cat >config.log <<_ACEOF
2011This file contains any messages produced by compilers while
2012running configure, to aid debugging if configure makes a mistake.
2013
2014It was created by package-unused $as_me version-unused, which was
22e05272 2015generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
2016
2017 $ $0 $@
2018
2019_ACEOF
2020exec 5>>config.log
2021{
2022cat <<_ASUNAME
2023## --------- ##
2024## Platform. ##
2025## --------- ##
2026
2027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2028uname -m = `(uname -m) 2>/dev/null || echo unknown`
2029uname -r = `(uname -r) 2>/dev/null || echo unknown`
2030uname -s = `(uname -s) 2>/dev/null || echo unknown`
2031uname -v = `(uname -v) 2>/dev/null || echo unknown`
2032
2033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2035
2036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2039/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2043
2044_ASUNAME
2045
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 $as_echo "PATH: $as_dir"
2052 done
2053IFS=$as_save_IFS
2054
2055} >&5
2056
2057cat >&5 <<_ACEOF
2058
2059
2060## ----------- ##
2061## Core tests. ##
2062## ----------- ##
2063
2064_ACEOF
2065
2066
2067# Keep a trace of the command line.
2068# Strip out --no-create and --no-recursion so they do not pile up.
2069# Strip out --silent because we don't want to record it for future runs.
2070# Also quote any args containing shell meta-characters.
2071# Make two passes to allow for proper duplicate-argument suppression.
2072ac_configure_args=
2073ac_configure_args0=
2074ac_configure_args1=
2075ac_must_keep_next=false
2076for ac_pass in 1 2
2077do
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083 | -silent | --silent | --silen | --sile | --sil)
2084 continue ;;
2085 *\'*)
2086 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 case $ac_pass in
2089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090 2)
2091 as_fn_append ac_configure_args1 " '$ac_arg'"
2092 if test $ac_must_keep_next = true; then
2093 ac_must_keep_next=false # Got value, back to normal.
2094 else
2095 case $ac_arg in
2096 *=* | --config-cache | -C | -disable-* | --disable-* \
2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099 | -with-* | --with-* | -without-* | --without-* | --x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 esac
2103 ;;
2104 -* ) ac_must_keep_next=true ;;
2105 esac
2106 fi
2107 as_fn_append ac_configure_args " '$ac_arg'"
2108 ;;
2109 esac
2110 done
2111done
2112{ ac_configure_args0=; unset ac_configure_args0;}
2113{ ac_configure_args1=; unset ac_configure_args1;}
2114
2115# When interrupted or exit'd, cleanup temporary files, and complete
2116# config.log. We remove comments because anyway the quotes in there
2117# would cause problems or look ugly.
2118# WARNING: Use '\'' to represent an apostrophe within the trap.
2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120trap 'exit_status=$?
2121 # Save into config.log some information that might help in debugging.
2122 {
2123 echo
2124
22e05272 2125 $as_echo "## ---------------- ##
b4c522fa 2126## Cache variables. ##
22e05272 2127## ---------------- ##"
b4c522fa
IB
2128 echo
2129 # The following way of writing the cache mishandles newlines in values,
2130(
2131 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in #(
2134 *${as_nl}*)
2135 case $ac_var in #(
2136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138 esac
2139 case $ac_var in #(
2140 _ | IFS | as_nl) ;; #(
2141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142 *) { eval $ac_var=; unset $ac_var;} ;;
2143 esac ;;
2144 esac
2145 done
2146 (set) 2>&1 |
2147 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148 *${as_nl}ac_space=\ *)
2149 sed -n \
2150 "s/'\''/'\''\\\\'\'''\''/g;
2151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152 ;; #(
2153 *)
2154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155 ;;
2156 esac |
2157 sort
2158)
2159 echo
2160
22e05272 2161 $as_echo "## ----------------- ##
b4c522fa 2162## Output variables. ##
22e05272 2163## ----------------- ##"
b4c522fa
IB
2164 echo
2165 for ac_var in $ac_subst_vars
2166 do
2167 eval ac_val=\$$ac_var
2168 case $ac_val in
2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 esac
2171 $as_echo "$ac_var='\''$ac_val'\''"
2172 done | sort
2173 echo
2174
2175 if test -n "$ac_subst_files"; then
22e05272 2176 $as_echo "## ------------------- ##
b4c522fa 2177## File substitutions. ##
22e05272 2178## ------------------- ##"
b4c522fa
IB
2179 echo
2180 for ac_var in $ac_subst_files
2181 do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in
2184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185 esac
2186 $as_echo "$ac_var='\''$ac_val'\''"
2187 done | sort
2188 echo
2189 fi
2190
2191 if test -s confdefs.h; then
22e05272 2192 $as_echo "## ----------- ##
b4c522fa 2193## confdefs.h. ##
22e05272 2194## ----------- ##"
b4c522fa
IB
2195 echo
2196 cat confdefs.h
2197 echo
2198 fi
2199 test "$ac_signal" != 0 &&
2200 $as_echo "$as_me: caught signal $ac_signal"
2201 $as_echo "$as_me: exit $exit_status"
2202 } >&5
2203 rm -f core *.core core.conftest.* &&
2204 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2205 exit $exit_status
2206' 0
2207for ac_signal in 1 2 13 15; do
2208 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2209done
2210ac_signal=0
2211
2212# confdefs.h avoids OS command line length limits that DEFS can exceed.
2213rm -f -r conftest* confdefs.h
2214
2215$as_echo "/* confdefs.h */" > confdefs.h
2216
2217# Predefined preprocessor variables.
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_NAME "$PACKAGE_NAME"
2221_ACEOF
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_VERSION "$PACKAGE_VERSION"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_STRING "$PACKAGE_STRING"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_URL "$PACKAGE_URL"
2241_ACEOF
2242
2243
2244# Let the site file select an alternate cache file if it wants to.
2245# Prefer an explicitly selected file to automatically selected ones.
2246ac_site_file1=NONE
2247ac_site_file2=NONE
2248if test -n "$CONFIG_SITE"; then
22e05272
JM
2249 # We do not want a PATH search for config.site.
2250 case $CONFIG_SITE in #((
2251 -*) ac_site_file1=./$CONFIG_SITE;;
2252 */*) ac_site_file1=$CONFIG_SITE;;
2253 *) ac_site_file1=./$CONFIG_SITE;;
2254 esac
b4c522fa
IB
2255elif test "x$prefix" != xNONE; then
2256 ac_site_file1=$prefix/share/config.site
2257 ac_site_file2=$prefix/etc/config.site
2258else
2259 ac_site_file1=$ac_default_prefix/share/config.site
2260 ac_site_file2=$ac_default_prefix/etc/config.site
2261fi
2262for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2263do
2264 test "x$ac_site_file" = xNONE && continue
22e05272 2265 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b4c522fa
IB
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2267$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2268 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2269 . "$ac_site_file" \
2270 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272as_fn_error $? "failed to load site script $ac_site_file
2273See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2274 fi
2275done
2276
2277if test -r "$cache_file"; then
22e05272
JM
2278 # Some versions of bash will fail to source /dev/null (special files
2279 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2280 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b4c522fa
IB
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282$as_echo "$as_me: loading cache $cache_file" >&6;}
2283 case $cache_file in
2284 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2285 *) . "./$cache_file";;
2286 esac
2287 fi
2288else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290$as_echo "$as_me: creating cache $cache_file" >&6;}
2291 >$cache_file
2292fi
2293
2294# Check that the precious variables saved in the cache have kept the same
2295# value.
2296ac_cache_corrupted=false
2297for ac_var in $ac_precious_vars; do
2298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2299 eval ac_new_set=\$ac_env_${ac_var}_set
2300 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2301 eval ac_new_val=\$ac_env_${ac_var}_value
2302 case $ac_old_set,$ac_new_set in
2303 set,)
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2305$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2307 ,set)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2311 ,);;
2312 *)
2313 if test "x$ac_old_val" != "x$ac_new_val"; then
2314 # differences in whitespace do not lead to failure.
2315 ac_old_val_w=`echo x $ac_old_val`
2316 ac_new_val_w=`echo x $ac_new_val`
2317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2320 ac_cache_corrupted=:
2321 else
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2323$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324 eval $ac_var=\$ac_old_val
2325 fi
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2327$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2329$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2330 fi;;
2331 esac
2332 # Pass precious variables to config.status.
2333 if test "$ac_new_set" = set; then
2334 case $ac_new_val in
2335 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 *) ac_arg=$ac_var=$ac_new_val ;;
2337 esac
2338 case " $ac_configure_args " in
2339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2340 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2341 esac
2342 fi
2343done
2344if $ac_cache_corrupted; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2349 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b4c522fa
IB
2350fi
2351## -------------------- ##
2352## Main body of script. ##
2353## -------------------- ##
2354
2355ac_ext=c
2356ac_cpp='$CPP $CPPFLAGS'
2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362
2363
2364
2365
2366ac_config_headers="$ac_config_headers config.h"
2367
2368
2369# Default to --enable-multilib
2370# Check whether --enable-multilib was given.
2371if test "${enable_multilib+set}" = set; then :
2372 enableval=$enable_multilib; case "$enableval" in
2373 yes) multilib=yes ;;
2374 no) multilib=no ;;
22e05272 2375 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
b4c522fa
IB
2376 esac
2377else
2378 multilib=yes
2379fi
2380
2381
2382# We may get other options which we leave undocumented:
2383# --with-target-subdir, --with-multisrctop, --with-multisubdir
2384# See config-ml.in if you want the gory details.
2385
2386if test "$srcdir" = "."; then
2387 if test "$with_target_subdir" != "."; then
2388 multi_basedir="$srcdir/$with_multisrctop../.."
2389 else
2390 multi_basedir="$srcdir/$with_multisrctop.."
2391 fi
2392else
2393 multi_basedir="$srcdir/.."
2394fi
2395
2396
2397# Even if the default multilib is not a cross compilation,
2398# it may be that some of the other multilibs are.
2399if test $cross_compiling = no && test $multilib = yes \
2400 && test "x${with_multisubdir}" != x ; then
2401 cross_compiling=maybe
2402fi
2403
2404ac_config_commands="$ac_config_commands default-1"
2405
2406ac_aux_dir=
2407for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2408 if test -f "$ac_dir/install-sh"; then
2409 ac_aux_dir=$ac_dir
2410 ac_install_sh="$ac_aux_dir/install-sh -c"
2411 break
2412 elif test -f "$ac_dir/install.sh"; then
2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/install.sh -c"
2415 break
2416 elif test -f "$ac_dir/shtool"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/shtool install -c"
2419 break
2420 fi
b4c522fa
IB
2421done
2422if test -z "$ac_aux_dir"; then
22e05272 2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b4c522fa
IB
2424fi
2425
2426# These three variables are undocumented and unsupported,
2427# and are intended to be withdrawn in a future Autoconf release.
2428# They can cause serious problems if a builder's source tree is in a directory
2429# whose full name contains unusual characters.
2430ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2433
2434
2435# Make sure we can run config.sub.
2436$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2437 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b4c522fa
IB
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440$as_echo_n "checking build system type... " >&6; }
22e05272 2441if ${ac_cv_build+:} false; then :
b4c522fa
IB
2442 $as_echo_n "(cached) " >&6
2443else
2444 ac_build_alias=$build_alias
2445test "x$ac_build_alias" = x &&
2446 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2447test "x$ac_build_alias" = x &&
22e05272 2448 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b4c522fa 2449ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b4c522fa
IB
2451
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454$as_echo "$ac_cv_build" >&6; }
2455case $ac_cv_build in
2456*-*-*) ;;
22e05272 2457*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b4c522fa
IB
2458esac
2459build=$ac_cv_build
2460ac_save_IFS=$IFS; IFS='-'
2461set x $ac_cv_build
2462shift
2463build_cpu=$1
2464build_vendor=$2
2465shift; shift
2466# Remember, the first character of IFS is used to create $*,
2467# except with old shells:
2468build_os=$*
2469IFS=$ac_save_IFS
2470case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2471
2472
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474$as_echo_n "checking host system type... " >&6; }
22e05272 2475if ${ac_cv_host+:} false; then :
b4c522fa
IB
2476 $as_echo_n "(cached) " >&6
2477else
2478 if test "x$host_alias" = x; then
2479 ac_cv_host=$ac_cv_build
2480else
2481 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b4c522fa
IB
2483fi
2484
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487$as_echo "$ac_cv_host" >&6; }
2488case $ac_cv_host in
2489*-*-*) ;;
22e05272 2490*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b4c522fa
IB
2491esac
2492host=$ac_cv_host
2493ac_save_IFS=$IFS; IFS='-'
2494set x $ac_cv_host
2495shift
2496host_cpu=$1
2497host_vendor=$2
2498shift; shift
2499# Remember, the first character of IFS is used to create $*,
2500# except with old shells:
2501host_os=$*
2502IFS=$ac_save_IFS
2503case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2504
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2507$as_echo_n "checking target system type... " >&6; }
22e05272 2508if ${ac_cv_target+:} false; then :
b4c522fa
IB
2509 $as_echo_n "(cached) " >&6
2510else
2511 if test "x$target_alias" = x; then
2512 ac_cv_target=$ac_cv_host
2513else
2514 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b4c522fa
IB
2516fi
2517
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2520$as_echo "$ac_cv_target" >&6; }
2521case $ac_cv_target in
2522*-*-*) ;;
22e05272 2523*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b4c522fa
IB
2524esac
2525target=$ac_cv_target
2526ac_save_IFS=$IFS; IFS='-'
2527set x $ac_cv_target
2528shift
2529target_cpu=$1
2530target_vendor=$2
2531shift; shift
2532# Remember, the first character of IFS is used to create $*,
2533# except with old shells:
2534target_os=$*
2535IFS=$ac_save_IFS
2536case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2537
2538
2539# The aliases save the names the user supplied, while $host etc.
2540# will get canonicalized.
2541test -n "$target_alias" &&
2542 test "$program_prefix$program_suffix$program_transform_name" = \
2543 NONENONEs,x,x, &&
2544 program_prefix=${target_alias}-
2545
2546
2547target_alias=${target_alias-$target}
2548
2549
2550# 1.11.1: Require that version of automake.
2551# foreign: Don't require README, INSTALL, NEWS, etc.
2552# no-define: Don't define PACKAGE and VERSION.
2553# no-dependencies: Don't generate automatic dependencies.
2554# (because it breaks when using bootstrap-lean, since some of the
2555# headers are gone at "make install" time).
2556# -Wall: Issue all automake warnings.
2557# -Wno-portability: Don't warn about constructs supported by GNU make.
2558# (because GCC requires GNU make anyhow).
22e05272
JM
2559# -Wno-override: Overrides used in testsuite.
2560am__api_version='1.15'
b4c522fa
IB
2561
2562# Find a good install program. We prefer a C program (faster),
2563# so one script is as good as another. But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# OS/2's system install, which has a completely different semantic
2574# ./install, which can be erroneously created by make from ./install.sh.
2575# Reject install programs that cannot install multiple files.
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577$as_echo_n "checking for a BSD-compatible install... " >&6; }
2578if test -z "$INSTALL"; then
22e05272 2579if ${ac_cv_path_install+:} false; then :
b4c522fa
IB
2580 $as_echo_n "(cached) " >&6
2581else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2593 *)
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b4c522fa
IB
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2603 :
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2607 :
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2620 fi
2621 fi
2622 fi
2623 done
2624 done
2625 ;;
2626esac
2627
2628 done
2629IFS=$as_save_IFS
2630
2631rm -rf conftest.one conftest.two conftest.dir
2632
2633fi
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2642 fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645$as_echo "$INSTALL" >&6; }
2646
2647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648# It thinks the first close brace ends the variable substitution.
2649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656$as_echo_n "checking whether build environment is sane... " >&6; }
b4c522fa
IB
2657# Reject unsafe characters in $srcdir or the absolute working directory
2658# name. Accept space and tab only in the latter.
2659am_lf='
2660'
2661case `pwd` in
2662 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
b4c522fa
IB
2664esac
2665case $srcdir in
2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
b4c522fa
IB
2668esac
2669
22e05272 2670# Do 'set' in a subshell so we don't clobber the current shell's
b4c522fa
IB
2671# arguments. Must try -L first in case configure is actually a
2672# symlink; some systems play weird games with the mod time of symlinks
2673# (eg FreeBSD returns the mod time of the symlink's containing
2674# directory).
2675if (
22e05272
JM
2676 am_has_slept=no
2677 for am_try in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.file
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2683 fi
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2693 fi
2694 if test "$2" = conftest.file || test $am_try -eq 2; then
2695 break
2696 fi
2697 # Just in case.
2698 sleep 1
2699 am_has_slept=yes
2700 done
b4c522fa
IB
2701 test "$2" = conftest.file
2702 )
2703then
2704 # Ok.
2705 :
2706else
22e05272 2707 as_fn_error $? "newly created file is older than distributed files!
b4c522fa
IB
2708Check your system clock" "$LINENO" 5
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
22e05272
JM
2712# If we didn't sleep, we still need to ensure time stamps of config.status and
2713# generated files are strictly newer.
2714am_sleep_pid=
2715if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716 ( sleep 1 ) &
2717 am_sleep_pid=$!
2718fi
2719
2720rm -f conftest.file
2721
b4c522fa
IB
2722test "$program_prefix" != NONE &&
2723 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724# Use a double $ so make ignores it.
2725test "$program_suffix" != NONE &&
2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727# Double any \ or $.
2728# By default was `s,x,x', remove it if useless.
2729ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
22e05272
JM
2732# Expand $ac_aux_dir to an absolute path.
2733am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa
IB
2734
2735if test x"${MISSING+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 *)
2740 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741 esac
2742fi
2743# Use eval to expand $SHELL
22e05272
JM
2744if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
b4c522fa
IB
2746else
2747 am_missing_run=
22e05272
JM
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
b4c522fa
IB
2750fi
2751
22e05272 2752if test x"${install_sh+set}" != xset; then
b4c522fa
IB
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 *)
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2759fi
2760
22e05272
JM
2761# Installed binaries are usually stripped using 'strip' when the user
2762# run "make install-strip". However 'strip' might not be the right
b4c522fa 2763# tool to use in cross-compilation environments, therefore Automake
22e05272 2764# will honor the 'STRIP' environment variable to overrule this program.
b4c522fa
IB
2765if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}strip; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2771if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
2772 $as_echo_n "(cached) " >&6
2773else
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794STRIP=$ac_cv_prog_STRIP
2795if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797$as_echo "$STRIP" >&6; }
2798else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804fi
2805if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808set dummy strip; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
2812 $as_echo_n "(cached) " >&6
2813else
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
2824 ac_cv_prog_ac_ct_STRIP="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828done
2829 done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837$as_echo "$ac_ct_STRIP" >&6; }
2838else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843 if test "x$ac_ct_STRIP" = x; then
2844 STRIP=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847yes:)
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850ac_tool_warned=yes ;;
2851esac
2852 STRIP=$ac_ct_STRIP
2853 fi
2854else
2855 STRIP="$ac_cv_prog_STRIP"
2856fi
2857
2858fi
2859INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863if test -z "$MKDIR_P"; then
22e05272 2864 if ${ac_cv_path_mkdir+:} false; then :
b4c522fa
IB
2865 $as_echo_n "(cached) " >&6
2866else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_prog in mkdir gmkdir; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
b4c522fa
IB
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 break 3;;
2881 esac
2882 done
2883 done
2884 done
2885IFS=$as_save_IFS
2886
2887fi
2888
22e05272 2889 test -d ./--version && rmdir ./--version
b4c522fa
IB
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P="$ac_cv_path_mkdir -p"
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
b4c522fa
IB
2897 MKDIR_P="$ac_install_sh -d"
2898 fi
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901$as_echo "$MKDIR_P" >&6; }
2902
b4c522fa
IB
2903for ac_prog in gawk mawk nawk awk
2904do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906set dummy $ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2909if ${ac_cv_prog_AWK+:} false; then :
b4c522fa
IB
2910 $as_echo_n "(cached) " >&6
2911else
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927 done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932AWK=$ac_cv_prog_AWK
2933if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935$as_echo "$AWK" >&6; }
2936else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942 test -n "$AWK" && break
2943done
2944
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947set x ${MAKE-make}
2948ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2949if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
2950 $as_echo_n "(cached) " >&6
2951else
2952 cat >conftest.make <<\_ACEOF
2953SHELL = /bin/sh
2954all:
2955 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956_ACEOF
22e05272 2957# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
2958case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 *@@@%%%=?*=@@@%%%*)
2960 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 *)
2962 eval ac_cv_prog_make_${ac_make}_set=no;;
2963esac
2964rm -f conftest.make
2965fi
2966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968$as_echo "yes" >&6; }
2969 SET_MAKE=
2970else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2974fi
2975
2976rm -rf .tst 2>/dev/null
2977mkdir .tst 2>/dev/null
2978if test -d .tst; then
2979 am__leading_dot=.
2980else
2981 am__leading_dot=_
2982fi
2983rmdir .tst 2>/dev/null
2984
22e05272
JM
2985# Check whether --enable-silent-rules was given.
2986if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2988fi
2989
2990case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994esac
2995am_make=${MAKE-make}
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 if $as_echo 'TRUE=$(BAR$(V))
3002BAR0=false
3003BAR1=true
3004V=1
3005am__doit:
3006 @$(TRUE)
3007.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3009else
3010 am_cv_make_support_nested_variables=no
3011fi
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014$as_echo "$am_cv_make_support_nested_variables" >&6; }
3015if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021fi
3022AM_BACKSLASH='\'
3023
b4c522fa
IB
3024if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
22e05272 3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
b4c522fa
IB
3031 fi
3032fi
3033
3034# test whether we have cygpath
3035if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041fi
3042
3043
3044# Define the identity of the package.
3045 PACKAGE='libphobos'
3046 VERSION='version-unused'
3047
3048
3049# Some tools Automake needs.
3050
3051ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
22e05272
JM
3065# For better backward compatibility. To be removed once Automake 1.9.x
3066# dies out for good. For more background, see:
3067# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3068# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3069mkdir_p='$(MKDIR_P)'
3070
3071# We need awk for the "check" target (and possibly the TAP driver). The
3072# system "awk" is bad on some platforms.
b4c522fa
IB
3073# Always define AMTAR for backward compatibility. Yes, it's still used
3074# in the wild :-( We should find a proper way to deprecate it ...
3075AMTAR='$${TAR-tar}'
3076
22e05272
JM
3077
3078# We'll loop over all known methods to create a tar archive until one works.
3079_am_tools='gnutar pax cpio none'
3080
b4c522fa
IB
3081am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3082
3083
3084
3085
3086
3087
22e05272
JM
3088# POSIX will say in a future version that running "rm -f" with no argument
3089# is OK; and we want to be able to make that assumption in our Makefile
3090# recipes. So use an aggressive probe to check that the usage we want is
3091# actually supported "in the wild" to an acceptable degree.
3092# See automake bug#10828.
3093# To make any issue more visible, cause the running configure to be aborted
3094# by default if the 'rm' program in use doesn't match our expectations; the
3095# user can still override this though.
3096if rm -f && rm -fr && rm -rf; then : OK; else
3097 cat >&2 <<'END'
3098Oops!
3099
3100Your 'rm' program seems unable to run without file operands specified
3101on the command line, even when the '-f' option is present. This is contrary
3102to the behaviour of most rm programs out there, and not conforming with
3103the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3104
3105Please tell bug-automake@gnu.org about your system, including the value
3106of your $PATH and any error possibly output before this message. This
3107can help us improve future automake versions.
3108
3109END
3110 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3111 echo 'Configuration will proceed anyway, since you have set the' >&2
3112 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3113 echo >&2
3114 else
3115 cat >&2 <<'END'
3116Aborting the configuration process, to ensure you take notice of the issue.
3117
3118You can download and install GNU coreutils to get an 'rm' implementation
3119that behaves properly: <http://www.gnu.org/software/coreutils/>.
3120
3121If you want to complete the configuration process using your problematic
3122'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3123to "yes", and re-run configure.
3124
3125END
3126 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3127 fi
3128fi
3129
3130
b4c522fa
IB
3131
3132
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3140set dummy ${ac_tool_prefix}gcc; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3143if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3144 $as_echo_n "(cached) " >&6
3145else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160done
3161 done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176fi
3177if test -z "$ac_cv_prog_CC"; then
3178 ac_ct_CC=$CC
3179 # Extract the first word of "gcc", so it can be a program name with args.
3180set dummy gcc; ac_word=$2
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3183if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
3184 $as_echo_n "(cached) " >&6
3185else
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3196 ac_cv_prog_ac_ct_CC="gcc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200done
3201 done
3202IFS=$as_save_IFS
3203
3204fi
3205fi
3206ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207if test -n "$ac_ct_CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209$as_echo "$ac_ct_CC" >&6; }
3210else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
3214
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219yes:)
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222ac_tool_warned=yes ;;
3223esac
3224 CC=$ac_ct_CC
3225 fi
3226else
3227 CC="$ac_cv_prog_CC"
3228fi
3229
3230if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3233set dummy ${ac_tool_prefix}cc; ac_word=$2
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3236if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3237 $as_echo_n "(cached) " >&6
3238else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241else
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3249 ac_cv_prog_CC="${ac_tool_prefix}cc"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253done
3254 done
3255IFS=$as_save_IFS
3256
3257fi
3258fi
3259CC=$ac_cv_prog_CC
3260if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262$as_echo "$CC" >&6; }
3263else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266fi
3267
3268
3269 fi
3270fi
3271if test -z "$CC"; then
3272 # Extract the first word of "cc", so it can be a program name with args.
3273set dummy cc; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3276if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3277 $as_echo_n "(cached) " >&6
3278else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282 ac_prog_rejected=no
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3291 ac_prog_rejected=yes
3292 continue
3293 fi
3294 ac_cv_prog_CC="cc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299 done
3300IFS=$as_save_IFS
3301
3302if test $ac_prog_rejected = yes; then
3303 # We found a bogon in the path, so make sure we never use it.
3304 set dummy $ac_cv_prog_CC
3305 shift
3306 if test $# != 0; then
3307 # We chose a different compiler from the bogus one.
3308 # However, it has the same basename, so the bogon will be chosen
3309 # first if we set CC to just the basename; use the full file name.
3310 shift
3311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3312 fi
3313fi
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326fi
3327if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 for ac_prog in cl.exe
3330 do
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3335if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3336 $as_echo_n "(cached) " >&6
3337else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353 done
3354IFS=$as_save_IFS
3355
3356fi
3357fi
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361$as_echo "$CC" >&6; }
3362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368 test -n "$CC" && break
3369 done
3370fi
3371if test -z "$CC"; then
3372 ac_ct_CC=$CC
3373 for ac_prog in cl.exe
3374do
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376set dummy $ac_prog; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3379if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3392 ac_cv_prog_ac_ct_CC="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405$as_echo "$ac_ct_CC" >&6; }
3406else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412 test -n "$ac_ct_CC" && break
3413done
3414
3415 if test "x$ac_ct_CC" = x; then
3416 CC=""
3417 else
3418 case $cross_compiling:$ac_tool_warned in
3419yes:)
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422ac_tool_warned=yes ;;
3423esac
3424 CC=$ac_ct_CC
3425 fi
3426fi
3427
3428fi
3429
3430
3431test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3433as_fn_error $? "no acceptable C compiler found in \$PATH
3434See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3435
3436# Provide some information about the compiler.
3437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3438set X $ac_compile
3439ac_compiler=$2
3440for ac_option in --version -v -V -qversion; do
3441 { { ac_try="$ac_compiler $ac_option >&5"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 ac_status=$?
3450 if test -s conftest.err; then
3451 sed '10a\
3452... rest of stderr output deleted ...
3453 10q' conftest.err >conftest.er1
3454 cat conftest.er1 >&5
b4c522fa 3455 fi
22e05272 3456 rm -f conftest.er1 conftest.err
b4c522fa
IB
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3459done
3460
3461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h. */
3463
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472ac_clean_files_save=$ac_clean_files
22e05272 3473ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b4c522fa
IB
3474# Try to create an executable without -o first, disregard a.out.
3475# It will help us diagnose broken compilers, and finding out an intuition
3476# of exeext.
22e05272
JM
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3478$as_echo_n "checking whether the C compiler works... " >&6; }
b4c522fa
IB
3479ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480
3481# The possible output files:
3482ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483
3484ac_rmfiles=
3485for ac_file in $ac_files
3486do
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3490 esac
3491done
3492rm -f $ac_rmfiles
3493
3494if { { ac_try="$ac_link_default"
3495case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_link_default") 2>&5
3502 ac_status=$?
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3506# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3507# in a Makefile. We should not override ac_cv_exeext if it was cached,
3508# so that the user can short-circuit this test for compilers unknown to
3509# Autoconf.
3510for ac_file in $ac_files ''
3511do
3512 test -f "$ac_file" || continue
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 ;;
3516 [ab].out )
3517 # We found the default executable, but exeext='' is most
3518 # certainly right.
3519 break;;
3520 *.* )
3521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3522 then :; else
3523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 fi
3525 # We set ac_cv_exeext here because the later test for it is not
3526 # safe: cross compilers may not add the suffix if given an `-o'
3527 # argument, so we may need to know it at that point already.
3528 # Even if this section looks crufty: it has the advantage of
3529 # actually working.
3530 break;;
3531 * )
3532 break;;
3533 esac
3534done
3535test "$ac_cv_exeext" = no && ac_cv_exeext=
3536
3537else
3538 ac_file=''
3539fi
b4c522fa 3540if test -z "$ac_file"; then :
22e05272
JM
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542$as_echo "no" >&6; }
3543$as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
3546{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3548as_fn_error 77 "C compiler cannot create executables
3549See \`config.log' for more details" "$LINENO" 5; }
3550else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552$as_echo "yes" >&6; }
b4c522fa 3553fi
22e05272
JM
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3555$as_echo_n "checking for C compiler default output file name... " >&6; }
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3557$as_echo "$ac_file" >&6; }
b4c522fa
IB
3558ac_exeext=$ac_cv_exeext
3559
22e05272 3560rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b4c522fa 3561ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3563$as_echo_n "checking for suffix of executables... " >&6; }
3564if { { ac_try="$ac_link"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570$as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_link") 2>&5
3572 ac_status=$?
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3576# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3577# work properly (i.e., refer to `conftest.exe'), while it won't with
3578# `rm'.
3579for ac_file in conftest.exe conftest conftest.*; do
3580 test -f "$ac_file" || continue
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3584 break;;
3585 * ) break;;
3586 esac
3587done
3588else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3591as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3592See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 3593fi
22e05272 3594rm -f conftest conftest$ac_cv_exeext
b4c522fa
IB
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3596$as_echo "$ac_cv_exeext" >&6; }
3597
3598rm -f conftest.$ac_ext
3599EXEEXT=$ac_cv_exeext
3600ac_exeext=$EXEEXT
22e05272
JM
3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h. */
3603#include <stdio.h>
3604int
3605main ()
3606{
3607FILE *f = fopen ("conftest.out", "w");
3608 return ferror (f) || fclose (f) != 0;
3609
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614ac_clean_files="$ac_clean_files conftest.out"
3615# Check that the compiler produces executables we can run. If not, either
3616# the compiler is broken, or we cross compile.
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618$as_echo_n "checking whether we are cross compiling... " >&6; }
3619if test "$cross_compiling" != yes; then
3620 { { ac_try="$ac_link"
3621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_link") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3631 if { ac_try='./conftest$ac_cv_exeext'
3632 { { case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637$as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_try") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; }; then
3642 cross_compiling=no
3643 else
3644 if test "$cross_compiling" = maybe; then
3645 cross_compiling=yes
3646 else
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649as_fn_error $? "cannot run C compiled programs.
3650If you meant to cross compile, use \`--host'.
3651See \`config.log' for more details" "$LINENO" 5; }
3652 fi
3653 fi
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3656$as_echo "$cross_compiling" >&6; }
3657
3658rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3659ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3661$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3662if ${ac_cv_objext+:} false; then :
b4c522fa
IB
3663 $as_echo_n "(cached) " >&6
3664else
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.o conftest.obj
3677if { { ac_try="$ac_compile"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compile") 2>&5
3685 ac_status=$?
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }; then :
3688 for ac_file in conftest.o conftest.obj conftest.*; do
3689 test -f "$ac_file" || continue;
3690 case $ac_file in
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3693 break;;
3694 esac
3695done
3696else
3697 $as_echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3702as_fn_error $? "cannot compute suffix of object files: cannot compile
3703See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3704fi
3705rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706fi
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3708$as_echo "$ac_cv_objext" >&6; }
3709OBJEXT=$ac_cv_objext
3710ac_objext=$OBJEXT
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3712$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3713if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
3714 $as_echo_n "(cached) " >&6
3715else
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h. */
3718
3719int
3720main ()
3721{
3722#ifndef __GNUC__
3723 choke me
3724#endif
3725
3726 ;
3727 return 0;
3728}
3729_ACEOF
3730if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_compiler_gnu=yes
3732else
3733 ac_compiler_gnu=no
3734fi
3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736ac_cv_c_compiler_gnu=$ac_compiler_gnu
3737
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3740$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3741if test $ac_compiler_gnu = yes; then
3742 GCC=yes
3743else
3744 GCC=
3745fi
3746ac_test_CFLAGS=${CFLAGS+set}
3747ac_save_CFLAGS=$CFLAGS
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3749$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3750if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
3751 $as_echo_n "(cached) " >&6
3752else
3753 ac_save_c_werror_flag=$ac_c_werror_flag
3754 ac_c_werror_flag=yes
3755 ac_cv_prog_cc_g=no
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h. */
3759
3760int
3761main ()
3762{
3763
3764 ;
3765 return 0;
3766}
3767_ACEOF
3768if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3770else
3771 CFLAGS=""
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h. */
3774
3775int
3776main ()
3777{
3778
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783if ac_fn_c_try_compile "$LINENO"; then :
3784
3785else
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3787 CFLAGS="-g"
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h. */
3790
3791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_prog_cc_g=yes
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803fi
3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805fi
3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3810$as_echo "$ac_cv_prog_cc_g" >&6; }
3811if test "$ac_test_CFLAGS" = set; then
3812 CFLAGS=$ac_save_CFLAGS
3813elif test $ac_cv_prog_cc_g = yes; then
3814 if test "$GCC" = yes; then
3815 CFLAGS="-g -O2"
3816 else
3817 CFLAGS="-g"
3818 fi
3819else
3820 if test "$GCC" = yes; then
3821 CFLAGS="-O2"
3822 else
3823 CFLAGS=
3824 fi
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3827$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3828if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
3829 $as_echo_n "(cached) " >&6
3830else
3831 ac_cv_prog_cc_c89=no
3832ac_save_CC=$CC
3833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h. */
3835#include <stdarg.h>
3836#include <stdio.h>
22e05272 3837struct stat;
b4c522fa
IB
3838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839struct buf { int x; };
3840FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841static char *e (p, i)
3842 char **p;
3843 int i;
3844{
3845 return p[i];
3846}
3847static char *f (char * (*g) (char **, int), char **p, ...)
3848{
3849 char *s;
3850 va_list v;
3851 va_start (v,p);
3852 s = g (p, va_arg (v,int));
3853 va_end (v);
3854 return s;
3855}
3856
3857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865
3866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3868#define FOO(x) 'x'
3869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870
3871int test (int i, double x);
3872struct s1 {int (*f) (int a);};
3873struct s2 {int (*f) (double a);};
3874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875int argc;
3876char **argv;
3877int
3878main ()
3879{
3880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 ;
3882 return 0;
3883}
3884_ACEOF
3885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887do
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3891fi
3892rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3894done
3895rm -f conftest.$ac_ext
3896CC=$ac_save_CC
3897
3898fi
3899# AC_CACHE_VAL
3900case "x$ac_cv_prog_cc_c89" in
3901 x)
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903$as_echo "none needed" >&6; } ;;
3904 xno)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906$as_echo "unsupported" >&6; } ;;
3907 *)
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911esac
3912if test "x$ac_cv_prog_cc_c89" != xno; then :
3913
3914fi
3915
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
22e05272
JM
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3928$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3929if ${am_cv_prog_cc_c_o+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h. */
3934
3935int
3936main ()
3937{
3938
3939 ;
3940 return 0;
3941}
3942_ACEOF
3943 # Make sure it works both with $CC and with simple cc.
3944 # Following AC_PROG_CC_C_O, we do the test twice because some
3945 # compilers refuse to overwrite an existing .o file with -o,
3946 # though they will create one.
3947 am_cv_prog_cc_c_o=yes
3948 for am_i in 1 2; do
3949 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3950 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } \
3954 && test -f conftest2.$ac_objext; then
3955 : OK
3956 else
3957 am_cv_prog_cc_c_o=no
3958 break
3959 fi
3960 done
3961 rm -f core conftest*
3962 unset am_i
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3965$as_echo "$am_cv_prog_cc_c_o" >&6; }
3966if test "$am_cv_prog_cc_c_o" != yes; then
3967 # Losing compiler, so override with the script.
3968 # FIXME: It is wrong to rewrite CC.
3969 # But if we don't then we get into trouble of one sort or another.
3970 # A longer-term fix would be to have automake use am__CC in this case,
3971 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3972 CC="$am_aux_dir/compile $CC"
3973fi
3974ac_ext=c
3975ac_cpp='$CPP $CPPFLAGS'
3976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
3980
b4c522fa
IB
3981# By default we simply use the C compiler to build assembly code.
3982
3983test "${CCAS+set}" = set || CCAS=$CC
3984test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3985
3986
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3995set dummy ${ac_tool_prefix}gcc; ac_word=$2
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3998if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3999 $as_echo_n "(cached) " >&6
4000else
4001 if test -n "$CC"; then
4002 ac_cv_prog_CC="$CC" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021CC=$ac_cv_prog_CC
4022if test -n "$CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4024$as_echo "$CC" >&6; }
4025else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030
4031fi
4032if test -z "$ac_cv_prog_CC"; then
4033 ac_ct_CC=$CC
4034 # Extract the first word of "gcc", so it can be a program name with args.
4035set dummy gcc; ac_word=$2
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4038if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4039 $as_echo_n "(cached) " >&6
4040else
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4051 ac_cv_prog_ac_ct_CC="gcc"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055done
4056 done
4057IFS=$as_save_IFS
4058
4059fi
4060fi
4061ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062if test -n "$ac_ct_CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4064$as_echo "$ac_ct_CC" >&6; }
4065else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068fi
4069
4070 if test "x$ac_ct_CC" = x; then
4071 CC=""
4072 else
4073 case $cross_compiling:$ac_tool_warned in
4074yes:)
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077ac_tool_warned=yes ;;
4078esac
4079 CC=$ac_ct_CC
4080 fi
4081else
4082 CC="$ac_cv_prog_CC"
4083fi
4084
4085if test -z "$CC"; then
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4088set dummy ${ac_tool_prefix}cc; ac_word=$2
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4091if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4092 $as_echo_n "(cached) " >&6
4093else
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4104 ac_cv_prog_CC="${ac_tool_prefix}cc"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108done
4109 done
4110IFS=$as_save_IFS
4111
4112fi
4113fi
4114CC=$ac_cv_prog_CC
4115if test -n "$CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117$as_echo "$CC" >&6; }
4118else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123
4124 fi
4125fi
4126if test -z "$CC"; then
4127 # Extract the first word of "cc", so it can be a program name with args.
4128set dummy cc; ac_word=$2
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4131if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4132 $as_echo_n "(cached) " >&6
4133else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136else
4137 ac_prog_rejected=no
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4146 ac_prog_rejected=yes
4147 continue
4148 fi
4149 ac_cv_prog_CC="cc"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153done
4154 done
4155IFS=$as_save_IFS
4156
4157if test $ac_prog_rejected = yes; then
4158 # We found a bogon in the path, so make sure we never use it.
4159 set dummy $ac_cv_prog_CC
4160 shift
4161 if test $# != 0; then
4162 # We chose a different compiler from the bogus one.
4163 # However, it has the same basename, so the bogon will be chosen
4164 # first if we set CC to just the basename; use the full file name.
4165 shift
4166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4167 fi
4168fi
4169fi
4170fi
4171CC=$ac_cv_prog_CC
4172if test -n "$CC"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4174$as_echo "$CC" >&6; }
4175else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177$as_echo "no" >&6; }
4178fi
4179
4180
4181fi
4182if test -z "$CC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 for ac_prog in cl.exe
4185 do
4186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4190if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4191 $as_echo_n "(cached) " >&6
4192else
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207done
4208 done
4209IFS=$as_save_IFS
4210
4211fi
4212fi
4213CC=$ac_cv_prog_CC
4214if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216$as_echo "$CC" >&6; }
4217else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219$as_echo "no" >&6; }
4220fi
4221
4222
4223 test -n "$CC" && break
4224 done
4225fi
4226if test -z "$CC"; then
4227 ac_ct_CC=$CC
4228 for ac_prog in cl.exe
4229do
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231set dummy $ac_prog; ac_word=$2
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4234if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4235 $as_echo_n "(cached) " >&6
4236else
4237 if test -n "$ac_ct_CC"; then
4238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239else
4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4247 ac_cv_prog_ac_ct_CC="$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251done
4252 done
4253IFS=$as_save_IFS
4254
4255fi
4256fi
4257ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258if test -n "$ac_ct_CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260$as_echo "$ac_ct_CC" >&6; }
4261else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263$as_echo "no" >&6; }
4264fi
4265
4266
4267 test -n "$ac_ct_CC" && break
4268done
4269
4270 if test "x$ac_ct_CC" = x; then
4271 CC=""
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274yes:)
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277ac_tool_warned=yes ;;
4278esac
4279 CC=$ac_ct_CC
4280 fi
4281fi
4282
4283fi
4284
4285
4286test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4288as_fn_error $? "no acceptable C compiler found in \$PATH
4289See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
4290
4291# Provide some information about the compiler.
4292$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4293set X $ac_compile
4294ac_compiler=$2
4295for ac_option in --version -v -V -qversion; do
4296 { { ac_try="$ac_compiler $ac_option >&5"
4297case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302$as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4304 ac_status=$?
4305 if test -s conftest.err; then
4306 sed '10a\
4307... rest of stderr output deleted ...
4308 10q' conftest.err >conftest.er1
4309 cat conftest.er1 >&5
b4c522fa 4310 fi
22e05272 4311 rm -f conftest.er1 conftest.err
b4c522fa
IB
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }
4314done
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4317$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4318if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
4319 $as_echo_n "(cached) " >&6
4320else
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h. */
4323
4324int
4325main ()
4326{
4327#ifndef __GNUC__
4328 choke me
4329#endif
4330
4331 ;
4332 return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_compile "$LINENO"; then :
4336 ac_compiler_gnu=yes
4337else
4338 ac_compiler_gnu=no
4339fi
4340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341ac_cv_c_compiler_gnu=$ac_compiler_gnu
4342
4343fi
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4345$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4346if test $ac_compiler_gnu = yes; then
4347 GCC=yes
4348else
4349 GCC=
4350fi
4351ac_test_CFLAGS=${CFLAGS+set}
4352ac_save_CFLAGS=$CFLAGS
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4354$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4355if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
4356 $as_echo_n "(cached) " >&6
4357else
4358 ac_save_c_werror_flag=$ac_c_werror_flag
4359 ac_c_werror_flag=yes
4360 ac_cv_prog_cc_g=no
4361 CFLAGS="-g"
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h. */
4364
4365int
4366main ()
4367{
4368
4369 ;
4370 return 0;
4371}
4372_ACEOF
4373if ac_fn_c_try_compile "$LINENO"; then :
4374 ac_cv_prog_cc_g=yes
4375else
4376 CFLAGS=""
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378/* end confdefs.h. */
4379
4380int
4381main ()
4382{
4383
4384 ;
4385 return 0;
4386}
4387_ACEOF
4388if ac_fn_c_try_compile "$LINENO"; then :
4389
4390else
4391 ac_c_werror_flag=$ac_save_c_werror_flag
4392 CFLAGS="-g"
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h. */
4395
4396int
4397main ()
4398{
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_cv_prog_cc_g=yes
4406fi
4407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_c_werror_flag=$ac_save_c_werror_flag
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4415$as_echo "$ac_cv_prog_cc_g" >&6; }
4416if test "$ac_test_CFLAGS" = set; then
4417 CFLAGS=$ac_save_CFLAGS
4418elif test $ac_cv_prog_cc_g = yes; then
4419 if test "$GCC" = yes; then
4420 CFLAGS="-g -O2"
4421 else
4422 CFLAGS="-g"
4423 fi
4424else
4425 if test "$GCC" = yes; then
4426 CFLAGS="-O2"
4427 else
4428 CFLAGS=
4429 fi
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4432$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4433if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
4434 $as_echo_n "(cached) " >&6
4435else
4436 ac_cv_prog_cc_c89=no
4437ac_save_CC=$CC
4438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440#include <stdarg.h>
4441#include <stdio.h>
22e05272 4442struct stat;
b4c522fa
IB
4443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4444struct buf { int x; };
4445FILE * (*rcsopen) (struct buf *, struct stat *, int);
4446static char *e (p, i)
4447 char **p;
4448 int i;
4449{
4450 return p[i];
4451}
4452static char *f (char * (*g) (char **, int), char **p, ...)
4453{
4454 char *s;
4455 va_list v;
4456 va_start (v,p);
4457 s = g (p, va_arg (v,int));
4458 va_end (v);
4459 return s;
4460}
4461
4462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4463 function prototypes and stuff, but not '\xHH' hex character constants.
4464 These don't provoke an error unfortunately, instead are silently treated
4465 as 'x'. The following induces an error, until -std is added to get
4466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4467 array size at least. It's necessary to write '\x00'==0 to get something
4468 that's true only with -std. */
4469int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4470
4471/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4472 inside strings and character constants. */
4473#define FOO(x) 'x'
4474int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4475
4476int test (int i, double x);
4477struct s1 {int (*f) (int a);};
4478struct s2 {int (*f) (double a);};
4479int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4480int argc;
4481char **argv;
4482int
4483main ()
4484{
4485return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4492do
4493 CC="$ac_save_CC $ac_arg"
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_prog_cc_c89=$ac_arg
4496fi
4497rm -f core conftest.err conftest.$ac_objext
4498 test "x$ac_cv_prog_cc_c89" != "xno" && break
4499done
4500rm -f conftest.$ac_ext
4501CC=$ac_save_CC
4502
4503fi
4504# AC_CACHE_VAL
4505case "x$ac_cv_prog_cc_c89" in
4506 x)
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4508$as_echo "none needed" >&6; } ;;
4509 xno)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4511$as_echo "unsupported" >&6; } ;;
4512 *)
4513 CC="$CC $ac_cv_prog_cc_c89"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4515$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4516esac
4517if test "x$ac_cv_prog_cc_c89" != xno; then :
4518
4519fi
4520
4521ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
22e05272
JM
4527ac_ext=c
4528ac_cpp='$CPP $CPPFLAGS'
4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4533$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4534if ${am_cv_prog_cc_c_o+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536else
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h. */
4539
4540int
4541main ()
4542{
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548 # Make sure it works both with $CC and with simple cc.
4549 # Following AC_PROG_CC_C_O, we do the test twice because some
4550 # compilers refuse to overwrite an existing .o file with -o,
4551 # though they will create one.
4552 am_cv_prog_cc_c_o=yes
4553 for am_i in 1 2; do
4554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } \
4559 && test -f conftest2.$ac_objext; then
4560 : OK
4561 else
4562 am_cv_prog_cc_c_o=no
4563 break
4564 fi
4565 done
4566 rm -f core conftest*
4567 unset am_i
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4570$as_echo "$am_cv_prog_cc_c_o" >&6; }
4571if test "$am_cv_prog_cc_c_o" != yes; then
4572 # Losing compiler, so override with the script.
4573 # FIXME: It is wrong to rewrite CC.
4574 # But if we don't then we get into trouble of one sort or another.
4575 # A longer-term fix would be to have automake use am__CC in this case,
4576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4577 CC="$am_aux_dir/compile $CC"
4578fi
4579ac_ext=c
4580ac_cpp='$CPP $CPPFLAGS'
4581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
b4c522fa
IB
4586ac_ext=d
4587ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4588ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=yes
4590if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4592set dummy ${ac_tool_prefix}gdc; ac_word=$2
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4595if ${ac_cv_prog_GDC+:} false; then :
b4c522fa
IB
4596 $as_echo_n "(cached) " >&6
4597else
4598 if test -n "$GDC"; then
4599 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4600else
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4608 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612done
4613 done
4614IFS=$as_save_IFS
4615
4616fi
4617fi
4618GDC=$ac_cv_prog_GDC
4619if test -n "$GDC"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4621$as_echo "$GDC" >&6; }
4622else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624$as_echo "no" >&6; }
4625fi
4626
4627
4628fi
4629if test -z "$ac_cv_prog_GDC"; then
4630 ac_ct_GDC=$GDC
4631 # Extract the first word of "gdc", so it can be a program name with args.
4632set dummy gdc; ac_word=$2
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4635if ${ac_cv_prog_ac_ct_GDC+:} false; then :
b4c522fa
IB
4636 $as_echo_n "(cached) " >&6
4637else
4638 if test -n "$ac_ct_GDC"; then
4639 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4640else
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4648 ac_cv_prog_ac_ct_GDC="gdc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652done
4653 done
4654IFS=$as_save_IFS
4655
4656fi
4657fi
4658ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4659if test -n "$ac_ct_GDC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4661$as_echo "$ac_ct_GDC" >&6; }
4662else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667 if test "x$ac_ct_GDC" = x; then
4668 GDC=""
4669 else
4670 case $cross_compiling:$ac_tool_warned in
4671yes:)
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674ac_tool_warned=yes ;;
4675esac
4676 GDC=$ac_ct_GDC
4677 fi
4678else
4679 GDC="$ac_cv_prog_GDC"
4680fi
4681
4682if test -z "$GDC"; then
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4685set dummy ${ac_tool_prefix}gdc; ac_word=$2
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4688if ${ac_cv_prog_GDC+:} false; then :
b4c522fa
IB
4689 $as_echo_n "(cached) " >&6
4690else
4691 if test -n "$GDC"; then
4692 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4701 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705done
4706 done
4707IFS=$as_save_IFS
4708
4709fi
4710fi
4711GDC=$ac_cv_prog_GDC
4712if test -n "$GDC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4714$as_echo "$GDC" >&6; }
4715else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
4718fi
4719
4720
4721 fi
4722fi
4723if test -z "$GDC"; then
4724 # Extract the first word of "gdc", so it can be a program name with args.
4725set dummy gdc; ac_word=$2
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4728if ${ac_cv_prog_GDC+:} false; then :
b4c522fa
IB
4729 $as_echo_n "(cached) " >&6
4730else
4731 if test -n "$GDC"; then
4732 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4733else
4734 ac_prog_rejected=no
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4742 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4743 ac_prog_rejected=yes
4744 continue
4745 fi
4746 ac_cv_prog_GDC="gdc"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750done
4751 done
4752IFS=$as_save_IFS
4753
4754if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_GDC
4757 shift
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set GDC to just the basename; use the full file name.
4762 shift
4763 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4764 fi
4765fi
4766fi
4767fi
4768GDC=$ac_cv_prog_GDC
4769if test -n "$GDC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4771$as_echo "$GDC" >&6; }
4772else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774$as_echo "no" >&6; }
4775fi
4776
4777
4778fi
4779
4780
4781# Provide some information about the compiler.
4782$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4783set X $ac_compile
4784ac_compiler=$2
4785{ { ac_try="$ac_compiler --version >&5"
4786case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789esac
4790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791$as_echo "$ac_try_echo"; } >&5
4792 (eval "$ac_compiler --version >&5") 2>conftest.err
4793 ac_status=$?
4794 if test -s conftest.err; then
4795 sed '10a\
4796... rest of stderr output deleted ...
4797 10q' conftest.err >conftest.er1
4798 cat conftest.er1 >&5
b4c522fa 4799 fi
22e05272 4800 rm -f conftest.er1 conftest.err
b4c522fa
IB
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }
4803ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4811$as_echo_n "checking for absolute libphobos source path... " >&6; }
22e05272 4812if ${phobos_cv_abs_srcdir+:} false; then :
b4c522fa
IB
4813 $as_echo_n "(cached) " >&6
4814else
4815 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4816fi
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4818$as_echo "$phobos_cv_abs_srcdir" >&6; }
4819 if test -d "$phobos_cv_abs_srcdir"; then :
4820
4821else
22e05272 4822 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
b4c522fa
IB
4823fi
4824
4825
4826
4827
4828 gdc_save_DFLAGS=$GDCFLAGS
4829 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4830
4831 ac_ext=d
4832ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4833ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834ac_compiler_gnu=yes
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4837$as_echo_n "checking If $GDC can compile D sources... " >&6; }
4838 cat > conftest.$ac_ext <<_ACEOF
4839module mod;
4840
4841
4842extern(C) int main() {
4843 return 0;
4844}
4845_ACEOF
4846if ac_fn_d_try_compile "$LINENO"; then :
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848$as_echo "yes" >&6; }
4849else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
22e05272 4852 as_fn_error $? "can't compile D sources!" "$LINENO" 5
b4c522fa
IB
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 ac_ext=c
4856ac_cpp='$CPP $CPPFLAGS'
4857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860
4861
4862 GDCFLAGS=$gdc_save_DFLAGS
4863
4864
4865
4866
4867
4868
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4870$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4871 # Check whether --enable-maintainer-mode was given.
4872if test "${enable_maintainer_mode+set}" = set; then :
4873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4874else
4875 USE_MAINTAINER_MODE=no
4876fi
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4879$as_echo "$USE_MAINTAINER_MODE" >&6; }
4880 if test $USE_MAINTAINER_MODE = yes; then
4881 MAINTAINER_MODE_TRUE=
4882 MAINTAINER_MODE_FALSE='#'
4883else
4884 MAINTAINER_MODE_TRUE='#'
4885 MAINTAINER_MODE_FALSE=
4886fi
4887
4888 MAINT=$MAINTAINER_MODE_TRUE
4889
4890
4891if test -n "$ac_tool_prefix"; then
4892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4893set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4896if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
4897 $as_echo_n "(cached) " >&6
4898else
4899 if test -n "$RANLIB"; then
4900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913done
4914 done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919RANLIB=$ac_cv_prog_RANLIB
4920if test -n "$RANLIB"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4922$as_echo "$RANLIB" >&6; }
4923else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928
4929fi
4930if test -z "$ac_cv_prog_RANLIB"; then
4931 ac_ct_RANLIB=$RANLIB
4932 # Extract the first word of "ranlib", so it can be a program name with args.
4933set dummy ranlib; ac_word=$2
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4936if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
4937 $as_echo_n "(cached) " >&6
4938else
4939 if test -n "$ac_ct_RANLIB"; then
4940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4941else
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4949 ac_cv_prog_ac_ct_RANLIB="ranlib"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953done
4954 done
4955IFS=$as_save_IFS
4956
4957fi
4958fi
4959ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4960if test -n "$ac_ct_RANLIB"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4962$as_echo "$ac_ct_RANLIB" >&6; }
4963else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965$as_echo "no" >&6; }
4966fi
4967
4968 if test "x$ac_ct_RANLIB" = x; then
4969 RANLIB=":"
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972yes:)
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975ac_tool_warned=yes ;;
4976esac
4977 RANLIB=$ac_ct_RANLIB
4978 fi
4979else
4980 RANLIB="$ac_cv_prog_RANLIB"
4981fi
4982
4983
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4985$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4986set x ${MAKE-make}
4987ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4988if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
4989 $as_echo_n "(cached) " >&6
4990else
4991 cat >conftest.make <<\_ACEOF
4992SHELL = /bin/sh
4993all:
4994 @echo '@@@%%%=$(MAKE)=@@@%%%'
4995_ACEOF
22e05272 4996# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
4997case `${MAKE-make} -f conftest.make 2>/dev/null` in
4998 *@@@%%%=?*=@@@%%%*)
4999 eval ac_cv_prog_make_${ac_make}_set=yes;;
5000 *)
5001 eval ac_cv_prog_make_${ac_make}_set=no;;
5002esac
5003rm -f conftest.make
5004fi
5005if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007$as_echo "yes" >&6; }
5008 SET_MAKE=
5009else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012 SET_MAKE="MAKE=${MAKE-make}"
5013fi
5014
5015
5016# This should be inherited in the recursive make, but ensure it is defined.
5017test "$AR" || AR=ar
5018
5019
5020CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5021
5022
5023
5024# Enable libtool
5025case `pwd` in
5026 *\ * | *\ *)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5028$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5029esac
5030
5031
5032
5033macro_version='2.2.7a'
5034macro_revision='1.3134'
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048ltmain="$ac_aux_dir/ltmain.sh"
5049
5050# Backslashify metacharacters that are still active within
5051# double-quoted strings.
5052sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5053
5054# Same as above, but do not quote variable references.
5055double_quote_subst='s/\(["`\\]\)/\\\1/g'
5056
5057# Sed substitution to delay expansion of an escaped shell variable in a
5058# double_quote_subst'ed string.
5059delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5060
5061# Sed substitution to delay expansion of an escaped single quote.
5062delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5063
5064# Sed substitution to avoid accidental globbing in evaled expressions
5065no_glob_subst='s/\*/\\\*/g'
5066
5067ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5068ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5069ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5072$as_echo_n "checking how to print strings... " >&6; }
5073# Test print first, because it will be a builtin if present.
5074if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5076 ECHO='print -r --'
5077elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5078 ECHO='printf %s\n'
5079else
5080 # Use this function as a fallback that always works.
5081 func_fallback_echo ()
5082 {
5083 eval 'cat <<_LTECHO_EOF
5084$1
5085_LTECHO_EOF'
5086 }
5087 ECHO='func_fallback_echo'
5088fi
5089
5090# func_echo_all arg...
5091# Invoke $ECHO with all args, space-separated.
5092func_echo_all ()
5093{
5094 $ECHO ""
5095}
5096
5097case "$ECHO" in
5098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5099$as_echo "printf" >&6; } ;;
5100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5101$as_echo "print -r" >&6; } ;;
5102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5103$as_echo "cat" >&6; } ;;
5104esac
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5120$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5121if ${ac_cv_path_SED+:} false; then :
b4c522fa
IB
5122 $as_echo_n "(cached) " >&6
5123else
5124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5125 for ac_i in 1 2 3 4 5 6 7; do
5126 ac_script="$ac_script$as_nl$ac_script"
5127 done
5128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5129 { ac_script=; unset ac_script;}
5130 if test -z "$SED"; then
5131 ac_path_SED_found=false
5132 # Loop through the user's path and test for each of PROGNAME-LIST
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_prog in sed gsed; do
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5141 as_fn_executable_p "$ac_path_SED" || continue
b4c522fa
IB
5142# Check for GNU ac_path_SED and select it if it is found.
5143 # Check for GNU $ac_path_SED
5144case `"$ac_path_SED" --version 2>&1` in
5145*GNU*)
5146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5147*)
5148 ac_count=0
5149 $as_echo_n 0123456789 >"conftest.in"
5150 while :
5151 do
5152 cat "conftest.in" "conftest.in" >"conftest.tmp"
5153 mv "conftest.tmp" "conftest.in"
5154 cp "conftest.in" "conftest.nl"
5155 $as_echo '' >> "conftest.nl"
5156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5158 as_fn_arith $ac_count + 1 && ac_count=$as_val
5159 if test $ac_count -gt ${ac_path_SED_max-0}; then
5160 # Best one so far, save it but keep looking for a better one
5161 ac_cv_path_SED="$ac_path_SED"
5162 ac_path_SED_max=$ac_count
5163 fi
5164 # 10*(2^10) chars as input seems more than enough
5165 test $ac_count -gt 10 && break
5166 done
5167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5168esac
5169
5170 $ac_path_SED_found && break 3
5171 done
5172 done
5173 done
5174IFS=$as_save_IFS
5175 if test -z "$ac_cv_path_SED"; then
22e05272 5176 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b4c522fa
IB
5177 fi
5178else
5179 ac_cv_path_SED=$SED
5180fi
5181
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5184$as_echo "$ac_cv_path_SED" >&6; }
5185 SED="$ac_cv_path_SED"
5186 rm -f conftest.sed
5187
5188test -z "$SED" && SED=sed
5189Xsed="$SED -e 1s/^X//"
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5202$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5203if ${ac_cv_path_GREP+:} false; then :
b4c522fa
IB
5204 $as_echo_n "(cached) " >&6
5205else
5206 if test -z "$GREP"; then
5207 ac_path_GREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in grep ggrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5217 as_fn_executable_p "$ac_path_GREP" || continue
b4c522fa
IB
5218# Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220case `"$ac_path_GREP" --version 2>&1` in
5221*GNU*)
5222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5223*)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP="$ac_path_GREP"
5238 ac_path_GREP_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244esac
5245
5246 $ac_path_GREP_found && break 3
5247 done
5248 done
5249 done
5250IFS=$as_save_IFS
5251 if test -z "$ac_cv_path_GREP"; then
22e05272 5252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa
IB
5253 fi
5254else
5255 ac_cv_path_GREP=$GREP
5256fi
5257
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5260$as_echo "$ac_cv_path_GREP" >&6; }
5261 GREP="$ac_cv_path_GREP"
5262
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5265$as_echo_n "checking for egrep... " >&6; }
22e05272 5266if ${ac_cv_path_EGREP+:} false; then :
b4c522fa
IB
5267 $as_echo_n "(cached) " >&6
5268else
5269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5270 then ac_cv_path_EGREP="$GREP -E"
5271 else
5272 if test -z "$EGREP"; then
5273 ac_path_EGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in egrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5283 as_fn_executable_p "$ac_path_EGREP" || continue
b4c522fa
IB
5284# Check for GNU ac_path_EGREP and select it if it is found.
5285 # Check for GNU $ac_path_EGREP
5286case `"$ac_path_EGREP" --version 2>&1` in
5287*GNU*)
5288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5289*)
5290 ac_count=0
5291 $as_echo_n 0123456789 >"conftest.in"
5292 while :
5293 do
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'EGREP' >> "conftest.nl"
5298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_EGREP="$ac_path_EGREP"
5304 ac_path_EGREP_max=$ac_count
5305 fi
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5308 done
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310esac
5311
5312 $ac_path_EGREP_found && break 3
5313 done
5314 done
5315 done
5316IFS=$as_save_IFS
5317 if test -z "$ac_cv_path_EGREP"; then
22e05272 5318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa
IB
5319 fi
5320else
5321 ac_cv_path_EGREP=$EGREP
5322fi
5323
5324 fi
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5327$as_echo "$ac_cv_path_EGREP" >&6; }
5328 EGREP="$ac_cv_path_EGREP"
5329
5330
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5332$as_echo_n "checking for fgrep... " >&6; }
22e05272 5333if ${ac_cv_path_FGREP+:} false; then :
b4c522fa
IB
5334 $as_echo_n "(cached) " >&6
5335else
5336 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5337 then ac_cv_path_FGREP="$GREP -F"
5338 else
5339 if test -z "$FGREP"; then
5340 ac_path_FGREP_found=false
5341 # Loop through the user's path and test for each of PROGNAME-LIST
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5344do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_prog in fgrep; do
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5350 as_fn_executable_p "$ac_path_FGREP" || continue
b4c522fa
IB
5351# Check for GNU ac_path_FGREP and select it if it is found.
5352 # Check for GNU $ac_path_FGREP
5353case `"$ac_path_FGREP" --version 2>&1` in
5354*GNU*)
5355 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5356*)
5357 ac_count=0
5358 $as_echo_n 0123456789 >"conftest.in"
5359 while :
5360 do
5361 cat "conftest.in" "conftest.in" >"conftest.tmp"
5362 mv "conftest.tmp" "conftest.in"
5363 cp "conftest.in" "conftest.nl"
5364 $as_echo 'FGREP' >> "conftest.nl"
5365 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5367 as_fn_arith $ac_count + 1 && ac_count=$as_val
5368 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5369 # Best one so far, save it but keep looking for a better one
5370 ac_cv_path_FGREP="$ac_path_FGREP"
5371 ac_path_FGREP_max=$ac_count
5372 fi
5373 # 10*(2^10) chars as input seems more than enough
5374 test $ac_count -gt 10 && break
5375 done
5376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5377esac
5378
5379 $ac_path_FGREP_found && break 3
5380 done
5381 done
5382 done
5383IFS=$as_save_IFS
5384 if test -z "$ac_cv_path_FGREP"; then
22e05272 5385 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa
IB
5386 fi
5387else
5388 ac_cv_path_FGREP=$FGREP
5389fi
5390
5391 fi
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5394$as_echo "$ac_cv_path_FGREP" >&6; }
5395 FGREP="$ac_cv_path_FGREP"
5396
5397
5398test -z "$GREP" && GREP=grep
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418# Check whether --with-gnu-ld was given.
5419if test "${with_gnu_ld+set}" = set; then :
5420 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5421else
5422 with_gnu_ld=no
5423fi
5424
5425ac_prog=ld
5426if test "$GCC" = yes; then
5427 # Check if gcc -print-prog-name=ld gives a path.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5429$as_echo_n "checking for ld used by $CC... " >&6; }
5430 case $host in
5431 *-*-mingw*)
5432 # gcc leaves a trailing carriage return which upsets mingw
5433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5434 *)
5435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5436 esac
5437 case $ac_prog in
5438 # Accept absolute paths.
5439 [\\/]* | ?:[\\/]*)
5440 re_direlt='/[^/][^/]*/\.\./'
5441 # Canonicalize the pathname of ld
5442 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5443 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5444 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5445 done
5446 test -z "$LD" && LD="$ac_prog"
5447 ;;
5448 "")
5449 # If it fails, then pretend we aren't using GCC.
5450 ac_prog=ld
5451 ;;
5452 *)
5453 # If it is relative, then search for the first ld in PATH.
5454 with_gnu_ld=unknown
5455 ;;
5456 esac
5457elif test "$with_gnu_ld" = yes; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5459$as_echo_n "checking for GNU ld... " >&6; }
5460else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5462$as_echo_n "checking for non-GNU ld... " >&6; }
5463fi
22e05272 5464if ${lt_cv_path_LD+:} false; then :
b4c522fa
IB
5465 $as_echo_n "(cached) " >&6
5466else
5467 if test -z "$LD"; then
5468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5469 for ac_dir in $PATH; do
5470 IFS="$lt_save_ifs"
5471 test -z "$ac_dir" && ac_dir=.
5472 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5473 lt_cv_path_LD="$ac_dir/$ac_prog"
5474 # Check to see if the program is GNU ld. I'd rather use --version,
5475 # but apparently some variants of GNU ld only accept -v.
5476 # Break only if it was the GNU/non-GNU ld that we prefer.
5477 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5478 *GNU* | *'with BFD'*)
5479 test "$with_gnu_ld" != no && break
5480 ;;
5481 *)
5482 test "$with_gnu_ld" != yes && break
5483 ;;
5484 esac
5485 fi
5486 done
5487 IFS="$lt_save_ifs"
5488else
5489 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5490fi
5491fi
5492
5493LD="$lt_cv_path_LD"
5494if test -n "$LD"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5496$as_echo "$LD" >&6; }
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
22e05272 5501test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
b4c522fa
IB
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5503$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5504if ${lt_cv_prog_gnu_ld+:} false; then :
b4c522fa
IB
5505 $as_echo_n "(cached) " >&6
5506else
5507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5508case `$LD -v 2>&1 </dev/null` in
5509*GNU* | *'with BFD'*)
5510 lt_cv_prog_gnu_ld=yes
5511 ;;
5512*)
5513 lt_cv_prog_gnu_ld=no
5514 ;;
5515esac
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5518$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5519with_gnu_ld=$lt_cv_prog_gnu_ld
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5530$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5531if ${lt_cv_path_NM+:} false; then :
b4c522fa
IB
5532 $as_echo_n "(cached) " >&6
5533else
5534 if test -n "$NM"; then
5535 # Let the user override the test.
5536 lt_cv_path_NM="$NM"
5537else
5538 lt_nm_to_check="${ac_tool_prefix}nm"
5539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5540 lt_nm_to_check="$lt_nm_to_check nm"
5541 fi
5542 for lt_tmp_nm in $lt_nm_to_check; do
5543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5545 IFS="$lt_save_ifs"
5546 test -z "$ac_dir" && ac_dir=.
5547 tmp_nm="$ac_dir/$lt_tmp_nm"
5548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5549 # Check to see if the nm accepts a BSD-compat flag.
5550 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5551 # nm: unknown option "B" ignored
5552 # Tru64's nm complains that /dev/null is an invalid object file
5553 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5554 */dev/null* | *'Invalid file or object type'*)
5555 lt_cv_path_NM="$tmp_nm -B"
5556 break
5557 ;;
5558 *)
5559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5560 */dev/null*)
5561 lt_cv_path_NM="$tmp_nm -p"
5562 break
5563 ;;
5564 *)
5565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5566 continue # so that we can try to find one that supports BSD flags
5567 ;;
5568 esac
5569 ;;
5570 esac
5571 fi
5572 done
5573 IFS="$lt_save_ifs"
5574 done
5575 : ${lt_cv_path_NM=no}
5576fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5579$as_echo "$lt_cv_path_NM" >&6; }
5580if test "$lt_cv_path_NM" != "no"; then
5581 NM="$lt_cv_path_NM"
5582else
5583 # Didn't find any BSD compatible name lister, look for dumpbin.
5584 if test -n "$DUMPBIN"; then :
5585 # Let the user override the test.
5586 else
5587 if test -n "$ac_tool_prefix"; then
5588 for ac_prog in dumpbin "link -dump"
5589 do
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5594if ${ac_cv_prog_DUMPBIN+:} false; then :
b4c522fa
IB
5595 $as_echo_n "(cached) " >&6
5596else
5597 if test -n "$DUMPBIN"; then
5598 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
5607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611done
5612 done
5613IFS=$as_save_IFS
5614
5615fi
5616fi
5617DUMPBIN=$ac_cv_prog_DUMPBIN
5618if test -n "$DUMPBIN"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5620$as_echo "$DUMPBIN" >&6; }
5621else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623$as_echo "no" >&6; }
5624fi
5625
5626
5627 test -n "$DUMPBIN" && break
5628 done
5629fi
5630if test -z "$DUMPBIN"; then
5631 ac_ct_DUMPBIN=$DUMPBIN
5632 for ac_prog in dumpbin "link -dump"
5633do
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635set dummy $ac_prog; ac_word=$2
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5638if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
b4c522fa
IB
5639 $as_echo_n "(cached) " >&6
5640else
5641 if test -n "$ac_ct_DUMPBIN"; then
5642 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
5651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656 done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5662if test -n "$ac_ct_DUMPBIN"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5664$as_echo "$ac_ct_DUMPBIN" >&6; }
5665else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }
5668fi
5669
5670
5671 test -n "$ac_ct_DUMPBIN" && break
5672done
5673
5674 if test "x$ac_ct_DUMPBIN" = x; then
5675 DUMPBIN=":"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678yes:)
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681ac_tool_warned=yes ;;
5682esac
5683 DUMPBIN=$ac_ct_DUMPBIN
5684 fi
5685fi
5686
5687 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5688 *COFF*)
5689 DUMPBIN="$DUMPBIN -symbols"
5690 ;;
5691 *)
5692 DUMPBIN=:
5693 ;;
5694 esac
5695 fi
5696
5697 if test "$DUMPBIN" != ":"; then
5698 NM="$DUMPBIN"
5699 fi
5700fi
5701test -z "$NM" && NM=nm
5702
5703
5704
5705
5706
5707
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5709$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5710if ${lt_cv_nm_interface+:} false; then :
b4c522fa
IB
5711 $as_echo_n "(cached) " >&6
5712else
5713 lt_cv_nm_interface="BSD nm"
5714 echo "int some_variable = 0;" > conftest.$ac_ext
5715 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5716 (eval "$ac_compile" 2>conftest.err)
5717 cat conftest.err >&5
5718 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5720 cat conftest.err >&5
5721 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5722 cat conftest.out >&5
5723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5724 lt_cv_nm_interface="MS dumpbin"
5725 fi
5726 rm -f conftest*
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5729$as_echo "$lt_cv_nm_interface" >&6; }
5730
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5732$as_echo_n "checking whether ln -s works... " >&6; }
5733LN_S=$as_ln_s
5734if test "$LN_S" = "ln -s"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736$as_echo "yes" >&6; }
5737else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5739$as_echo "no, using $LN_S" >&6; }
5740fi
5741
5742# find the maximum length of command line arguments
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5744$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5745if ${lt_cv_sys_max_cmd_len+:} false; then :
b4c522fa
IB
5746 $as_echo_n "(cached) " >&6
5747else
5748 i=0
5749 teststring="ABCD"
5750
5751 case $build_os in
5752 msdosdjgpp*)
5753 # On DJGPP, this test can blow up pretty badly due to problems in libc
5754 # (any single argument exceeding 2000 bytes causes a buffer overrun
5755 # during glob expansion). Even if it were fixed, the result of this
5756 # check would be larger than it should be.
5757 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5758 ;;
5759
5760 gnu*)
5761 # Under GNU Hurd, this test is not required because there is
5762 # no limit to the length of command line arguments.
5763 # Libtool will interpret -1 as no limit whatsoever
5764 lt_cv_sys_max_cmd_len=-1;
5765 ;;
5766
5767 cygwin* | mingw* | cegcc*)
5768 # On Win9x/ME, this test blows up -- it succeeds, but takes
5769 # about 5 minutes as the teststring grows exponentially.
5770 # Worse, since 9x/ME are not pre-emptively multitasking,
5771 # you end up with a "frozen" computer, even though with patience
5772 # the test eventually succeeds (with a max line length of 256k).
5773 # Instead, let's just punt: use the minimum linelength reported by
5774 # all of the supported platforms: 8192 (on NT/2K/XP).
5775 lt_cv_sys_max_cmd_len=8192;
5776 ;;
5777
5778 mint*)
5779 # On MiNT this can take a long time and run out of memory.
5780 lt_cv_sys_max_cmd_len=8192;
5781 ;;
5782
5783 amigaos*)
5784 # On AmigaOS with pdksh, this test takes hours, literally.
5785 # So we just punt and use a minimum line length of 8192.
5786 lt_cv_sys_max_cmd_len=8192;
5787 ;;
5788
5789 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5790 # This has been around since 386BSD, at least. Likely further.
5791 if test -x /sbin/sysctl; then
5792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5793 elif test -x /usr/sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5795 else
5796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5797 fi
5798 # And add a safety zone
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5801 ;;
5802
5803 interix*)
5804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5805 lt_cv_sys_max_cmd_len=196608
5806 ;;
5807
5808 osf*)
5809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5811 # nice to cause kernel panics so lets avoid the loop below.
5812 # First set a reasonable default.
5813 lt_cv_sys_max_cmd_len=16384
5814 #
5815 if test -x /sbin/sysconfig; then
5816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5818 esac
5819 fi
5820 ;;
5821 sco3.2v5*)
5822 lt_cv_sys_max_cmd_len=102400
5823 ;;
5824 sysv5* | sco5v6* | sysv4.2uw2*)
5825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5826 if test -n "$kargmax"; then
5827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5828 else
5829 lt_cv_sys_max_cmd_len=32768
5830 fi
5831 ;;
5832 *)
5833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5834 if test -n "$lt_cv_sys_max_cmd_len"; then
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5837 else
5838 # Make teststring a little bigger before we do anything with it.
5839 # a 1K string should be a reasonable start.
5840 for i in 1 2 3 4 5 6 7 8 ; do
5841 teststring=$teststring$teststring
5842 done
5843 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5844 # If test is not a shell built-in, we'll probably end up computing a
5845 # maximum length that is only half of the actual maximum length, but
5846 # we can't tell.
5847 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5848 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5849 test $i != 17 # 1/2 MB should be enough
5850 do
5851 i=`expr $i + 1`
5852 teststring=$teststring$teststring
5853 done
5854 # Only check the string length outside the loop.
5855 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5856 teststring=
5857 # Add a significant safety factor because C++ compilers can tack on
5858 # massive amounts of additional arguments before passing them to the
5859 # linker. It appears as though 1/2 is a usable value.
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5861 fi
5862 ;;
5863 esac
5864
5865fi
5866
5867if test -n $lt_cv_sys_max_cmd_len ; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5869$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5870else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5872$as_echo "none" >&6; }
5873fi
5874max_cmd_len=$lt_cv_sys_max_cmd_len
5875
5876
5877
5878
5879
5880
5881: ${CP="cp -f"}
5882: ${MV="mv -f"}
5883: ${RM="rm -f"}
5884
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5886$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5887# Try some XSI features
5888xsi_shell=no
5889( _lt_dummy="a/b/c"
5890 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5891 = c,a/b,, \
5892 && eval 'test $(( 1 + 1 )) -eq 2 \
5893 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5894 && xsi_shell=yes
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5896$as_echo "$xsi_shell" >&6; }
5897
5898
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5900$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5901lt_shell_append=no
5902( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5903 >/dev/null 2>&1 \
5904 && lt_shell_append=yes
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5906$as_echo "$lt_shell_append" >&6; }
5907
5908
5909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5910 lt_unset=unset
5911else
5912 lt_unset=false
5913fi
5914
5915
5916
5917
5918
5919# test EBCDIC or ASCII
5920case `echo X|tr X '\101'` in
5921 A) # ASCII based system
5922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5923 lt_SP2NL='tr \040 \012'
5924 lt_NL2SP='tr \015\012 \040\040'
5925 ;;
5926 *) # EBCDIC based system
5927 lt_SP2NL='tr \100 \n'
5928 lt_NL2SP='tr \r\n \100\100'
5929 ;;
5930esac
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5941$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5942if ${lt_cv_ld_reload_flag+:} false; then :
b4c522fa
IB
5943 $as_echo_n "(cached) " >&6
5944else
5945 lt_cv_ld_reload_flag='-r'
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5948$as_echo "$lt_cv_ld_reload_flag" >&6; }
5949reload_flag=$lt_cv_ld_reload_flag
5950case $reload_flag in
5951"" | " "*) ;;
5952*) reload_flag=" $reload_flag" ;;
5953esac
5954reload_cmds='$LD$reload_flag -o $output$reload_objs'
5955case $host_os in
5956 darwin*)
5957 if test "$GCC" = yes; then
5958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5959 else
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 fi
5962 ;;
5963esac
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973if test -n "$ac_tool_prefix"; then
5974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5975set dummy ${ac_tool_prefix}objdump; ac_word=$2
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5978if ${ac_cv_prog_OBJDUMP+:} false; then :
b4c522fa
IB
5979 $as_echo_n "(cached) " >&6
5980else
5981 if test -n "$OBJDUMP"; then
5982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5983else
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
5991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995done
5996 done
5997IFS=$as_save_IFS
5998
5999fi
6000fi
6001OBJDUMP=$ac_cv_prog_OBJDUMP
6002if test -n "$OBJDUMP"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6004$as_echo "$OBJDUMP" >&6; }
6005else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007$as_echo "no" >&6; }
6008fi
6009
6010
6011fi
6012if test -z "$ac_cv_prog_OBJDUMP"; then
6013 ac_ct_OBJDUMP=$OBJDUMP
6014 # Extract the first word of "objdump", so it can be a program name with args.
6015set dummy objdump; ac_word=$2
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6018if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b4c522fa
IB
6019 $as_echo_n "(cached) " >&6
6020else
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036 done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6042if test -n "$ac_ct_OBJDUMP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6044$as_echo "$ac_ct_OBJDUMP" >&6; }
6045else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048fi
6049
6050 if test "x$ac_ct_OBJDUMP" = x; then
6051 OBJDUMP="false"
6052 else
6053 case $cross_compiling:$ac_tool_warned in
6054yes:)
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057ac_tool_warned=yes ;;
6058esac
6059 OBJDUMP=$ac_ct_OBJDUMP
6060 fi
6061else
6062 OBJDUMP="$ac_cv_prog_OBJDUMP"
6063fi
6064
6065test -z "$OBJDUMP" && OBJDUMP=objdump
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6076$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6077if ${lt_cv_deplibs_check_method+:} false; then :
b4c522fa
IB
6078 $as_echo_n "(cached) " >&6
6079else
6080 lt_cv_file_magic_cmd='$MAGIC_CMD'
6081lt_cv_file_magic_test_file=
6082lt_cv_deplibs_check_method='unknown'
6083# Need to set the preceding variable on all platforms that support
6084# interlibrary dependencies.
6085# 'none' -- dependencies not supported.
6086# `unknown' -- same as none, but documents that we really don't know.
6087# 'pass_all' -- all dependencies passed with no checks.
6088# 'test_compile' -- check by making test program.
6089# 'file_magic [[regex]]' -- check by looking for files in library path
6090# which responds to the $file_magic_cmd with a given extended regex.
6091# If you have `file' or equivalent on your system and you're not sure
6092# whether `pass_all' will *always* work, you probably want this one.
6093
6094case $host_os in
6095aix[4-9]*)
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
6099beos*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103bsdi[45]*)
6104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6105 lt_cv_file_magic_cmd='/usr/bin/file -L'
6106 lt_cv_file_magic_test_file=/shlib/libc.so
6107 ;;
6108
6109cygwin*)
6110 # func_win32_libid is a shell function defined in ltmain.sh
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
6113 ;;
6114
6115mingw* | pw32*)
6116 # Base MSYS/MinGW do not provide the 'file' command needed by
6117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6118 # unless we find 'file', for example because we are cross-compiling.
6119 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6120 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6122 lt_cv_file_magic_cmd='func_win32_libid'
6123 else
6124 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6125 lt_cv_file_magic_cmd='$OBJDUMP -f'
6126 fi
6127 ;;
6128
6129cegcc*)
6130 # use the weaker test based on 'objdump'. See mingw*.
6131 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6132 lt_cv_file_magic_cmd='$OBJDUMP -f'
6133 ;;
6134
6135darwin* | rhapsody*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139freebsd* | dragonfly*)
6140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141 case $host_cpu in
6142 i*86 )
6143 # Not sure whether the presence of OpenBSD here was a mistake.
6144 # Let's accept both of them until this is cleared up.
6145 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6146 lt_cv_file_magic_cmd=/usr/bin/file
6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6148 ;;
6149 esac
6150 else
6151 lt_cv_deplibs_check_method=pass_all
6152 fi
6153 ;;
6154
6155gnu*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159haiku*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163hpux10.20* | hpux11*)
6164 lt_cv_file_magic_cmd=/usr/bin/file
6165 case $host_cpu in
6166 ia64*)
6167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6169 ;;
6170 hppa*64*)
6171 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]'
6172 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6173 ;;
6174 *)
6175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6176 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6177 ;;
6178 esac
6179 ;;
6180
6181interix[3-9]*)
6182 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6184 ;;
6185
6186irix5* | irix6* | nonstopux*)
6187 case $LD in
6188 *-32|*"-32 ") libmagic=32-bit;;
6189 *-n32|*"-n32 ") libmagic=N32;;
6190 *-64|*"-64 ") libmagic=64-bit;;
6191 *) libmagic=never-match;;
6192 esac
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196# This must be Linux ELF.
6197linux* | k*bsd*-gnu | kopensolaris*-gnu)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200
6201netbsd*)
6202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 else
6205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6206 fi
6207 ;;
6208
6209newos6*)
6210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6211 lt_cv_file_magic_cmd=/usr/bin/file
6212 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6213 ;;
6214
6215*nto* | *qnx*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219openbsd*)
6220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6222 else
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6224 fi
6225 ;;
6226
6227osf3* | osf4* | osf5*)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
6230
6231rdos*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235solaris*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243sysv4 | sysv4.3*)
6244 case $host_vendor in
6245 motorola)
6246 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]'
6247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6248 ;;
6249 ncr)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252 sequent)
6253 lt_cv_file_magic_cmd='/bin/file'
6254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6255 ;;
6256 sni)
6257 lt_cv_file_magic_cmd='/bin/file'
6258 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6259 lt_cv_file_magic_test_file=/lib/libc.so
6260 ;;
6261 siemens)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264 pc)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267 esac
6268 ;;
6269
6270tpf*)
6271 lt_cv_deplibs_check_method=pass_all
6272 ;;
6273esac
6274
6275fi
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6277$as_echo "$lt_cv_deplibs_check_method" >&6; }
6278file_magic_cmd=$lt_cv_file_magic_cmd
6279deplibs_check_method=$lt_cv_deplibs_check_method
6280test -z "$deplibs_check_method" && deplibs_check_method=unknown
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6295set dummy ${ac_tool_prefix}ar; ac_word=$2
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6298if ${ac_cv_prog_AR+:} false; then :
b4c522fa
IB
6299 $as_echo_n "(cached) " >&6
6300else
6301 if test -n "$AR"; then
6302 ac_cv_prog_AR="$AR" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6311 ac_cv_prog_AR="${ac_tool_prefix}ar"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315done
6316 done
6317IFS=$as_save_IFS
6318
6319fi
6320fi
6321AR=$ac_cv_prog_AR
6322if test -n "$AR"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6324$as_echo "$AR" >&6; }
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
6328fi
6329
6330
6331fi
6332if test -z "$ac_cv_prog_AR"; then
6333 ac_ct_AR=$AR
6334 # Extract the first word of "ar", so it can be a program name with args.
6335set dummy ar; ac_word=$2
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6338if ${ac_cv_prog_ac_ct_AR+:} false; then :
b4c522fa
IB
6339 $as_echo_n "(cached) " >&6
6340else
6341 if test -n "$ac_ct_AR"; then
6342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6351 ac_cv_prog_ac_ct_AR="ar"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355done
6356 done
6357IFS=$as_save_IFS
6358
6359fi
6360fi
6361ac_ct_AR=$ac_cv_prog_ac_ct_AR
6362if test -n "$ac_ct_AR"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6364$as_echo "$ac_ct_AR" >&6; }
6365else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
6368fi
6369
6370 if test "x$ac_ct_AR" = x; then
6371 AR="false"
6372 else
6373 case $cross_compiling:$ac_tool_warned in
6374yes:)
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377ac_tool_warned=yes ;;
6378esac
6379 AR=$ac_ct_AR
6380 fi
6381else
6382 AR="$ac_cv_prog_AR"
6383fi
6384
6385test -z "$AR" && AR=ar
6386test -z "$AR_FLAGS" && AR_FLAGS=cru
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400set dummy ${ac_tool_prefix}strip; ac_word=$2
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6403if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
6404 $as_echo_n "(cached) " >&6
6405else
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408else
6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420done
6421 done
6422IFS=$as_save_IFS
6423
6424fi
6425fi
6426STRIP=$ac_cv_prog_STRIP
6427if test -n "$STRIP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6429$as_echo "$STRIP" >&6; }
6430else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432$as_echo "no" >&6; }
6433fi
6434
6435
6436fi
6437if test -z "$ac_cv_prog_STRIP"; then
6438 ac_ct_STRIP=$STRIP
6439 # Extract the first word of "strip", so it can be a program name with args.
6440set dummy strip; ac_word=$2
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6443if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
6444 $as_echo_n "(cached) " >&6
6445else
6446 if test -n "$ac_ct_STRIP"; then
6447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6456 ac_cv_prog_ac_ct_STRIP="strip"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460done
6461 done
6462IFS=$as_save_IFS
6463
6464fi
6465fi
6466ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6467if test -n "$ac_ct_STRIP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6469$as_echo "$ac_ct_STRIP" >&6; }
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473fi
6474
6475 if test "x$ac_ct_STRIP" = x; then
6476 STRIP=":"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479yes:)
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482ac_tool_warned=yes ;;
6483esac
6484 STRIP=$ac_ct_STRIP
6485 fi
6486else
6487 STRIP="$ac_cv_prog_STRIP"
6488fi
6489
6490test -z "$STRIP" && STRIP=:
6491
6492
6493
6494
6495
6496
6497if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6499set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6502if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
6503 $as_echo_n "(cached) " >&6
6504else
6505 if test -n "$RANLIB"; then
6506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519done
6520 done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525RANLIB=$ac_cv_prog_RANLIB
6526if test -n "$RANLIB"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6528$as_echo "$RANLIB" >&6; }
6529else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534
6535fi
6536if test -z "$ac_cv_prog_RANLIB"; then
6537 ac_ct_RANLIB=$RANLIB
6538 # Extract the first word of "ranlib", so it can be a program name with args.
6539set dummy ranlib; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6542if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
6543 $as_echo_n "(cached) " >&6
6544else
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6555 ac_cv_prog_ac_ct_RANLIB="ranlib"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560 done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6566if test -n "$ac_ct_RANLIB"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6568$as_echo "$ac_ct_RANLIB" >&6; }
6569else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574 if test "x$ac_ct_RANLIB" = x; then
6575 RANLIB=":"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578yes:)
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581ac_tool_warned=yes ;;
6582esac
6583 RANLIB=$ac_ct_RANLIB
6584 fi
6585else
6586 RANLIB="$ac_cv_prog_RANLIB"
6587fi
6588
6589test -z "$RANLIB" && RANLIB=:
6590
6591
6592
6593
6594
6595
6596# Determine commands to create old-style static archives.
6597old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6598old_postinstall_cmds='chmod 644 $oldlib'
6599old_postuninstall_cmds=
6600
6601if test -n "$RANLIB"; then
6602 case $host_os in
6603 openbsd*)
6604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6605 ;;
6606 *)
6607 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6608 ;;
6609 esac
6610 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6611fi
6612
6613case $host_os in
6614 darwin*)
6615 lock_old_archive_extraction=yes ;;
6616 *)
6617 lock_old_archive_extraction=no ;;
6618esac
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658# If no C compiler was specified, use CC.
6659LTCC=${LTCC-"$CC"}
6660
6661# If no C compiler flags were specified, use CFLAGS.
6662LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663
6664# Allow CC to be a program name with arguments.
6665compiler=$CC
6666
6667
6668# Check for command to grab the raw symbol name followed by C symbol from nm.
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6670$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6671if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b4c522fa
IB
6672 $as_echo_n "(cached) " >&6
6673else
6674
6675# These are sane defaults that work on at least a few old systems.
6676# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6677
6678# Character class describing NM global symbol codes.
6679symcode='[BCDEGRST]'
6680
6681# Regexp to match symbols that can be accessed directly from C.
6682sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6683
6684# Define system-specific variables.
6685case $host_os in
6686aix*)
6687 symcode='[BCDT]'
6688 ;;
6689cygwin* | mingw* | pw32* | cegcc*)
6690 symcode='[ABCDGISTW]'
6691 ;;
6692hpux*)
6693 if test "$host_cpu" = ia64; then
6694 symcode='[ABCDEGRST]'
6695 fi
6696 ;;
6697irix* | nonstopux*)
6698 symcode='[BCDEGRST]'
6699 ;;
6700osf*)
6701 symcode='[BCDEGQRST]'
6702 ;;
6703solaris*)
6704 symcode='[BDRT]'
6705 ;;
6706sco3.2v5*)
6707 symcode='[DT]'
6708 ;;
6709sysv4.2uw2*)
6710 symcode='[DT]'
6711 ;;
6712sysv5* | sco5v6* | unixware* | OpenUNIX*)
6713 symcode='[ABDT]'
6714 ;;
6715sysv4)
6716 symcode='[DFNSTU]'
6717 ;;
6718esac
6719
6720# If we're using GNU nm, then use its standard symbol codes.
6721case `$NM -V 2>&1` in
6722*GNU* | *'with BFD'*)
6723 symcode='[ABCDGIRSTW]' ;;
6724esac
6725
6726# Transform an extracted symbol line into a proper C declaration.
6727# Some systems (esp. on ia64) link data and code symbols differently,
6728# so use this general approach.
6729lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6730
6731# Transform an extracted symbol line into symbol name and symbol address
6732lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6733lt_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'"
6734
6735# Handle CRLF in mingw tool chain
6736opt_cr=
6737case $build_os in
6738mingw*)
6739 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6740 ;;
6741esac
6742
6743# Try without a prefix underscore, then with it.
6744for ac_symprfx in "" "_"; do
6745
6746 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6747 symxfrm="\\1 $ac_symprfx\\2 \\2"
6748
6749 # Write the raw and C identifiers.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751 # Fake it for dumpbin and say T for any non-static function
6752 # and D for any global variable.
6753 # Also find C++ and __fastcall symbols from MSVC++,
6754 # which start with @ or ?.
6755 lt_cv_sys_global_symbol_pipe="$AWK '"\
6756" {last_section=section; section=\$ 3};"\
6757" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758" \$ 0!~/External *\|/{next};"\
6759" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6760" {if(hide[section]) next};"\
6761" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6762" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6763" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6764" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6765" ' prfx=^$ac_symprfx"
6766 else
6767 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6768 fi
6769
6770 # Check to see that the pipe works correctly.
6771 pipe_works=no
6772
6773 rm -f conftest*
6774 cat > conftest.$ac_ext <<_LT_EOF
6775#ifdef __cplusplus
6776extern "C" {
6777#endif
6778char nm_test_var;
6779void nm_test_func(void);
6780void nm_test_func(void){}
6781#ifdef __cplusplus
6782}
6783#endif
6784int main(){nm_test_var='a';nm_test_func();return(0);}
6785_LT_EOF
6786
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 # Now try to grab the symbols.
6793 nlist=conftest.nm
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6795 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; } && test -s "$nlist"; then
6799 # Try sorting and uniquifying the output.
6800 if sort "$nlist" | uniq > "$nlist"T; then
6801 mv -f "$nlist"T "$nlist"
6802 else
6803 rm -f "$nlist"T
6804 fi
6805
6806 # Make sure that we snagged all the symbols we need.
6807 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6808 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6809 cat <<_LT_EOF > conftest.$ac_ext
6810#ifdef __cplusplus
6811extern "C" {
6812#endif
6813
6814_LT_EOF
6815 # Now generate the symbol file.
6816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6817
6818 cat <<_LT_EOF >> conftest.$ac_ext
6819
6820/* The mapping between symbol names and symbols. */
6821const struct {
6822 const char *name;
6823 void *address;
6824}
6825lt__PROGRAM__LTX_preloaded_symbols[] =
6826{
6827 { "@PROGRAM@", (void *) 0 },
6828_LT_EOF
6829 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6830 cat <<\_LT_EOF >> conftest.$ac_ext
6831 {0, (void *) 0}
6832};
6833
6834/* This works around a problem in FreeBSD linker */
6835#ifdef FREEBSD_WORKAROUND
6836static const void *lt_preloaded_setup() {
6837 return lt__PROGRAM__LTX_preloaded_symbols;
6838}
6839#endif
6840
6841#ifdef __cplusplus
6842}
6843#endif
6844_LT_EOF
6845 # Now try linking the two files.
6846 mv conftest.$ac_objext conftstm.$ac_objext
6847 lt_save_LIBS="$LIBS"
6848 lt_save_CFLAGS="$CFLAGS"
6849 LIBS="conftstm.$ac_objext"
6850 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6852 (eval $ac_link) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6856 pipe_works=yes
6857 fi
6858 LIBS="$lt_save_LIBS"
6859 CFLAGS="$lt_save_CFLAGS"
6860 else
6861 echo "cannot find nm_test_func in $nlist" >&5
6862 fi
6863 else
6864 echo "cannot find nm_test_var in $nlist" >&5
6865 fi
6866 else
6867 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6868 fi
6869 else
6870 echo "$progname: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 fi
6873 rm -rf conftest* conftst*
6874
6875 # Do not use the global_symbol_pipe unless it works.
6876 if test "$pipe_works" = yes; then
6877 break
6878 else
6879 lt_cv_sys_global_symbol_pipe=
6880 fi
6881done
6882
6883fi
6884
6885if test -z "$lt_cv_sys_global_symbol_pipe"; then
6886 lt_cv_sys_global_symbol_to_cdecl=
6887fi
6888if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6890$as_echo "failed" >&6; }
6891else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6893$as_echo "ok" >&6; }
6894fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918# Check whether --enable-libtool-lock was given.
6919if test "${enable_libtool_lock+set}" = set; then :
6920 enableval=$enable_libtool_lock;
6921fi
6922
6923test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6924
6925# Some flags need to be propagated to the compiler or linker for good
6926# libtool support.
6927case $host in
6928ia64-*-hpux*)
6929 # Find out which ABI we are using.
6930 echo 'int i;' > conftest.$ac_ext
6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6932 (eval $ac_compile) 2>&5
6933 ac_status=$?
6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935 test $ac_status = 0; }; then
6936 case `/usr/bin/file conftest.$ac_objext` in
6937 *ELF-32*)
6938 HPUX_IA64_MODE="32"
6939 ;;
6940 *ELF-64*)
6941 HPUX_IA64_MODE="64"
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947*-*-irix6*)
6948 # Find out which ABI we are using.
6949 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951 (eval $ac_compile) 2>&5
6952 ac_status=$?
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; }; then
6955 if test "$lt_cv_prog_gnu_ld" = yes; then
6956 case `/usr/bin/file conftest.$ac_objext` in
6957 *32-bit*)
6958 LD="${LD-ld} -melf32bsmip"
6959 ;;
6960 *N32*)
6961 LD="${LD-ld} -melf32bmipn32"
6962 ;;
6963 *64-bit*)
6964 LD="${LD-ld} -melf64bmip"
6965 ;;
6966 esac
6967 else
6968 case `/usr/bin/file conftest.$ac_objext` in
6969 *32-bit*)
6970 LD="${LD-ld} -32"
6971 ;;
6972 *N32*)
6973 LD="${LD-ld} -n32"
6974 ;;
6975 *64-bit*)
6976 LD="${LD-ld} -64"
6977 ;;
6978 esac
6979 fi
6980 fi
6981 rm -rf conftest*
6982 ;;
6983
6984x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6985s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6986 # Find out which ABI we are using.
6987 echo 'int i;' > conftest.$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6990 ac_status=$?
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 case `/usr/bin/file conftest.o` in
6994 *32-bit*)
6995 case $host in
6996 x86_64-*kfreebsd*-gnu)
6997 LD="${LD-ld} -m elf_i386_fbsd"
6998 ;;
6999 x86_64-*linux*)
7000 case `/usr/bin/file conftest.o` in
7001 *x86-64*)
7002 LD="${LD-ld} -m elf32_x86_64"
7003 ;;
7004 *)
7005 LD="${LD-ld} -m elf_i386"
7006 ;;
7007 esac
7008 ;;
7009 powerpc64le-*linux*)
7010 LD="${LD-ld} -m elf32lppclinux"
7011 ;;
7012 powerpc64-*linux*)
7013 LD="${LD-ld} -m elf32ppclinux"
7014 ;;
7015 s390x-*linux*)
7016 LD="${LD-ld} -m elf_s390"
7017 ;;
7018 sparc64-*linux*)
7019 LD="${LD-ld} -m elf32_sparc"
7020 ;;
7021 esac
7022 ;;
7023 *64-bit*)
7024 case $host in
7025 x86_64-*kfreebsd*-gnu)
7026 LD="${LD-ld} -m elf_x86_64_fbsd"
7027 ;;
7028 x86_64-*linux*)
7029 LD="${LD-ld} -m elf_x86_64"
7030 ;;
7031 powerpcle-*linux*)
7032 LD="${LD-ld} -m elf64lppc"
7033 ;;
7034 powerpc-*linux*)
7035 LD="${LD-ld} -m elf64ppc"
7036 ;;
7037 s390*-*linux*|s390*-*tpf*)
7038 LD="${LD-ld} -m elf64_s390"
7039 ;;
7040 sparc*-*linux*)
7041 LD="${LD-ld} -m elf64_sparc"
7042 ;;
7043 esac
7044 ;;
7045 esac
7046 fi
7047 rm -rf conftest*
7048 ;;
7049
7050*-*-sco3.2v5*)
7051 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7052 SAVE_CFLAGS="$CFLAGS"
7053 CFLAGS="$CFLAGS -belf"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7055$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7056if ${lt_cv_cc_needs_belf+:} false; then :
b4c522fa
IB
7057 $as_echo_n "(cached) " >&6
7058else
7059 ac_ext=c
7060ac_cpp='$CPP $CPPFLAGS'
7061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063ac_compiler_gnu=$ac_cv_c_compiler_gnu
7064
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h. */
7067
7068int
7069main ()
7070{
7071
7072 ;
7073 return 0;
7074}
7075_ACEOF
7076if ac_fn_c_try_link "$LINENO"; then :
7077 lt_cv_cc_needs_belf=yes
7078else
7079 lt_cv_cc_needs_belf=no
7080fi
7081rm -f core conftest.err conftest.$ac_objext \
7082 conftest$ac_exeext conftest.$ac_ext
7083 ac_ext=c
7084ac_cpp='$CPP $CPPFLAGS'
7085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7091$as_echo "$lt_cv_cc_needs_belf" >&6; }
7092 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7093 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7094 CFLAGS="$SAVE_CFLAGS"
7095 fi
7096 ;;
7097sparc*-*solaris*)
7098 # Find out which ABI we are using.
7099 echo 'int i;' > conftest.$ac_ext
7100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7101 (eval $ac_compile) 2>&5
7102 ac_status=$?
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 case `/usr/bin/file conftest.o` in
7106 *64-bit*)
7107 case $lt_cv_prog_gnu_ld in
7108 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7109 *)
7110 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7111 LD="${LD-ld} -64"
7112 fi
7113 ;;
7114 esac
7115 ;;
7116 esac
7117 fi
7118 rm -rf conftest*
7119 ;;
7120esac
7121
7122need_locks="$enable_libtool_lock"
7123
7124
7125 case $host_os in
7126 rhapsody* | darwin*)
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7129set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7132if ${ac_cv_prog_DSYMUTIL+:} false; then :
b4c522fa
IB
7133 $as_echo_n "(cached) " >&6
7134else
7135 if test -n "$DSYMUTIL"; then
7136 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7145 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150 done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155DSYMUTIL=$ac_cv_prog_DSYMUTIL
7156if test -n "$DSYMUTIL"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7158$as_echo "$DSYMUTIL" >&6; }
7159else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164
7165fi
7166if test -z "$ac_cv_prog_DSYMUTIL"; then
7167 ac_ct_DSYMUTIL=$DSYMUTIL
7168 # Extract the first word of "dsymutil", so it can be a program name with args.
7169set dummy dsymutil; ac_word=$2
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7172if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b4c522fa
IB
7173 $as_echo_n "(cached) " >&6
7174else
7175 if test -n "$ac_ct_DSYMUTIL"; then
7176 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7185 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190 done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7196if test -n "$ac_ct_DSYMUTIL"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7198$as_echo "$ac_ct_DSYMUTIL" >&6; }
7199else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201$as_echo "no" >&6; }
7202fi
7203
7204 if test "x$ac_ct_DSYMUTIL" = x; then
7205 DSYMUTIL=":"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208yes:)
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211ac_tool_warned=yes ;;
7212esac
7213 DSYMUTIL=$ac_ct_DSYMUTIL
7214 fi
7215else
7216 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7217fi
7218
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7221set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7224if ${ac_cv_prog_NMEDIT+:} false; then :
b4c522fa
IB
7225 $as_echo_n "(cached) " >&6
7226else
7227 if test -n "$NMEDIT"; then
7228 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242 done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247NMEDIT=$ac_cv_prog_NMEDIT
7248if test -n "$NMEDIT"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7250$as_echo "$NMEDIT" >&6; }
7251else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256
7257fi
7258if test -z "$ac_cv_prog_NMEDIT"; then
7259 ac_ct_NMEDIT=$NMEDIT
7260 # Extract the first word of "nmedit", so it can be a program name with args.
7261set dummy nmedit; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7264if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b4c522fa
IB
7265 $as_echo_n "(cached) " >&6
7266else
7267 if test -n "$ac_ct_NMEDIT"; then
7268 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282 done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7288if test -n "$ac_ct_NMEDIT"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7290$as_echo "$ac_ct_NMEDIT" >&6; }
7291else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296 if test "x$ac_ct_NMEDIT" = x; then
7297 NMEDIT=":"
7298 else
7299 case $cross_compiling:$ac_tool_warned in
7300yes:)
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303ac_tool_warned=yes ;;
7304esac
7305 NMEDIT=$ac_ct_NMEDIT
7306 fi
7307else
7308 NMEDIT="$ac_cv_prog_NMEDIT"
7309fi
7310
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7313set dummy ${ac_tool_prefix}lipo; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7316if ${ac_cv_prog_LIPO+:} false; then :
b4c522fa
IB
7317 $as_echo_n "(cached) " >&6
7318else
7319 if test -n "$LIPO"; then
7320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7329 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333done
7334 done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339LIPO=$ac_cv_prog_LIPO
7340if test -n "$LIPO"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7342$as_echo "$LIPO" >&6; }
7343else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348
7349fi
7350if test -z "$ac_cv_prog_LIPO"; then
7351 ac_ct_LIPO=$LIPO
7352 # Extract the first word of "lipo", so it can be a program name with args.
7353set dummy lipo; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7356if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
b4c522fa
IB
7357 $as_echo_n "(cached) " >&6
7358else
7359 if test -n "$ac_ct_LIPO"; then
7360 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7369 ac_cv_prog_ac_ct_LIPO="lipo"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374 done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7380if test -n "$ac_ct_LIPO"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7382$as_echo "$ac_ct_LIPO" >&6; }
7383else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388 if test "x$ac_ct_LIPO" = x; then
7389 LIPO=":"
7390 else
7391 case $cross_compiling:$ac_tool_warned in
7392yes:)
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395ac_tool_warned=yes ;;
7396esac
7397 LIPO=$ac_ct_LIPO
7398 fi
7399else
7400 LIPO="$ac_cv_prog_LIPO"
7401fi
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}otool; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7408if ${ac_cv_prog_OTOOL+:} false; then :
b4c522fa
IB
7409 $as_echo_n "(cached) " >&6
7410else
7411 if test -n "$OTOOL"; then
7412 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7421 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426 done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431OTOOL=$ac_cv_prog_OTOOL
7432if test -n "$OTOOL"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7434$as_echo "$OTOOL" >&6; }
7435else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441fi
7442if test -z "$ac_cv_prog_OTOOL"; then
7443 ac_ct_OTOOL=$OTOOL
7444 # Extract the first word of "otool", so it can be a program name with args.
7445set dummy otool; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7448if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b4c522fa
IB
7449 $as_echo_n "(cached) " >&6
7450else
7451 if test -n "$ac_ct_OTOOL"; then
7452 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7461 ac_cv_prog_ac_ct_OTOOL="otool"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466 done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7472if test -n "$ac_ct_OTOOL"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7474$as_echo "$ac_ct_OTOOL" >&6; }
7475else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480 if test "x$ac_ct_OTOOL" = x; then
7481 OTOOL=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484yes:)
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487ac_tool_warned=yes ;;
7488esac
7489 OTOOL=$ac_ct_OTOOL
7490 fi
7491else
7492 OTOOL="$ac_cv_prog_OTOOL"
7493fi
7494
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7497set dummy ${ac_tool_prefix}otool64; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7500if ${ac_cv_prog_OTOOL64+:} false; then :
b4c522fa
IB
7501 $as_echo_n "(cached) " >&6
7502else
7503 if test -n "$OTOOL64"; then
7504 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7513 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518 done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523OTOOL64=$ac_cv_prog_OTOOL64
7524if test -n "$OTOOL64"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7526$as_echo "$OTOOL64" >&6; }
7527else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532
7533fi
7534if test -z "$ac_cv_prog_OTOOL64"; then
7535 ac_ct_OTOOL64=$OTOOL64
7536 # Extract the first word of "otool64", so it can be a program name with args.
7537set dummy otool64; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7540if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
b4c522fa
IB
7541 $as_echo_n "(cached) " >&6
7542else
7543 if test -n "$ac_ct_OTOOL64"; then
7544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7553 ac_cv_prog_ac_ct_OTOOL64="otool64"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557done
7558 done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7564if test -n "$ac_ct_OTOOL64"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7566$as_echo "$ac_ct_OTOOL64" >&6; }
7567else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572 if test "x$ac_ct_OTOOL64" = x; then
7573 OTOOL64=":"
7574 else
7575 case $cross_compiling:$ac_tool_warned in
7576yes:)
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579ac_tool_warned=yes ;;
7580esac
7581 OTOOL64=$ac_ct_OTOOL64
7582 fi
7583else
7584 OTOOL64="$ac_cv_prog_OTOOL64"
7585fi
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7614$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7615if ${lt_cv_apple_cc_single_mod+:} false; then :
b4c522fa
IB
7616 $as_echo_n "(cached) " >&6
7617else
7618 lt_cv_apple_cc_single_mod=no
7619 if test -z "${LT_MULTI_MODULE}"; then
7620 # By default we will add the -single_module flag. You can override
7621 # by either setting the environment variable LT_MULTI_MODULE
7622 # non-empty at configure time, or by adding -multi_module to the
7623 # link flags.
7624 rm -rf libconftest.dylib*
7625 echo "int foo(void){return 1;}" > conftest.c
7626 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627-dynamiclib -Wl,-single_module conftest.c" >&5
7628 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7630 _lt_result=$?
7631 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7632 lt_cv_apple_cc_single_mod=yes
7633 else
7634 cat conftest.err >&5
7635 fi
7636 rm -rf libconftest.dylib*
7637 rm -f conftest.*
7638 fi
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7641$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7643$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7644if ${lt_cv_ld_exported_symbols_list+:} false; then :
b4c522fa
IB
7645 $as_echo_n "(cached) " >&6
7646else
7647 lt_cv_ld_exported_symbols_list=no
7648 save_LDFLAGS=$LDFLAGS
7649 echo "_main" > conftest.sym
7650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h. */
7653
7654int
7655main ()
7656{
7657
7658 ;
7659 return 0;
7660}
7661_ACEOF
7662if ac_fn_c_try_link "$LINENO"; then :
7663 lt_cv_ld_exported_symbols_list=yes
7664else
7665 lt_cv_ld_exported_symbols_list=no
7666fi
7667rm -f core conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 LDFLAGS="$save_LDFLAGS"
7670
7671fi
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7673$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7675$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7676if ${lt_cv_ld_force_load+:} false; then :
b4c522fa
IB
7677 $as_echo_n "(cached) " >&6
7678else
7679 lt_cv_ld_force_load=no
7680 cat > conftest.c << _LT_EOF
7681int forced_loaded() { return 2;}
7682_LT_EOF
7683 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7684 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7685 echo "$AR cru libconftest.a conftest.o" >&5
7686 $AR cru libconftest.a conftest.o 2>&5
7687 cat > conftest.c << _LT_EOF
7688int main() { return 0;}
7689_LT_EOF
7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7691 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7692 _lt_result=$?
7693 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7694 lt_cv_ld_force_load=yes
7695 else
7696 cat conftest.err >&5
7697 fi
7698 rm -f conftest.err libconftest.a conftest conftest.c
7699 rm -rf conftest.dSYM
7700
7701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7703$as_echo "$lt_cv_ld_force_load" >&6; }
7704 case $host_os in
7705 rhapsody* | darwin1.[012])
7706 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7707 darwin1.*)
7708 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7709 darwin*) # darwin 5.x on
7710 # if running on 10.5 or later, the deployment target defaults
7711 # to the OS version, if on x86, and 10.4, the deployment
7712 # target defaults to 10.4. Don't you love it?
7713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7714 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7715 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7716 10.[012][,.]*)
7717 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7718 10.*)
7719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7720 esac
7721 ;;
7722 esac
7723 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7724 _lt_dar_single_mod='$single_module'
7725 fi
7726 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7727 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7728 else
7729 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7730 fi
7731 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7732 _lt_dsymutil='~$DSYMUTIL $lib || :'
7733 else
7734 _lt_dsymutil=
7735 fi
7736 ;;
7737 esac
7738
7739ac_ext=c
7740ac_cpp='$CPP $CPPFLAGS'
7741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7745$as_echo_n "checking how to run the C preprocessor... " >&6; }
7746# On Suns, sometimes $CPP names a directory.
7747if test -n "$CPP" && test -d "$CPP"; then
7748 CPP=
7749fi
7750if test -z "$CPP"; then
22e05272 7751 if ${ac_cv_prog_CPP+:} false; then :
b4c522fa
IB
7752 $as_echo_n "(cached) " >&6
7753else
7754 # Double quotes because CPP needs to be expanded
7755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7756 do
7757 ac_preproc_ok=false
7758for ac_c_preproc_warn_flag in '' yes
7759do
7760 # Use a header file that comes with gcc, so configuring glibc
7761 # with a fresh cross-compiler works.
7762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7763 # <limits.h> exists even on freestanding compilers.
7764 # On the NeXT, cc -E runs the code through the compiler's parser,
7765 # not just through cpp. "Syntax error" is here to catch this case.
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h. */
7768#ifdef __STDC__
7769# include <limits.h>
7770#else
7771# include <assert.h>
7772#endif
7773 Syntax error
7774_ACEOF
7775if ac_fn_c_try_cpp "$LINENO"; then :
7776
7777else
7778 # Broken: fails on valid input.
7779continue
7780fi
22e05272 7781rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7782
7783 # OK, works on sane cases. Now check whether nonexistent headers
7784 # can be detected and how.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787#include <ac_nonexistent.h>
7788_ACEOF
7789if ac_fn_c_try_cpp "$LINENO"; then :
7790 # Broken: success on invalid input.
7791continue
7792else
7793 # Passes both tests.
7794ac_preproc_ok=:
7795break
7796fi
22e05272 7797rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7798
7799done
7800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7801rm -f conftest.i conftest.err conftest.$ac_ext
b4c522fa
IB
7802if $ac_preproc_ok; then :
7803 break
7804fi
7805
7806 done
7807 ac_cv_prog_CPP=$CPP
7808
7809fi
7810 CPP=$ac_cv_prog_CPP
7811else
7812 ac_cv_prog_CPP=$CPP
7813fi
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7815$as_echo "$CPP" >&6; }
7816ac_preproc_ok=false
7817for ac_c_preproc_warn_flag in '' yes
7818do
7819 # Use a header file that comes with gcc, so configuring glibc
7820 # with a fresh cross-compiler works.
7821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822 # <limits.h> exists even on freestanding compilers.
7823 # On the NeXT, cc -E runs the code through the compiler's parser,
7824 # not just through cpp. "Syntax error" is here to catch this case.
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827#ifdef __STDC__
7828# include <limits.h>
7829#else
7830# include <assert.h>
7831#endif
7832 Syntax error
7833_ACEOF
7834if ac_fn_c_try_cpp "$LINENO"; then :
7835
7836else
7837 # Broken: fails on valid input.
7838continue
7839fi
22e05272 7840rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7841
7842 # OK, works on sane cases. Now check whether nonexistent headers
7843 # can be detected and how.
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h. */
7846#include <ac_nonexistent.h>
7847_ACEOF
7848if ac_fn_c_try_cpp "$LINENO"; then :
7849 # Broken: success on invalid input.
7850continue
7851else
7852 # Passes both tests.
7853ac_preproc_ok=:
7854break
7855fi
22e05272 7856rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7857
7858done
7859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7860rm -f conftest.i conftest.err conftest.$ac_ext
b4c522fa
IB
7861if $ac_preproc_ok; then :
7862
7863else
7864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7866as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7867See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
7868fi
7869
7870ac_ext=c
7871ac_cpp='$CPP $CPPFLAGS'
7872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
7876
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7878$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7879if ${ac_cv_header_stdc+:} false; then :
b4c522fa
IB
7880 $as_echo_n "(cached) " >&6
7881else
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883/* end confdefs.h. */
7884#include <stdlib.h>
7885#include <stdarg.h>
7886#include <string.h>
7887#include <float.h>
7888
7889int
7890main ()
7891{
7892
7893 ;
7894 return 0;
7895}
7896_ACEOF
7897if ac_fn_c_try_compile "$LINENO"; then :
7898 ac_cv_header_stdc=yes
7899else
7900 ac_cv_header_stdc=no
7901fi
7902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903
7904if test $ac_cv_header_stdc = yes; then
7905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h. */
7908#include <string.h>
7909
7910_ACEOF
7911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912 $EGREP "memchr" >/dev/null 2>&1; then :
7913
7914else
7915 ac_cv_header_stdc=no
7916fi
7917rm -f conftest*
7918
7919fi
7920
7921if test $ac_cv_header_stdc = yes; then
7922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h. */
7925#include <stdlib.h>
7926
7927_ACEOF
7928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929 $EGREP "free" >/dev/null 2>&1; then :
7930
7931else
7932 ac_cv_header_stdc=no
7933fi
7934rm -f conftest*
7935
7936fi
7937
7938if test $ac_cv_header_stdc = yes; then
7939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7940 if test "$cross_compiling" = yes; then :
7941 :
7942else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h. */
7945#include <ctype.h>
7946#include <stdlib.h>
7947#if ((' ' & 0x0FF) == 0x020)
7948# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7949# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7950#else
7951# define ISLOWER(c) \
7952 (('a' <= (c) && (c) <= 'i') \
7953 || ('j' <= (c) && (c) <= 'r') \
7954 || ('s' <= (c) && (c) <= 'z'))
7955# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7956#endif
7957
7958#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7959int
7960main ()
7961{
7962 int i;
7963 for (i = 0; i < 256; i++)
7964 if (XOR (islower (i), ISLOWER (i))
7965 || toupper (i) != TOUPPER (i))
7966 return 2;
7967 return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_run "$LINENO"; then :
7971
7972else
7973 ac_cv_header_stdc=no
7974fi
7975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7976 conftest.$ac_objext conftest.beam conftest.$ac_ext
7977fi
7978
7979fi
7980fi
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7982$as_echo "$ac_cv_header_stdc" >&6; }
7983if test $ac_cv_header_stdc = yes; then
7984
7985$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7986
7987fi
7988
7989# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7990for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7991 inttypes.h stdint.h unistd.h
7992do :
7993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7994ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7995"
22e05272 7996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b4c522fa
IB
7997 cat >>confdefs.h <<_ACEOF
7998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7999_ACEOF
8000
8001fi
8002
8003done
8004
8005
8006for ac_header in dlfcn.h
8007do :
8008 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8009"
22e05272 8010if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b4c522fa
IB
8011 cat >>confdefs.h <<_ACEOF
8012#define HAVE_DLFCN_H 1
8013_ACEOF
8014
8015fi
8016
8017done
8018
8019
8020
8021
8022
8023# Set options
8024enable_dlopen=yes
8025
8026
8027
8028
8029 enable_win32_dll=no
8030
8031
8032 # Check whether --enable-shared was given.
8033if test "${enable_shared+set}" = set; then :
8034 enableval=$enable_shared; p=${PACKAGE-default}
8035 case $enableval in
8036 yes) enable_shared=yes ;;
8037 no) enable_shared=no ;;
8038 *)
8039 enable_shared=no
8040 # Look at the argument we got. We use all the common list separators.
8041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8042 for pkg in $enableval; do
8043 IFS="$lt_save_ifs"
8044 if test "X$pkg" = "X$p"; then
8045 enable_shared=yes
8046 fi
8047 done
8048 IFS="$lt_save_ifs"
8049 ;;
8050 esac
8051else
8052 enable_shared=yes
8053fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063 # Check whether --enable-static was given.
8064if test "${enable_static+set}" = set; then :
8065 enableval=$enable_static; p=${PACKAGE-default}
8066 case $enableval in
8067 yes) enable_static=yes ;;
8068 no) enable_static=no ;;
8069 *)
8070 enable_static=no
8071 # Look at the argument we got. We use all the common list separators.
8072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8073 for pkg in $enableval; do
8074 IFS="$lt_save_ifs"
8075 if test "X$pkg" = "X$p"; then
8076 enable_static=yes
8077 fi
8078 done
8079 IFS="$lt_save_ifs"
8080 ;;
8081 esac
8082else
8083 enable_static=yes
8084fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095# Check whether --with-pic was given.
8096if test "${with_pic+set}" = set; then :
8097 withval=$with_pic; pic_mode="$withval"
8098else
8099 pic_mode=default
8100fi
8101
8102
8103test -z "$pic_mode" && pic_mode=default
8104
8105
8106
8107
8108
8109
8110
8111 # Check whether --enable-fast-install was given.
8112if test "${enable_fast_install+set}" = set; then :
8113 enableval=$enable_fast_install; p=${PACKAGE-default}
8114 case $enableval in
8115 yes) enable_fast_install=yes ;;
8116 no) enable_fast_install=no ;;
8117 *)
8118 enable_fast_install=no
8119 # Look at the argument we got. We use all the common list separators.
8120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8121 for pkg in $enableval; do
8122 IFS="$lt_save_ifs"
8123 if test "X$pkg" = "X$p"; then
8124 enable_fast_install=yes
8125 fi
8126 done
8127 IFS="$lt_save_ifs"
8128 ;;
8129 esac
8130else
8131 enable_fast_install=yes
8132fi
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144# This can be used to rebuild libtool when needed
8145LIBTOOL_DEPS="$ltmain"
8146
8147# Always use our own libtool.
8148LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175test -z "$LN_S" && LN_S="ln -s"
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190if test -n "${ZSH_VERSION+set}" ; then
8191 setopt NO_GLOB_SUBST
8192fi
8193
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8195$as_echo_n "checking for objdir... " >&6; }
22e05272 8196if ${lt_cv_objdir+:} false; then :
b4c522fa
IB
8197 $as_echo_n "(cached) " >&6
8198else
8199 rm -f .libs 2>/dev/null
8200mkdir .libs 2>/dev/null
8201if test -d .libs; then
8202 lt_cv_objdir=.libs
8203else
8204 # MS-DOS does not allow filenames that begin with a dot.
8205 lt_cv_objdir=_libs
8206fi
8207rmdir .libs 2>/dev/null
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8210$as_echo "$lt_cv_objdir" >&6; }
8211objdir=$lt_cv_objdir
8212
8213
8214
8215
8216
8217cat >>confdefs.h <<_ACEOF
8218#define LT_OBJDIR "$lt_cv_objdir/"
8219_ACEOF
8220
8221
8222
8223
8224case $host_os in
8225aix3*)
8226 # AIX sometimes has problems with the GCC collect2 program. For some
8227 # reason, if we set the COLLECT_NAMES environment variable, the problems
8228 # vanish in a puff of smoke.
8229 if test "X${COLLECT_NAMES+set}" != Xset; then
8230 COLLECT_NAMES=
8231 export COLLECT_NAMES
8232 fi
8233 ;;
8234esac
8235
8236# Global variables:
8237ofile=libtool
8238can_build_shared=yes
8239
8240# All known linkers require a `.a' archive for static linking (except MSVC,
8241# which needs '.lib').
8242libext=a
8243
8244with_gnu_ld="$lt_cv_prog_gnu_ld"
8245
8246old_CC="$CC"
8247old_CFLAGS="$CFLAGS"
8248
8249# Set sane defaults for various variables
8250test -z "$CC" && CC=cc
8251test -z "$LTCC" && LTCC=$CC
8252test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8253test -z "$LD" && LD=ld
8254test -z "$ac_objext" && ac_objext=o
8255
8256for cc_temp in $compiler""; do
8257 case $cc_temp in
8258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8260 \-*) ;;
8261 *) break;;
8262 esac
8263done
8264cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8265
8266
8267# Only perform the check for file, if the check method requires it
8268test -z "$MAGIC_CMD" && MAGIC_CMD=file
8269case $deplibs_check_method in
8270file_magic*)
8271 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8273$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8274if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8275 $as_echo_n "(cached) " >&6
8276else
8277 case $MAGIC_CMD in
8278[\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280 ;;
8281*)
8282 lt_save_MAGIC_CMD="$MAGIC_CMD"
8283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS="$lt_save_ifs"
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f $ac_dir/${ac_tool_prefix}file; then
8289 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301*** Warning: the command libtool uses to detect shared libraries,
8302*** $file_magic_cmd, produces output that libtool cannot recognize.
8303*** The result is that libtool may fail to recognize shared libraries
8304*** as such. This will affect the creation of libtool libraries that
8305*** depend on shared libraries, but programs linked with such libtool
8306*** libraries will work regardless of this problem. Nevertheless, you
8307*** may want to report the problem to your system manager and/or to
8308*** bug-libtool@gnu.org
8309
8310_LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS="$lt_save_ifs"
8318 MAGIC_CMD="$lt_save_MAGIC_CMD"
8319 ;;
8320esac
8321fi
8322
8323MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326$as_echo "$MAGIC_CMD" >&6; }
8327else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329$as_echo "no" >&6; }
8330fi
8331
8332
8333
8334
8335
8336if test -z "$lt_cv_path_MAGIC_CMD"; then
8337 if test -n "$ac_tool_prefix"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8339$as_echo_n "checking for file... " >&6; }
22e05272 8340if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8341 $as_echo_n "(cached) " >&6
8342else
8343 case $MAGIC_CMD in
8344[\\/*] | ?:[\\/]*)
8345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8346 ;;
8347*)
8348 lt_save_MAGIC_CMD="$MAGIC_CMD"
8349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8351 for ac_dir in $ac_dummy; do
8352 IFS="$lt_save_ifs"
8353 test -z "$ac_dir" && ac_dir=.
8354 if test -f $ac_dir/file; then
8355 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8356 if test -n "$file_magic_test_file"; then
8357 case $deplibs_check_method in
8358 "file_magic "*)
8359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8362 $EGREP "$file_magic_regex" > /dev/null; then
8363 :
8364 else
8365 cat <<_LT_EOF 1>&2
8366
8367*** Warning: the command libtool uses to detect shared libraries,
8368*** $file_magic_cmd, produces output that libtool cannot recognize.
8369*** The result is that libtool may fail to recognize shared libraries
8370*** as such. This will affect the creation of libtool libraries that
8371*** depend on shared libraries, but programs linked with such libtool
8372*** libraries will work regardless of this problem. Nevertheless, you
8373*** may want to report the problem to your system manager and/or to
8374*** bug-libtool@gnu.org
8375
8376_LT_EOF
8377 fi ;;
8378 esac
8379 fi
8380 break
8381 fi
8382 done
8383 IFS="$lt_save_ifs"
8384 MAGIC_CMD="$lt_save_MAGIC_CMD"
8385 ;;
8386esac
8387fi
8388
8389MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8390if test -n "$MAGIC_CMD"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8392$as_echo "$MAGIC_CMD" >&6; }
8393else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395$as_echo "no" >&6; }
8396fi
8397
8398
8399 else
8400 MAGIC_CMD=:
8401 fi
8402fi
8403
8404 fi
8405 ;;
8406esac
8407
8408# Use C for the default configuration in the libtool script
8409
8410lt_save_CC="$CC"
8411ac_ext=c
8412ac_cpp='$CPP $CPPFLAGS'
8413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8415ac_compiler_gnu=$ac_cv_c_compiler_gnu
8416
8417
8418# Source file extension for C test sources.
8419ac_ext=c
8420
8421# Object file extension for compiled C test sources.
8422objext=o
8423objext=$objext
8424
8425# Code to be used in simple compile tests
8426lt_simple_compile_test_code="int some_variable = 0;"
8427
8428# Code to be used in simple link tests
8429lt_simple_link_test_code='int main(){return(0);}'
8430
8431
8432
8433
8434
8435
8436
8437# If no C compiler was specified, use CC.
8438LTCC=${LTCC-"$CC"}
8439
8440# If no C compiler flags were specified, use CFLAGS.
8441LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8442
8443# Allow CC to be a program name with arguments.
8444compiler=$CC
8445
8446# Save the default compiler, since it gets overwritten when the other
8447# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8448compiler_DEFAULT=$CC
8449
8450# save warnings/boilerplate of simple test code
8451ac_outfile=conftest.$ac_objext
8452echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8453eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454_lt_compiler_boilerplate=`cat conftest.err`
8455$RM conftest*
8456
8457ac_outfile=conftest.$ac_objext
8458echo "$lt_simple_link_test_code" >conftest.$ac_ext
8459eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460_lt_linker_boilerplate=`cat conftest.err`
8461$RM -r conftest*
8462
8463
8464## CAVEAT EMPTOR:
8465## There is no encapsulation within the following macros, do not change
8466## the running order or otherwise move them around unless you know exactly
8467## what you are doing...
8468if test -n "$compiler"; then
8469
8470lt_prog_compiler_no_builtin_flag=
8471
8472if test "$GCC" = yes; then
8473 case $cc_basename in
8474 nvcc*)
8475 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8476 *)
8477 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8478 esac
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8481$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8482if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
8483 $as_echo_n "(cached) " >&6
8484else
8485 lt_cv_prog_compiler_rtti_exceptions=no
8486 ac_outfile=conftest.$ac_objext
8487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488 lt_compiler_flag="-fno-rtti -fno-exceptions"
8489 # Insert the option either (1) after the last *FLAGS variable, or
8490 # (2) before a word containing "conftest.", or (3) at the end.
8491 # Note that $ac_compile itself does not contain backslashes and begins
8492 # with a dollar sign (not a hyphen), so the echo should work correctly.
8493 # The option is referenced via a variable to avoid confusing sed.
8494 lt_compile=`echo "$ac_compile" | $SED \
8495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8497 -e 's:$: $lt_compiler_flag:'`
8498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8499 (eval "$lt_compile" 2>conftest.err)
8500 ac_status=$?
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 if (exit $ac_status) && test -s "$ac_outfile"; then
8504 # The compiler can only warn and ignore the option if not recognized
8505 # So say no if there are warnings other than the usual output.
8506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8509 lt_cv_prog_compiler_rtti_exceptions=yes
8510 fi
8511 fi
8512 $RM conftest*
8513
8514fi
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8516$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8517
8518if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8520else
8521 :
8522fi
8523
8524fi
8525
8526
8527
8528
8529
8530
8531 lt_prog_compiler_wl=
8532lt_prog_compiler_pic=
8533lt_prog_compiler_static=
8534
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8536$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8537
8538 if test "$GCC" = yes; then
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_static='-static'
8541
8542 case $host_os in
8543 aix*)
8544 # All AIX code is PIC.
8545 if test "$host_cpu" = ia64; then
8546 # AIX 5 now supports IA64 processor
8547 lt_prog_compiler_static='-Bstatic'
8548 fi
8549 lt_prog_compiler_pic='-fPIC'
8550 ;;
8551
8552 amigaos*)
8553 case $host_cpu in
8554 powerpc)
8555 # see comment about AmigaOS4 .so support
8556 lt_prog_compiler_pic='-fPIC'
8557 ;;
8558 m68k)
8559 # FIXME: we need at least 68020 code to build shared libraries, but
8560 # adding the `-m68020' flag to GCC prevents building anything better,
8561 # like `-m68040'.
8562 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8563 ;;
8564 esac
8565 ;;
8566
8567 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8568 # PIC is the default for these OSes.
8569 ;;
8570
8571 mingw* | cygwin* | pw32* | os2* | cegcc*)
8572 # This hack is so that the source file can tell whether it is being
8573 # built for inclusion in a dll (and should export symbols for example).
8574 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8575 # (--disable-auto-import) libraries
8576 lt_prog_compiler_pic='-DDLL_EXPORT'
8577 ;;
8578
8579 darwin* | rhapsody*)
8580 # PIC is the default on this platform
8581 # Common symbols not allowed in MH_DYLIB files
8582 lt_prog_compiler_pic='-fno-common'
8583 ;;
8584
8585 haiku*)
8586 # PIC is the default for Haiku.
8587 # The "-static" flag exists, but is broken.
8588 lt_prog_compiler_static=
8589 ;;
8590
8591 hpux*)
8592 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8593 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8594 # sets the default TLS model and affects inlining.
8595 case $host_cpu in
8596 hppa*64*)
8597 # +Z the default
8598 ;;
8599 *)
8600 lt_prog_compiler_pic='-fPIC'
8601 ;;
8602 esac
8603 ;;
8604
8605 interix[3-9]*)
8606 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8607 # Instead, we relocate shared libraries at runtime.
8608 ;;
8609
8610 msdosdjgpp*)
8611 # Just because we use GCC doesn't mean we suddenly get shared libraries
8612 # on systems that don't support them.
8613 lt_prog_compiler_can_build_shared=no
8614 enable_shared=no
8615 ;;
8616
8617 *nto* | *qnx*)
8618 # QNX uses GNU C++, but need to define -shared option too, otherwise
8619 # it will coredump.
8620 lt_prog_compiler_pic='-fPIC -shared'
8621 ;;
8622
8623 sysv4*MP*)
8624 if test -d /usr/nec; then
8625 lt_prog_compiler_pic=-Kconform_pic
8626 fi
8627 ;;
8628
8629 *)
8630 lt_prog_compiler_pic='-fPIC'
8631 ;;
8632 esac
8633
8634 case $cc_basename in
8635 nvcc*) # Cuda Compiler Driver 2.2
8636 lt_prog_compiler_wl='-Xlinker '
8637 lt_prog_compiler_pic='-Xcompiler -fPIC'
8638 ;;
8639 esac
8640 else
8641 # PORTME Check for flag to pass linker flags through the system compiler.
8642 case $host_os in
8643 aix*)
8644 lt_prog_compiler_wl='-Wl,'
8645 if test "$host_cpu" = ia64; then
8646 # AIX 5 now supports IA64 processor
8647 lt_prog_compiler_static='-Bstatic'
8648 else
8649 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8650 fi
8651 ;;
8652
8653 mingw* | cygwin* | pw32* | os2* | cegcc*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 lt_prog_compiler_pic='-DDLL_EXPORT'
8657 ;;
8658
8659 hpux9* | hpux10* | hpux11*)
8660 lt_prog_compiler_wl='-Wl,'
8661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8662 # not for PA HP-UX.
8663 case $host_cpu in
8664 hppa*64*|ia64*)
8665 # +Z the default
8666 ;;
8667 *)
8668 lt_prog_compiler_pic='+Z'
8669 ;;
8670 esac
8671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8672 lt_prog_compiler_static='${wl}-a ${wl}archive'
8673 ;;
8674
8675 irix5* | irix6* | nonstopux*)
8676 lt_prog_compiler_wl='-Wl,'
8677 # PIC (with -KPIC) is the default.
8678 lt_prog_compiler_static='-non_shared'
8679 ;;
8680
8681 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8682 case $cc_basename in
8683 # old Intel for x86_64 which still supported -KPIC.
8684 ecc*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-static'
8688 ;;
8689 # icc used to be incompatible with GCC.
8690 # ICC 10 doesn't accept -KPIC any more.
8691 icc* | ifort*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-fPIC'
8694 lt_prog_compiler_static='-static'
8695 ;;
8696 # Lahey Fortran 8.1.
8697 lf95*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='--shared'
8700 lt_prog_compiler_static='--static'
8701 ;;
8702 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fpic'
8707 lt_prog_compiler_static='-Bstatic'
8708 ;;
8709 ccc*)
8710 lt_prog_compiler_wl='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static='-non_shared'
8713 ;;
8714 xl* | bgxl* | bgf* | mpixl*)
8715 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='-qpic'
8718 lt_prog_compiler_static='-qstaticlink'
8719 ;;
8720 *)
8721 case `$CC -V 2>&1 | sed 5q` in
8722 *Sun\ F* | *Sun*Fortran*)
8723 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_wl=''
8727 ;;
8728 *Sun\ C*)
8729 # Sun C 5.9
8730 lt_prog_compiler_pic='-KPIC'
8731 lt_prog_compiler_static='-Bstatic'
8732 lt_prog_compiler_wl='-Wl,'
8733 ;;
8734 esac
8735 ;;
8736 esac
8737 ;;
8738
8739 newsos6)
8740 lt_prog_compiler_pic='-KPIC'
8741 lt_prog_compiler_static='-Bstatic'
8742 ;;
8743
8744 *nto* | *qnx*)
8745 # QNX uses GNU C++, but need to define -shared option too, otherwise
8746 # it will coredump.
8747 lt_prog_compiler_pic='-fPIC -shared'
8748 ;;
8749
8750 osf3* | osf4* | osf5*)
8751 lt_prog_compiler_wl='-Wl,'
8752 # All OSF/1 code is PIC.
8753 lt_prog_compiler_static='-non_shared'
8754 ;;
8755
8756 rdos*)
8757 lt_prog_compiler_static='-non_shared'
8758 ;;
8759
8760 solaris*)
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 case $cc_basename in
8764 f77* | f90* | f95*)
8765 lt_prog_compiler_wl='-Qoption ld ';;
8766 *)
8767 lt_prog_compiler_wl='-Wl,';;
8768 esac
8769 ;;
8770
8771 sunos4*)
8772 lt_prog_compiler_wl='-Qoption ld '
8773 lt_prog_compiler_pic='-PIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 sysv4 | sysv4.2uw2* | sysv4.3*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-Bstatic'
8781 ;;
8782
8783 sysv4*MP*)
8784 if test -d /usr/nec ;then
8785 lt_prog_compiler_pic='-Kconform_pic'
8786 lt_prog_compiler_static='-Bstatic'
8787 fi
8788 ;;
8789
8790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-KPIC'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795
8796 unicos*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_can_build_shared=no
8799 ;;
8800
8801 uts4*)
8802 lt_prog_compiler_pic='-pic'
8803 lt_prog_compiler_static='-Bstatic'
8804 ;;
8805
8806 *)
8807 lt_prog_compiler_can_build_shared=no
8808 ;;
8809 esac
8810 fi
8811
8812case $host_os in
8813 # For platforms which do not support PIC, -DPIC is meaningless:
8814 *djgpp*)
8815 lt_prog_compiler_pic=
8816 ;;
8817 *)
8818 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8819 ;;
8820esac
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8822$as_echo "$lt_prog_compiler_pic" >&6; }
8823
8824
8825
8826
8827
8828
8829#
8830# Check to make sure the PIC flag actually works.
8831#
8832if test -n "$lt_prog_compiler_pic"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8834$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8835if ${lt_cv_prog_compiler_pic_works+:} false; then :
b4c522fa
IB
8836 $as_echo_n "(cached) " >&6
8837else
8838 lt_cv_prog_compiler_pic_works=no
8839 ac_outfile=conftest.$ac_objext
8840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8841 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8842 # Insert the option either (1) after the last *FLAGS variable, or
8843 # (2) before a word containing "conftest.", or (3) at the end.
8844 # Note that $ac_compile itself does not contain backslashes and begins
8845 # with a dollar sign (not a hyphen), so the echo should work correctly.
8846 # The option is referenced via a variable to avoid confusing sed.
8847 lt_compile=`echo "$ac_compile" | $SED \
8848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850 -e 's:$: $lt_compiler_flag:'`
8851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8852 (eval "$lt_compile" 2>conftest.err)
8853 ac_status=$?
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 if (exit $ac_status) && test -s "$ac_outfile"; then
8857 # The compiler can only warn and ignore the option if not recognized
8858 # So say no if there are warnings other than the usual output.
8859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8862 lt_cv_prog_compiler_pic_works=yes
8863 fi
8864 fi
8865 $RM conftest*
8866
8867fi
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8869$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8870
8871if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8872 case $lt_prog_compiler_pic in
8873 "" | " "*) ;;
8874 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8875 esac
8876else
8877 lt_prog_compiler_pic=
8878 lt_prog_compiler_can_build_shared=no
8879fi
8880
8881fi
8882
8883
8884
8885
8886
8887
8888#
8889# Check to make sure the static flag actually works.
8890#
8891wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8893$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8894if ${lt_cv_prog_compiler_static_works+:} false; then :
b4c522fa
IB
8895 $as_echo_n "(cached) " >&6
8896else
8897 lt_cv_prog_compiler_static_works=no
8898 save_LDFLAGS="$LDFLAGS"
8899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8900 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8902 # The linker can only warn and ignore the option if not recognized
8903 # So say no if there are warnings
8904 if test -s conftest.err; then
8905 # Append any errors to the config.log.
8906 cat conftest.err 1>&5
8907 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909 if diff conftest.exp conftest.er2 >/dev/null; then
8910 lt_cv_prog_compiler_static_works=yes
8911 fi
8912 else
8913 lt_cv_prog_compiler_static_works=yes
8914 fi
8915 fi
8916 $RM -r conftest*
8917 LDFLAGS="$save_LDFLAGS"
8918
8919fi
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8921$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8922
8923if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8924 :
8925else
8926 lt_prog_compiler_static=
8927fi
8928
8929
8930
8931
8932
8933
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8936$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8937if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
8938 $as_echo_n "(cached) " >&6
8939else
8940 lt_cv_prog_compiler_c_o=no
8941 $RM -r conftest 2>/dev/null
8942 mkdir conftest
8943 cd conftest
8944 mkdir out
8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8946
8947 lt_compiler_flag="-o out/conftest2.$ac_objext"
8948 # Insert the option either (1) after the last *FLAGS variable, or
8949 # (2) before a word containing "conftest.", or (3) at the end.
8950 # Note that $ac_compile itself does not contain backslashes and begins
8951 # with a dollar sign (not a hyphen), so the echo should work correctly.
8952 lt_compile=`echo "$ac_compile" | $SED \
8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8955 -e 's:$: $lt_compiler_flag:'`
8956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8957 (eval "$lt_compile" 2>out/conftest.err)
8958 ac_status=$?
8959 cat out/conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8962 then
8963 # The compiler can only warn and ignore the option if not recognized
8964 # So say no if there are warnings
8965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8968 lt_cv_prog_compiler_c_o=yes
8969 fi
8970 fi
8971 chmod u+w . 2>&5
8972 $RM conftest*
8973 # SGI C++ compiler will create directory out/ii_files/ for
8974 # template instantiation
8975 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8976 $RM out/* && rmdir out
8977 cd ..
8978 $RM -r conftest
8979 $RM conftest*
8980
8981fi
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8983$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8984
8985
8986
8987
8988
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8991$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8992if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
8993 $as_echo_n "(cached) " >&6
8994else
8995 lt_cv_prog_compiler_c_o=no
8996 $RM -r conftest 2>/dev/null
8997 mkdir conftest
8998 cd conftest
8999 mkdir out
9000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9001
9002 lt_compiler_flag="-o out/conftest2.$ac_objext"
9003 # Insert the option either (1) after the last *FLAGS variable, or
9004 # (2) before a word containing "conftest.", or (3) at the end.
9005 # Note that $ac_compile itself does not contain backslashes and begins
9006 # with a dollar sign (not a hyphen), so the echo should work correctly.
9007 lt_compile=`echo "$ac_compile" | $SED \
9008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9010 -e 's:$: $lt_compiler_flag:'`
9011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9012 (eval "$lt_compile" 2>out/conftest.err)
9013 ac_status=$?
9014 cat out/conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9017 then
9018 # The compiler can only warn and ignore the option if not recognized
9019 # So say no if there are warnings
9020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9023 lt_cv_prog_compiler_c_o=yes
9024 fi
9025 fi
9026 chmod u+w . 2>&5
9027 $RM conftest*
9028 # SGI C++ compiler will create directory out/ii_files/ for
9029 # template instantiation
9030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9031 $RM out/* && rmdir out
9032 cd ..
9033 $RM -r conftest
9034 $RM conftest*
9035
9036fi
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9038$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9039
9040
9041
9042
9043hard_links="nottested"
9044if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9045 # do not overwrite the value of need_locks provided by the user
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9047$as_echo_n "checking if we can lock with hard links... " >&6; }
9048 hard_links=yes
9049 $RM conftest*
9050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9051 touch conftest.a
9052 ln conftest.a conftest.b 2>&5 || hard_links=no
9053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9055$as_echo "$hard_links" >&6; }
9056 if test "$hard_links" = no; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9058$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9059 need_locks=warn
9060 fi
9061else
9062 need_locks=no
9063fi
9064
9065
9066
9067
9068
9069
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9071$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9072
9073 runpath_var=
9074 allow_undefined_flag=
9075 always_export_symbols=no
9076 archive_cmds=
9077 archive_expsym_cmds=
9078 compiler_needs_object=no
9079 enable_shared_with_static_runtimes=no
9080 export_dynamic_flag_spec=
9081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9082 hardcode_automatic=no
9083 hardcode_direct=no
9084 hardcode_direct_absolute=no
9085 hardcode_libdir_flag_spec=
9086 hardcode_libdir_flag_spec_ld=
9087 hardcode_libdir_separator=
9088 hardcode_minus_L=no
9089 hardcode_shlibpath_var=unsupported
9090 inherit_rpath=no
9091 link_all_deplibs=unknown
9092 module_cmds=
9093 module_expsym_cmds=
9094 old_archive_from_new_cmds=
9095 old_archive_from_expsyms_cmds=
9096 thread_safe_flag_spec=
9097 whole_archive_flag_spec=
9098 # include_expsyms should be a list of space-separated symbols to be *always*
9099 # included in the symbol list
9100 include_expsyms=
9101 # exclude_expsyms can be an extended regexp of symbols to exclude
9102 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9104 # as well as any symbol that contains `d'.
9105 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9107 # platforms (ab)use it in PIC code, but their linkers get confused if
9108 # the symbol is explicitly referenced. Since portable code cannot
9109 # rely on this symbol name, it's probably fine to never include it in
9110 # preloaded symbol tables.
9111 # Exclude shared library initialization/finalization symbols.
9112 extract_expsyms_cmds=
9113
9114 case $host_os in
9115 cygwin* | mingw* | pw32* | cegcc*)
9116 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9117 # When not using gcc, we currently assume that we are using
9118 # Microsoft Visual C++.
9119 if test "$GCC" != yes; then
9120 with_gnu_ld=no
9121 fi
9122 ;;
9123 interix*)
9124 # we just hope/assume this is gcc and not c89 (= MSVC++)
9125 with_gnu_ld=yes
9126 ;;
9127 openbsd*)
9128 with_gnu_ld=no
9129 ;;
9130 esac
9131
9132 ld_shlibs=yes
9133
9134 # On some targets, GNU ld is compatible enough with the native linker
9135 # that we're better off using the native interface for both.
9136 lt_use_gnu_ld_interface=no
9137 if test "$with_gnu_ld" = yes; then
9138 case $host_os in
9139 aix*)
9140 # The AIX port of GNU ld has always aspired to compatibility
9141 # with the native linker. However, as the warning in the GNU ld
9142 # block says, versions before 2.19.5* couldn't really create working
9143 # shared libraries, regardless of the interface used.
9144 case `$LD -v 2>&1` in
9145 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9146 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9147 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9148 *)
9149 lt_use_gnu_ld_interface=yes
9150 ;;
9151 esac
9152 ;;
9153 *)
9154 lt_use_gnu_ld_interface=yes
9155 ;;
9156 esac
9157 fi
9158
9159 if test "$lt_use_gnu_ld_interface" = yes; then
9160 # If archive_cmds runs LD, not CC, wlarc should be empty
9161 wlarc='${wl}'
9162
9163 # Set some defaults for GNU ld with shared library support. These
9164 # are reset later if shared libraries are not supported. Putting them
9165 # here allows them to be overridden if necessary.
9166 runpath_var=LD_RUN_PATH
9167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168 export_dynamic_flag_spec='${wl}--export-dynamic'
9169 # ancient GNU ld didn't support --whole-archive et. al.
9170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9172 else
9173 whole_archive_flag_spec=
9174 fi
9175 supports_anon_versioning=no
9176 case `$LD -v 2>&1` in
9177 *GNU\ gold*) supports_anon_versioning=yes ;;
9178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9181 *\ 2.11.*) ;; # other 2.11 versions
9182 *) supports_anon_versioning=yes ;;
9183 esac
9184
9185 # See if GNU ld supports shared libraries.
9186 case $host_os in
9187 aix[3-9]*)
9188 # On AIX/PPC, the GNU linker is very broken
9189 if test "$host_cpu" != ia64; then
9190 ld_shlibs=no
9191 cat <<_LT_EOF 1>&2
9192
9193*** Warning: the GNU linker, at least up to release 2.19, is reported
9194*** to be unable to reliably create shared libraries on AIX.
9195*** Therefore, libtool is disabling shared libraries support. If you
9196*** really care for shared libraries, you may want to install binutils
9197*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9198*** You will then need to restart the configuration process.
9199
9200_LT_EOF
9201 fi
9202 ;;
9203
9204 amigaos*)
9205 case $host_cpu in
9206 powerpc)
9207 # see comment about AmigaOS4 .so support
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 archive_expsym_cmds=''
9210 ;;
9211 m68k)
9212 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)'
9213 hardcode_libdir_flag_spec='-L$libdir'
9214 hardcode_minus_L=yes
9215 ;;
9216 esac
9217 ;;
9218
9219 beos*)
9220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9221 allow_undefined_flag=unsupported
9222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9223 # support --undefined. This deserves some investigation. FIXME
9224 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 else
9226 ld_shlibs=no
9227 fi
9228 ;;
9229
9230 cygwin* | mingw* | pw32* | cegcc*)
9231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9232 # as there is no search path for DLLs.
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 export_dynamic_flag_spec='${wl}--export-all-symbols'
9235 allow_undefined_flag=unsupported
9236 always_export_symbols=no
9237 enable_shared_with_static_runtimes=yes
9238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9239
9240 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9242 # If the export-symbols file already is a .def file (1st line
9243 # is EXPORTS), use it as is; otherwise, prepend...
9244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9245 cp $export_symbols $output_objdir/$soname.def;
9246 else
9247 echo EXPORTS > $output_objdir/$soname.def;
9248 cat $export_symbols >> $output_objdir/$soname.def;
9249 fi~
9250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 haiku*)
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 link_all_deplibs=yes
9259 ;;
9260
9261 interix[3-9]*)
9262 hardcode_direct=no
9263 hardcode_shlibpath_var=no
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec='${wl}-E'
9266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9267 # Instead, shared libraries are loaded at an image base (0x10000000 by
9268 # default) and relocated if they conflict, which is a slow very memory
9269 # consuming and fragmenting process. To avoid this, we pick a random,
9270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9273 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'
9274 ;;
9275
9276 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9277 tmp_diet=no
9278 if test "$host_os" = linux-dietlibc; then
9279 case $cc_basename in
9280 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9281 esac
9282 fi
9283 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9284 && test "$tmp_diet" = no
9285 then
9286 tmp_addflag=' $pic_flag'
9287 tmp_sharedflag='-shared'
9288 case $cc_basename,$host_cpu in
9289 pgcc*) # Portland Group C compiler
9290 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'
9291 tmp_addflag=' $pic_flag'
9292 ;;
9293 pgf77* | pgf90* | pgf95* | pgfortran*)
9294 # Portland Group f77 and f90 compilers
9295 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'
9296 tmp_addflag=' $pic_flag -Mnomain' ;;
9297 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9298 tmp_addflag=' -i_dynamic' ;;
9299 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9300 tmp_addflag=' -i_dynamic -nofor_main' ;;
9301 ifc* | ifort*) # Intel Fortran compiler
9302 tmp_addflag=' -nofor_main' ;;
9303 lf95*) # Lahey Fortran 8.1
9304 whole_archive_flag_spec=
9305 tmp_sharedflag='--shared' ;;
9306 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9307 tmp_sharedflag='-qmkshrobj'
9308 tmp_addflag= ;;
9309 nvcc*) # Cuda Compiler Driver 2.2
9310 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'
9311 compiler_needs_object=yes
9312 ;;
9313 esac
9314 case `$CC -V 2>&1 | sed 5q` in
9315 *Sun\ C*) # Sun C 5.9
9316 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'
9317 compiler_needs_object=yes
9318 tmp_sharedflag='-G' ;;
9319 *Sun\ F*) # Sun Fortran 8.3
9320 tmp_sharedflag='-G' ;;
9321 esac
9322 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323
9324 if test "x$supports_anon_versioning" = xyes; then
9325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9327 echo "local: *; };" >> $output_objdir/$libname.ver~
9328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9329 fi
9330
9331 case $cc_basename in
9332 xlf* | bgf* | bgxlf* | mpixlf*)
9333 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9334 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9335 hardcode_libdir_flag_spec=
9336 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9337 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9338 if test "x$supports_anon_versioning" = xyes; then
9339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9341 echo "local: *; };" >> $output_objdir/$libname.ver~
9342 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9343 fi
9344 ;;
9345 esac
9346 else
9347 ld_shlibs=no
9348 fi
9349 ;;
9350
9351 netbsd*)
9352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9353 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9354 wlarc=
9355 else
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358 fi
9359 ;;
9360
9361 solaris*)
9362 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9363 ld_shlibs=no
9364 cat <<_LT_EOF 1>&2
9365
9366*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9367*** create shared libraries on Solaris systems. Therefore, libtool
9368*** is disabling shared libraries support. We urge you to upgrade GNU
9369*** binutils to release 2.9.1 or newer. Another option is to modify
9370*** your PATH or compiler configuration so that the native linker is
9371*** used, and then restart.
9372
9373_LT_EOF
9374 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9383 case `$LD -v 2>&1` in
9384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9385 ld_shlibs=no
9386 cat <<_LT_EOF 1>&2
9387
9388*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9389*** reliably create shared libraries on SCO systems. Therefore, libtool
9390*** is disabling shared libraries support. We urge you to upgrade GNU
9391*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9392*** your PATH or compiler configuration so that the native linker is
9393*** used, and then restart.
9394
9395_LT_EOF
9396 ;;
9397 *)
9398 # For security reasons, it is highly recommended that you always
9399 # use absolute paths for naming shared libraries, and exclude the
9400 # DT_RUNPATH tag from executables and libraries. But doing so
9401 # requires that you compile everything twice, which is a pain.
9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410 esac
9411 ;;
9412
9413 sunos4*)
9414 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415 wlarc=
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 *)
9421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 else
9425 ld_shlibs=no
9426 fi
9427 ;;
9428 esac
9429
9430 if test "$ld_shlibs" = no; then
9431 runpath_var=
9432 hardcode_libdir_flag_spec=
9433 export_dynamic_flag_spec=
9434 whole_archive_flag_spec=
9435 fi
9436 else
9437 # PORTME fill in a description of your system's linker (not GNU ld)
9438 case $host_os in
9439 aix3*)
9440 allow_undefined_flag=unsupported
9441 always_export_symbols=yes
9442 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'
9443 # Note: this linker hardcodes the directories in LIBPATH if there
9444 # are no directories specified by -L.
9445 hardcode_minus_L=yes
9446 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9447 # Neither direct hardcoding nor static linking is supported with a
9448 # broken collect2.
9449 hardcode_direct=unsupported
9450 fi
9451 ;;
9452
9453 aix[4-9]*)
9454 if test "$host_cpu" = ia64; then
9455 # On IA64, the linker does run time linking by default, so we don't
9456 # have to do anything special.
9457 aix_use_runtimelinking=no
9458 exp_sym_flag='-Bexport'
9459 no_entry_flag=""
9460 else
9461 # If we're using GNU nm, then we don't want the "-C" option.
9462 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9463 # Also, AIX nm treats weak defined symbols like other global
9464 # defined symbols, whereas GNU nm marks them as "W".
9465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9466 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'
9467 else
9468 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'
9469 fi
9470 aix_use_runtimelinking=no
9471
9472 # Test if we are trying to use run time linking or normal
9473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9474 # need to do runtime linking.
9475 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9476 for ld_flag in $LDFLAGS; do
9477 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9478 aix_use_runtimelinking=yes
9479 break
9480 fi
9481 done
9482 ;;
9483 esac
9484
9485 exp_sym_flag='-bexport'
9486 no_entry_flag='-bnoentry'
9487 fi
9488
9489 # When large executables or shared objects are built, AIX ld can
9490 # have problems creating the table of contents. If linking a library
9491 # or program results in "error TOC overflow" add -mminimal-toc to
9492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9494
9495 archive_cmds=''
9496 hardcode_direct=yes
9497 hardcode_direct_absolute=yes
9498 hardcode_libdir_separator=':'
9499 link_all_deplibs=yes
9500 file_list_spec='${wl}-f,'
9501
9502 if test "$GCC" = yes; then
9503 case $host_os in aix4.[012]|aix4.[012].*)
9504 # We only want to do this on AIX 4.2 and lower, the check
9505 # below for broken collect2 doesn't work under 4.3+
9506 collect2name=`${CC} -print-prog-name=collect2`
9507 if test -f "$collect2name" &&
9508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9509 then
9510 # We have reworked collect2
9511 :
9512 else
9513 # We have old collect2
9514 hardcode_direct=unsupported
9515 # It fails to find uninstalled libraries when the uninstalled
9516 # path is not listed in the libpath. Setting hardcode_minus_L
9517 # to unsupported forces relinking
9518 hardcode_minus_L=yes
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_libdir_separator=
9521 fi
9522 ;;
9523 esac
9524 shared_flag='-shared'
9525 if test "$aix_use_runtimelinking" = yes; then
9526 shared_flag="$shared_flag "'${wl}-G'
9527 fi
9528 else
9529 # not using gcc
9530 if test "$host_cpu" = ia64; then
9531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9532 # chokes on -Wl,-G. The following line is correct:
9533 shared_flag='-G'
9534 else
9535 if test "$aix_use_runtimelinking" = yes; then
9536 shared_flag='${wl}-G'
9537 else
9538 shared_flag='${wl}-bM:SRE'
9539 fi
9540 fi
9541 fi
9542
9543 export_dynamic_flag_spec='${wl}-bexpall'
9544 # It seems that -bexpall does not export symbols beginning with
9545 # underscore (_), so it is better to generate a list of symbols to export.
9546 always_export_symbols=yes
9547 if test "$aix_use_runtimelinking" = yes; then
9548 # Warning - without using the other runtime loading flags (-brtl),
9549 # -berok will link without error, but may produce a broken library.
9550 allow_undefined_flag='-berok'
9551 # Determine the default libpath from the value encoded in an
9552 # empty executable.
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h. */
9555
9556int
9557main ()
9558{
9559
9560 ;
9561 return 0;
9562}
9563_ACEOF
9564if ac_fn_c_try_link "$LINENO"; then :
9565
9566lt_aix_libpath_sed='
9567 /Import File Strings/,/^$/ {
9568 /^0/ {
9569 s/^0 *\(.*\)$/\1/
9570 p
9571 }
9572 }'
9573aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574# Check for a 64-bit object if we didn't find anything.
9575if test -z "$aix_libpath"; then
9576 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577fi
9578fi
9579rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9582
9583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9584 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"
9585 else
9586 if test "$host_cpu" = ia64; then
9587 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9588 allow_undefined_flag="-z nodefs"
9589 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"
9590 else
9591 # Determine the default libpath from the value encoded in an
9592 # empty executable.
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h. */
9595
9596int
9597main ()
9598{
9599
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604if ac_fn_c_try_link "$LINENO"; then :
9605
9606lt_aix_libpath_sed='
9607 /Import File Strings/,/^$/ {
9608 /^0/ {
9609 s/^0 *\(.*\)$/\1/
9610 p
9611 }
9612 }'
9613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614# Check for a 64-bit object if we didn't find anything.
9615if test -z "$aix_libpath"; then
9616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617fi
9618fi
9619rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9622
9623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9624 # Warning - without using the other run time loading flags,
9625 # -berok will link without error, but may produce a broken library.
9626 no_undefined_flag=' ${wl}-bernotok'
9627 allow_undefined_flag=' ${wl}-berok'
9628 if test "$with_gnu_ld" = yes; then
9629 # We only use this code for GNU lds that support --whole-archive.
9630 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9631 else
9632 # Exported symbols can be pulled into shared objects from archives
9633 whole_archive_flag_spec='$convenience'
9634 fi
9635 archive_cmds_need_lc=yes
9636 # This is similar to how AIX traditionally builds its shared libraries.
9637 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'
9638 fi
9639 fi
9640 ;;
9641
9642 amigaos*)
9643 case $host_cpu in
9644 powerpc)
9645 # see comment about AmigaOS4 .so support
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds=''
9648 ;;
9649 m68k)
9650 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)'
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_minus_L=yes
9653 ;;
9654 esac
9655 ;;
9656
9657 bsdi[45]*)
9658 export_dynamic_flag_spec=-rdynamic
9659 ;;
9660
9661 cygwin* | mingw* | pw32* | cegcc*)
9662 # When not using gcc, we currently assume that we are using
9663 # Microsoft Visual C++.
9664 # hardcode_libdir_flag_spec is actually meaningless, as there is
9665 # no search path for DLLs.
9666 hardcode_libdir_flag_spec=' '
9667 allow_undefined_flag=unsupported
9668 # Tell ltmain to make .lib files, not .a files.
9669 libext=lib
9670 # Tell ltmain to make .dll files, not .so files.
9671 shrext_cmds=".dll"
9672 # FIXME: Setting linknames here is a bad hack.
9673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9674 # The linker will automatically build a .lib file if we build a DLL.
9675 old_archive_from_new_cmds='true'
9676 # FIXME: Should let the user specify the lib program.
9677 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9678 fix_srcfile_path='`cygpath -w "$srcfile"`'
9679 enable_shared_with_static_runtimes=yes
9680 ;;
9681
9682 darwin* | rhapsody*)
9683
9684
9685 archive_cmds_need_lc=no
9686 hardcode_direct=no
9687 hardcode_automatic=yes
9688 hardcode_shlibpath_var=unsupported
9689 if test "$lt_cv_ld_force_load" = "yes"; then
9690 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\"`'
9691 else
9692 whole_archive_flag_spec=''
9693 fi
9694 link_all_deplibs=yes
9695 allow_undefined_flag="$_lt_dar_allow_undefined"
9696 case $cc_basename in
9697 ifort*) _lt_dar_can_shared=yes ;;
9698 *) _lt_dar_can_shared=$GCC ;;
9699 esac
9700 if test "$_lt_dar_can_shared" = "yes"; then
9701 output_verbose_link_cmd=func_echo_all
9702 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9703 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9704 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}"
9705 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}"
9706
9707 else
9708 ld_shlibs=no
9709 fi
9710
9711 ;;
9712
9713 dgux*)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9720 # support. Future versions do this automatically, but an explicit c++rt0.o
9721 # does not break anything, and helps significantly (at the cost of a little
9722 # extra space).
9723 freebsd2.2*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9725 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_direct=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9731 freebsd2.*)
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_direct=yes
9734 hardcode_minus_L=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9739 freebsd* | dragonfly*)
9740 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_direct=yes
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 hpux9*)
9747 if test "$GCC" = yes; then
9748 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'
9749 else
9750 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'
9751 fi
9752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator=:
9754 hardcode_direct=yes
9755
9756 # hardcode_minus_L: Not really in the search PATH,
9757 # but as the default location of the library.
9758 hardcode_minus_L=yes
9759 export_dynamic_flag_spec='${wl}-E'
9760 ;;
9761
9762 hpux10*)
9763 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 fi
9768 if test "$with_gnu_ld" = no; then
9769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9770 hardcode_libdir_flag_spec_ld='+b $libdir'
9771 hardcode_libdir_separator=:
9772 hardcode_direct=yes
9773 hardcode_direct_absolute=yes
9774 export_dynamic_flag_spec='${wl}-E'
9775 # hardcode_minus_L: Not really in the search PATH,
9776 # but as the default location of the library.
9777 hardcode_minus_L=yes
9778 fi
9779 ;;
9780
9781 hpux11*)
9782 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9783 case $host_cpu in
9784 hppa*64*)
9785 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 ;;
9787 ia64*)
9788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9789 ;;
9790 *)
9791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792 ;;
9793 esac
9794 else
9795 case $host_cpu in
9796 hppa*64*)
9797 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 ;;
9799 ia64*)
9800 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 *)
9803
9804 # Older versions of the 11.00 compiler do not understand -b yet
9805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9807$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9808if ${lt_cv_prog_compiler__b+:} false; then :
b4c522fa
IB
9809 $as_echo_n "(cached) " >&6
9810else
9811 lt_cv_prog_compiler__b=no
9812 save_LDFLAGS="$LDFLAGS"
9813 LDFLAGS="$LDFLAGS -b"
9814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9816 # The linker can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
9818 if test -s conftest.err; then
9819 # Append any errors to the config.log.
9820 cat conftest.err 1>&5
9821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9823 if diff conftest.exp conftest.er2 >/dev/null; then
9824 lt_cv_prog_compiler__b=yes
9825 fi
9826 else
9827 lt_cv_prog_compiler__b=yes
9828 fi
9829 fi
9830 $RM -r conftest*
9831 LDFLAGS="$save_LDFLAGS"
9832
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9835$as_echo "$lt_cv_prog_compiler__b" >&6; }
9836
9837if test x"$lt_cv_prog_compiler__b" = xyes; then
9838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9839else
9840 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9841fi
9842
9843 ;;
9844 esac
9845 fi
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_separator=:
9849
9850 case $host_cpu in
9851 hppa*64*|ia64*)
9852 hardcode_direct=no
9853 hardcode_shlibpath_var=no
9854 ;;
9855 *)
9856 hardcode_direct=yes
9857 hardcode_direct_absolute=yes
9858 export_dynamic_flag_spec='${wl}-E'
9859
9860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9863 ;;
9864 esac
9865 fi
9866 ;;
9867
9868 irix5* | irix6* | nonstopux*)
9869 if test "$GCC" = yes; then
9870 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'
9871 # Try to use the -exported_symbol ld option, if it does not
9872 # work, assume that -exports_file does not work either and
9873 # implicitly export all symbols.
9874 save_LDFLAGS="$LDFLAGS"
9875 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877/* end confdefs.h. */
9878int foo(void) {}
9879_ACEOF
9880if ac_fn_c_try_link "$LINENO"; then :
9881 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'
9882
9883fi
9884rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 LDFLAGS="$save_LDFLAGS"
9887 else
9888 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'
9889 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'
9890 fi
9891 archive_cmds_need_lc='no'
9892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator=:
9894 inherit_rpath=yes
9895 link_all_deplibs=yes
9896 ;;
9897
9898 netbsd*)
9899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9901 else
9902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9903 fi
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_direct=yes
9906 hardcode_shlibpath_var=no
9907 ;;
9908
9909 newsos6)
9910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_direct=yes
9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_shlibpath_var=no
9915 ;;
9916
9917 *nto* | *qnx*)
9918 ;;
9919
9920 openbsd*)
9921 if test -f /usr/libexec/ld.so; then
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 hardcode_direct_absolute=yes
9925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 export_dynamic_flag_spec='${wl}-E'
9930 else
9931 case $host_os in
9932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-R$libdir'
9935 ;;
9936 *)
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9939 ;;
9940 esac
9941 fi
9942 else
9943 ld_shlibs=no
9944 fi
9945 ;;
9946
9947 os2*)
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_minus_L=yes
9950 allow_undefined_flag=unsupported
9951 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'
9952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9953 ;;
9954
9955 osf3*)
9956 if test "$GCC" = yes; then
9957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9958 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'
9959 else
9960 allow_undefined_flag=' -expect_unresolved \*'
9961 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'
9962 fi
9963 archive_cmds_need_lc='no'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 hardcode_libdir_separator=:
9966 ;;
9967
9968 osf4* | osf5*) # as osf3* with the addition of -msym flag
9969 if test "$GCC" = yes; then
9970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9971 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'
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 else
9974 allow_undefined_flag=' -expect_unresolved \*'
9975 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'
9976 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~
9977 $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'
9978
9979 # Both c and cxx compiler support -rpath directly
9980 hardcode_libdir_flag_spec='-rpath $libdir'
9981 fi
9982 archive_cmds_need_lc='no'
9983 hardcode_libdir_separator=:
9984 ;;
9985
9986 solaris*)
9987 no_undefined_flag=' -z defs'
9988 if test "$GCC" = yes; then
9989 wlarc='${wl}'
9990 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9993 else
9994 case `$CC -V 2>&1` in
9995 *"Compilers 5.0"*)
9996 wlarc=''
9997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10000 ;;
10001 *)
10002 wlarc='${wl}'
10003 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10006 ;;
10007 esac
10008 fi
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_shlibpath_var=no
10011 case $host_os in
10012 solaris2.[0-5] | solaris2.[0-5].*) ;;
10013 *)
10014 # The compiler driver will combine and reorder linker options,
10015 # but understands `-z linker_flag'. GCC discards it without `$wl',
10016 # but is careful enough not to reorder.
10017 # Supported since Solaris 2.6 (maybe 2.5.1?)
10018 if test "$GCC" = yes; then
10019 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10020 else
10021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10022 fi
10023 ;;
10024 esac
10025 link_all_deplibs=yes
10026 ;;
10027
10028 sunos4*)
10029 if test "x$host_vendor" = xsequent; then
10030 # Use $CC to link under sequent, because it throws in some extra .o
10031 # files that make .init and .fini sections work.
10032 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10033 else
10034 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10035 fi
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_direct=yes
10038 hardcode_minus_L=yes
10039 hardcode_shlibpath_var=no
10040 ;;
10041
10042 sysv4)
10043 case $host_vendor in
10044 sni)
10045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_direct=yes # is this really true???
10047 ;;
10048 siemens)
10049 ## LD is ld it makes a PLAMLIB
10050 ## CC just makes a GrossModule.
10051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10052 reload_cmds='$CC -r -o $output$reload_objs'
10053 hardcode_direct=no
10054 ;;
10055 motorola)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10058 ;;
10059 esac
10060 runpath_var='LD_RUN_PATH'
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 sysv4.3*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var=no
10067 export_dynamic_flag_spec='-Bexport'
10068 ;;
10069
10070 sysv4*MP*)
10071 if test -d /usr/nec; then
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_shlibpath_var=no
10074 runpath_var=LD_RUN_PATH
10075 hardcode_runpath_var=yes
10076 ld_shlibs=yes
10077 fi
10078 ;;
10079
10080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10081 no_undefined_flag='${wl}-z,text'
10082 archive_cmds_need_lc=no
10083 hardcode_shlibpath_var=no
10084 runpath_var='LD_RUN_PATH'
10085
10086 if test "$GCC" = yes; then
10087 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 else
10090 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 fi
10093 ;;
10094
10095 sysv5* | sco3.2v5* | sco5v6*)
10096 # Note: We can NOT use -z defs as we might desire, because we do not
10097 # link with -lc, and that would cause any symbols used from libc to
10098 # always be unresolved, which means just about no library would
10099 # ever link correctly. If we're not using GNU ld we use -z text
10100 # though, which does catch some bad symbols but isn't as heavy-handed
10101 # as -z defs.
10102 no_undefined_flag='${wl}-z,text'
10103 allow_undefined_flag='${wl}-z,nodefs'
10104 archive_cmds_need_lc=no
10105 hardcode_shlibpath_var=no
10106 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10107 hardcode_libdir_separator=':'
10108 link_all_deplibs=yes
10109 export_dynamic_flag_spec='${wl}-Bexport'
10110 runpath_var='LD_RUN_PATH'
10111
10112 if test "$GCC" = yes; then
10113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 else
10116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 fi
10119 ;;
10120
10121 uts4*)
10122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_shlibpath_var=no
10125 ;;
10126
10127 *)
10128 ld_shlibs=no
10129 ;;
10130 esac
10131
10132 if test x$host_vendor = xsni; then
10133 case $host in
10134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10135 export_dynamic_flag_spec='${wl}-Blargedynsym'
10136 ;;
10137 esac
10138 fi
10139 fi
10140
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10142$as_echo "$ld_shlibs" >&6; }
10143test "$ld_shlibs" = no && can_build_shared=no
10144
10145with_gnu_ld=$with_gnu_ld
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161#
10162# Do we need to explicitly link libc?
10163#
10164case "x$archive_cmds_need_lc" in
10165x|xyes)
10166 # Assume -lc should be added
10167 archive_cmds_need_lc=yes
10168
10169 if test "$enable_shared" = yes && test "$GCC" = yes; then
10170 case $archive_cmds in
10171 *'~'*)
10172 # FIXME: we may have to deal with multi-command sequences.
10173 ;;
10174 '$CC '*)
10175 # Test whether the compiler implicitly links with -lc since on some
10176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177 # to ld, don't add -lc before -lgcc.
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10179$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10180if ${lt_cv_archive_cmds_need_lc+:} false; then :
b4c522fa
IB
10181 $as_echo_n "(cached) " >&6
10182else
10183 $RM conftest*
10184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10185
10186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10187 (eval $ac_compile) 2>&5
10188 ac_status=$?
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; } 2>conftest.err; then
10191 soname=conftest
10192 lib=conftest
10193 libobjs=conftest.$ac_objext
10194 deplibs=
10195 wl=$lt_prog_compiler_wl
10196 pic_flag=$lt_prog_compiler_pic
10197 compiler_flags=-v
10198 linker_flags=-v
10199 verstring=
10200 output_objdir=.
10201 libname=conftest
10202 lt_save_allow_undefined_flag=$allow_undefined_flag
10203 allow_undefined_flag=
10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10205 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10206 ac_status=$?
10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208 test $ac_status = 0; }
10209 then
10210 lt_cv_archive_cmds_need_lc=no
10211 else
10212 lt_cv_archive_cmds_need_lc=yes
10213 fi
10214 allow_undefined_flag=$lt_save_allow_undefined_flag
10215 else
10216 cat conftest.err 1>&5
10217 fi
10218 $RM conftest*
10219
10220fi
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10222$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10223 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10224 ;;
10225 esac
10226 fi
10227 ;;
10228esac
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10387$as_echo_n "checking dynamic linker characteristics... " >&6; }
10388
10389if test "$GCC" = yes; then
10390 case $host_os in
10391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10392 *) lt_awk_arg="/^libraries:/" ;;
10393 esac
10394 case $host_os in
10395 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10396 *) lt_sed_strip_eq="s,=/,/,g" ;;
10397 esac
10398 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10399 case $lt_search_path_spec in
10400 *\;*)
10401 # if the path contains ";" then we assume it to be the separator
10402 # otherwise default to the standard path separator (i.e. ":") - it is
10403 # assumed that no part of a normal pathname contains ";" but that should
10404 # okay in the real world where ";" in dirpaths is itself problematic.
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10406 ;;
10407 *)
10408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10409 ;;
10410 esac
10411 # Ok, now we have the path, separated by spaces, we can step through it
10412 # and add multilib dir if necessary.
10413 lt_tmp_lt_search_path_spec=
10414 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10415 for lt_sys_path in $lt_search_path_spec; do
10416 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10418 else
10419 test -d "$lt_sys_path" && \
10420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10421 fi
10422 done
10423 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10424BEGIN {RS=" "; FS="/|\n";} {
10425 lt_foo="";
10426 lt_count=0;
10427 for (lt_i = NF; lt_i > 0; lt_i--) {
10428 if ($lt_i != "" && $lt_i != ".") {
10429 if ($lt_i == "..") {
10430 lt_count++;
10431 } else {
10432 if (lt_count == 0) {
10433 lt_foo="/" $lt_i lt_foo;
10434 } else {
10435 lt_count--;
10436 }
10437 }
10438 }
10439 }
10440 if (lt_foo != "") { lt_freq[lt_foo]++; }
10441 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10442}'`
10443 # AWK program above erroneously prepends '/' to C:/dos/paths
10444 # for these hosts.
10445 case $host_os in
10446 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10447 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10448 esac
10449 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10450else
10451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10452fi
10453library_names_spec=
10454libname_spec='lib$name'
10455soname_spec=
10456shrext_cmds=".so"
10457postinstall_cmds=
10458postuninstall_cmds=
10459finish_cmds=
10460finish_eval=
10461shlibpath_var=
10462shlibpath_overrides_runpath=unknown
10463version_type=none
10464dynamic_linker="$host_os ld.so"
10465sys_lib_dlsearch_path_spec="/lib /usr/lib"
10466need_lib_prefix=unknown
10467hardcode_into_libs=no
10468
10469# when you set need_version to no, make sure it does not cause -set_version
10470# flags to be left without arguments
10471need_version=unknown
10472
10473case $host_os in
10474aix3*)
10475 version_type=linux
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10477 shlibpath_var=LIBPATH
10478
10479 # AIX 3 has no versioning support, so we append a major version to the name.
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 ;;
10482
10483aix[4-9]*)
10484 version_type=linux
10485 need_lib_prefix=no
10486 need_version=no
10487 hardcode_into_libs=yes
10488 if test "$host_cpu" = ia64; then
10489 # AIX 5 supports IA64
10490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 else
10493 # With GCC up to 2.95.x, collect2 would create an import file
10494 # for dependence libraries. The import file would start with
10495 # the line `#! .'. This would cause the generated library to
10496 # depend on `.', always an invalid library. This was fixed in
10497 # development snapshots of GCC prior to 3.0.
10498 case $host_os in
10499 aix4 | aix4.[01] | aix4.[01].*)
10500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10501 echo ' yes '
10502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10503 :
10504 else
10505 can_build_shared=no
10506 fi
10507 ;;
10508 esac
10509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10510 # soname into executable. Probably we can add versioning support to
10511 # collect2, so additional links can be useful in future.
10512 if test "$aix_use_runtimelinking" = yes; then
10513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10514 # instead of lib<name>.a to let people know that these are not
10515 # typical AIX shared libraries.
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 else
10518 # We preserve .a as extension for shared libraries through AIX4.2
10519 # and later when we are not doing run time linking.
10520 library_names_spec='${libname}${release}.a $libname.a'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 fi
10523 shlibpath_var=LIBPATH
10524 fi
10525 ;;
10526
10527amigaos*)
10528 case $host_cpu in
10529 powerpc)
10530 # Since July 2007 AmigaOS4 officially supports .so libraries.
10531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 ;;
10534 m68k)
10535 library_names_spec='$libname.ixlibrary $libname.a'
10536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10537 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'
10538 ;;
10539 esac
10540 ;;
10541
10542beos*)
10543 library_names_spec='${libname}${shared_ext}'
10544 dynamic_linker="$host_os ld.so"
10545 shlibpath_var=LIBRARY_PATH
10546 ;;
10547
10548bsdi[45]*)
10549 version_type=linux
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10557 # the default ld.so.conf also contains /usr/contrib/lib and
10558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10559 # libtool to hard-code these into programs
10560 ;;
10561
10562cygwin* | mingw* | pw32* | cegcc*)
10563 version_type=windows
10564 shrext_cmds=".dll"
10565 need_version=no
10566 need_lib_prefix=no
10567
10568 case $GCC,$host_os in
10569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10570 library_names_spec='$libname.dll.a'
10571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10572 postinstall_cmds='base_file=`basename \${file}`~
10573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10574 dldir=$destdir/`dirname \$dlpath`~
10575 test -d \$dldir || mkdir -p \$dldir~
10576 $install_prog $dir/$dlname \$dldir/$dlname~
10577 chmod a+x \$dldir/$dlname~
10578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10580 fi'
10581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10582 dlpath=$dir/\$dldll~
10583 $RM \$dlpath'
10584 shlibpath_overrides_runpath=yes
10585
10586 case $host_os in
10587 cygwin*)
10588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590
10591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10592 ;;
10593 mingw* | cegcc*)
10594 # MinGW DLLs use traditional 'lib' prefix
10595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 ;;
10597 pw32*)
10598 # pw32 DLLs use 'pw' prefix rather than 'lib'
10599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 ;;
10601 esac
10602 ;;
10603
10604 *)
10605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10606 ;;
10607 esac
10608 dynamic_linker='Win32 ld.exe'
10609 # FIXME: first we should search . and the directory the executable is in
10610 shlibpath_var=PATH
10611 ;;
10612
10613darwin* | rhapsody*)
10614 dynamic_linker="$host_os dyld"
10615 version_type=darwin
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10619 soname_spec='${libname}${release}${major}$shared_ext'
10620 shlibpath_overrides_runpath=yes
10621 shlibpath_var=DYLD_LIBRARY_PATH
10622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10623
10624 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10626 ;;
10627
10628dgux*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 ;;
10636
10637freebsd* | dragonfly*)
10638 # DragonFly does not have aout. When/if they implement a new
10639 # versioning mechanism, adjust this.
10640 if test -x /usr/bin/objformat; then
10641 objformat=`/usr/bin/objformat`
10642 else
10643 case $host_os in
10644 freebsd[23].*) objformat=aout ;;
10645 *) objformat=elf ;;
10646 esac
10647 fi
10648 version_type=freebsd-$objformat
10649 case $version_type in
10650 freebsd-elf*)
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10652 need_version=no
10653 need_lib_prefix=no
10654 ;;
10655 freebsd-*)
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10657 need_version=yes
10658 ;;
10659 esac
10660 shlibpath_var=LD_LIBRARY_PATH
10661 case $host_os in
10662 freebsd2.*)
10663 shlibpath_overrides_runpath=yes
10664 ;;
10665 freebsd3.[01]* | freebsdelf3.[01]*)
10666 shlibpath_overrides_runpath=yes
10667 hardcode_into_libs=yes
10668 ;;
10669 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10670 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10671 shlibpath_overrides_runpath=no
10672 hardcode_into_libs=yes
10673 ;;
10674 *) # from 4.6 on, and DragonFly
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 ;;
10678 esac
10679 ;;
10680
10681gnu*)
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 hardcode_into_libs=yes
10689 ;;
10690
10691haiku*)
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 dynamic_linker="$host_os runtime_loader"
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes
10700 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10701 hardcode_into_libs=yes
10702 ;;
10703
10704hpux9* | hpux10* | hpux11*)
10705 # Give a soname corresponding to the major version so that dld.sl refuses to
10706 # link against other versions.
10707 version_type=sunos
10708 need_lib_prefix=no
10709 need_version=no
10710 case $host_cpu in
10711 ia64*)
10712 shrext_cmds='.so'
10713 hardcode_into_libs=yes
10714 dynamic_linker="$host_os dld.so"
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 if test "X$HPUX_IA64_MODE" = X32; then
10720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10721 else
10722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10723 fi
10724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10725 ;;
10726 hppa*64*)
10727 shrext_cmds='.sl'
10728 hardcode_into_libs=yes
10729 dynamic_linker="$host_os dld.sl"
10730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 ;;
10737 *)
10738 shrext_cmds='.sl'
10739 dynamic_linker="$host_os dld.sl"
10740 shlibpath_var=SHLIB_PATH
10741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 ;;
10745 esac
10746 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10747 postinstall_cmds='chmod 555 $lib'
10748 # or fails outright, so override atomically:
10749 install_override_mode=555
10750 ;;
10751
10752interix[3-9]*)
10753 version_type=linux
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10762 ;;
10763
10764irix5* | irix6* | nonstopux*)
10765 case $host_os in
10766 nonstopux*) version_type=nonstopux ;;
10767 *)
10768 if test "$lt_cv_prog_gnu_ld" = yes; then
10769 version_type=linux
10770 else
10771 version_type=irix
10772 fi ;;
10773 esac
10774 need_lib_prefix=no
10775 need_version=no
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10778 case $host_os in
10779 irix5* | nonstopux*)
10780 libsuff= shlibsuff=
10781 ;;
10782 *)
10783 case $LD in # libtool.m4 will add one of these switches to LD
10784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10785 libsuff= shlibsuff= libmagic=32-bit;;
10786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10787 libsuff=32 shlibsuff=N32 libmagic=N32;;
10788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10790 *) libsuff= shlibsuff= libmagic=never-match;;
10791 esac
10792 ;;
10793 esac
10794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10795 shlibpath_overrides_runpath=no
10796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10798 hardcode_into_libs=yes
10799 ;;
10800
10801# No shared lib support for Linux oldld, aout, or coff.
10802linux*oldld* | linux*aout* | linux*coff*)
10803 dynamic_linker=no
10804 ;;
10805
10806# This must be Linux ELF.
10807linux* | k*bsd*-gnu | kopensolaris*-gnu)
10808 version_type=linux
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=no
10816
10817 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b4c522fa
IB
10819 $as_echo_n "(cached) " >&6
10820else
10821 lt_cv_shlibpath_overrides_runpath=no
10822 save_LDFLAGS=$LDFLAGS
10823 save_libdir=$libdir
10824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
10828
10829int
10830main ()
10831{
10832
10833 ;
10834 return 0;
10835}
10836_ACEOF
10837if ac_fn_c_try_link "$LINENO"; then :
10838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10839 lt_cv_shlibpath_overrides_runpath=yes
10840fi
10841fi
10842rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LDFLAGS=$save_LDFLAGS
10845 libdir=$save_libdir
10846
10847fi
10848
10849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10850
10851 # This implies no fast_install, which is unacceptable.
10852 # Some rework will be needed to allow for fast_install
10853 # before this can be enabled.
10854 hardcode_into_libs=yes
10855
10856 # Append ld.so.conf contents to the search path
10857 if test -f /etc/ld.so.conf; then
10858 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' ' '`
10859 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10860 fi
10861
10862 # We used to test for /lib/ld.so.1 and disable shared libraries on
10863 # powerpc, because MkLinux only supported shared libraries with the
10864 # GNU dynamic linker. Since this was broken with cross compilers,
10865 # most powerpc-linux boxes support dynamic linking these days and
10866 # people can always --disable-shared, the test was removed, and we
10867 # assume the GNU/Linux dynamic linker is in use.
10868 dynamic_linker='GNU/Linux ld.so'
10869 ;;
10870
10871netbsd*)
10872 version_type=sunos
10873 need_lib_prefix=no
10874 need_version=no
10875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10878 dynamic_linker='NetBSD (a.out) ld.so'
10879 else
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 dynamic_linker='NetBSD ld.elf_so'
10883 fi
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10886 hardcode_into_libs=yes
10887 ;;
10888
10889newsos6)
10890 version_type=linux
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=yes
10894 ;;
10895
10896*nto* | *qnx*)
10897 version_type=qnx
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 dynamic_linker='ldqnx.so'
10906 ;;
10907
10908openbsd*)
10909 version_type=sunos
10910 sys_lib_dlsearch_path_spec="/usr/lib"
10911 need_lib_prefix=no
10912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10913 case $host_os in
10914 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10915 *) need_version=no ;;
10916 esac
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10921 case $host_os in
10922 openbsd2.[89] | openbsd2.[89].*)
10923 shlibpath_overrides_runpath=no
10924 ;;
10925 *)
10926 shlibpath_overrides_runpath=yes
10927 ;;
10928 esac
10929 else
10930 shlibpath_overrides_runpath=yes
10931 fi
10932 ;;
10933
10934os2*)
10935 libname_spec='$name'
10936 shrext_cmds=".dll"
10937 need_lib_prefix=no
10938 library_names_spec='$libname${shared_ext} $libname.a'
10939 dynamic_linker='OS/2 ld.exe'
10940 shlibpath_var=LIBPATH
10941 ;;
10942
10943osf3* | osf4* | osf5*)
10944 version_type=osf
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10952 ;;
10953
10954rdos*)
10955 dynamic_linker=no
10956 ;;
10957
10958solaris*)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 hardcode_into_libs=yes
10967 # ldd complains unless libraries are executable
10968 postinstall_cmds='chmod +x $lib'
10969 ;;
10970
10971sunos4*)
10972 version_type=sunos
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=yes
10977 if test "$with_gnu_ld" = yes; then
10978 need_lib_prefix=no
10979 fi
10980 need_version=yes
10981 ;;
10982
10983sysv4 | sysv4.3*)
10984 version_type=linux
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 case $host_vendor in
10989 sni)
10990 shlibpath_overrides_runpath=no
10991 need_lib_prefix=no
10992 runpath_var=LD_RUN_PATH
10993 ;;
10994 siemens)
10995 need_lib_prefix=no
10996 ;;
10997 motorola)
10998 need_lib_prefix=no
10999 need_version=no
11000 shlibpath_overrides_runpath=no
11001 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11002 ;;
11003 esac
11004 ;;
11005
11006sysv4*MP*)
11007 if test -d /usr/nec ;then
11008 version_type=linux
11009 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11010 soname_spec='$libname${shared_ext}.$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 fi
11013 ;;
11014
11015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11016 version_type=freebsd-elf
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes
11023 hardcode_into_libs=yes
11024 if test "$with_gnu_ld" = yes; then
11025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11026 else
11027 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11028 case $host_os in
11029 sco3.2v5*)
11030 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11031 ;;
11032 esac
11033 fi
11034 sys_lib_dlsearch_path_spec='/usr/lib'
11035 ;;
11036
11037tpf*)
11038 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=no
11045 hardcode_into_libs=yes
11046 ;;
11047
11048uts4*)
11049 version_type=linux
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 ;;
11054
11055*)
11056 dynamic_linker=no
11057 ;;
11058esac
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11060$as_echo "$dynamic_linker" >&6; }
11061test "$dynamic_linker" = no && can_build_shared=no
11062
11063variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11064if test "$GCC" = yes; then
11065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11066fi
11067
11068if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11069 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11070fi
11071if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11073fi
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11167$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11168hardcode_action=
11169if test -n "$hardcode_libdir_flag_spec" ||
11170 test -n "$runpath_var" ||
11171 test "X$hardcode_automatic" = "Xyes" ; then
11172
11173 # We can hardcode non-existent directories.
11174 if test "$hardcode_direct" != no &&
11175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11176 # have to relink, otherwise we might link with an installed library
11177 # when we should be linking with a yet-to-be-installed one
11178 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11179 test "$hardcode_minus_L" != no; then
11180 # Linking always hardcodes the temporary library directory.
11181 hardcode_action=relink
11182 else
11183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11184 hardcode_action=immediate
11185 fi
11186else
11187 # We cannot hardcode anything, or else we can only hardcode existing
11188 # directories.
11189 hardcode_action=unsupported
11190fi
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11192$as_echo "$hardcode_action" >&6; }
11193
11194if test "$hardcode_action" = relink ||
11195 test "$inherit_rpath" = yes; then
11196 # Fast installation is not supported
11197 enable_fast_install=no
11198elif test "$shlibpath_overrides_runpath" = yes ||
11199 test "$enable_shared" = no; then
11200 # Fast installation is not necessary
11201 enable_fast_install=needless
11202fi
11203
11204
11205
11206
11207
11208
11209 if test "x$enable_dlopen" != xyes; then
11210 enable_dlopen=unknown
11211 enable_dlopen_self=unknown
11212 enable_dlopen_self_static=unknown
11213else
11214 lt_cv_dlopen=no
11215 lt_cv_dlopen_libs=
11216
11217 case $host_os in
11218 beos*)
11219 lt_cv_dlopen="load_add_on"
11220 lt_cv_dlopen_libs=
11221 lt_cv_dlopen_self=yes
11222 ;;
11223
11224 mingw* | pw32* | cegcc*)
11225 lt_cv_dlopen="LoadLibrary"
11226 lt_cv_dlopen_libs=
11227 ;;
11228
11229 cygwin*)
11230 lt_cv_dlopen="dlopen"
11231 lt_cv_dlopen_libs=
11232 ;;
11233
11234 darwin*)
11235 # if libdl is installed we need to link against it
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11237$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11238if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11239 $as_echo_n "(cached) " >&6
11240else
11241 ac_check_lib_save_LIBS=$LIBS
11242LIBS="-ldl $LIBS"
11243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h. */
11245
11246/* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249#ifdef __cplusplus
11250extern "C"
11251#endif
11252char dlopen ();
11253int
11254main ()
11255{
11256return dlopen ();
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261if ac_fn_c_try_link "$LINENO"; then :
11262 ac_cv_lib_dl_dlopen=yes
11263else
11264 ac_cv_lib_dl_dlopen=no
11265fi
11266rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11268LIBS=$ac_check_lib_save_LIBS
11269fi
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11271$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11272if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11274else
11275
11276 lt_cv_dlopen="dyld"
11277 lt_cv_dlopen_libs=
11278 lt_cv_dlopen_self=yes
11279
11280fi
11281
11282 ;;
11283
11284 *)
11285 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11286if test "x$ac_cv_func_shl_load" = xyes; then :
b4c522fa
IB
11287 lt_cv_dlopen="shl_load"
11288else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11290$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11291if ${ac_cv_lib_dld_shl_load+:} false; then :
b4c522fa
IB
11292 $as_echo_n "(cached) " >&6
11293else
11294 ac_check_lib_save_LIBS=$LIBS
11295LIBS="-ldld $LIBS"
11296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h. */
11298
11299/* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302#ifdef __cplusplus
11303extern "C"
11304#endif
11305char shl_load ();
11306int
11307main ()
11308{
11309return shl_load ();
11310 ;
11311 return 0;
11312}
11313_ACEOF
11314if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_dld_shl_load=yes
11316else
11317 ac_cv_lib_dld_shl_load=no
11318fi
11319rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321LIBS=$ac_check_lib_save_LIBS
11322fi
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11324$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11325if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b4c522fa
IB
11326 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11327else
11328 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11329if test "x$ac_cv_func_dlopen" = xyes; then :
b4c522fa
IB
11330 lt_cv_dlopen="dlopen"
11331else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11333$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11334if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11335 $as_echo_n "(cached) " >&6
11336else
11337 ac_check_lib_save_LIBS=$LIBS
11338LIBS="-ldl $LIBS"
11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h. */
11341
11342/* Override any GCC internal prototype to avoid an error.
11343 Use char because int might match the return type of a GCC
11344 builtin and then its argument prototype would still apply. */
11345#ifdef __cplusplus
11346extern "C"
11347#endif
11348char dlopen ();
11349int
11350main ()
11351{
11352return dlopen ();
11353 ;
11354 return 0;
11355}
11356_ACEOF
11357if ac_fn_c_try_link "$LINENO"; then :
11358 ac_cv_lib_dl_dlopen=yes
11359else
11360 ac_cv_lib_dl_dlopen=no
11361fi
11362rm -f core conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11364LIBS=$ac_check_lib_save_LIBS
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11367$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11368if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11370else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11372$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11373if ${ac_cv_lib_svld_dlopen+:} false; then :
b4c522fa
IB
11374 $as_echo_n "(cached) " >&6
11375else
11376 ac_check_lib_save_LIBS=$LIBS
11377LIBS="-lsvld $LIBS"
11378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h. */
11380
11381/* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
11384#ifdef __cplusplus
11385extern "C"
11386#endif
11387char dlopen ();
11388int
11389main ()
11390{
11391return dlopen ();
11392 ;
11393 return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_link "$LINENO"; then :
11397 ac_cv_lib_svld_dlopen=yes
11398else
11399 ac_cv_lib_svld_dlopen=no
11400fi
11401rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403LIBS=$ac_check_lib_save_LIBS
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11406$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11407if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b4c522fa
IB
11408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11409else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11411$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11412if ${ac_cv_lib_dld_dld_link+:} false; then :
b4c522fa
IB
11413 $as_echo_n "(cached) " >&6
11414else
11415 ac_check_lib_save_LIBS=$LIBS
11416LIBS="-ldld $LIBS"
11417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418/* end confdefs.h. */
11419
11420/* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423#ifdef __cplusplus
11424extern "C"
11425#endif
11426char dld_link ();
11427int
11428main ()
11429{
11430return dld_link ();
11431 ;
11432 return 0;
11433}
11434_ACEOF
11435if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_lib_dld_dld_link=yes
11437else
11438 ac_cv_lib_dld_dld_link=no
11439fi
11440rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442LIBS=$ac_check_lib_save_LIBS
11443fi
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11445$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11446if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b4c522fa
IB
11447 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11448fi
11449
11450
11451fi
11452
11453
11454fi
11455
11456
11457fi
11458
11459
11460fi
11461
11462
11463fi
11464
11465 ;;
11466 esac
11467
11468 if test "x$lt_cv_dlopen" != xno; then
11469 enable_dlopen=yes
11470 else
11471 enable_dlopen=no
11472 fi
11473
11474 case $lt_cv_dlopen in
11475 dlopen)
11476 save_CPPFLAGS="$CPPFLAGS"
11477 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11478
11479 save_LDFLAGS="$LDFLAGS"
11480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11481
11482 save_LIBS="$LIBS"
11483 LIBS="$lt_cv_dlopen_libs $LIBS"
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11486$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11487if ${lt_cv_dlopen_self+:} false; then :
b4c522fa
IB
11488 $as_echo_n "(cached) " >&6
11489else
11490 if test "$cross_compiling" = yes; then :
11491 lt_cv_dlopen_self=cross
11492else
11493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11494 lt_status=$lt_dlunknown
11495 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11496#line 11496 "configure"
b4c522fa
IB
11497#include "confdefs.h"
11498
11499#if HAVE_DLFCN_H
11500#include <dlfcn.h>
11501#endif
11502
11503#include <stdio.h>
11504
11505#ifdef RTLD_GLOBAL
11506# define LT_DLGLOBAL RTLD_GLOBAL
11507#else
11508# ifdef DL_GLOBAL
11509# define LT_DLGLOBAL DL_GLOBAL
11510# else
11511# define LT_DLGLOBAL 0
11512# endif
11513#endif
11514
11515/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11516 find out it does not work in some platform. */
11517#ifndef LT_DLLAZY_OR_NOW
11518# ifdef RTLD_LAZY
11519# define LT_DLLAZY_OR_NOW RTLD_LAZY
11520# else
11521# ifdef DL_LAZY
11522# define LT_DLLAZY_OR_NOW DL_LAZY
11523# else
11524# ifdef RTLD_NOW
11525# define LT_DLLAZY_OR_NOW RTLD_NOW
11526# else
11527# ifdef DL_NOW
11528# define LT_DLLAZY_OR_NOW DL_NOW
11529# else
11530# define LT_DLLAZY_OR_NOW 0
11531# endif
11532# endif
11533# endif
11534# endif
11535#endif
11536
11537/* When -fvisbility=hidden is used, assume the code has been annotated
11538 correspondingly for the symbols needed. */
11539#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11540void fnord () __attribute__((visibility("default")));
11541#endif
11542
11543void fnord () { int i=42; }
11544int main ()
11545{
11546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11547 int status = $lt_dlunknown;
11548
11549 if (self)
11550 {
11551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11552 else
11553 {
11554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11555 else puts (dlerror ());
11556 }
11557 /* dlclose (self); */
11558 }
11559 else
11560 puts (dlerror ());
11561
11562 return status;
11563}
11564_LT_EOF
11565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11566 (eval $ac_link) 2>&5
11567 ac_status=$?
11568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11569 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11570 (./conftest; exit; ) >&5 2>/dev/null
11571 lt_status=$?
11572 case x$lt_status in
11573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11576 esac
11577 else :
11578 # compilation failed
11579 lt_cv_dlopen_self=no
11580 fi
11581fi
11582rm -fr conftest*
11583
11584
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11587$as_echo "$lt_cv_dlopen_self" >&6; }
11588
11589 if test "x$lt_cv_dlopen_self" = xyes; then
11590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11592$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11593if ${lt_cv_dlopen_self_static+:} false; then :
b4c522fa
IB
11594 $as_echo_n "(cached) " >&6
11595else
11596 if test "$cross_compiling" = yes; then :
11597 lt_cv_dlopen_self_static=cross
11598else
11599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11600 lt_status=$lt_dlunknown
11601 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11602#line 11602 "configure"
b4c522fa
IB
11603#include "confdefs.h"
11604
11605#if HAVE_DLFCN_H
11606#include <dlfcn.h>
11607#endif
11608
11609#include <stdio.h>
11610
11611#ifdef RTLD_GLOBAL
11612# define LT_DLGLOBAL RTLD_GLOBAL
11613#else
11614# ifdef DL_GLOBAL
11615# define LT_DLGLOBAL DL_GLOBAL
11616# else
11617# define LT_DLGLOBAL 0
11618# endif
11619#endif
11620
11621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11622 find out it does not work in some platform. */
11623#ifndef LT_DLLAZY_OR_NOW
11624# ifdef RTLD_LAZY
11625# define LT_DLLAZY_OR_NOW RTLD_LAZY
11626# else
11627# ifdef DL_LAZY
11628# define LT_DLLAZY_OR_NOW DL_LAZY
11629# else
11630# ifdef RTLD_NOW
11631# define LT_DLLAZY_OR_NOW RTLD_NOW
11632# else
11633# ifdef DL_NOW
11634# define LT_DLLAZY_OR_NOW DL_NOW
11635# else
11636# define LT_DLLAZY_OR_NOW 0
11637# endif
11638# endif
11639# endif
11640# endif
11641#endif
11642
11643/* When -fvisbility=hidden is used, assume the code has been annotated
11644 correspondingly for the symbols needed. */
11645#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11646void fnord () __attribute__((visibility("default")));
11647#endif
11648
11649void fnord () { int i=42; }
11650int main ()
11651{
11652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11653 int status = $lt_dlunknown;
11654
11655 if (self)
11656 {
11657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11658 else
11659 {
11660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11661 else puts (dlerror ());
11662 }
11663 /* dlclose (self); */
11664 }
11665 else
11666 puts (dlerror ());
11667
11668 return status;
11669}
11670_LT_EOF
11671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11672 (eval $ac_link) 2>&5
11673 ac_status=$?
11674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11676 (./conftest; exit; ) >&5 2>/dev/null
11677 lt_status=$?
11678 case x$lt_status in
11679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11681 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11682 esac
11683 else :
11684 # compilation failed
11685 lt_cv_dlopen_self_static=no
11686 fi
11687fi
11688rm -fr conftest*
11689
11690
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11693$as_echo "$lt_cv_dlopen_self_static" >&6; }
11694 fi
11695
11696 CPPFLAGS="$save_CPPFLAGS"
11697 LDFLAGS="$save_LDFLAGS"
11698 LIBS="$save_LIBS"
11699 ;;
11700 esac
11701
11702 case $lt_cv_dlopen_self in
11703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11704 *) enable_dlopen_self=unknown ;;
11705 esac
11706
11707 case $lt_cv_dlopen_self_static in
11708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11709 *) enable_dlopen_self_static=unknown ;;
11710 esac
11711fi
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729striplib=
11730old_striplib=
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11732$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11733if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11734 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11735 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737$as_echo "yes" >&6; }
11738else
11739# FIXME - insert some real tests, host_os isn't really good enough
11740 case $host_os in
11741 darwin*)
11742 if test -n "$STRIP" ; then
11743 striplib="$STRIP -x"
11744 old_striplib="$STRIP -S"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746$as_echo "yes" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750 fi
11751 ;;
11752 *)
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754$as_echo "no" >&6; }
11755 ;;
11756 esac
11757fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770 # Report which library types will actually be built
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11772$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11774$as_echo "$can_build_shared" >&6; }
11775
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11777$as_echo_n "checking whether to build shared libraries... " >&6; }
11778 test "$can_build_shared" = "no" && enable_shared=no
11779
11780 # On AIX, shared libraries and static libraries use the same namespace, and
11781 # are all built from PIC.
11782 case $host_os in
11783 aix3*)
11784 test "$enable_shared" = yes && enable_static=no
11785 if test -n "$RANLIB"; then
11786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11787 postinstall_cmds='$RANLIB $lib'
11788 fi
11789 ;;
11790
11791 aix[4-9]*)
11792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11793 test "$enable_shared" = yes && enable_static=no
11794 fi
11795 ;;
11796 esac
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11798$as_echo "$enable_shared" >&6; }
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11801$as_echo_n "checking whether to build static libraries... " >&6; }
11802 # Make sure either enable_shared or enable_static is yes.
11803 test "$enable_shared" = yes || enable_static=yes
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11805$as_echo "$enable_static" >&6; }
11806
11807
11808
11809
11810fi
11811ac_ext=c
11812ac_cpp='$CPP $CPPFLAGS'
11813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816
11817CC="$lt_save_CC"
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831 ac_config_commands="$ac_config_commands libtool"
11832
11833
11834
11835
11836# Only expand once:
11837
11838
11839
11840
11841
11842 gdc_save_DFLAGS=$GDCFLAGS
11843 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11844
11845
11846# Source file extension for D test sources.
11847ac_ext=d
11848
11849# Object file extension for compiled D test sources.
11850objext=o
11851objext_D=$objext
11852
11853# Code to be used in simple compile tests
11854lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11855
11856# Code to be used in simple link tests
11857lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11858
11859# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11860
11861
11862
11863
11864
11865
11866# If no C compiler was specified, use CC.
11867LTCC=${LTCC-"$CC"}
11868
11869# If no C compiler flags were specified, use CFLAGS.
11870LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11871
11872# Allow CC to be a program name with arguments.
11873compiler=$CC
11874
11875
11876# save warnings/boilerplate of simple test code
11877ac_outfile=conftest.$ac_objext
11878echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11879eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11880_lt_compiler_boilerplate=`cat conftest.err`
11881$RM conftest*
11882
11883ac_outfile=conftest.$ac_objext
11884echo "$lt_simple_link_test_code" >conftest.$ac_ext
11885eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11886_lt_linker_boilerplate=`cat conftest.err`
11887$RM -r conftest*
11888
11889
11890# Allow CC to be a program name with arguments.
11891lt_save_CC=$CC
11892lt_save_CFLAGS=$CFLAGS
11893lt_save_DFLAGS=$GDCFLAGS
11894lt_save_GCC=$GCC
11895GCC=yes
11896CC=${GDC-"gdc"}
11897# Need to specify location for object.d
11898GDCFLAGS="-nophoboslib $GDCFLAGS"
11899CFLAGS=$GDCFLAGS
11900compiler=$CC
11901compiler_D=$CC
11902LD_D=$CC
11903for cc_temp in $compiler""; do
11904 case $cc_temp in
11905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11907 \-*) ;;
11908 *) break;;
11909 esac
11910done
11911cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11912
11913
11914# GDC did not exist at the time GCC didn't implicitly link libc in.
11915archive_cmds_need_lc_D=no
11916
11917old_archive_cmds_D=$old_archive_cmds
11918reload_flag_D=$reload_flag
11919reload_cmds_D=$reload_cmds
11920
11921## CAVEAT EMPTOR:
11922## There is no encapsulation within the following macros, do not change
11923## the running order or otherwise move them around unless you know exactly
11924## what you are doing...
11925if test -n "$compiler"; then
11926
11927lt_prog_compiler_no_builtin_flag_D=
11928
11929if test "$GCC" = yes; then
11930 case $cc_basename in
11931 nvcc*)
11932 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11933 *)
11934 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11935 esac
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 11939if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
11940 $as_echo_n "(cached) " >&6
11941else
11942 lt_cv_prog_compiler_rtti_exceptions=no
11943 ac_outfile=conftest.$ac_objext
11944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11945 lt_compiler_flag="-fno-rtti -fno-exceptions"
11946 # Insert the option either (1) after the last *FLAGS variable, or
11947 # (2) before a word containing "conftest.", or (3) at the end.
11948 # Note that $ac_compile itself does not contain backslashes and begins
11949 # with a dollar sign (not a hyphen), so the echo should work correctly.
11950 # The option is referenced via a variable to avoid confusing sed.
11951 lt_compile=`echo "$ac_compile" | $SED \
11952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11954 -e 's:$: $lt_compiler_flag:'`
11955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11956 (eval "$lt_compile" 2>conftest.err)
11957 ac_status=$?
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 if (exit $ac_status) && test -s "$ac_outfile"; then
11961 # The compiler can only warn and ignore the option if not recognized
11962 # So say no if there are warnings other than the usual output.
11963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_rtti_exceptions=yes
11967 fi
11968 fi
11969 $RM conftest*
11970
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11974
11975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11976 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11977else
11978 :
11979fi
11980
11981fi
11982
11983
11984
11985 lt_prog_compiler_wl_D=
11986lt_prog_compiler_pic_D=
11987lt_prog_compiler_static_D=
11988
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11990$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11991
11992 if test "$GCC" = yes; then
11993 lt_prog_compiler_wl_D='-Wl,'
11994 lt_prog_compiler_static_D='-static'
11995
11996 case $host_os in
11997 aix*)
11998 # All AIX code is PIC.
11999 if test "$host_cpu" = ia64; then
12000 # AIX 5 now supports IA64 processor
12001 lt_prog_compiler_static_D='-Bstatic'
12002 fi
12003 lt_prog_compiler_pic_D='-fPIC'
12004 ;;
12005
12006 amigaos*)
12007 case $host_cpu in
12008 powerpc)
12009 # see comment about AmigaOS4 .so support
12010 lt_prog_compiler_pic_D='-fPIC'
12011 ;;
12012 m68k)
12013 # FIXME: we need at least 68020 code to build shared libraries, but
12014 # adding the `-m68020' flag to GCC prevents building anything better,
12015 # like `-m68040'.
12016 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12017 ;;
12018 esac
12019 ;;
12020
12021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12022 # PIC is the default for these OSes.
12023 ;;
12024
12025 mingw* | cygwin* | pw32* | os2* | cegcc*)
12026 # This hack is so that the source file can tell whether it is being
12027 # built for inclusion in a dll (and should export symbols for example).
12028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12029 # (--disable-auto-import) libraries
12030 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12031 ;;
12032
12033 darwin* | rhapsody*)
12034 # PIC is the default on this platform
12035 # Common symbols not allowed in MH_DYLIB files
12036 lt_prog_compiler_pic_D='-fno-common'
12037 ;;
12038
12039 haiku*)
12040 # PIC is the default for Haiku.
12041 # The "-static" flag exists, but is broken.
12042 lt_prog_compiler_static_D=
12043 ;;
12044
12045 hpux*)
12046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12048 # sets the default TLS model and affects inlining.
12049 case $host_cpu in
12050 hppa*64*)
12051 # +Z the default
12052 ;;
12053 *)
12054 lt_prog_compiler_pic_D='-fPIC'
12055 ;;
12056 esac
12057 ;;
12058
12059 interix[3-9]*)
12060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12061 # Instead, we relocate shared libraries at runtime.
12062 ;;
12063
12064 msdosdjgpp*)
12065 # Just because we use GCC doesn't mean we suddenly get shared libraries
12066 # on systems that don't support them.
12067 lt_prog_compiler_can_build_shared_D=no
12068 enable_shared=no
12069 ;;
12070
12071 *nto* | *qnx*)
12072 # QNX uses GNU C++, but need to define -shared option too, otherwise
12073 # it will coredump.
12074 lt_prog_compiler_pic_D='-fPIC -shared'
12075 ;;
12076
12077 sysv4*MP*)
12078 if test -d /usr/nec; then
12079 lt_prog_compiler_pic_D=-Kconform_pic
12080 fi
12081 ;;
12082
12083 *)
12084 lt_prog_compiler_pic_D='-fPIC'
12085 ;;
12086 esac
12087
12088 case $cc_basename in
12089 nvcc*) # Cuda Compiler Driver 2.2
12090 lt_prog_compiler_wl_D='-Xlinker '
12091 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12092 ;;
12093 esac
12094 else
12095 # PORTME Check for flag to pass linker flags through the system compiler.
12096 case $host_os in
12097 aix*)
12098 lt_prog_compiler_wl_D='-Wl,'
12099 if test "$host_cpu" = ia64; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static_D='-Bstatic'
12102 else
12103 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12104 fi
12105 ;;
12106
12107 mingw* | cygwin* | pw32* | os2* | cegcc*)
12108 # This hack is so that the source file can tell whether it is being
12109 # built for inclusion in a dll (and should export symbols for example).
12110 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12111 ;;
12112
12113 hpux9* | hpux10* | hpux11*)
12114 lt_prog_compiler_wl_D='-Wl,'
12115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116 # not for PA HP-UX.
12117 case $host_cpu in
12118 hppa*64*|ia64*)
12119 # +Z the default
12120 ;;
12121 *)
12122 lt_prog_compiler_pic_D='+Z'
12123 ;;
12124 esac
12125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12126 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12127 ;;
12128
12129 irix5* | irix6* | nonstopux*)
12130 lt_prog_compiler_wl_D='-Wl,'
12131 # PIC (with -KPIC) is the default.
12132 lt_prog_compiler_static_D='-non_shared'
12133 ;;
12134
12135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12136 case $cc_basename in
12137 # old Intel for x86_64 which still supported -KPIC.
12138 ecc*)
12139 lt_prog_compiler_wl_D='-Wl,'
12140 lt_prog_compiler_pic_D='-KPIC'
12141 lt_prog_compiler_static_D='-static'
12142 ;;
12143 # icc used to be incompatible with GCC.
12144 # ICC 10 doesn't accept -KPIC any more.
12145 icc* | ifort*)
12146 lt_prog_compiler_wl_D='-Wl,'
12147 lt_prog_compiler_pic_D='-fPIC'
12148 lt_prog_compiler_static_D='-static'
12149 ;;
12150 # Lahey Fortran 8.1.
12151 lf95*)
12152 lt_prog_compiler_wl_D='-Wl,'
12153 lt_prog_compiler_pic_D='--shared'
12154 lt_prog_compiler_static_D='--static'
12155 ;;
12156 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12157 # Portland Group compilers (*not* the Pentium gcc compiler,
12158 # which looks to be a dead project)
12159 lt_prog_compiler_wl_D='-Wl,'
12160 lt_prog_compiler_pic_D='-fpic'
12161 lt_prog_compiler_static_D='-Bstatic'
12162 ;;
12163 ccc*)
12164 lt_prog_compiler_wl_D='-Wl,'
12165 # All Alpha code is PIC.
12166 lt_prog_compiler_static_D='-non_shared'
12167 ;;
12168 xl* | bgxl* | bgf* | mpixl*)
12169 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12170 lt_prog_compiler_wl_D='-Wl,'
12171 lt_prog_compiler_pic_D='-qpic'
12172 lt_prog_compiler_static_D='-qstaticlink'
12173 ;;
12174 *)
12175 case `$CC -V 2>&1 | sed 5q` in
12176 *Sun\ F* | *Sun*Fortran*)
12177 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12178 lt_prog_compiler_pic_D='-KPIC'
12179 lt_prog_compiler_static_D='-Bstatic'
12180 lt_prog_compiler_wl_D=''
12181 ;;
12182 *Sun\ C*)
12183 # Sun C 5.9
12184 lt_prog_compiler_pic_D='-KPIC'
12185 lt_prog_compiler_static_D='-Bstatic'
12186 lt_prog_compiler_wl_D='-Wl,'
12187 ;;
12188 esac
12189 ;;
12190 esac
12191 ;;
12192
12193 newsos6)
12194 lt_prog_compiler_pic_D='-KPIC'
12195 lt_prog_compiler_static_D='-Bstatic'
12196 ;;
12197
12198 *nto* | *qnx*)
12199 # QNX uses GNU C++, but need to define -shared option too, otherwise
12200 # it will coredump.
12201 lt_prog_compiler_pic_D='-fPIC -shared'
12202 ;;
12203
12204 osf3* | osf4* | osf5*)
12205 lt_prog_compiler_wl_D='-Wl,'
12206 # All OSF/1 code is PIC.
12207 lt_prog_compiler_static_D='-non_shared'
12208 ;;
12209
12210 rdos*)
12211 lt_prog_compiler_static_D='-non_shared'
12212 ;;
12213
12214 solaris*)
12215 lt_prog_compiler_pic_D='-KPIC'
12216 lt_prog_compiler_static_D='-Bstatic'
12217 case $cc_basename in
12218 f77* | f90* | f95*)
12219 lt_prog_compiler_wl_D='-Qoption ld ';;
12220 *)
12221 lt_prog_compiler_wl_D='-Wl,';;
12222 esac
12223 ;;
12224
12225 sunos4*)
12226 lt_prog_compiler_wl_D='-Qoption ld '
12227 lt_prog_compiler_pic_D='-PIC'
12228 lt_prog_compiler_static_D='-Bstatic'
12229 ;;
12230
12231 sysv4 | sysv4.2uw2* | sysv4.3*)
12232 lt_prog_compiler_wl_D='-Wl,'
12233 lt_prog_compiler_pic_D='-KPIC'
12234 lt_prog_compiler_static_D='-Bstatic'
12235 ;;
12236
12237 sysv4*MP*)
12238 if test -d /usr/nec ;then
12239 lt_prog_compiler_pic_D='-Kconform_pic'
12240 lt_prog_compiler_static_D='-Bstatic'
12241 fi
12242 ;;
12243
12244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12245 lt_prog_compiler_wl_D='-Wl,'
12246 lt_prog_compiler_pic_D='-KPIC'
12247 lt_prog_compiler_static_D='-Bstatic'
12248 ;;
12249
12250 unicos*)
12251 lt_prog_compiler_wl_D='-Wl,'
12252 lt_prog_compiler_can_build_shared_D=no
12253 ;;
12254
12255 uts4*)
12256 lt_prog_compiler_pic_D='-pic'
12257 lt_prog_compiler_static_D='-Bstatic'
12258 ;;
12259
12260 *)
12261 lt_prog_compiler_can_build_shared_D=no
12262 ;;
12263 esac
12264 fi
12265
12266case $host_os in
12267 # For platforms which do not support PIC, -DPIC is meaningless:
12268 *djgpp*)
12269 lt_prog_compiler_pic_D=
12270 ;;
12271 *)
12272 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12273 ;;
12274esac
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12276$as_echo "$lt_prog_compiler_pic_D" >&6; }
12277
12278
12279
12280#
12281# Check to make sure the PIC flag actually works.
12282#
12283if test -n "$lt_prog_compiler_pic_D"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12285$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
22e05272 12286if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
b4c522fa
IB
12287 $as_echo_n "(cached) " >&6
12288else
12289 lt_cv_prog_compiler_pic_works_D=no
12290 ac_outfile=conftest.$ac_objext
12291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12292 lt_compiler_flag="$lt_prog_compiler_pic_D"
12293 # Insert the option either (1) after the last *FLAGS variable, or
12294 # (2) before a word containing "conftest.", or (3) at the end.
12295 # Note that $ac_compile itself does not contain backslashes and begins
12296 # with a dollar sign (not a hyphen), so the echo should work correctly.
12297 # The option is referenced via a variable to avoid confusing sed.
12298 lt_compile=`echo "$ac_compile" | $SED \
12299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12301 -e 's:$: $lt_compiler_flag:'`
12302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12303 (eval "$lt_compile" 2>conftest.err)
12304 ac_status=$?
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 if (exit $ac_status) && test -s "$ac_outfile"; then
12308 # The compiler can only warn and ignore the option if not recognized
12309 # So say no if there are warnings other than the usual output.
12310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12313 lt_cv_prog_compiler_pic_works_D=yes
12314 fi
12315 fi
12316 $RM conftest*
12317
12318fi
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12320$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12321
12322if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12323 case $lt_prog_compiler_pic_D in
12324 "" | " "*) ;;
12325 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12326 esac
12327else
12328 lt_prog_compiler_pic_D=
12329 lt_prog_compiler_can_build_shared_D=no
12330fi
12331
12332fi
12333
12334
12335
12336#
12337# Check to make sure the static flag actually works.
12338#
12339wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12341$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12342if ${lt_cv_prog_compiler_static_works_D+:} false; then :
b4c522fa
IB
12343 $as_echo_n "(cached) " >&6
12344else
12345 lt_cv_prog_compiler_static_works_D=no
12346 save_LDFLAGS="$LDFLAGS"
12347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12348 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12350 # The linker can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
12352 if test -s conftest.err; then
12353 # Append any errors to the config.log.
12354 cat conftest.err 1>&5
12355 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12357 if diff conftest.exp conftest.er2 >/dev/null; then
12358 lt_cv_prog_compiler_static_works_D=yes
12359 fi
12360 else
12361 lt_cv_prog_compiler_static_works_D=yes
12362 fi
12363 fi
12364 $RM -r conftest*
12365 LDFLAGS="$save_LDFLAGS"
12366
12367fi
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12369$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12370
12371if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12372 :
12373else
12374 lt_prog_compiler_static_D=
12375fi
12376
12377
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12381$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12382if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12383 $as_echo_n "(cached) " >&6
12384else
12385 lt_cv_prog_compiler_c_o_D=no
12386 $RM -r conftest 2>/dev/null
12387 mkdir conftest
12388 cd conftest
12389 mkdir out
12390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12391
12392 lt_compiler_flag="-o out/conftest2.$ac_objext"
12393 # Insert the option either (1) after the last *FLAGS variable, or
12394 # (2) before a word containing "conftest.", or (3) at the end.
12395 # Note that $ac_compile itself does not contain backslashes and begins
12396 # with a dollar sign (not a hyphen), so the echo should work correctly.
12397 lt_compile=`echo "$ac_compile" | $SED \
12398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12400 -e 's:$: $lt_compiler_flag:'`
12401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12402 (eval "$lt_compile" 2>out/conftest.err)
12403 ac_status=$?
12404 cat out/conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12407 then
12408 # The compiler can only warn and ignore the option if not recognized
12409 # So say no if there are warnings
12410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12413 lt_cv_prog_compiler_c_o_D=yes
12414 fi
12415 fi
12416 chmod u+w . 2>&5
12417 $RM conftest*
12418 # SGI C++ compiler will create directory out/ii_files/ for
12419 # template instantiation
12420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12421 $RM out/* && rmdir out
12422 cd ..
12423 $RM -r conftest
12424 $RM conftest*
12425
12426fi
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12428$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12429
12430
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12433$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12434if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12435 $as_echo_n "(cached) " >&6
12436else
12437 lt_cv_prog_compiler_c_o_D=no
12438 $RM -r conftest 2>/dev/null
12439 mkdir conftest
12440 cd conftest
12441 mkdir out
12442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12443
12444 lt_compiler_flag="-o out/conftest2.$ac_objext"
12445 # Insert the option either (1) after the last *FLAGS variable, or
12446 # (2) before a word containing "conftest.", or (3) at the end.
12447 # Note that $ac_compile itself does not contain backslashes and begins
12448 # with a dollar sign (not a hyphen), so the echo should work correctly.
12449 lt_compile=`echo "$ac_compile" | $SED \
12450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12452 -e 's:$: $lt_compiler_flag:'`
12453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12454 (eval "$lt_compile" 2>out/conftest.err)
12455 ac_status=$?
12456 cat out/conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12459 then
12460 # The compiler can only warn and ignore the option if not recognized
12461 # So say no if there are warnings
12462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12465 lt_cv_prog_compiler_c_o_D=yes
12466 fi
12467 fi
12468 chmod u+w . 2>&5
12469 $RM conftest*
12470 # SGI C++ compiler will create directory out/ii_files/ for
12471 # template instantiation
12472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12473 $RM out/* && rmdir out
12474 cd ..
12475 $RM -r conftest
12476 $RM conftest*
12477
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12480$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12481
12482
12483
12484
12485hard_links="nottested"
12486if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12487 # do not overwrite the value of need_locks provided by the user
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12489$as_echo_n "checking if we can lock with hard links... " >&6; }
12490 hard_links=yes
12491 $RM conftest*
12492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12493 touch conftest.a
12494 ln conftest.a conftest.b 2>&5 || hard_links=no
12495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12497$as_echo "$hard_links" >&6; }
12498 if test "$hard_links" = no; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12500$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12501 need_locks=warn
12502 fi
12503else
12504 need_locks=no
12505fi
12506
12507
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12510$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12511
12512 runpath_var=
12513 allow_undefined_flag_D=
12514 always_export_symbols_D=no
12515 archive_cmds_D=
12516 archive_expsym_cmds_D=
12517 compiler_needs_object_D=no
12518 enable_shared_with_static_runtimes_D=no
12519 export_dynamic_flag_spec_D=
12520 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12521 hardcode_automatic_D=no
12522 hardcode_direct_D=no
12523 hardcode_direct_absolute_D=no
12524 hardcode_libdir_flag_spec_D=
12525 hardcode_libdir_flag_spec_ld_D=
12526 hardcode_libdir_separator_D=
12527 hardcode_minus_L_D=no
12528 hardcode_shlibpath_var_D=unsupported
12529 inherit_rpath_D=no
12530 link_all_deplibs_D=unknown
12531 module_cmds_D=
12532 module_expsym_cmds_D=
12533 old_archive_from_new_cmds_D=
12534 old_archive_from_expsyms_cmds_D=
12535 thread_safe_flag_spec_D=
12536 whole_archive_flag_spec_D=
12537 # include_expsyms should be a list of space-separated symbols to be *always*
12538 # included in the symbol list
12539 include_expsyms_D=
12540 # exclude_expsyms can be an extended regexp of symbols to exclude
12541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12543 # as well as any symbol that contains `d'.
12544 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12546 # platforms (ab)use it in PIC code, but their linkers get confused if
12547 # the symbol is explicitly referenced. Since portable code cannot
12548 # rely on this symbol name, it's probably fine to never include it in
12549 # preloaded symbol tables.
12550 # Exclude shared library initialization/finalization symbols.
12551 extract_expsyms_cmds=
12552
12553 case $host_os in
12554 cygwin* | mingw* | pw32* | cegcc*)
12555 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12556 # When not using gcc, we currently assume that we are using
12557 # Microsoft Visual C++.
12558 if test "$GCC" != yes; then
12559 with_gnu_ld=no
12560 fi
12561 ;;
12562 interix*)
12563 # we just hope/assume this is gcc and not c89 (= MSVC++)
12564 with_gnu_ld=yes
12565 ;;
12566 openbsd*)
12567 with_gnu_ld=no
12568 ;;
12569 esac
12570
12571 ld_shlibs_D=yes
12572
12573 # On some targets, GNU ld is compatible enough with the native linker
12574 # that we're better off using the native interface for both.
12575 lt_use_gnu_ld_interface=no
12576 if test "$with_gnu_ld" = yes; then
12577 case $host_os in
12578 aix*)
12579 # The AIX port of GNU ld has always aspired to compatibility
12580 # with the native linker. However, as the warning in the GNU ld
12581 # block says, versions before 2.19.5* couldn't really create working
12582 # shared libraries, regardless of the interface used.
12583 case `$LD -v 2>&1` in
12584 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12585 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12586 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12587 *)
12588 lt_use_gnu_ld_interface=yes
12589 ;;
12590 esac
12591 ;;
12592 *)
12593 lt_use_gnu_ld_interface=yes
12594 ;;
12595 esac
12596 fi
12597
12598 if test "$lt_use_gnu_ld_interface" = yes; then
12599 # If archive_cmds runs LD, not CC, wlarc should be empty
12600 wlarc='${wl}'
12601
12602 # Set some defaults for GNU ld with shared library support. These
12603 # are reset later if shared libraries are not supported. Putting them
12604 # here allows them to be overridden if necessary.
12605 runpath_var=LD_RUN_PATH
12606 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12607 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12608 # ancient GNU ld didn't support --whole-archive et. al.
12609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12610 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12611 else
12612 whole_archive_flag_spec_D=
12613 fi
12614 supports_anon_versioning=no
12615 case `$LD -v 2>&1` in
12616 *GNU\ gold*) supports_anon_versioning=yes ;;
12617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12620 *\ 2.11.*) ;; # other 2.11 versions
12621 *) supports_anon_versioning=yes ;;
12622 esac
12623
12624 # See if GNU ld supports shared libraries.
12625 case $host_os in
12626 aix[3-9]*)
12627 # On AIX/PPC, the GNU linker is very broken
12628 if test "$host_cpu" != ia64; then
12629 ld_shlibs_D=no
12630 cat <<_LT_EOF 1>&2
12631
12632*** Warning: the GNU linker, at least up to release 2.19, is reported
12633*** to be unable to reliably create shared libraries on AIX.
12634*** Therefore, libtool is disabling shared libraries support. If you
12635*** really care for shared libraries, you may want to install binutils
12636*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12637*** You will then need to restart the configuration process.
12638
12639_LT_EOF
12640 fi
12641 ;;
12642
12643 amigaos*)
12644 case $host_cpu in
12645 powerpc)
12646 # see comment about AmigaOS4 .so support
12647 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 archive_expsym_cmds_D=''
12649 ;;
12650 m68k)
12651 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)'
12652 hardcode_libdir_flag_spec_D='-L$libdir'
12653 hardcode_minus_L_D=yes
12654 ;;
12655 esac
12656 ;;
12657
12658 beos*)
12659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660 allow_undefined_flag_D=unsupported
12661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662 # support --undefined. This deserves some investigation. FIXME
12663 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 else
12665 ld_shlibs_D=no
12666 fi
12667 ;;
12668
12669 cygwin* | mingw* | pw32* | cegcc*)
12670 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12671 # as there is no search path for DLLs.
12672 hardcode_libdir_flag_spec_D='-L$libdir'
12673 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12674 allow_undefined_flag_D=unsupported
12675 always_export_symbols_D=no
12676 enable_shared_with_static_runtimes_D=yes
12677 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12678
12679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12680 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12681 # If the export-symbols file already is a .def file (1st line
12682 # is EXPORTS), use it as is; otherwise, prepend...
12683 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12684 cp $export_symbols $output_objdir/$soname.def;
12685 else
12686 echo EXPORTS > $output_objdir/$soname.def;
12687 cat $export_symbols >> $output_objdir/$soname.def;
12688 fi~
12689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12690 else
12691 ld_shlibs_D=no
12692 fi
12693 ;;
12694
12695 haiku*)
12696 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12697 link_all_deplibs_D=yes
12698 ;;
12699
12700 interix[3-9]*)
12701 hardcode_direct_D=no
12702 hardcode_shlibpath_var_D=no
12703 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12704 export_dynamic_flag_spec_D='${wl}-E'
12705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12706 # Instead, shared libraries are loaded at an image base (0x10000000 by
12707 # default) and relocated if they conflict, which is a slow very memory
12708 # consuming and fragmenting process. To avoid this, we pick a random,
12709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12711 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'
12712 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'
12713 ;;
12714
12715 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12716 tmp_diet=no
12717 if test "$host_os" = linux-dietlibc; then
12718 case $cc_basename in
12719 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12720 esac
12721 fi
12722 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12723 && test "$tmp_diet" = no
12724 then
12725 tmp_addflag=' $pic_flag'
12726 tmp_sharedflag='-shared'
12727 case $cc_basename,$host_cpu in
12728 pgcc*) # Portland Group C compiler
12729 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'
12730 tmp_addflag=' $pic_flag'
12731 ;;
12732 pgf77* | pgf90* | pgf95* | pgfortran*)
12733 # Portland Group f77 and f90 compilers
12734 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'
12735 tmp_addflag=' $pic_flag -Mnomain' ;;
12736 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12737 tmp_addflag=' -i_dynamic' ;;
12738 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12739 tmp_addflag=' -i_dynamic -nofor_main' ;;
12740 ifc* | ifort*) # Intel Fortran compiler
12741 tmp_addflag=' -nofor_main' ;;
12742 lf95*) # Lahey Fortran 8.1
12743 whole_archive_flag_spec_D=
12744 tmp_sharedflag='--shared' ;;
12745 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12746 tmp_sharedflag='-qmkshrobj'
12747 tmp_addflag= ;;
12748 nvcc*) # Cuda Compiler Driver 2.2
12749 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'
12750 compiler_needs_object_D=yes
12751 ;;
12752 esac
12753 case `$CC -V 2>&1 | sed 5q` in
12754 *Sun\ C*) # Sun C 5.9
12755 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'
12756 compiler_needs_object_D=yes
12757 tmp_sharedflag='-G' ;;
12758 *Sun\ F*) # Sun Fortran 8.3
12759 tmp_sharedflag='-G' ;;
12760 esac
12761 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762
12763 if test "x$supports_anon_versioning" = xyes; then
12764 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12766 echo "local: *; };" >> $output_objdir/$libname.ver~
12767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12768 fi
12769
12770 case $cc_basename in
12771 xlf* | bgf* | bgxlf* | mpixlf*)
12772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12773 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12774 hardcode_libdir_flag_spec_D=
12775 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12776 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12777 if test "x$supports_anon_versioning" = xyes; then
12778 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12780 echo "local: *; };" >> $output_objdir/$libname.ver~
12781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12782 fi
12783 ;;
12784 esac
12785 else
12786 ld_shlibs_D=no
12787 fi
12788 ;;
12789
12790 netbsd*)
12791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12792 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12793 wlarc=
12794 else
12795 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12797 fi
12798 ;;
12799
12800 solaris*)
12801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12802 ld_shlibs_D=no
12803 cat <<_LT_EOF 1>&2
12804
12805*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12806*** create shared libraries on Solaris systems. Therefore, libtool
12807*** is disabling shared libraries support. We urge you to upgrade GNU
12808*** binutils to release 2.9.1 or newer. Another option is to modify
12809*** your PATH or compiler configuration so that the native linker is
12810*** used, and then restart.
12811
12812_LT_EOF
12813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12814 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12815 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12816 else
12817 ld_shlibs_D=no
12818 fi
12819 ;;
12820
12821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12822 case `$LD -v 2>&1` in
12823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12824 ld_shlibs_D=no
12825 cat <<_LT_EOF 1>&2
12826
12827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12828*** reliably create shared libraries on SCO systems. Therefore, libtool
12829*** is disabling shared libraries support. We urge you to upgrade GNU
12830*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12831*** your PATH or compiler configuration so that the native linker is
12832*** used, and then restart.
12833
12834_LT_EOF
12835 ;;
12836 *)
12837 # For security reasons, it is highly recommended that you always
12838 # use absolute paths for naming shared libraries, and exclude the
12839 # DT_RUNPATH tag from executables and libraries. But doing so
12840 # requires that you compile everything twice, which is a pain.
12841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12842 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12843 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs_D=no
12847 fi
12848 ;;
12849 esac
12850 ;;
12851
12852 sunos4*)
12853 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12854 wlarc=
12855 hardcode_direct_D=yes
12856 hardcode_shlibpath_var_D=no
12857 ;;
12858
12859 *)
12860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12861 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12863 else
12864 ld_shlibs_D=no
12865 fi
12866 ;;
12867 esac
12868
12869 if test "$ld_shlibs_D" = no; then
12870 runpath_var=
12871 hardcode_libdir_flag_spec_D=
12872 export_dynamic_flag_spec_D=
12873 whole_archive_flag_spec_D=
12874 fi
12875 else
12876 # PORTME fill in a description of your system's linker (not GNU ld)
12877 case $host_os in
12878 aix3*)
12879 allow_undefined_flag_D=unsupported
12880 always_export_symbols_D=yes
12881 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'
12882 # Note: this linker hardcodes the directories in LIBPATH if there
12883 # are no directories specified by -L.
12884 hardcode_minus_L_D=yes
12885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12886 # Neither direct hardcoding nor static linking is supported with a
12887 # broken collect2.
12888 hardcode_direct_D=unsupported
12889 fi
12890 ;;
12891
12892 aix[4-9]*)
12893 if test "$host_cpu" = ia64; then
12894 # On IA64, the linker does run time linking by default, so we don't
12895 # have to do anything special.
12896 aix_use_runtimelinking=no
12897 exp_sym_flag='-Bexport'
12898 no_entry_flag=""
12899 else
12900 # If we're using GNU nm, then we don't want the "-C" option.
12901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12902 # Also, AIX nm treats weak defined symbols like other global
12903 # defined symbols, whereas GNU nm marks them as "W".
12904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12905 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'
12906 else
12907 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'
12908 fi
12909 aix_use_runtimelinking=no
12910
12911 # Test if we are trying to use run time linking or normal
12912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12913 # need to do runtime linking.
12914 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12915 for ld_flag in $LDFLAGS; do
12916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12917 aix_use_runtimelinking=yes
12918 break
12919 fi
12920 done
12921 ;;
12922 esac
12923
12924 exp_sym_flag='-bexport'
12925 no_entry_flag='-bnoentry'
12926 fi
12927
12928 # When large executables or shared objects are built, AIX ld can
12929 # have problems creating the table of contents. If linking a library
12930 # or program results in "error TOC overflow" add -mminimal-toc to
12931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12933
12934 archive_cmds_D=''
12935 hardcode_direct_D=yes
12936 hardcode_direct_absolute_D=yes
12937 hardcode_libdir_separator_D=':'
12938 link_all_deplibs_D=yes
12939 file_list_spec_D='${wl}-f,'
12940
12941 if test "$GCC" = yes; then
12942 case $host_os in aix4.[012]|aix4.[012].*)
12943 # We only want to do this on AIX 4.2 and lower, the check
12944 # below for broken collect2 doesn't work under 4.3+
12945 collect2name=`${CC} -print-prog-name=collect2`
12946 if test -f "$collect2name" &&
12947 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12948 then
12949 # We have reworked collect2
12950 :
12951 else
12952 # We have old collect2
12953 hardcode_direct_D=unsupported
12954 # It fails to find uninstalled libraries when the uninstalled
12955 # path is not listed in the libpath. Setting hardcode_minus_L
12956 # to unsupported forces relinking
12957 hardcode_minus_L_D=yes
12958 hardcode_libdir_flag_spec_D='-L$libdir'
12959 hardcode_libdir_separator_D=
12960 fi
12961 ;;
12962 esac
12963 shared_flag='-shared'
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag="$shared_flag "'${wl}-G'
12966 fi
12967 else
12968 # not using gcc
12969 if test "$host_cpu" = ia64; then
12970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12971 # chokes on -Wl,-G. The following line is correct:
12972 shared_flag='-G'
12973 else
12974 if test "$aix_use_runtimelinking" = yes; then
12975 shared_flag='${wl}-G'
12976 else
12977 shared_flag='${wl}-bM:SRE'
12978 fi
12979 fi
12980 fi
12981
12982 export_dynamic_flag_spec_D='${wl}-bexpall'
12983 # It seems that -bexpall does not export symbols beginning with
12984 # underscore (_), so it is better to generate a list of symbols to export.
12985 always_export_symbols_D=yes
12986 if test "$aix_use_runtimelinking" = yes; then
12987 # Warning - without using the other runtime loading flags (-brtl),
12988 # -berok will link without error, but may produce a broken library.
12989 allow_undefined_flag_D='-berok'
12990 # Determine the default libpath from the value encoded in an
12991 # empty executable.
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993/* end confdefs.h. */
12994
12995int
12996main ()
12997{
12998
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003if ac_fn_c_try_link "$LINENO"; then :
13004
13005lt_aix_libpath_sed='
13006 /Import File Strings/,/^$/ {
13007 /^0/ {
13008 s/^0 *\(.*\)$/\1/
13009 p
13010 }
13011 }'
13012aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13013# Check for a 64-bit object if we didn't find anything.
13014if test -z "$aix_libpath"; then
13015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13016fi
13017fi
13018rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13021
13022 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13023 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"
13024 else
13025 if test "$host_cpu" = ia64; then
13026 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13027 allow_undefined_flag_D="-z nodefs"
13028 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"
13029 else
13030 # Determine the default libpath from the value encoded in an
13031 # empty executable.
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h. */
13034
13035int
13036main ()
13037{
13038
13039 ;
13040 return 0;
13041}
13042_ACEOF
13043if ac_fn_c_try_link "$LINENO"; then :
13044
13045lt_aix_libpath_sed='
13046 /Import File Strings/,/^$/ {
13047 /^0/ {
13048 s/^0 *\(.*\)$/\1/
13049 p
13050 }
13051 }'
13052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13053# Check for a 64-bit object if we didn't find anything.
13054if test -z "$aix_libpath"; then
13055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13056fi
13057fi
13058rm -f core conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext conftest.$ac_ext
13060if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13061
13062 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13063 # Warning - without using the other run time loading flags,
13064 # -berok will link without error, but may produce a broken library.
13065 no_undefined_flag_D=' ${wl}-bernotok'
13066 allow_undefined_flag_D=' ${wl}-berok'
13067 if test "$with_gnu_ld" = yes; then
13068 # We only use this code for GNU lds that support --whole-archive.
13069 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13070 else
13071 # Exported symbols can be pulled into shared objects from archives
13072 whole_archive_flag_spec_D='$convenience'
13073 fi
13074 archive_cmds_need_lc_D=yes
13075 # This is similar to how AIX traditionally builds its shared libraries.
13076 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'
13077 fi
13078 fi
13079 ;;
13080
13081 amigaos*)
13082 case $host_cpu in
13083 powerpc)
13084 # see comment about AmigaOS4 .so support
13085 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086 archive_expsym_cmds_D=''
13087 ;;
13088 m68k)
13089 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)'
13090 hardcode_libdir_flag_spec_D='-L$libdir'
13091 hardcode_minus_L_D=yes
13092 ;;
13093 esac
13094 ;;
13095
13096 bsdi[45]*)
13097 export_dynamic_flag_spec_D=-rdynamic
13098 ;;
13099
13100 cygwin* | mingw* | pw32* | cegcc*)
13101 # When not using gcc, we currently assume that we are using
13102 # Microsoft Visual C++.
13103 # hardcode_libdir_flag_spec is actually meaningless, as there is
13104 # no search path for DLLs.
13105 hardcode_libdir_flag_spec_D=' '
13106 allow_undefined_flag_D=unsupported
13107 # Tell ltmain to make .lib files, not .a files.
13108 libext=lib
13109 # Tell ltmain to make .dll files, not .so files.
13110 shrext_cmds=".dll"
13111 # FIXME: Setting linknames here is a bad hack.
13112 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13113 # The linker will automatically build a .lib file if we build a DLL.
13114 old_archive_from_new_cmds_D='true'
13115 # FIXME: Should let the user specify the lib program.
13116 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13117 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13118 enable_shared_with_static_runtimes_D=yes
13119 ;;
13120
13121 darwin* | rhapsody*)
13122
13123
13124 archive_cmds_need_lc_D=no
13125 hardcode_direct_D=no
13126 hardcode_automatic_D=yes
13127 hardcode_shlibpath_var_D=unsupported
13128 if test "$lt_cv_ld_force_load" = "yes"; then
13129 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\"`'
13130 else
13131 whole_archive_flag_spec_D=''
13132 fi
13133 link_all_deplibs_D=yes
13134 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13135 case $cc_basename in
13136 ifort*) _lt_dar_can_shared=yes ;;
13137 *) _lt_dar_can_shared=$GCC ;;
13138 esac
13139 if test "$_lt_dar_can_shared" = "yes"; then
13140 output_verbose_link_cmd=func_echo_all
13141 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}"
13142 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13143 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}"
13144 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}"
13145
13146 else
13147 ld_shlibs_D=no
13148 fi
13149
13150 ;;
13151
13152 dgux*)
13153 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_libdir_flag_spec_D='-L$libdir'
13155 hardcode_shlibpath_var_D=no
13156 ;;
13157
13158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13159 # support. Future versions do this automatically, but an explicit c++rt0.o
13160 # does not break anything, and helps significantly (at the cost of a little
13161 # extra space).
13162 freebsd2.2*)
13163 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13164 hardcode_libdir_flag_spec_D='-R$libdir'
13165 hardcode_direct_D=yes
13166 hardcode_shlibpath_var_D=no
13167 ;;
13168
13169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13170 freebsd2.*)
13171 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13172 hardcode_direct_D=yes
13173 hardcode_minus_L_D=yes
13174 hardcode_shlibpath_var_D=no
13175 ;;
13176
13177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13178 freebsd* | dragonfly*)
13179 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13180 hardcode_libdir_flag_spec_D='-R$libdir'
13181 hardcode_direct_D=yes
13182 hardcode_shlibpath_var_D=no
13183 ;;
13184
13185 hpux9*)
13186 if test "$GCC" = yes; then
13187 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'
13188 else
13189 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'
13190 fi
13191 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13192 hardcode_libdir_separator_D=:
13193 hardcode_direct_D=yes
13194
13195 # hardcode_minus_L: Not really in the search PATH,
13196 # but as the default location of the library.
13197 hardcode_minus_L_D=yes
13198 export_dynamic_flag_spec_D='${wl}-E'
13199 ;;
13200
13201 hpux10*)
13202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13203 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13204 else
13205 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13206 fi
13207 if test "$with_gnu_ld" = no; then
13208 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13209 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13210 hardcode_libdir_separator_D=:
13211 hardcode_direct_D=yes
13212 hardcode_direct_absolute_D=yes
13213 export_dynamic_flag_spec_D='${wl}-E'
13214 # hardcode_minus_L: Not really in the search PATH,
13215 # but as the default location of the library.
13216 hardcode_minus_L_D=yes
13217 fi
13218 ;;
13219
13220 hpux11*)
13221 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13222 case $host_cpu in
13223 hppa*64*)
13224 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13225 ;;
13226 ia64*)
13227 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13228 ;;
13229 *)
13230 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13231 ;;
13232 esac
13233 else
13234 case $host_cpu in
13235 hppa*64*)
13236 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13237 ;;
13238 ia64*)
13239 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13240 ;;
13241 *)
13242 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13243 ;;
13244 esac
13245 fi
13246 if test "$with_gnu_ld" = no; then
13247 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13248 hardcode_libdir_separator_D=:
13249
13250 case $host_cpu in
13251 hppa*64*|ia64*)
13252 hardcode_direct_D=no
13253 hardcode_shlibpath_var_D=no
13254 ;;
13255 *)
13256 hardcode_direct_D=yes
13257 hardcode_direct_absolute_D=yes
13258 export_dynamic_flag_spec_D='${wl}-E'
13259
13260 # hardcode_minus_L: Not really in the search PATH,
13261 # but as the default location of the library.
13262 hardcode_minus_L_D=yes
13263 ;;
13264 esac
13265 fi
13266 ;;
13267
13268 irix5* | irix6* | nonstopux*)
13269 if test "$GCC" = yes; then
13270 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'
13271 # Try to use the -exported_symbol ld option, if it does not
13272 # work, assume that -exports_file does not work either and
13273 # implicitly export all symbols.
13274 save_LDFLAGS="$LDFLAGS"
13275 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h. */
13278int foo(void) {}
13279_ACEOF
13280if ac_fn_c_try_link "$LINENO"; then :
13281 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'
13282
13283fi
13284rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LDFLAGS="$save_LDFLAGS"
13287 else
13288 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'
13289 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'
13290 fi
13291 archive_cmds_need_lc_D='no'
13292 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13293 hardcode_libdir_separator_D=:
13294 inherit_rpath_D=yes
13295 link_all_deplibs_D=yes
13296 ;;
13297
13298 netbsd*)
13299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13300 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13301 else
13302 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13303 fi
13304 hardcode_libdir_flag_spec_D='-R$libdir'
13305 hardcode_direct_D=yes
13306 hardcode_shlibpath_var_D=no
13307 ;;
13308
13309 newsos6)
13310 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_direct_D=yes
13312 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13313 hardcode_libdir_separator_D=:
13314 hardcode_shlibpath_var_D=no
13315 ;;
13316
13317 *nto* | *qnx*)
13318 ;;
13319
13320 openbsd*)
13321 if test -f /usr/libexec/ld.so; then
13322 hardcode_direct_D=yes
13323 hardcode_shlibpath_var_D=no
13324 hardcode_direct_absolute_D=yes
13325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13326 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13328 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13329 export_dynamic_flag_spec_D='${wl}-E'
13330 else
13331 case $host_os in
13332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13333 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13334 hardcode_libdir_flag_spec_D='-R$libdir'
13335 ;;
13336 *)
13337 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13338 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13339 ;;
13340 esac
13341 fi
13342 else
13343 ld_shlibs_D=no
13344 fi
13345 ;;
13346
13347 os2*)
13348 hardcode_libdir_flag_spec_D='-L$libdir'
13349 hardcode_minus_L_D=yes
13350 allow_undefined_flag_D=unsupported
13351 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'
13352 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13353 ;;
13354
13355 osf3*)
13356 if test "$GCC" = yes; then
13357 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13358 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'
13359 else
13360 allow_undefined_flag_D=' -expect_unresolved \*'
13361 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'
13362 fi
13363 archive_cmds_need_lc_D='no'
13364 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13365 hardcode_libdir_separator_D=:
13366 ;;
13367
13368 osf4* | osf5*) # as osf3* with the addition of -msym flag
13369 if test "$GCC" = yes; then
13370 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13371 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'
13372 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13373 else
13374 allow_undefined_flag_D=' -expect_unresolved \*'
13375 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'
13376 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~
13377 $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'
13378
13379 # Both c and cxx compiler support -rpath directly
13380 hardcode_libdir_flag_spec_D='-rpath $libdir'
13381 fi
13382 archive_cmds_need_lc_D='no'
13383 hardcode_libdir_separator_D=:
13384 ;;
13385
13386 solaris*)
13387 no_undefined_flag_D=' -z defs'
13388 if test "$GCC" = yes; then
13389 wlarc='${wl}'
13390 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13393 else
13394 case `$CC -V 2>&1` in
13395 *"Compilers 5.0"*)
13396 wlarc=''
13397 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13400 ;;
13401 *)
13402 wlarc='${wl}'
13403 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13404 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13406 ;;
13407 esac
13408 fi
13409 hardcode_libdir_flag_spec_D='-R$libdir'
13410 hardcode_shlibpath_var_D=no
13411 case $host_os in
13412 solaris2.[0-5] | solaris2.[0-5].*) ;;
13413 *)
13414 # The compiler driver will combine and reorder linker options,
13415 # but understands `-z linker_flag'. GCC discards it without `$wl',
13416 # but is careful enough not to reorder.
13417 # Supported since Solaris 2.6 (maybe 2.5.1?)
13418 if test "$GCC" = yes; then
13419 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13420 else
13421 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13422 fi
13423 ;;
13424 esac
13425 link_all_deplibs_D=yes
13426 ;;
13427
13428 sunos4*)
13429 if test "x$host_vendor" = xsequent; then
13430 # Use $CC to link under sequent, because it throws in some extra .o
13431 # files that make .init and .fini sections work.
13432 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433 else
13434 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13435 fi
13436 hardcode_libdir_flag_spec_D='-L$libdir'
13437 hardcode_direct_D=yes
13438 hardcode_minus_L_D=yes
13439 hardcode_shlibpath_var_D=no
13440 ;;
13441
13442 sysv4)
13443 case $host_vendor in
13444 sni)
13445 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_direct_D=yes # is this really true???
13447 ;;
13448 siemens)
13449 ## LD is ld it makes a PLAMLIB
13450 ## CC just makes a GrossModule.
13451 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13452 reload_cmds_D='$CC -r -o $output$reload_objs'
13453 hardcode_direct_D=no
13454 ;;
13455 motorola)
13456 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13457 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13458 ;;
13459 esac
13460 runpath_var='LD_RUN_PATH'
13461 hardcode_shlibpath_var_D=no
13462 ;;
13463
13464 sysv4.3*)
13465 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_shlibpath_var_D=no
13467 export_dynamic_flag_spec_D='-Bexport'
13468 ;;
13469
13470 sysv4*MP*)
13471 if test -d /usr/nec; then
13472 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13473 hardcode_shlibpath_var_D=no
13474 runpath_var=LD_RUN_PATH
13475 hardcode_runpath_var=yes
13476 ld_shlibs_D=yes
13477 fi
13478 ;;
13479
13480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13481 no_undefined_flag_D='${wl}-z,text'
13482 archive_cmds_need_lc_D=no
13483 hardcode_shlibpath_var_D=no
13484 runpath_var='LD_RUN_PATH'
13485
13486 if test "$GCC" = yes; then
13487 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 else
13490 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 fi
13493 ;;
13494
13495 sysv5* | sco3.2v5* | sco5v6*)
13496 # Note: We can NOT use -z defs as we might desire, because we do not
13497 # link with -lc, and that would cause any symbols used from libc to
13498 # always be unresolved, which means just about no library would
13499 # ever link correctly. If we're not using GNU ld we use -z text
13500 # though, which does catch some bad symbols but isn't as heavy-handed
13501 # as -z defs.
13502 no_undefined_flag_D='${wl}-z,text'
13503 allow_undefined_flag_D='${wl}-z,nodefs'
13504 archive_cmds_need_lc_D=no
13505 hardcode_shlibpath_var_D=no
13506 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13507 hardcode_libdir_separator_D=':'
13508 link_all_deplibs_D=yes
13509 export_dynamic_flag_spec_D='${wl}-Bexport'
13510 runpath_var='LD_RUN_PATH'
13511
13512 if test "$GCC" = yes; then
13513 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515 else
13516 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 fi
13519 ;;
13520
13521 uts4*)
13522 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_libdir_flag_spec_D='-L$libdir'
13524 hardcode_shlibpath_var_D=no
13525 ;;
13526
13527 *)
13528 ld_shlibs_D=no
13529 ;;
13530 esac
13531
13532 if test x$host_vendor = xsni; then
13533 case $host in
13534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13535 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13536 ;;
13537 esac
13538 fi
13539 fi
13540
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13542$as_echo "$ld_shlibs_D" >&6; }
13543test "$ld_shlibs_D" = no && can_build_shared=no
13544
13545with_gnu_ld_D=$with_gnu_ld
13546
13547
13548
13549
13550
13551
13552#
13553# Do we need to explicitly link libc?
13554#
13555case "x$archive_cmds_need_lc_D" in
13556x|xyes)
13557 # Assume -lc should be added
13558 archive_cmds_need_lc_D=yes
13559
13560 if test "$enable_shared" = yes && test "$GCC" = yes; then
13561 case $archive_cmds_D in
13562 *'~'*)
13563 # FIXME: we may have to deal with multi-command sequences.
13564 ;;
13565 '$CC '*)
13566 # Test whether the compiler implicitly links with -lc since on some
13567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13568 # to ld, don't add -lc before -lgcc.
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13570$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13571if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
b4c522fa
IB
13572 $as_echo_n "(cached) " >&6
13573else
13574 $RM conftest*
13575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13576
13577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13578 (eval $ac_compile) 2>&5
13579 ac_status=$?
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581 test $ac_status = 0; } 2>conftest.err; then
13582 soname=conftest
13583 lib=conftest
13584 libobjs=conftest.$ac_objext
13585 deplibs=
13586 wl=$lt_prog_compiler_wl_D
13587 pic_flag=$lt_prog_compiler_pic_D
13588 compiler_flags=-v
13589 linker_flags=-v
13590 verstring=
13591 output_objdir=.
13592 libname=conftest
13593 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13594 allow_undefined_flag_D=
13595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13596 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13597 ac_status=$?
13598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13599 test $ac_status = 0; }
13600 then
13601 lt_cv_archive_cmds_need_lc_D=no
13602 else
13603 lt_cv_archive_cmds_need_lc_D=yes
13604 fi
13605 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13606 else
13607 cat conftest.err 1>&5
13608 fi
13609 $RM conftest*
13610
13611fi
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13613$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13614 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13615 ;;
13616 esac
13617 fi
13618 ;;
13619esac
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13685$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13686hardcode_action_D=
13687if test -n "$hardcode_libdir_flag_spec_D" ||
13688 test -n "$runpath_var_D" ||
13689 test "X$hardcode_automatic_D" = "Xyes" ; then
13690
13691 # We can hardcode non-existent directories.
13692 if test "$hardcode_direct_D" != no &&
13693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13694 # have to relink, otherwise we might link with an installed library
13695 # when we should be linking with a yet-to-be-installed one
13696 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13697 test "$hardcode_minus_L_D" != no; then
13698 # Linking always hardcodes the temporary library directory.
13699 hardcode_action_D=relink
13700 else
13701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13702 hardcode_action_D=immediate
13703 fi
13704else
13705 # We cannot hardcode anything, or else we can only hardcode existing
13706 # directories.
13707 hardcode_action_D=unsupported
13708fi
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13710$as_echo "$hardcode_action_D" >&6; }
13711
13712if test "$hardcode_action_D" = relink ||
13713 test "$inherit_rpath_D" = yes; then
13714 # Fast installation is not supported
13715 enable_fast_install=no
13716elif test "$shlibpath_overrides_runpath" = yes ||
13717 test "$enable_shared" = no; then
13718 # Fast installation is not necessary
13719 enable_fast_install=needless
13720fi
13721
13722
13723
13724
13725
13726
13727
13728fi
13729
13730ac_ext=c
13731ac_cpp='$CPP $CPPFLAGS'
13732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13734ac_compiler_gnu=$ac_cv_c_compiler_gnu
13735
13736
13737GCC=$lt_save_GCC
13738CC=$lt_save_CC
13739CFLAGS=$lt_save_CFLAGS
13740GDCFLAGS=$lt_save_DFLAGS
13741
13742 GDCFLAGS=$gdc_save_DFLAGS
13743
13744 if test "$enable_shared" = "yes"; then
13745 ENABLE_SHARED_TRUE=
13746 ENABLE_SHARED_FALSE='#'
13747else
13748 ENABLE_SHARED_TRUE='#'
13749 ENABLE_SHARED_FALSE=
13750fi
13751
13752 if test "$enable_static" = "yes"; then
13753 ENABLE_STATIC_TRUE=
13754 ENABLE_STATIC_FALSE='#'
13755else
13756 ENABLE_STATIC_TRUE='#'
13757 ENABLE_STATIC_FALSE=
13758fi
13759
13760
13761# libtool variables for Phobos shared and position-independent compiles.
13762#
13763# Use phobos_compiler_shared_flag to designate the compile-time flags for
13764# creating shared objects. Default: -fversion=Shared.
13765#
13766# Use phobos_compiler_pic_flag to designate the compile-time flags for
13767# creating position-independent objects. This varies with the target
13768# hardware and operating system, but is often: -fPIC.
13769#
13770# The distinction between pic and shared compilation flags is not present in
13771# libtool, and so we make it here. How it is handled is that in shared
13772# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13773# ensure that conditional compilation of shared runtime code is compiled in.
13774# The original PIC flags are then used in the compilation of every object.
13775#
13776# Why are objects destined for libgphobos.a compiled with -fPIC?
13777# Because -fPIC is not harmful to use for objects destined for static
13778# libraries. In addition, using -fPIC will allow the use of static
13779# libgphobos.a in the creation of other D shared libraries.
13780if test "$enable_shared" = yes; then
13781 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13782 phobos_compiler_shared_flag="-fversion=Shared"
13783else
13784 phobos_compiler_pic_flag=
13785 phobos_compiler_shared_flag=
13786fi
13787
13788
13789
13790# Override the libtool's pic_flag and pic_mode.
13791# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13792# NB: this impacts --with-pic and --without-pic.
13793lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13794pic_mode='default'
13795
13796# Determine what GCC version number to use in filesystem paths.
13797
13798 get_gcc_base_ver="cat"
13799
13800# Check whether --with-gcc-major-version-only was given.
13801if test "${with_gcc_major_version_only+set}" = set; then :
13802 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13803 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13804 fi
13805
13806fi
13807
13808
13809
13810
13811# libphobos/libdruntime specific options and feature detection
13812
13813 # These need to be absolute paths, yet at the same time need to
13814 # canonicalize only relative paths, because then amd will not unmount
13815 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13816 libphobos_builddir=`${PWDCMD-pwd}`
13817 case $srcdir in
13818 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13819 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13820 esac
13821
13822
13823
13824
13825 if test ${multilib} = yes; then
13826 multilib_arg="--enable-multilib"
13827 else
13828 multilib_arg=
13829 fi
13830
13831
13832 # Check whether --enable-werror was given.
13833if test "${enable_werror+set}" = set; then :
13834 enableval=$enable_werror;
13835fi
13836
13837 WERROR_FLAG=""
13838 if test "x$enable_werror" = "xyes"; then
13839 WERROR_FLAG="-Werror"
13840 fi
13841
13842
13843 # Check whether --enable-druntime-gc was given.
13844if test "${enable_druntime_gc+set}" = set; then :
13845 enableval=$enable_druntime_gc; enable_druntime_gc=no
13846else
13847 enable_druntime_gc=yes
13848fi
13849
13850
13851 if test "$enable_druntime_gc" = "yes"; then
13852 DRUNTIME_GC_ENABLE_TRUE=
13853 DRUNTIME_GC_ENABLE_FALSE='#'
13854else
13855 DRUNTIME_GC_ENABLE_TRUE='#'
13856 DRUNTIME_GC_ENABLE_FALSE=
13857fi
13858
13859
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13862$as_echo_n "checking for target OS... " >&6; }
22e05272 13863if ${druntime_cv_target_os+:} false; then :
b4c522fa
IB
13864 $as_echo_n "(cached) " >&6
13865else
13866 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13869$as_echo "$druntime_cv_target_os" >&6; }
13870 if test -z "$druntime_cv_target_os"; then :
22e05272 13871 as_fn_error $? "can't detect target OS" "$LINENO" 5
b4c522fa
IB
13872fi
13873
13874
13875
13876 # Check whether --enable-unix was given.
13877if test "${enable_unix+set}" = set; then :
13878 enableval=$enable_unix; :
13879else
13880 enable_unix=auto
13881fi
13882
13883
13884 case "$druntime_cv_target_os" in
13885 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13886 esac
13887 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13888 enable_unix=yes
13889 fi
13890 if test "$enable_unix" = "yes"; then
13891 DRUNTIME_OS_UNIX_TRUE=
13892 DRUNTIME_OS_UNIX_FALSE='#'
13893else
13894 DRUNTIME_OS_UNIX_TRUE='#'
13895 DRUNTIME_OS_UNIX_FALSE=
13896fi
13897
13898
13899
13900
13901
13902 druntime_target_os_parsed=""
13903 case "$druntime_cv_target_os" in
13904 aix*) druntime_target_os_parsed="aix"
13905 ;;
13906 *android*)
13907 druntime_target_os_parsed="android"
13908 ;;
13909 darwin*) druntime_target_os_parsed="darwin"
13910 ;;
13911 dragonfly*)
13912 druntime_target_os_parsed="dragonflybsd"
13913 ;;
13914 freebsd*|k*bsd*-gnu)
13915 druntime_target_os_parsed="freebsd"
13916 ;;
13917 openbsd*)
13918 druntime_target_os_parsed="openbsd"
13919 ;;
13920 netbsd*)
13921 druntime_target_os_parsed="netbsd"
13922 ;;
13923 linux*) druntime_target_os_parsed="linux"
13924 ;;
13925 mingw*) druntime_target_os_parsed="mingw"
13926 ;;
13927 *solaris*) druntime_target_os_parsed="solaris"
13928 esac
13929 if test "$druntime_target_os_parsed" = "aix"; then
13930 DRUNTIME_OS_AIX_TRUE=
13931 DRUNTIME_OS_AIX_FALSE='#'
13932else
13933 DRUNTIME_OS_AIX_TRUE='#'
13934 DRUNTIME_OS_AIX_FALSE=
13935fi
13936
13937 if test "$druntime_target_os_parsed" = "android"; then
13938 DRUNTIME_OS_ANDROID_TRUE=
13939 DRUNTIME_OS_ANDROID_FALSE='#'
13940else
13941 DRUNTIME_OS_ANDROID_TRUE='#'
13942 DRUNTIME_OS_ANDROID_FALSE=
13943fi
13944
13945 if test "$druntime_target_os_parsed" = "darwin"; then
13946 DRUNTIME_OS_DARWIN_TRUE=
13947 DRUNTIME_OS_DARWIN_FALSE='#'
13948else
13949 DRUNTIME_OS_DARWIN_TRUE='#'
13950 DRUNTIME_OS_DARWIN_FALSE=
13951fi
13952
13953 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13954 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13955 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13956else
13957 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13958 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13959fi
13960
13961 if test "$druntime_target_os_parsed" = "freebsd"; then
13962 DRUNTIME_OS_FREEBSD_TRUE=
13963 DRUNTIME_OS_FREEBSD_FALSE='#'
13964else
13965 DRUNTIME_OS_FREEBSD_TRUE='#'
13966 DRUNTIME_OS_FREEBSD_FALSE=
13967fi
13968
13969 if test "$druntime_target_os_parsed" = "netbsd"; then
13970 DRUNTIME_OS_NETBSD_TRUE=
13971 DRUNTIME_OS_NETBSD_FALSE='#'
13972else
13973 DRUNTIME_OS_NETBSD_TRUE='#'
13974 DRUNTIME_OS_NETBSD_FALSE=
13975fi
13976
13977 if test "$druntime_target_os_parsed" = "openbsd"; then
13978 DRUNTIME_OS_OPENBSD_TRUE=
13979 DRUNTIME_OS_OPENBSD_FALSE='#'
13980else
13981 DRUNTIME_OS_OPENBSD_TRUE='#'
13982 DRUNTIME_OS_OPENBSD_FALSE=
13983fi
13984
13985 if test "$druntime_target_os_parsed" = "linux"; then
13986 DRUNTIME_OS_LINUX_TRUE=
13987 DRUNTIME_OS_LINUX_FALSE='#'
13988else
13989 DRUNTIME_OS_LINUX_TRUE='#'
13990 DRUNTIME_OS_LINUX_FALSE=
13991fi
13992
13993 if test "$druntime_target_os_parsed" = "mingw"; then
13994 DRUNTIME_OS_MINGW_TRUE=
13995 DRUNTIME_OS_MINGW_FALSE='#'
13996else
13997 DRUNTIME_OS_MINGW_TRUE='#'
13998 DRUNTIME_OS_MINGW_FALSE=
13999fi
14000
14001 if test "$druntime_target_os_parsed" = "solaris"; then
14002 DRUNTIME_OS_SOLARIS_TRUE=
14003 DRUNTIME_OS_SOLARIS_FALSE='#'
14004else
14005 DRUNTIME_OS_SOLARIS_TRUE='#'
14006 DRUNTIME_OS_SOLARIS_FALSE=
14007fi
14008
14009
14010
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14013$as_echo_n "checking for thread model used by GDC... " >&6; }
14014 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14016$as_echo "$d_thread_model" >&6; }
14017
14018 # Map from thread model to thread interface.
14019
14020case $d_thread_model in
14021 aix) DCFG_THREAD_MODEL="Posix" ;;
14022 lynx) DCFG_THREAD_MODEL="Posix" ;;
14023 posix) DCFG_THREAD_MODEL="Posix" ;;
14024 single) DCFG_THREAD_MODEL="Single" ;;
14025 win32) DCFG_THREAD_MODEL="Win32" ;;
14026 # TODO: These targets need porting.
14027 dce|mipssde|rtems|tpf|vxworks)
14028 DCFG_THREAD_MODEL="Single" ;;
14029 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14030esac
14031
14032
14033
14034
14035 ac_ext=c
14036ac_cpp='$CPP $CPPFLAGS'
14037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14042$as_echo_n "checking for ARM unwinder... " >&6; }
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044/* end confdefs.h. */
14045#include <unwind.h>
14046int
14047main ()
14048{
14049
14050 #if __ARM_EABI_UNWINDER__
14051 #error Yes, it is.
14052 #endif
14053
14054 ;
14055 return 0;
14056}
14057_ACEOF
14058if ac_fn_c_try_compile "$LINENO"; then :
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060$as_echo "no" >&6; }
14061 DCFG_ARM_EABI_UNWINDER=false
14062else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14064$as_echo "yes" >&6; }
14065 DCFG_ARM_EABI_UNWINDER=true
14066fi
14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068
14069 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14070 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14071 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14072else
14073 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14074 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14075fi
14076
14077 ac_ext=c
14078ac_cpp='$CPP $CPPFLAGS'
14079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14081ac_compiler_gnu=$ac_cv_c_compiler_gnu
14082
14083
14084
14085 ac_ext=c
14086ac_cpp='$CPP $CPPFLAGS'
14087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14092$as_echo_n "checking for minfo section bracketing... " >&6; }
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094/* end confdefs.h. */
14095
14096 void* module_info_ptr __attribute__((section ("minfo")));
14097 extern void* __start_minfo __attribute__((visibility ("hidden")));
14098 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14099
14100 int main()
14101 {
14102 // Never run, just to prevent compiler from optimizing access
14103 return &__start_minfo == &__stop_minfo;
14104 }
14105
14106_ACEOF
14107if ac_fn_c_try_link "$LINENO"; then :
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14109$as_echo "yes" >&6; }
14110 DCFG_MINFO_BRACKETING=true
14111else
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113$as_echo "no" >&6; }
14114 DCFG_MINFO_BRACKETING=false
14115fi
14116rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118
14119 ac_ext=c
14120ac_cpp='$CPP $CPPFLAGS'
14121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123ac_compiler_gnu=$ac_cv_c_compiler_gnu
14124
14125
14126
14127
14128
14129 gdc_save_DFLAGS=$GDCFLAGS
14130 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14131
14132 ac_ext=d
14133ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14134ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135ac_compiler_gnu=yes
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14138$as_echo_n "checking for library containing malloc... " >&6; }
22e05272 14139if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14140 $as_echo_n "(cached) " >&6
14141else
14142 ac_func_search_save_LIBS=$LIBS
14143cat > conftest.$ac_ext <<_ACEOF
14144module mod;
14145 extern(C) int malloc();
14146
14147extern(C) int main() {
14148 malloc(); return 0;
14149}
14150_ACEOF
14151for ac_lib in '' c; do
14152 if test -z "$ac_lib"; then
14153 ac_res="none required"
14154 else
14155 ac_res=-l$ac_lib
14156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14157 fi
14158 if ac_fn_d_try_link "$LINENO"; then :
14159 ac_cv_search_malloc=$ac_res
14160fi
14161rm -f core conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext
22e05272 14163 if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14164 break
14165fi
14166done
22e05272 14167if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14168
14169else
14170 ac_cv_search_malloc=no
14171fi
14172rm conftest.$ac_ext
14173LIBS=$ac_func_search_save_LIBS
14174fi
14175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14176$as_echo "$ac_cv_search_malloc" >&6; }
14177ac_res=$ac_cv_search_malloc
14178if test "$ac_res" != no; then :
14179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14180
14181fi
14182
14183
14184 enable_thread_lib=yes
14185 # Check whether --enable-thread-lib was given.
14186if test "${enable_thread_lib+set}" = set; then :
14187 enableval=$enable_thread_lib;
14188fi
14189
14190
14191 if test "x$enable_thread_lib" = "xyes"; then :
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14194$as_echo_n "checking for library containing pthread_create... " >&6; }
22e05272 14195if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14196 $as_echo_n "(cached) " >&6
14197else
14198 ac_func_search_save_LIBS=$LIBS
14199cat > conftest.$ac_ext <<_ACEOF
14200module mod;
14201 extern(C) int pthread_create();
14202
14203extern(C) int main() {
14204 pthread_create(); return 0;
14205}
14206_ACEOF
14207for ac_lib in '' pthread; do
14208 if test -z "$ac_lib"; then
14209 ac_res="none required"
14210 else
14211 ac_res=-l$ac_lib
14212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14213 fi
14214 if ac_fn_d_try_link "$LINENO"; then :
14215 ac_cv_search_pthread_create=$ac_res
14216fi
14217rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext
22e05272 14219 if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14220 break
14221fi
14222done
22e05272 14223if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14224
14225else
14226 ac_cv_search_pthread_create=no
14227fi
14228rm conftest.$ac_ext
14229LIBS=$ac_func_search_save_LIBS
14230fi
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14232$as_echo "$ac_cv_search_pthread_create" >&6; }
14233ac_res=$ac_cv_search_pthread_create
14234if test "$ac_res" != no; then :
14235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14236
14237fi
14238
14239
14240else
14241
14242 if test "x$enable_thread_lib" = "xno"; then :
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14245$as_echo_n "checking for thread library... " >&6; }
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14247$as_echo "disabled" >&6; }
14248
14249else
14250
14251 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14253$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
22e05272 14254if eval \${$as_ac_Lib+:} false; then :
b4c522fa
IB
14255 $as_echo_n "(cached) " >&6
14256else
14257 ac_check_lib_save_LIBS=$LIBS
14258LIBS="-l$enable_thread_lib $LIBS"
14259cat > conftest.$ac_ext <<_ACEOF
14260module mod;
14261 extern(C) int pthread_create();
14262
14263extern(C) int main() {
14264 pthread_create(); return 0;
14265}
14266_ACEOF
14267if ac_fn_d_try_link "$LINENO"; then :
14268 eval "$as_ac_Lib=yes"
14269else
14270 eval "$as_ac_Lib=no"
14271fi
14272rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274LIBS=$ac_check_lib_save_LIBS
14275fi
14276eval ac_res=\$$as_ac_Lib
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14278$as_echo "$ac_res" >&6; }
22e05272 14279if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
b4c522fa
IB
14280 cat >>confdefs.h <<_ACEOF
14281#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14282_ACEOF
14283
14284 LIBS="-l$enable_thread_lib $LIBS"
14285
14286else
14287
22e05272 14288 as_fn_error $? "Thread library not found" "$LINENO" 5
b4c522fa
IB
14289
14290fi
14291
14292
14293fi
14294
14295fi
14296
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14298$as_echo_n "checking for library containing cosf... " >&6; }
22e05272 14299if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14300 $as_echo_n "(cached) " >&6
14301else
14302 ac_func_search_save_LIBS=$LIBS
14303cat > conftest.$ac_ext <<_ACEOF
14304module mod;
14305 extern(C) int cosf();
14306
14307extern(C) int main() {
14308 cosf(); return 0;
14309}
14310_ACEOF
14311for ac_lib in '' m; do
14312 if test -z "$ac_lib"; then
14313 ac_res="none required"
14314 else
14315 ac_res=-l$ac_lib
14316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 fi
14318 if ac_fn_d_try_link "$LINENO"; then :
14319 ac_cv_search_cosf=$ac_res
14320fi
14321rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext
22e05272 14323 if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14324 break
14325fi
14326done
22e05272 14327if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14328
14329else
14330 ac_cv_search_cosf=no
14331fi
14332rm conftest.$ac_ext
14333LIBS=$ac_func_search_save_LIBS
14334fi
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14336$as_echo "$ac_cv_search_cosf" >&6; }
14337ac_res=$ac_cv_search_cosf
14338if test "$ac_res" != no; then :
14339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14340
14341fi
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14344$as_echo_n "checking for library containing clock_gettime... " >&6; }
22e05272 14345if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14346 $as_echo_n "(cached) " >&6
14347else
14348 ac_func_search_save_LIBS=$LIBS
14349cat > conftest.$ac_ext <<_ACEOF
14350module mod;
14351 extern(C) int clock_gettime();
14352
14353extern(C) int main() {
14354 clock_gettime(); return 0;
14355}
14356_ACEOF
14357for ac_lib in '' rt; do
14358 if test -z "$ac_lib"; then
14359 ac_res="none required"
14360 else
14361 ac_res=-l$ac_lib
14362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14363 fi
14364 if ac_fn_d_try_link "$LINENO"; then :
14365 ac_cv_search_clock_gettime=$ac_res
14366fi
14367rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext
22e05272 14369 if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14370 break
14371fi
14372done
22e05272 14373if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14374
14375else
14376 ac_cv_search_clock_gettime=no
14377fi
14378rm conftest.$ac_ext
14379LIBS=$ac_func_search_save_LIBS
14380fi
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14382$as_echo "$ac_cv_search_clock_gettime" >&6; }
14383ac_res=$ac_cv_search_clock_gettime
14384if test "$ac_res" != no; then :
14385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14386
14387fi
14388
14389
14390 # This checks to see if the host supports the compiler-generated builtins
14391 # for atomic operations for various integral sizes. Note, this is intended
14392 # to be an all-or-nothing switch, so all the atomic operations that are
14393 # used should be checked.
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14395$as_echo_n "checking for atomic builtins for byte... " >&6; }
22e05272 14396 if ${druntime_cv_atomic_byte+:} false; then :
b4c522fa
IB
14397 $as_echo_n "(cached) " >&6
14398else
14399
14400 cat > conftest.$ac_ext <<_ACEOF
14401module mod;
14402import gcc.builtins;
14403
14404extern(C) int main() {
14405
14406 shared(byte) c1;
14407 byte c2, c3;
14408 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14409 __atomic_load_1(&c1, 5);
14410 __atomic_store_1(&c1, c2, 5);
14411 return 0;
14412
14413}
14414_ACEOF
14415if ac_fn_d_try_link "$LINENO"; then :
14416 druntime_cv_atomic_byte=yes
14417else
14418 druntime_cv_atomic_byte=no
14419fi
14420rm -f core conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext conftest.$ac_ext
14422
14423fi
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14426$as_echo "$druntime_cv_atomic_byte" >&6; }
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14429$as_echo_n "checking for atomic builtins for short... " >&6; }
22e05272 14430 if ${druntime_cv_atomic_short+:} false; then :
b4c522fa
IB
14431 $as_echo_n "(cached) " >&6
14432else
14433
14434 cat > conftest.$ac_ext <<_ACEOF
14435module mod;
14436import gcc.builtins;
14437
14438extern(C) int main() {
14439
14440 shared(short) c1;
14441 short c2, c3;
14442 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14443 __atomic_load_2(&c1, 5);
14444 __atomic_store_2(&c1, c2, 5);
14445 return 0;
14446
14447}
14448_ACEOF
14449if ac_fn_d_try_link "$LINENO"; then :
14450 druntime_cv_atomic_short=yes
14451else
14452 druntime_cv_atomic_short=no
14453fi
14454rm -f core conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14456
14457fi
14458
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14460$as_echo "$druntime_cv_atomic_short" >&6; }
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14463$as_echo_n "checking for atomic builtins for int... " >&6; }
22e05272 14464 if ${druntime_cv_atomic_int+:} false; then :
b4c522fa
IB
14465 $as_echo_n "(cached) " >&6
14466else
14467
14468 cat > conftest.$ac_ext <<_ACEOF
14469module mod;
14470import gcc.builtins;
14471
14472extern(C) int main() {
14473
14474 shared(int) c1;
14475 int c2, c3;
14476 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14477 __atomic_load_4(&c1, 5);
14478 __atomic_store_4(&c1, c2, 5);
14479 return 0;
14480
14481}
14482_ACEOF
14483if ac_fn_d_try_link "$LINENO"; then :
14484 druntime_cv_atomic_int=yes
14485else
14486 druntime_cv_atomic_int=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490
14491fi
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14494$as_echo "$druntime_cv_atomic_int" >&6; }
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14497$as_echo_n "checking for atomic builtins for long... " >&6; }
22e05272 14498 if ${druntime_cv_atomic_long+:} false; then :
b4c522fa
IB
14499 $as_echo_n "(cached) " >&6
14500else
14501
14502 cat > conftest.$ac_ext <<_ACEOF
14503module mod;
14504import gcc.builtins;
14505
14506extern(C) int main() {
14507
14508 shared(long) c1;
14509 long c2, c3;
14510 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14511 __atomic_load_8(&c1, 5);
14512 __atomic_store_8(&c1, c2, 5);
14513 return 0;
14514
14515}
14516_ACEOF
14517if ac_fn_d_try_link "$LINENO"; then :
14518 druntime_cv_atomic_long=yes
14519else
14520 druntime_cv_atomic_long=no
14521fi
14522rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524
14525fi
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14528$as_echo "$druntime_cv_atomic_long" >&6; }
14529
14530 # Have atomic builtin support if all but the long test above passes.
14531 DCFG_HAVE_ATOMIC_BUILTINS=false
14532 if test "$druntime_cv_atomic_byte" = yes \
14533 && test "$druntime_cv_atomic_short" = yes \
14534 && test "$druntime_cv_atomic_int" = yes; then \
14535 DCFG_HAVE_ATOMIC_BUILTINS=true
14536 fi
14537
14538 # Have 64-bit atomic support if the long test above passes.
14539 DCFG_HAVE_64BIT_ATOMICS=false
14540 if test "$druntime_cv_atomic_long" = yes; then
14541 DCFG_HAVE_64BIT_ATOMICS=true
14542 fi
14543
14544
14545
14546
14547 ac_ext=c
14548ac_cpp='$CPP $CPPFLAGS'
14549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14551ac_compiler_gnu=$ac_cv_c_compiler_gnu
14552
14553
14554 GDCFLAGS=$gdc_save_DFLAGS
14555
14556
14557
14558
14559# Check whether --with-libatomic was given.
14560if test "${with_libatomic+set}" = set; then :
14561 withval=$with_libatomic;
14562fi
14563
14564
14565 DCFG_HAVE_LIBATOMIC=false
14566 LIBATOMIC=
14567 if test "x$with_libatomic" != "xno"; then :
14568
14569 DCFG_HAVE_LIBATOMIC=true
14570 LIBATOMIC=../../libatomic/libatomic_convenience.la
14571
14572else
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14575$as_echo_n "checking for libatomic... " >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14577$as_echo "disabled" >&6; }
14578
14579fi
14580
14581
14582
14583
14584
14585 ac_ext=c
14586ac_cpp='$CPP $CPPFLAGS'
14587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14589ac_compiler_gnu=$ac_cv_c_compiler_gnu
14590
14591 BACKTRACE_SUPPORTED=false
14592 BACKTRACE_USES_MALLOC=false
14593 BACKTRACE_SUPPORTS_THREADS=false
14594 LIBBACKTRACE=""
14595
14596
14597# Check whether --with-libbacktrace was given.
14598if test "${with_libbacktrace+set}" = set; then :
14599 withval=$with_libbacktrace;
14600fi
14601
14602
14603 if test "x$with_libbacktrace" != "xno"; then :
14604
14605 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14606
14607 gdc_save_CPPFLAGS=$CPPFLAGS
14608 CPPFLAGS+=" -I../libbacktrace "
14609
14610 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
22e05272 14611if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
b4c522fa
IB
14612 have_libbacktrace_h=true
14613else
14614 have_libbacktrace_h=false
14615fi
14616
14617
14618
14619 if $have_libbacktrace_h; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14621$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h. */
14624
14625 #include <backtrace-supported.h>
14626 #if BACKTRACE_SUPPORTED
14627 FOUND_LIBBACKTRACE_RESULT_GDC
14628 #endif
14629
14630_ACEOF
14631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14632 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14633 BACKTRACE_SUPPORTED=true
14634else
14635 BACKTRACE_SUPPORTED=false
14636fi
14637rm -f conftest*
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14640$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14643$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645/* end confdefs.h. */
14646
14647 #include <backtrace-supported.h>
14648 #if BACKTRACE_USES_MALLOC
14649 FOUND_LIBBACKTRACE_RESULT_GDC
14650 #endif
14651
14652_ACEOF
14653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14654 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14655 BACKTRACE_USES_MALLOC=true
14656else
14657 BACKTRACE_USES_MALLOC=false
14658fi
14659rm -f conftest*
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14662$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14665$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h. */
14668
14669 #include <backtrace-supported.h>
14670 #if BACKTRACE_SUPPORTS_THREADS
14671 FOUND_LIBBACKTRACE_RESULT_GDC
14672 #endif
14673
14674_ACEOF
14675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14676 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14677 BACKTRACE_SUPPORTS_THREADS=true
14678else
14679 BACKTRACE_SUPPORTS_THREADS=false
14680fi
14681rm -f conftest*
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14684$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14685 fi
14686 CPPFLAGS=$gdc_save_CPPFLAGS
14687
14688else
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14691$as_echo_n "checking for libbacktrace... " >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14693$as_echo "disabled" >&6; }
14694
14695fi
14696
14697
14698
14699
14700
14701 ac_ext=c
14702ac_cpp='$CPP $CPPFLAGS'
14703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705ac_compiler_gnu=$ac_cv_c_compiler_gnu
14706
14707
14708
14709 # Libtool has already checked this, so re-use the inferred dlopen lib.
14710 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14711
14712 LIBS="$LIBS $lt_cv_dlopen_libs"
14713
14714fi
14715
14716
14717
14718# Check whether --with-target-system-zlib was given.
14719if test "${with_target_system_zlib+set}" = set; then :
14720 withval=$with_target_system_zlib;
14721fi
14722
14723
14724 system_zlib=false
14725 if test "x$with_target_system_zlib" = "xyes"; then :
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14728$as_echo_n "checking for deflate in -lz... " >&6; }
22e05272 14729if ${ac_cv_lib_z_deflate+:} false; then :
b4c522fa
IB
14730 $as_echo_n "(cached) " >&6
14731else
14732 ac_check_lib_save_LIBS=$LIBS
14733LIBS="-lz $LIBS"
14734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735/* end confdefs.h. */
14736
14737/* Override any GCC internal prototype to avoid an error.
14738 Use char because int might match the return type of a GCC
14739 builtin and then its argument prototype would still apply. */
14740#ifdef __cplusplus
14741extern "C"
14742#endif
14743char deflate ();
14744int
14745main ()
14746{
14747return deflate ();
14748 ;
14749 return 0;
14750}
14751_ACEOF
14752if ac_fn_c_try_link "$LINENO"; then :
14753 ac_cv_lib_z_deflate=yes
14754else
14755 ac_cv_lib_z_deflate=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14759LIBS=$ac_check_lib_save_LIBS
14760fi
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14762$as_echo "$ac_cv_lib_z_deflate" >&6; }
22e05272 14763if test "x$ac_cv_lib_z_deflate" = xyes; then :
b4c522fa
IB
14764
14765 system_zlib=yes
14766
14767else
14768
22e05272 14769 as_fn_error $? "System zlib not found" "$LINENO" 5
b4c522fa
IB
14770
14771fi
14772
14773
14774else
14775
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14777$as_echo_n "checking for zlib... " >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14779$as_echo "just compiled" >&6; }
14780
14781fi
14782
14783 if test "$with_target_system_zlib" = yes; then
14784 DRUNTIME_ZLIB_SYSTEM_TRUE=
14785 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14786else
14787 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14788 DRUNTIME_ZLIB_SYSTEM_FALSE=
14789fi
14790
14791
14792
14793
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14796$as_echo_n "checking D GCC version... " >&6; }
14797 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14799$as_echo "$gcc_version" >&6; }
14800
14801
14802
14803# Check whether --with-cross-host was given.
14804if test "${with_cross_host+set}" = set; then :
14805 withval=$with_cross_host;
14806fi
14807
14808
14809 toolexecdir=no
14810 toolexeclibdir=no
14811
14812 version_specific_libs=no
14813
14814 # Version-specific runtime libs processing.
14815 if test $version_specific_libs = yes; then
14816 toolexecdir='${libdir}/gcc/${host_alias}'
14817 toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14818 else
14819 # Calculate toolexecdir, toolexeclibdir
14820 # Install a library built with a cross compiler in tooldir, not libdir.
14821 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14822 toolexecdir='${exec_prefix}/${host_alias}'
14823 toolexeclibdir='${toolexecdir}/lib'
14824 else
14825 toolexecdir='${libdir}/gcc/${host_alias}'
14826 toolexeclibdir='${libdir}'
14827 fi
14828 multi_os_directory=`$GDC -print-multi-os-directory`
14829 case $multi_os_directory in
14830 .) ;; # Avoid trailing /.
14831 *) toolexeclibdir=${toolexeclibdir}/${multi_os_directory} ;;
14832 esac
14833 fi
14834
14835
14836
14837 # Default case for install directory for D sources files.
14838 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14839
14840
14841
14842# Add dependencies for libgphobos.spec file
14843SPEC_PHOBOS_DEPS="$LIBS"
14844
14845
14846# Libdruntime / phobos soname version
14847DRUNTIME_SOVERSION="76:2:0"
14848PHOBOS_SOVERSION="76:2:0"
14849
14850
14851
14852# Set default flags (after DRUNTIME_WERROR!)
14853if test -z "$GDCFLAGS"; then
14854 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
14855fi
14856
14857
14858if test -z "$GDCFLAGSX"; then
14859 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
14860fi
14861
14862
14863# Sanity check for the cross-compilation case:
14864ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22e05272 14865if test "x$ac_cv_header_stdio_h" = xyes; then :
b4c522fa
IB
14866 :
14867else
22e05272 14868 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
b4c522fa
IB
14869fi
14870
14871
14872
14873ac_config_files="$ac_config_files Makefile src/Makefile libdruntime/Makefile testsuite/Makefile"
14874
14875
14876ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14877
14878ac_config_files="$ac_config_files src/libgphobos.spec"
14879
14880ac_config_files="$ac_config_files testsuite/testsuite_flags"
14881
14882
14883# We need multilib support, but only if configuring for the target.
14884ac_config_commands="$ac_config_commands default"
14885
14886
14887cat >confcache <<\_ACEOF
14888# This file is a shell script that caches the results of configure
14889# tests run on this system so they can be shared between configure
14890# scripts and configure runs, see configure's option --config-cache.
14891# It is not useful on other systems. If it contains results you don't
14892# want to keep, you may remove or edit it.
14893#
14894# config.status only pays attention to the cache file if you give it
14895# the --recheck option to rerun configure.
14896#
14897# `ac_cv_env_foo' variables (set or unset) will be overridden when
14898# loading this file, other *unset* `ac_cv_foo' will be assigned the
14899# following values.
14900
14901_ACEOF
14902
14903# The following way of writing the cache mishandles newlines in values,
14904# but we know of no workaround that is simple, portable, and efficient.
14905# So, we kill variables containing newlines.
14906# Ultrix sh set writes to stderr and can't be redirected directly,
14907# and sets the high bit in the cache file unless we assign to the vars.
14908(
14909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14910 eval ac_val=\$$ac_var
14911 case $ac_val in #(
14912 *${as_nl}*)
14913 case $ac_var in #(
14914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14915$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14916 esac
14917 case $ac_var in #(
14918 _ | IFS | as_nl) ;; #(
14919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14920 *) { eval $ac_var=; unset $ac_var;} ;;
14921 esac ;;
14922 esac
14923 done
14924
14925 (set) 2>&1 |
14926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14927 *${as_nl}ac_space=\ *)
14928 # `set' does not quote correctly, so add quotes: double-quote
14929 # substitution turns \\\\ into \\, and sed turns \\ into \.
14930 sed -n \
14931 "s/'/'\\\\''/g;
14932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14933 ;; #(
14934 *)
14935 # `set' quotes correctly as required by POSIX, so do not add quotes.
14936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14937 ;;
14938 esac |
14939 sort
14940) |
14941 sed '
14942 /^ac_cv_env_/b end
14943 t clear
14944 :clear
14945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14946 t end
14947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14948 :end' >>confcache
14949if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14950 if test -w "$cache_file"; then
22e05272 14951 if test "x$cache_file" != "x/dev/null"; then
b4c522fa
IB
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14953$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
14954 if test ! -f "$cache_file" || test -h "$cache_file"; then
14955 cat confcache >"$cache_file"
14956 else
14957 case $cache_file in #(
14958 */* | ?:*)
14959 mv -f confcache "$cache_file"$$ &&
14960 mv -f "$cache_file"$$ "$cache_file" ;; #(
14961 *)
14962 mv -f confcache "$cache_file" ;;
14963 esac
14964 fi
14965 fi
b4c522fa
IB
14966 else
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14968$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14969 fi
14970fi
14971rm -f confcache
14972
14973test "x$prefix" = xNONE && prefix=$ac_default_prefix
14974# Let make expand exec_prefix.
14975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14976
14977DEFS=-DHAVE_CONFIG_H
14978
14979ac_libobjs=
14980ac_ltlibobjs=
22e05272 14981U=
b4c522fa
IB
14982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14983 # 1. Remove the extension, and $U if already installed.
14984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14987 # will be set to the directory where LIBOBJS objects are built.
14988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14990done
14991LIBOBJS=$ac_libobjs
14992
14993LTLIBOBJS=$ac_ltlibobjs
14994
14995
22e05272
JM
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14997$as_echo_n "checking that generated files are newer than configure... " >&6; }
14998 if test -n "$am_sleep_pid"; then
14999 # Hide warnings about reused PIDs.
15000 wait $am_sleep_pid 2>/dev/null
15001 fi
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15003$as_echo "done" >&6; }
b4c522fa
IB
15004 if test -n "$EXEEXT"; then
15005 am__EXEEXT_TRUE=
15006 am__EXEEXT_FALSE='#'
15007else
15008 am__EXEEXT_TRUE='#'
15009 am__EXEEXT_FALSE=
15010fi
15011
15012if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15013 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b4c522fa
IB
15014Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015fi
15016if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
22e05272 15017 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
b4c522fa
IB
15018Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019fi
15020if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
22e05272 15021 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
b4c522fa
IB
15022Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023fi
15024if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
22e05272 15025 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
b4c522fa
IB
15026Usually this means the macro was only invoked conditionally." "$LINENO" 5
15027fi
15028if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
22e05272 15029 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
b4c522fa
IB
15030Usually this means the macro was only invoked conditionally." "$LINENO" 5
15031fi
15032if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
22e05272 15033 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
b4c522fa
IB
15034Usually this means the macro was only invoked conditionally." "$LINENO" 5
15035fi
15036if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
22e05272 15037 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
b4c522fa
IB
15038Usually this means the macro was only invoked conditionally." "$LINENO" 5
15039fi
15040if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
22e05272 15041 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
b4c522fa
IB
15042Usually this means the macro was only invoked conditionally." "$LINENO" 5
15043fi
15044if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
22e05272 15045 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
b4c522fa
IB
15046Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047fi
15048if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
22e05272 15049 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
b4c522fa
IB
15050Usually this means the macro was only invoked conditionally." "$LINENO" 5
15051fi
15052if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
22e05272 15053 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
b4c522fa
IB
15054Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055fi
15056if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
22e05272 15057 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
b4c522fa
IB
15058Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059fi
15060if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
22e05272 15061 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
b4c522fa
IB
15062Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063fi
15064if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
22e05272 15065 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
b4c522fa
IB
15066Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067fi
15068if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
22e05272 15069 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
b4c522fa
IB
15070Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071fi
15072if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
22e05272 15073 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
b4c522fa
IB
15074Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075fi
15076if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
22e05272 15077 as_fn_error $? "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
b4c522fa
IB
15078Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079fi
15080
22e05272 15081: "${CONFIG_STATUS=./config.status}"
b4c522fa
IB
15082ac_write_fail=0
15083ac_clean_files_save=$ac_clean_files
15084ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15086$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15087as_write_fail=0
15088cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15089#! $SHELL
15090# Generated by $as_me.
15091# Run this file to recreate the current configuration.
15092# Compiler output produced by configure, useful for debugging
15093# configure, is in config.log if it exists.
15094
15095debug=false
15096ac_cs_recheck=false
15097ac_cs_silent=false
15098
15099SHELL=\${CONFIG_SHELL-$SHELL}
15100export SHELL
15101_ASEOF
15102cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15103## -------------------- ##
15104## M4sh Initialization. ##
15105## -------------------- ##
15106
15107# Be more Bourne compatible
15108DUALCASE=1; export DUALCASE # for MKS sh
15109if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15110 emulate sh
15111 NULLCMD=:
15112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15113 # is contrary to our usage. Disable this feature.
15114 alias -g '${1+"$@"}'='"$@"'
15115 setopt NO_GLOB_SUBST
15116else
15117 case `(set -o) 2>/dev/null` in #(
15118 *posix*) :
15119 set -o posix ;; #(
15120 *) :
15121 ;;
15122esac
15123fi
15124
15125
15126as_nl='
15127'
15128export as_nl
15129# Printing a long string crashes Solaris 7 /usr/bin/printf.
15130as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15131as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15132as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15133# Prefer a ksh shell builtin over an external printf program on Solaris,
15134# but without wasting forks for bash or zsh.
15135if test -z "$BASH_VERSION$ZSH_VERSION" \
15136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15137 as_echo='print -r --'
15138 as_echo_n='print -rn --'
15139elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15140 as_echo='printf %s\n'
15141 as_echo_n='printf %s'
15142else
15143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15144 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15145 as_echo_n='/usr/ucb/echo -n'
15146 else
15147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15148 as_echo_n_body='eval
15149 arg=$1;
15150 case $arg in #(
15151 *"$as_nl"*)
15152 expr "X$arg" : "X\\(.*\\)$as_nl";
15153 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15154 esac;
15155 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15156 '
15157 export as_echo_n_body
15158 as_echo_n='sh -c $as_echo_n_body as_echo'
15159 fi
15160 export as_echo_body
15161 as_echo='sh -c $as_echo_body as_echo'
15162fi
15163
15164# The user is always right.
15165if test "${PATH_SEPARATOR+set}" != set; then
15166 PATH_SEPARATOR=:
15167 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15168 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15169 PATH_SEPARATOR=';'
15170 }
15171fi
15172
15173
15174# IFS
15175# We need space, tab and new line, in precisely that order. Quoting is
15176# there to prevent editors from complaining about space-tab.
15177# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15178# splitting by setting IFS to empty value.)
15179IFS=" "" $as_nl"
15180
15181# Find who we are. Look in the path if we contain no directory separator.
22e05272 15182as_myself=
b4c522fa
IB
15183case $0 in #((
15184 *[\\/]* ) as_myself=$0 ;;
15185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186for as_dir in $PATH
15187do
15188 IFS=$as_save_IFS
15189 test -z "$as_dir" && as_dir=.
15190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15191 done
15192IFS=$as_save_IFS
15193
15194 ;;
15195esac
15196# We did not find ourselves, most probably we were run as `sh COMMAND'
15197# in which case we are not to be found in the path.
15198if test "x$as_myself" = x; then
15199 as_myself=$0
15200fi
15201if test ! -f "$as_myself"; then
15202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15203 exit 1
15204fi
15205
15206# Unset variables that we do not need and which cause bugs (e.g. in
15207# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15208# suppresses any "Segmentation fault" message there. '((' could
15209# trigger a bug in pdksh 5.2.14.
15210for as_var in BASH_ENV ENV MAIL MAILPATH
15211do eval test x\${$as_var+set} = xset \
15212 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15213done
15214PS1='$ '
15215PS2='> '
15216PS4='+ '
15217
15218# NLS nuisances.
15219LC_ALL=C
15220export LC_ALL
15221LANGUAGE=C
15222export LANGUAGE
15223
15224# CDPATH.
15225(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15226
15227
22e05272
JM
15228# as_fn_error STATUS ERROR [LINENO LOG_FD]
15229# ----------------------------------------
b4c522fa
IB
15230# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15231# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15232# script with STATUS, using 1 if that was 0.
b4c522fa
IB
15233as_fn_error ()
15234{
22e05272
JM
15235 as_status=$1; test $as_status -eq 0 && as_status=1
15236 if test "$4"; then
15237 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 15239 fi
22e05272 15240 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
15241 as_fn_exit $as_status
15242} # as_fn_error
15243
15244
15245# as_fn_set_status STATUS
15246# -----------------------
15247# Set $? to STATUS, without forking.
15248as_fn_set_status ()
15249{
15250 return $1
15251} # as_fn_set_status
15252
15253# as_fn_exit STATUS
15254# -----------------
15255# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15256as_fn_exit ()
15257{
15258 set +e
15259 as_fn_set_status $1
15260 exit $1
15261} # as_fn_exit
15262
15263# as_fn_unset VAR
15264# ---------------
15265# Portably unset VAR.
15266as_fn_unset ()
15267{
15268 { eval $1=; unset $1;}
15269}
15270as_unset=as_fn_unset
15271# as_fn_append VAR VALUE
15272# ----------------------
15273# Append the text in VALUE to the end of the definition contained in VAR. Take
15274# advantage of any shell optimizations that allow amortized linear growth over
15275# repeated appends, instead of the typical quadratic growth present in naive
15276# implementations.
15277if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15278 eval 'as_fn_append ()
15279 {
15280 eval $1+=\$2
15281 }'
15282else
15283 as_fn_append ()
15284 {
15285 eval $1=\$$1\$2
15286 }
15287fi # as_fn_append
15288
15289# as_fn_arith ARG...
15290# ------------------
15291# Perform arithmetic evaluation on the ARGs, and store the result in the
15292# global $as_val. Take advantage of shells that can avoid forks. The arguments
15293# must be portable across $(()) and expr.
15294if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15295 eval 'as_fn_arith ()
15296 {
15297 as_val=$(( $* ))
15298 }'
15299else
15300 as_fn_arith ()
15301 {
15302 as_val=`expr "$@" || test $? -eq 1`
15303 }
15304fi # as_fn_arith
15305
15306
15307if expr a : '\(a\)' >/dev/null 2>&1 &&
15308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15309 as_expr=expr
15310else
15311 as_expr=false
15312fi
15313
15314if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15315 as_basename=basename
15316else
15317 as_basename=false
15318fi
15319
15320if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15321 as_dirname=dirname
15322else
15323 as_dirname=false
15324fi
15325
15326as_me=`$as_basename -- "$0" ||
15327$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15328 X"$0" : 'X\(//\)$' \| \
15329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15330$as_echo X/"$0" |
15331 sed '/^.*\/\([^/][^/]*\)\/*$/{
15332 s//\1/
15333 q
15334 }
15335 /^X\/\(\/\/\)$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\/\(\/\).*/{
15340 s//\1/
15341 q
15342 }
15343 s/.*/./; q'`
15344
15345# Avoid depending upon Character Ranges.
15346as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15347as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15348as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15349as_cr_digits='0123456789'
15350as_cr_alnum=$as_cr_Letters$as_cr_digits
15351
15352ECHO_C= ECHO_N= ECHO_T=
15353case `echo -n x` in #(((((
15354-n*)
15355 case `echo 'xy\c'` in
15356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15357 xy) ECHO_C='\c';;
15358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15359 ECHO_T=' ';;
15360 esac;;
15361*)
15362 ECHO_N='-n';;
15363esac
15364
15365rm -f conf$$ conf$$.exe conf$$.file
15366if test -d conf$$.dir; then
15367 rm -f conf$$.dir/conf$$.file
15368else
15369 rm -f conf$$.dir
15370 mkdir conf$$.dir 2>/dev/null
15371fi
15372if (echo >conf$$.file) 2>/dev/null; then
15373 if ln -s conf$$.file conf$$ 2>/dev/null; then
15374 as_ln_s='ln -s'
15375 # ... but there are two gotchas:
15376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15378 # In both cases, we have to default to `cp -pR'.
b4c522fa 15379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15380 as_ln_s='cp -pR'
b4c522fa
IB
15381 elif ln conf$$.file conf$$ 2>/dev/null; then
15382 as_ln_s=ln
15383 else
22e05272 15384 as_ln_s='cp -pR'
b4c522fa
IB
15385 fi
15386else
22e05272 15387 as_ln_s='cp -pR'
b4c522fa
IB
15388fi
15389rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15390rmdir conf$$.dir 2>/dev/null
15391
15392
15393# as_fn_mkdir_p
15394# -------------
15395# Create "$as_dir" as a directory, including parents if necessary.
15396as_fn_mkdir_p ()
15397{
15398
15399 case $as_dir in #(
15400 -*) as_dir=./$as_dir;;
15401 esac
15402 test -d "$as_dir" || eval $as_mkdir_p || {
15403 as_dirs=
15404 while :; do
15405 case $as_dir in #(
15406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15407 *) as_qdir=$as_dir;;
15408 esac
15409 as_dirs="'$as_qdir' $as_dirs"
15410 as_dir=`$as_dirname -- "$as_dir" ||
15411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$as_dir" : 'X\(//\)[^/]' \| \
15413 X"$as_dir" : 'X\(//\)$' \| \
15414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15415$as_echo X"$as_dir" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15417 s//\1/
15418 q
15419 }
15420 /^X\(\/\/\)[^/].*/{
15421 s//\1/
15422 q
15423 }
15424 /^X\(\/\/\)$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\(\/\).*/{
15429 s//\1/
15430 q
15431 }
15432 s/.*/./; q'`
15433 test -d "$as_dir" && break
15434 done
15435 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15436 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
15437
15438
15439} # as_fn_mkdir_p
15440if mkdir -p . 2>/dev/null; then
15441 as_mkdir_p='mkdir -p "$as_dir"'
15442else
15443 test -d ./-p && rmdir ./-p
15444 as_mkdir_p=false
15445fi
15446
22e05272
JM
15447
15448# as_fn_executable_p FILE
15449# -----------------------
15450# Test if FILE is an executable regular file.
15451as_fn_executable_p ()
15452{
15453 test -f "$1" && test -x "$1"
15454} # as_fn_executable_p
15455as_test_x='test -x'
15456as_executable_p=as_fn_executable_p
b4c522fa
IB
15457
15458# Sed expression to map a string onto a valid CPP name.
15459as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15460
15461# Sed expression to map a string onto a valid variable name.
15462as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15463
15464
15465exec 6>&1
15466## ----------------------------------- ##
15467## Main body of $CONFIG_STATUS script. ##
15468## ----------------------------------- ##
15469_ASEOF
15470test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15471
15472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473# Save the log message, to keep $0 and so on meaningful, and to
15474# report actual input values of CONFIG_FILES etc. instead of their
15475# values after options handling.
15476ac_log="
15477This file was extended by package-unused $as_me version-unused, which was
22e05272 15478generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
15479
15480 CONFIG_FILES = $CONFIG_FILES
15481 CONFIG_HEADERS = $CONFIG_HEADERS
15482 CONFIG_LINKS = $CONFIG_LINKS
15483 CONFIG_COMMANDS = $CONFIG_COMMANDS
15484 $ $0 $@
15485
15486on `(hostname || uname -n) 2>/dev/null | sed 1q`
15487"
15488
15489_ACEOF
15490
15491case $ac_config_files in *"
15492"*) set x $ac_config_files; shift; ac_config_files=$*;;
15493esac
15494
15495case $ac_config_headers in *"
15496"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15497esac
15498
15499
15500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15501# Files that config.status was made for.
15502config_files="$ac_config_files"
15503config_headers="$ac_config_headers"
15504config_commands="$ac_config_commands"
15505
15506_ACEOF
15507
15508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15509ac_cs_usage="\
15510\`$as_me' instantiates files and other configuration actions
15511from templates according to the current configuration. Unless the files
15512and actions are specified as TAGs, all are instantiated by default.
15513
15514Usage: $0 [OPTION]... [TAG]...
15515
15516 -h, --help print this help, then exit
15517 -V, --version print version number and configuration settings, then exit
22e05272 15518 --config print configuration, then exit
b4c522fa
IB
15519 -q, --quiet, --silent
15520 do not print progress messages
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
15525 --header=FILE[:TEMPLATE]
15526 instantiate the configuration header FILE
15527
15528Configuration files:
15529$config_files
15530
15531Configuration headers:
15532$config_headers
15533
15534Configuration commands:
15535$config_commands
15536
15537Report bugs to the package provider."
15538
15539_ACEOF
15540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15541ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b4c522fa
IB
15542ac_cs_version="\\
15543package-unused config.status version-unused
22e05272
JM
15544configured by $0, generated by GNU Autoconf 2.69,
15545 with options \\"\$ac_cs_config\\"
b4c522fa 15546
22e05272 15547Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
15548This config.status script is free software; the Free Software Foundation
15549gives unlimited permission to copy, distribute and modify it."
15550
15551ac_pwd='$ac_pwd'
15552srcdir='$srcdir'
15553INSTALL='$INSTALL'
15554MKDIR_P='$MKDIR_P'
15555AWK='$AWK'
15556test -n "\$AWK" || AWK=awk
15557_ACEOF
15558
15559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560# The default lists apply if the user does not specify any file.
15561ac_need_defaults=:
15562while test $# != 0
15563do
15564 case $1 in
22e05272 15565 --*=?*)
b4c522fa
IB
15566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15568 ac_shift=:
15569 ;;
22e05272
JM
15570 --*=)
15571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15572 ac_optarg=
15573 ac_shift=:
15574 ;;
b4c522fa
IB
15575 *)
15576 ac_option=$1
15577 ac_optarg=$2
15578 ac_shift=shift
15579 ;;
15580 esac
15581
15582 case $ac_option in
15583 # Handling of the options.
15584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15585 ac_cs_recheck=: ;;
15586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15587 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
15588 --config | --confi | --conf | --con | --co | --c )
15589 $as_echo "$ac_cs_config"; exit ;;
b4c522fa
IB
15590 --debug | --debu | --deb | --de | --d | -d )
15591 debug=: ;;
15592 --file | --fil | --fi | --f )
15593 $ac_shift
15594 case $ac_optarg in
15595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 15596 '') as_fn_error $? "missing file argument" ;;
b4c522fa
IB
15597 esac
15598 as_fn_append CONFIG_FILES " '$ac_optarg'"
15599 ac_need_defaults=false;;
15600 --header | --heade | --head | --hea )
15601 $ac_shift
15602 case $ac_optarg in
15603 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15604 esac
15605 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15606 ac_need_defaults=false;;
15607 --he | --h)
15608 # Conflict between --help and --header
22e05272 15609 as_fn_error $? "ambiguous option: \`$1'
b4c522fa
IB
15610Try \`$0 --help' for more information.";;
15611 --help | --hel | -h )
15612 $as_echo "$ac_cs_usage"; exit ;;
15613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15615 ac_cs_silent=: ;;
15616
15617 # This is an error.
22e05272 15618 -*) as_fn_error $? "unrecognized option: \`$1'
b4c522fa
IB
15619Try \`$0 --help' for more information." ;;
15620
15621 *) as_fn_append ac_config_targets " $1"
15622 ac_need_defaults=false ;;
15623
15624 esac
15625 shift
15626done
15627
15628ac_configure_extra_args=
15629
15630if $ac_cs_silent; then
15631 exec 6>/dev/null
15632 ac_configure_extra_args="$ac_configure_extra_args --silent"
15633fi
15634
15635_ACEOF
15636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637if \$ac_cs_recheck; then
22e05272 15638 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b4c522fa
IB
15639 shift
15640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15641 CONFIG_SHELL='$SHELL'
15642 export CONFIG_SHELL
15643 exec "\$@"
15644fi
15645
15646_ACEOF
15647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648exec 5>>config.log
15649{
15650 echo
15651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15652## Running $as_me. ##
15653_ASBOX
15654 $as_echo "$ac_log"
15655} >&5
15656
15657_ACEOF
15658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659#
15660# INIT-COMMANDS
15661#
15662
15663srcdir="$srcdir"
15664host="$host"
15665target="$target"
15666with_multisubdir="$with_multisubdir"
15667with_multisrctop="$with_multisrctop"
15668with_target_subdir="$with_target_subdir"
15669ac_configure_args="${multilib_arg} ${ac_configure_args}"
15670multi_basedir="$multi_basedir"
15671CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15672CC="$CC"
15673CXX="$CXX"
15674GFORTRAN="$GFORTRAN"
15675GDC="$GDC"
15676
15677
15678# The HP-UX ksh and POSIX shell print the target directory to stdout
15679# if CDPATH is set.
15680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15681
15682sed_quote_subst='$sed_quote_subst'
15683double_quote_subst='$double_quote_subst'
15684delay_variable_subst='$delay_variable_subst'
15685macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15686macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15687enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15688enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15689pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15690enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15691SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15692ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15693host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15694host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15695host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15696build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15697build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15698build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15699SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15700Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15701GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15702EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15703FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15704LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15705NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15706LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15707max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15708ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15709exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15710lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15711lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15712lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15713reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15714reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15715OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15716deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15717file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15718AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15719AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15720STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15721RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15722old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15723old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15724old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15725lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15726CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15727CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15728compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15729GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15730lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15731lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15732lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15733lt_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"`'
15734objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15735MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15736lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15737lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15738lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15739lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15740lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15741need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15742DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15743NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15744LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15745OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15746OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15747libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15748shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15749extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15750archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15751enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15752export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15753whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15754compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15755old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15756old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15757archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15758archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15759module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15760module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15761with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15762allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15763no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15764hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15765hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15766hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15767hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15768hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15769hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15770hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15771hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15772inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15773link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15774fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15775always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15776export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15777exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15778include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15779prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15780file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15781variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15782need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15783need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15784version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15785runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15786shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15787shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15788libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15789library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15790soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15791install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15792postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15793postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15794finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15795finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15796hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15797sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15798sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15799hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15800enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15801enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15802enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15803old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15804striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15805LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15806reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15807reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15808old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15809compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15810GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15811lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15812lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15813lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15814lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15815lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15816archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15817enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15818export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15819whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15820compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15821old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15822old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15823archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15824archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15825module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15826module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15827with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15828allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15829no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15830hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15831hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15832hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15833hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15834hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15835hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15836hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15837hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15838inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15839link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15840fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15841always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15842export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15843exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15844include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15845prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15846file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15847hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15848
15849LTCC='$LTCC'
15850LTCFLAGS='$LTCFLAGS'
15851compiler='$compiler_DEFAULT'
15852
15853# A function that is used when there is no print builtin or printf.
15854func_fallback_echo ()
15855{
15856 eval 'cat <<_LTECHO_EOF
15857\$1
15858_LTECHO_EOF'
15859}
15860
15861# Quote evaled strings.
15862for var in SHELL \
15863ECHO \
15864SED \
15865GREP \
15866EGREP \
15867FGREP \
15868LD \
15869NM \
15870LN_S \
15871lt_SP2NL \
15872lt_NL2SP \
15873reload_flag \
15874OBJDUMP \
15875deplibs_check_method \
15876file_magic_cmd \
15877AR \
15878AR_FLAGS \
15879STRIP \
15880RANLIB \
15881CC \
15882CFLAGS \
15883compiler \
15884lt_cv_sys_global_symbol_pipe \
15885lt_cv_sys_global_symbol_to_cdecl \
15886lt_cv_sys_global_symbol_to_c_name_address \
15887lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15888lt_prog_compiler_no_builtin_flag \
15889lt_prog_compiler_wl \
15890lt_prog_compiler_pic \
15891lt_prog_compiler_static \
15892lt_cv_prog_compiler_c_o \
15893need_locks \
15894DSYMUTIL \
15895NMEDIT \
15896LIPO \
15897OTOOL \
15898OTOOL64 \
15899shrext_cmds \
15900export_dynamic_flag_spec \
15901whole_archive_flag_spec \
15902compiler_needs_object \
15903with_gnu_ld \
15904allow_undefined_flag \
15905no_undefined_flag \
15906hardcode_libdir_flag_spec \
15907hardcode_libdir_flag_spec_ld \
15908hardcode_libdir_separator \
15909fix_srcfile_path \
15910exclude_expsyms \
15911include_expsyms \
15912file_list_spec \
15913variables_saved_for_relink \
15914libname_spec \
15915library_names_spec \
15916soname_spec \
15917install_override_mode \
15918finish_eval \
15919old_striplib \
15920striplib \
15921LD_D \
15922reload_flag_D \
15923compiler_D \
15924lt_prog_compiler_no_builtin_flag_D \
15925lt_prog_compiler_wl_D \
15926lt_prog_compiler_pic_D \
15927lt_prog_compiler_static_D \
15928lt_cv_prog_compiler_c_o_D \
15929export_dynamic_flag_spec_D \
15930whole_archive_flag_spec_D \
15931compiler_needs_object_D \
15932with_gnu_ld_D \
15933allow_undefined_flag_D \
15934no_undefined_flag_D \
15935hardcode_libdir_flag_spec_D \
15936hardcode_libdir_flag_spec_ld_D \
15937hardcode_libdir_separator_D \
15938fix_srcfile_path_D \
15939exclude_expsyms_D \
15940include_expsyms_D \
15941file_list_spec_D; do
15942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15943 *[\\\\\\\`\\"\\\$]*)
15944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15945 ;;
15946 *)
15947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15948 ;;
15949 esac
15950done
15951
15952# Double-quote double-evaled strings.
15953for var in reload_cmds \
15954old_postinstall_cmds \
15955old_postuninstall_cmds \
15956old_archive_cmds \
15957extract_expsyms_cmds \
15958old_archive_from_new_cmds \
15959old_archive_from_expsyms_cmds \
15960archive_cmds \
15961archive_expsym_cmds \
15962module_cmds \
15963module_expsym_cmds \
15964export_symbols_cmds \
15965prelink_cmds \
15966postinstall_cmds \
15967postuninstall_cmds \
15968finish_cmds \
15969sys_lib_search_path_spec \
15970sys_lib_dlsearch_path_spec \
15971reload_cmds_D \
15972old_archive_cmds_D \
15973old_archive_from_new_cmds_D \
15974old_archive_from_expsyms_cmds_D \
15975archive_cmds_D \
15976archive_expsym_cmds_D \
15977module_cmds_D \
15978module_expsym_cmds_D \
15979export_symbols_cmds_D \
15980prelink_cmds_D; do
15981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15982 *[\\\\\\\`\\"\\\$]*)
15983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15984 ;;
15985 *)
15986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15987 ;;
15988 esac
15989done
15990
15991ac_aux_dir='$ac_aux_dir'
15992xsi_shell='$xsi_shell'
15993lt_shell_append='$lt_shell_append'
15994
15995# See if we are running on zsh, and set the options which allow our
15996# commands through without removal of \ escapes INIT.
15997if test -n "\${ZSH_VERSION+set}" ; then
15998 setopt NO_GLOB_SUBST
15999fi
16000
16001
16002 PACKAGE='$PACKAGE'
16003 VERSION='$VERSION'
16004 TIMESTAMP='$TIMESTAMP'
16005 RM='$RM'
16006 ofile='$ofile'
16007
16008
16009
16010
16011
16012
16013# Variables needed in config.status (file generation) which aren't already
16014# passed by autoconf.
16015SUBDIRS="$SUBDIRS"
16016
16017
16018_ACEOF
16019
16020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021
16022# Handling of arguments.
16023for ac_config_target in $ac_config_targets
16024do
16025 case $ac_config_target in
16026 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16027 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16028 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16030 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16031 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16032 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16033 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16034 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16035 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16036 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16037 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16038
22e05272 16039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b4c522fa
IB
16040 esac
16041done
16042
16043
16044# If the user did not use the arguments to specify the items to instantiate,
16045# then the envvar interface is used. Set only those that are not.
16046# We use the long form for the default assignment because of an extremely
16047# bizarre bug on SunOS 4.1.3.
16048if $ac_need_defaults; then
16049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16052fi
16053
16054# Have a temporary directory for convenience. Make it in the build tree
16055# simply because there is no reason against having it here, and in addition,
16056# creating and moving files from /tmp can sometimes cause problems.
16057# Hook for its removal unless debugging.
16058# Note that there is a small window in which the directory will not be cleaned:
16059# after its creation but before its name has been assigned to `$tmp'.
16060$debug ||
16061{
22e05272 16062 tmp= ac_tmp=
b4c522fa 16063 trap 'exit_status=$?
22e05272
JM
16064 : "${ac_tmp:=$tmp}"
16065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b4c522fa
IB
16066' 0
16067 trap 'as_fn_exit 1' 1 2 13 15
16068}
16069# Create a (secure) tmp directory for tmp files.
16070
16071{
16072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16073 test -d "$tmp"
b4c522fa
IB
16074} ||
16075{
16076 tmp=./conf$$-$RANDOM
16077 (umask 077 && mkdir "$tmp")
22e05272
JM
16078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16079ac_tmp=$tmp
b4c522fa
IB
16080
16081# Set up the scripts for CONFIG_FILES section.
16082# No need to generate them if there are no CONFIG_FILES.
16083# This happens for instance with `./config.status config.h'.
16084if test -n "$CONFIG_FILES"; then
16085
16086
16087ac_cr=`echo X | tr X '\015'`
16088# On cygwin, bash can eat \r inside `` if the user requested igncr.
16089# But we know of no other shell where ac_cr would be empty at this
16090# point, so we can use a bashism as a fallback.
16091if test "x$ac_cr" = x; then
16092 eval ac_cr=\$\'\\r\'
16093fi
16094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16096 ac_cs_awk_cr='\\r'
b4c522fa
IB
16097else
16098 ac_cs_awk_cr=$ac_cr
16099fi
16100
22e05272 16101echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b4c522fa
IB
16102_ACEOF
16103
16104
16105{
16106 echo "cat >conf$$subs.awk <<_ACEOF" &&
16107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16108 echo "_ACEOF"
16109} >conf$$subs.sh ||
22e05272
JM
16110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16111ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b4c522fa
IB
16112ac_delim='%!_!# '
16113for ac_last_try in false false false false false :; do
16114 . ./conf$$subs.sh ||
22e05272 16115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16116
16117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16118 if test $ac_delim_n = $ac_delim_num; then
16119 break
16120 elif $ac_last_try; then
22e05272 16121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16122 else
16123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16124 fi
16125done
16126rm -f conf$$subs.sh
16127
16128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16129cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b4c522fa
IB
16130_ACEOF
16131sed -n '
16132h
16133s/^/S["/; s/!.*/"]=/
16134p
16135g
16136s/^[^!]*!//
16137:repl
16138t repl
16139s/'"$ac_delim"'$//
16140t delim
16141:nl
16142h
22e05272 16143s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16144t more1
16145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16146p
16147n
16148b repl
16149:more1
16150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16151p
16152g
16153s/.\{148\}//
16154t nl
16155:delim
16156h
22e05272 16157s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16158t more2
16159s/["\\]/\\&/g; s/^/"/; s/$/"/
16160p
16161b
16162:more2
16163s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16164p
16165g
16166s/.\{148\}//
16167t delim
16168' <conf$$subs.awk | sed '
16169/^[^""]/{
16170 N
16171 s/\n//
16172}
16173' >>$CONFIG_STATUS || ac_write_fail=1
16174rm -f conf$$subs.awk
16175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16176_ACAWK
22e05272 16177cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b4c522fa
IB
16178 for (key in S) S_is_set[key] = 1
16179 FS = "\a"
16180
16181}
16182{
16183 line = $ 0
16184 nfields = split(line, field, "@")
16185 substed = 0
16186 len = length(field[1])
16187 for (i = 2; i < nfields; i++) {
16188 key = field[i]
16189 keylen = length(key)
16190 if (S_is_set[key]) {
16191 value = S[key]
16192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16193 len += length(value) + length(field[++i])
16194 substed = 1
16195 } else
16196 len += 1 + keylen
16197 }
16198
16199 print line
16200}
16201
16202_ACAWK
16203_ACEOF
16204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16207else
16208 cat
22e05272
JM
16209fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b4c522fa
IB
16211_ACEOF
16212
22e05272
JM
16213# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16214# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b4c522fa
IB
16215# trailing colons and then remove the whole line if VPATH becomes empty
16216# (actually we leave an empty line to preserve line numbers).
16217if test "x$srcdir" = x.; then
22e05272
JM
16218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16219h
16220s///
16221s/^/:/
16222s/[ ]*$/:/
16223s/:\$(srcdir):/:/g
16224s/:\${srcdir}:/:/g
16225s/:@srcdir@:/:/g
16226s/^:*//
b4c522fa 16227s/:*$//
22e05272
JM
16228x
16229s/\(=[ ]*\).*/\1/
16230G
16231s/\n//
b4c522fa
IB
16232s/^[^=]*=[ ]*$//
16233}'
16234fi
16235
16236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237fi # test -n "$CONFIG_FILES"
16238
16239# Set up the scripts for CONFIG_HEADERS section.
16240# No need to generate them if there are no CONFIG_HEADERS.
16241# This happens for instance with `./config.status Makefile'.
16242if test -n "$CONFIG_HEADERS"; then
22e05272 16243cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
b4c522fa
IB
16244BEGIN {
16245_ACEOF
16246
16247# Transform confdefs.h into an awk script `defines.awk', embedded as
16248# here-document in config.status, that substitutes the proper values into
16249# config.h.in to produce config.h.
16250
16251# Create a delimiter string that does not exist in confdefs.h, to ease
16252# handling of long lines.
16253ac_delim='%!_!# '
16254for ac_last_try in false false :; do
22e05272
JM
16255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16256 if test -z "$ac_tt"; then
b4c522fa
IB
16257 break
16258 elif $ac_last_try; then
22e05272 16259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b4c522fa
IB
16260 else
16261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16262 fi
16263done
16264
16265# For the awk script, D is an array of macro values keyed by name,
16266# likewise P contains macro parameters if any. Preserve backslash
16267# newline sequences.
16268
16269ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16270sed -n '
16271s/.\{148\}/&'"$ac_delim"'/g
16272t rset
16273:rset
16274s/^[ ]*#[ ]*define[ ][ ]*/ /
16275t def
16276d
16277:def
16278s/\\$//
16279t bsnl
16280s/["\\]/\\&/g
16281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16282D["\1"]=" \3"/p
16283s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16284d
16285:bsnl
16286s/["\\]/\\&/g
16287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16288D["\1"]=" \3\\\\\\n"\\/p
16289t cont
16290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16291t cont
16292d
16293:cont
16294n
16295s/.\{148\}/&'"$ac_delim"'/g
16296t clear
16297:clear
16298s/\\$//
16299t bsnlc
16300s/["\\]/\\&/g; s/^/"/; s/$/"/p
16301d
16302:bsnlc
16303s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16304b cont
16305' <confdefs.h | sed '
16306s/'"$ac_delim"'/"\\\
16307"/g' >>$CONFIG_STATUS || ac_write_fail=1
16308
16309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16310 for (key in D) D_is_set[key] = 1
16311 FS = "\a"
16312}
16313/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16314 line = \$ 0
16315 split(line, arg, " ")
16316 if (arg[1] == "#") {
16317 defundef = arg[2]
16318 mac1 = arg[3]
16319 } else {
16320 defundef = substr(arg[1], 2)
16321 mac1 = arg[2]
16322 }
16323 split(mac1, mac2, "(") #)
16324 macro = mac2[1]
16325 prefix = substr(line, 1, index(line, defundef) - 1)
16326 if (D_is_set[macro]) {
16327 # Preserve the white space surrounding the "#".
16328 print prefix "define", macro P[macro] D[macro]
16329 next
16330 } else {
16331 # Replace #undef with comments. This is necessary, for example,
16332 # in the case of _POSIX_SOURCE, which is predefined and required
16333 # on some systems where configure will not decide to define it.
16334 if (defundef == "undef") {
16335 print "/*", prefix defundef, macro, "*/"
16336 next
16337 }
16338 }
16339}
16340{ print }
16341_ACAWK
16342_ACEOF
16343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 16344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
b4c522fa
IB
16345fi # test -n "$CONFIG_HEADERS"
16346
16347
16348eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16349shift
16350for ac_tag
16351do
16352 case $ac_tag in
16353 :[FHLC]) ac_mode=$ac_tag; continue;;
16354 esac
16355 case $ac_mode$ac_tag in
16356 :[FHL]*:*);;
22e05272 16357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b4c522fa
IB
16358 :[FH]-) ac_tag=-:-;;
16359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16360 esac
16361 ac_save_IFS=$IFS
16362 IFS=:
16363 set x $ac_tag
16364 IFS=$ac_save_IFS
16365 shift
16366 ac_file=$1
16367 shift
16368
16369 case $ac_mode in
16370 :L) ac_source=$1;;
16371 :[FH])
16372 ac_file_inputs=
16373 for ac_f
16374 do
16375 case $ac_f in
22e05272 16376 -) ac_f="$ac_tmp/stdin";;
b4c522fa
IB
16377 *) # Look for the file first in the build tree, then in the source tree
16378 # (if the path is not absolute). The absolute path cannot be DOS-style,
16379 # because $ac_f cannot contain `:'.
16380 test -f "$ac_f" ||
16381 case $ac_f in
16382 [\\/$]*) false;;
16383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16384 esac ||
22e05272 16385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b4c522fa
IB
16386 esac
16387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16388 as_fn_append ac_file_inputs " '$ac_f'"
16389 done
16390
16391 # Let's still pretend it is `configure' which instantiates (i.e., don't
16392 # use $as_me), people would be surprised to read:
16393 # /* config.h. Generated by config.status. */
16394 configure_input='Generated from '`
16395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16396 `' by configure.'
16397 if test x"$ac_file" != x-; then
16398 configure_input="$ac_file. $configure_input"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16400$as_echo "$as_me: creating $ac_file" >&6;}
16401 fi
16402 # Neutralize special characters interpreted by sed in replacement strings.
16403 case $configure_input in #(
16404 *\&* | *\|* | *\\* )
16405 ac_sed_conf_input=`$as_echo "$configure_input" |
16406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16407 *) ac_sed_conf_input=$configure_input;;
16408 esac
16409
16410 case $ac_tag in
22e05272
JM
16411 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b4c522fa
IB
16413 esac
16414 ;;
16415 esac
16416
16417 ac_dir=`$as_dirname -- "$ac_file" ||
16418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16419 X"$ac_file" : 'X\(//\)[^/]' \| \
16420 X"$ac_file" : 'X\(//\)$' \| \
16421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16422$as_echo X"$ac_file" |
16423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16424 s//\1/
16425 q
16426 }
16427 /^X\(\/\/\)[^/].*/{
16428 s//\1/
16429 q
16430 }
16431 /^X\(\/\/\)$/{
16432 s//\1/
16433 q
16434 }
16435 /^X\(\/\).*/{
16436 s//\1/
16437 q
16438 }
16439 s/.*/./; q'`
16440 as_dir="$ac_dir"; as_fn_mkdir_p
16441 ac_builddir=.
16442
16443case "$ac_dir" in
16444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16445*)
16446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16447 # A ".." for each directory in $ac_dir_suffix.
16448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16449 case $ac_top_builddir_sub in
16450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16452 esac ;;
16453esac
16454ac_abs_top_builddir=$ac_pwd
16455ac_abs_builddir=$ac_pwd$ac_dir_suffix
16456# for backward compatibility:
16457ac_top_builddir=$ac_top_build_prefix
16458
16459case $srcdir in
16460 .) # We are building in place.
16461 ac_srcdir=.
16462 ac_top_srcdir=$ac_top_builddir_sub
16463 ac_abs_top_srcdir=$ac_pwd ;;
16464 [\\/]* | ?:[\\/]* ) # Absolute name.
16465 ac_srcdir=$srcdir$ac_dir_suffix;
16466 ac_top_srcdir=$srcdir
16467 ac_abs_top_srcdir=$srcdir ;;
16468 *) # Relative name.
16469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16470 ac_top_srcdir=$ac_top_build_prefix$srcdir
16471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16472esac
16473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16474
16475
16476 case $ac_mode in
16477 :F)
16478 #
16479 # CONFIG_FILE
16480 #
16481
16482 case $INSTALL in
16483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16485 esac
16486 ac_MKDIR_P=$MKDIR_P
16487 case $MKDIR_P in
16488 [\\/$]* | ?:[\\/]* ) ;;
16489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16490 esac
16491_ACEOF
16492
16493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16494# If the template does not know about datarootdir, expand it.
16495# FIXME: This hack should be removed a few years after 2.60.
16496ac_datarootdir_hack=; ac_datarootdir_seen=
16497ac_sed_dataroot='
16498/datarootdir/ {
16499 p
16500 q
16501}
16502/@datadir@/p
16503/@docdir@/p
16504/@infodir@/p
16505/@localedir@/p
16506/@mandir@/p'
16507case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16508*datarootdir*) ac_datarootdir_seen=yes;;
16509*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16511$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16512_ACEOF
16513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514 ac_datarootdir_hack='
16515 s&@datadir@&$datadir&g
16516 s&@docdir@&$docdir&g
16517 s&@infodir@&$infodir&g
16518 s&@localedir@&$localedir&g
16519 s&@mandir@&$mandir&g
16520 s&\\\${datarootdir}&$datarootdir&g' ;;
16521esac
16522_ACEOF
16523
16524# Neutralize VPATH when `$srcdir' = `.'.
16525# Shell code in configure.ac might set extrasub.
16526# FIXME: do we really want to maintain this feature?
16527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16528ac_sed_extra="$ac_vpsub
16529$extrasub
16530_ACEOF
16531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16532:t
16533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16534s|@configure_input@|$ac_sed_conf_input|;t t
16535s&@top_builddir@&$ac_top_builddir_sub&;t t
16536s&@top_build_prefix@&$ac_top_build_prefix&;t t
16537s&@srcdir@&$ac_srcdir&;t t
16538s&@abs_srcdir@&$ac_abs_srcdir&;t t
16539s&@top_srcdir@&$ac_top_srcdir&;t t
16540s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16541s&@builddir@&$ac_builddir&;t t
16542s&@abs_builddir@&$ac_abs_builddir&;t t
16543s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16544s&@INSTALL@&$ac_INSTALL&;t t
16545s&@MKDIR_P@&$ac_MKDIR_P&;t t
16546$ac_datarootdir_hack
16547"
22e05272
JM
16548eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
16550
16551test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16554 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b4c522fa 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16556which seems to be undefined. Please make sure it is defined" >&5
b4c522fa 16557$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16558which seems to be undefined. Please make sure it is defined" >&2;}
b4c522fa 16559
22e05272 16560 rm -f "$ac_tmp/stdin"
b4c522fa 16561 case $ac_file in
22e05272
JM
16562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b4c522fa 16564 esac \
22e05272 16565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
16566 ;;
16567 :H)
16568 #
16569 # CONFIG_HEADER
16570 #
16571 if test x"$ac_file" != x-; then
16572 {
16573 $as_echo "/* $configure_input */" \
22e05272
JM
16574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16575 } >"$ac_tmp/config.h" \
16576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b4c522fa
IB
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16579$as_echo "$as_me: $ac_file is unchanged" >&6;}
16580 else
16581 rm -f "$ac_file"
22e05272
JM
16582 mv "$ac_tmp/config.h" "$ac_file" \
16583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
16584 fi
16585 else
16586 $as_echo "/* $configure_input */" \
22e05272
JM
16587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16588 || as_fn_error $? "could not create -" "$LINENO" 5
b4c522fa
IB
16589 fi
16590# Compute "$ac_file"'s index in $config_headers.
16591_am_arg="$ac_file"
16592_am_stamp_count=1
16593for _am_header in $config_headers :; do
16594 case $_am_header in
16595 $_am_arg | $_am_arg:* )
16596 break ;;
16597 * )
16598 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16599 esac
16600done
16601echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16602$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16603 X"$_am_arg" : 'X\(//\)[^/]' \| \
16604 X"$_am_arg" : 'X\(//\)$' \| \
16605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16606$as_echo X"$_am_arg" |
16607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16608 s//\1/
16609 q
16610 }
16611 /^X\(\/\/\)[^/].*/{
16612 s//\1/
16613 q
16614 }
16615 /^X\(\/\/\)$/{
16616 s//\1/
16617 q
16618 }
16619 /^X\(\/\).*/{
16620 s//\1/
16621 q
16622 }
16623 s/.*/./; q'`/stamp-h$_am_stamp_count
16624 ;;
16625
16626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16627$as_echo "$as_me: executing $ac_file commands" >&6;}
16628 ;;
16629 esac
16630
16631
16632 case $ac_file$ac_mode in
16633 "default-1":C)
16634# Only add multilib support code if we just rebuilt the top-level
16635# Makefile.
16636case " $CONFIG_FILES " in
16637 *" Makefile "*)
16638 ac_file=Makefile . ${multi_basedir}/config-ml.in
16639 ;;
16640esac ;;
16641 "libtool":C)
16642
16643 # See if we are running on zsh, and set the options which allow our
16644 # commands through without removal of \ escapes.
16645 if test -n "${ZSH_VERSION+set}" ; then
16646 setopt NO_GLOB_SUBST
16647 fi
16648
16649 cfgfile="${ofile}T"
16650 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16651 $RM "$cfgfile"
16652
16653 cat <<_LT_EOF >> "$cfgfile"
16654#! $SHELL
16655
16656# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16657# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16658# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16659# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16660#
16661# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16662# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16663# Written by Gordon Matzigkeit, 1996
16664#
16665# This file is part of GNU Libtool.
16666#
16667# GNU Libtool is free software; you can redistribute it and/or
16668# modify it under the terms of the GNU General Public License as
16669# published by the Free Software Foundation; either version 2 of
16670# the License, or (at your option) any later version.
16671#
16672# As a special exception to the GNU General Public License,
16673# if you distribute this file as part of a program or library that
16674# is built using GNU Libtool, you may include this file under the
16675# same distribution terms that you use for the rest of that program.
16676#
16677# GNU Libtool is distributed in the hope that it will be useful,
16678# but WITHOUT ANY WARRANTY; without even the implied warranty of
16679# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16680# GNU General Public License for more details.
16681#
16682# You should have received a copy of the GNU General Public License
16683# along with GNU Libtool; see the file COPYING. If not, a copy
16684# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16685# obtained by writing to the Free Software Foundation, Inc.,
16686# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16687
16688
16689# The names of the tagged configurations supported by this script.
16690available_tags="D "
16691
16692# ### BEGIN LIBTOOL CONFIG
16693
16694# Which release of libtool.m4 was used?
16695macro_version=$macro_version
16696macro_revision=$macro_revision
16697
16698# Whether or not to build shared libraries.
16699build_libtool_libs=$enable_shared
16700
16701# Whether or not to build static libraries.
16702build_old_libs=$enable_static
16703
16704# What type of objects to build.
16705pic_mode=$pic_mode
16706
16707# Whether or not to optimize for fast installation.
16708fast_install=$enable_fast_install
16709
16710# Shell to use when invoking shell scripts.
16711SHELL=$lt_SHELL
16712
16713# An echo program that protects backslashes.
16714ECHO=$lt_ECHO
16715
16716# The host system.
16717host_alias=$host_alias
16718host=$host
16719host_os=$host_os
16720
16721# The build system.
16722build_alias=$build_alias
16723build=$build
16724build_os=$build_os
16725
16726# A sed program that does not truncate output.
16727SED=$lt_SED
16728
16729# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16730Xsed="\$SED -e 1s/^X//"
16731
16732# A grep program that handles long lines.
16733GREP=$lt_GREP
16734
16735# An ERE matcher.
16736EGREP=$lt_EGREP
16737
16738# A literal string matcher.
16739FGREP=$lt_FGREP
16740
16741# A BSD- or MS-compatible name lister.
16742NM=$lt_NM
16743
16744# Whether we need soft or hard links.
16745LN_S=$lt_LN_S
16746
16747# What is the maximum length of a command?
16748max_cmd_len=$max_cmd_len
16749
16750# Object file suffix (normally "o").
16751objext=$ac_objext
16752
16753# Executable file suffix (normally "").
16754exeext=$exeext
16755
16756# whether the shell understands "unset".
16757lt_unset=$lt_unset
16758
16759# turn spaces into newlines.
16760SP2NL=$lt_lt_SP2NL
16761
16762# turn newlines into spaces.
16763NL2SP=$lt_lt_NL2SP
16764
16765# An object symbol dumper.
16766OBJDUMP=$lt_OBJDUMP
16767
16768# Method to check whether dependent libraries are shared objects.
16769deplibs_check_method=$lt_deplibs_check_method
16770
16771# Command to use when deplibs_check_method == "file_magic".
16772file_magic_cmd=$lt_file_magic_cmd
16773
16774# The archiver.
16775AR=$lt_AR
16776AR_FLAGS=$lt_AR_FLAGS
16777
16778# A symbol stripping program.
16779STRIP=$lt_STRIP
16780
16781# Commands used to install an old-style archive.
16782RANLIB=$lt_RANLIB
16783old_postinstall_cmds=$lt_old_postinstall_cmds
16784old_postuninstall_cmds=$lt_old_postuninstall_cmds
16785
16786# Whether to use a lock for old archive extraction.
16787lock_old_archive_extraction=$lock_old_archive_extraction
16788
16789# A C compiler.
16790LTCC=$lt_CC
16791
16792# LTCC compiler flags.
16793LTCFLAGS=$lt_CFLAGS
16794
16795# Take the output of nm and produce a listing of raw symbols and C names.
16796global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16797
16798# Transform the output of nm in a proper C declaration.
16799global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16800
16801# Transform the output of nm in a C name address pair.
16802global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16803
16804# Transform the output of nm in a C name address pair when lib prefix is needed.
16805global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16806
16807# The name of the directory that contains temporary libtool files.
16808objdir=$objdir
16809
16810# Used to examine libraries when file_magic_cmd begins with "file".
16811MAGIC_CMD=$MAGIC_CMD
16812
16813# Must we lock files when doing compilation?
16814need_locks=$lt_need_locks
16815
16816# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16817DSYMUTIL=$lt_DSYMUTIL
16818
16819# Tool to change global to local symbols on Mac OS X.
16820NMEDIT=$lt_NMEDIT
16821
16822# Tool to manipulate fat objects and archives on Mac OS X.
16823LIPO=$lt_LIPO
16824
16825# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16826OTOOL=$lt_OTOOL
16827
16828# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16829OTOOL64=$lt_OTOOL64
16830
16831# Old archive suffix (normally "a").
16832libext=$libext
16833
16834# Shared library suffix (normally ".so").
16835shrext_cmds=$lt_shrext_cmds
16836
16837# The commands to extract the exported symbol list from a shared archive.
16838extract_expsyms_cmds=$lt_extract_expsyms_cmds
16839
16840# Variables whose values should be saved in libtool wrapper scripts and
16841# restored at link time.
16842variables_saved_for_relink=$lt_variables_saved_for_relink
16843
16844# Do we need the "lib" prefix for modules?
16845need_lib_prefix=$need_lib_prefix
16846
16847# Do we need a version for libraries?
16848need_version=$need_version
16849
16850# Library versioning type.
16851version_type=$version_type
16852
16853# Shared library runtime path variable.
16854runpath_var=$runpath_var
16855
16856# Shared library path variable.
16857shlibpath_var=$shlibpath_var
16858
16859# Is shlibpath searched before the hard-coded library search path?
16860shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16861
16862# Format of library name prefix.
16863libname_spec=$lt_libname_spec
16864
16865# List of archive names. First name is the real one, the rest are links.
16866# The last name is the one that the linker finds with -lNAME
16867library_names_spec=$lt_library_names_spec
16868
16869# The coded name of the library, if different from the real name.
16870soname_spec=$lt_soname_spec
16871
16872# Permission mode override for installation of shared libraries.
16873install_override_mode=$lt_install_override_mode
16874
16875# Command to use after installation of a shared archive.
16876postinstall_cmds=$lt_postinstall_cmds
16877
16878# Command to use after uninstallation of a shared archive.
16879postuninstall_cmds=$lt_postuninstall_cmds
16880
16881# Commands used to finish a libtool library installation in a directory.
16882finish_cmds=$lt_finish_cmds
16883
16884# As "finish_cmds", except a single script fragment to be evaled but
16885# not shown.
16886finish_eval=$lt_finish_eval
16887
16888# Whether we should hardcode library paths into libraries.
16889hardcode_into_libs=$hardcode_into_libs
16890
16891# Compile-time system search path for libraries.
16892sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16893
16894# Run-time system search path for libraries.
16895sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16896
16897# Whether dlopen is supported.
16898dlopen_support=$enable_dlopen
16899
16900# Whether dlopen of programs is supported.
16901dlopen_self=$enable_dlopen_self
16902
16903# Whether dlopen of statically linked programs is supported.
16904dlopen_self_static=$enable_dlopen_self_static
16905
16906# Commands to strip libraries.
16907old_striplib=$lt_old_striplib
16908striplib=$lt_striplib
16909
16910
16911# The linker used to build libraries.
16912LD=$lt_LD
16913
16914# How to create reloadable object files.
16915reload_flag=$lt_reload_flag
16916reload_cmds=$lt_reload_cmds
16917
16918# Commands used to build an old-style archive.
16919old_archive_cmds=$lt_old_archive_cmds
16920
16921# A language specific compiler.
16922CC=$lt_compiler
16923
16924# Is the compiler the GNU compiler?
16925with_gcc=$GCC
16926
16927# Compiler flag to turn off builtin functions.
16928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16929
16930# How to pass a linker flag through the compiler.
16931wl=$lt_lt_prog_compiler_wl
16932
16933# Additional compiler flags for building library objects.
16934pic_flag=$lt_lt_prog_compiler_pic
16935
16936# Compiler flag to prevent dynamic linking.
16937link_static_flag=$lt_lt_prog_compiler_static
16938
16939# Does compiler simultaneously support -c and -o options?
16940compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16941
16942# Whether or not to add -lc for building shared libraries.
16943build_libtool_need_lc=$archive_cmds_need_lc
16944
16945# Whether or not to disallow shared libs when runtime libs are static.
16946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16947
16948# Compiler flag to allow reflexive dlopens.
16949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16950
16951# Compiler flag to generate shared objects directly from archives.
16952whole_archive_flag_spec=$lt_whole_archive_flag_spec
16953
16954# Whether the compiler copes with passing no objects directly.
16955compiler_needs_object=$lt_compiler_needs_object
16956
16957# Create an old-style archive from a shared archive.
16958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16959
16960# Create a temporary old-style archive to link instead of a shared archive.
16961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16962
16963# Commands used to build a shared archive.
16964archive_cmds=$lt_archive_cmds
16965archive_expsym_cmds=$lt_archive_expsym_cmds
16966
16967# Commands used to build a loadable module if different from building
16968# a shared archive.
16969module_cmds=$lt_module_cmds
16970module_expsym_cmds=$lt_module_expsym_cmds
16971
16972# Whether we are building with GNU ld or not.
16973with_gnu_ld=$lt_with_gnu_ld
16974
16975# Flag that allows shared libraries with undefined symbols to be built.
16976allow_undefined_flag=$lt_allow_undefined_flag
16977
16978# Flag that enforces no undefined symbols.
16979no_undefined_flag=$lt_no_undefined_flag
16980
16981# Flag to hardcode \$libdir into a binary during linking.
16982# This must work even if \$libdir does not exist
16983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16984
16985# If ld is used when linking, flag to hardcode \$libdir into a binary
16986# during linking. This must work even if \$libdir does not exist.
16987hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16988
16989# Whether we need a single "-rpath" flag with a separated argument.
16990hardcode_libdir_separator=$lt_hardcode_libdir_separator
16991
16992# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16993# DIR into the resulting binary.
16994hardcode_direct=$hardcode_direct
16995
16996# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16997# DIR into the resulting binary and the resulting library dependency is
16998# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16999# library is relocated.
17000hardcode_direct_absolute=$hardcode_direct_absolute
17001
17002# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17003# into the resulting binary.
17004hardcode_minus_L=$hardcode_minus_L
17005
17006# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17007# into the resulting binary.
17008hardcode_shlibpath_var=$hardcode_shlibpath_var
17009
17010# Set to "yes" if building a shared library automatically hardcodes DIR
17011# into the library and all subsequent libraries and executables linked
17012# against it.
17013hardcode_automatic=$hardcode_automatic
17014
17015# Set to yes if linker adds runtime paths of dependent libraries
17016# to runtime path list.
17017inherit_rpath=$inherit_rpath
17018
17019# Whether libtool must link a program against all its dependency libraries.
17020link_all_deplibs=$link_all_deplibs
17021
17022# Fix the shell variable \$srcfile for the compiler.
17023fix_srcfile_path=$lt_fix_srcfile_path
17024
17025# Set to "yes" if exported symbols are required.
17026always_export_symbols=$always_export_symbols
17027
17028# The commands to list exported symbols.
17029export_symbols_cmds=$lt_export_symbols_cmds
17030
17031# Symbols that should not be listed in the preloaded symbols.
17032exclude_expsyms=$lt_exclude_expsyms
17033
17034# Symbols that must always be exported.
17035include_expsyms=$lt_include_expsyms
17036
17037# Commands necessary for linking programs (against libraries) with templates.
17038prelink_cmds=$lt_prelink_cmds
17039
17040# Specify filename containing input files.
17041file_list_spec=$lt_file_list_spec
17042
17043# How to hardcode a shared library path into an executable.
17044hardcode_action=$hardcode_action
17045
17046# ### END LIBTOOL CONFIG
17047
17048_LT_EOF
17049
17050 case $host_os in
17051 aix3*)
17052 cat <<\_LT_EOF >> "$cfgfile"
17053# AIX sometimes has problems with the GCC collect2 program. For some
17054# reason, if we set the COLLECT_NAMES environment variable, the problems
17055# vanish in a puff of smoke.
17056if test "X${COLLECT_NAMES+set}" != Xset; then
17057 COLLECT_NAMES=
17058 export COLLECT_NAMES
17059fi
17060_LT_EOF
17061 ;;
17062 esac
17063
17064
17065ltmain="$ac_aux_dir/ltmain.sh"
17066
17067
17068 # We use sed instead of cat because bash on DJGPP gets confused if
17069 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17070 # text mode, it properly converts lines to CR/LF. This bash problem
17071 # is reportedly fixed, but why not run on old versions too?
17072 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17073 || (rm -f "$cfgfile"; exit 1)
17074
17075 case $xsi_shell in
17076 yes)
17077 cat << \_LT_EOF >> "$cfgfile"
17078
17079# func_dirname file append nondir_replacement
17080# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17081# otherwise set result to NONDIR_REPLACEMENT.
17082func_dirname ()
17083{
17084 case ${1} in
17085 */*) func_dirname_result="${1%/*}${2}" ;;
17086 * ) func_dirname_result="${3}" ;;
17087 esac
17088}
17089
17090# func_basename file
17091func_basename ()
17092{
17093 func_basename_result="${1##*/}"
17094}
17095
17096# func_dirname_and_basename file append nondir_replacement
17097# perform func_basename and func_dirname in a single function
17098# call:
17099# dirname: Compute the dirname of FILE. If nonempty,
17100# add APPEND to the result, otherwise set result
17101# to NONDIR_REPLACEMENT.
17102# value returned in "$func_dirname_result"
17103# basename: Compute filename of FILE.
17104# value retuned in "$func_basename_result"
17105# Implementation must be kept synchronized with func_dirname
17106# and func_basename. For efficiency, we do not delegate to
17107# those functions but instead duplicate the functionality here.
17108func_dirname_and_basename ()
17109{
17110 case ${1} in
17111 */*) func_dirname_result="${1%/*}${2}" ;;
17112 * ) func_dirname_result="${3}" ;;
17113 esac
17114 func_basename_result="${1##*/}"
17115}
17116
17117# func_stripname prefix suffix name
17118# strip PREFIX and SUFFIX off of NAME.
17119# PREFIX and SUFFIX must not contain globbing or regex special
17120# characters, hashes, percent signs, but SUFFIX may contain a leading
17121# dot (in which case that matches only a dot).
17122func_stripname ()
17123{
17124 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17125 # positional parameters, so assign one to ordinary parameter first.
17126 func_stripname_result=${3}
17127 func_stripname_result=${func_stripname_result#"${1}"}
17128 func_stripname_result=${func_stripname_result%"${2}"}
17129}
17130
17131# func_opt_split
17132func_opt_split ()
17133{
17134 func_opt_split_opt=${1%%=*}
17135 func_opt_split_arg=${1#*=}
17136}
17137
17138# func_lo2o object
17139func_lo2o ()
17140{
17141 case ${1} in
17142 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17143 *) func_lo2o_result=${1} ;;
17144 esac
17145}
17146
17147# func_xform libobj-or-source
17148func_xform ()
17149{
17150 func_xform_result=${1%.*}.lo
17151}
17152
17153# func_arith arithmetic-term...
17154func_arith ()
17155{
17156 func_arith_result=$(( $* ))
17157}
17158
17159# func_len string
17160# STRING may not start with a hyphen.
17161func_len ()
17162{
17163 func_len_result=${#1}
17164}
17165
17166_LT_EOF
17167 ;;
17168 *) # Bourne compatible functions.
17169 cat << \_LT_EOF >> "$cfgfile"
17170
17171# func_dirname file append nondir_replacement
17172# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17173# otherwise set result to NONDIR_REPLACEMENT.
17174func_dirname ()
17175{
17176 # Extract subdirectory from the argument.
17177 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17178 if test "X$func_dirname_result" = "X${1}"; then
17179 func_dirname_result="${3}"
17180 else
17181 func_dirname_result="$func_dirname_result${2}"
17182 fi
17183}
17184
17185# func_basename file
17186func_basename ()
17187{
17188 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17189}
17190
17191
17192# func_stripname prefix suffix name
17193# strip PREFIX and SUFFIX off of NAME.
17194# PREFIX and SUFFIX must not contain globbing or regex special
17195# characters, hashes, percent signs, but SUFFIX may contain a leading
17196# dot (in which case that matches only a dot).
17197# func_strip_suffix prefix name
17198func_stripname ()
17199{
17200 case ${2} in
17201 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17202 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17203 esac
17204}
17205
17206# sed scripts:
17207my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17208my_sed_long_arg='1s/^-[^=]*=//'
17209
17210# func_opt_split
17211func_opt_split ()
17212{
17213 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17214 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17215}
17216
17217# func_lo2o object
17218func_lo2o ()
17219{
17220 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17221}
17222
17223# func_xform libobj-or-source
17224func_xform ()
17225{
17226 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17227}
17228
17229# func_arith arithmetic-term...
17230func_arith ()
17231{
17232 func_arith_result=`expr "$@"`
17233}
17234
17235# func_len string
17236# STRING may not start with a hyphen.
17237func_len ()
17238{
17239 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17240}
17241
17242_LT_EOF
17243esac
17244
17245case $lt_shell_append in
17246 yes)
17247 cat << \_LT_EOF >> "$cfgfile"
17248
17249# func_append var value
17250# Append VALUE to the end of shell variable VAR.
17251func_append ()
17252{
17253 eval "$1+=\$2"
17254}
17255_LT_EOF
17256 ;;
17257 *)
17258 cat << \_LT_EOF >> "$cfgfile"
17259
17260# func_append var value
17261# Append VALUE to the end of shell variable VAR.
17262func_append ()
17263{
17264 eval "$1=\$$1\$2"
17265}
17266
17267_LT_EOF
17268 ;;
17269 esac
17270
17271
17272 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17273 || (rm -f "$cfgfile"; exit 1)
17274
17275 mv -f "$cfgfile" "$ofile" ||
17276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17277 chmod +x "$ofile"
17278
17279
17280 cat <<_LT_EOF >> "$ofile"
17281
17282# ### BEGIN LIBTOOL TAG CONFIG: D
17283
17284# The linker used to build libraries.
17285LD=$lt_LD_D
17286
17287# How to create reloadable object files.
17288reload_flag=$lt_reload_flag_D
17289reload_cmds=$lt_reload_cmds_D
17290
17291# Commands used to build an old-style archive.
17292old_archive_cmds=$lt_old_archive_cmds_D
17293
17294# A language specific compiler.
17295CC=$lt_compiler_D
17296
17297# Is the compiler the GNU compiler?
17298with_gcc=$GCC_D
17299
17300# Compiler flag to turn off builtin functions.
17301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17302
17303# How to pass a linker flag through the compiler.
17304wl=$lt_lt_prog_compiler_wl_D
17305
17306# Additional compiler flags for building library objects.
17307pic_flag=$lt_lt_prog_compiler_pic_D
17308
17309# Compiler flag to prevent dynamic linking.
17310link_static_flag=$lt_lt_prog_compiler_static_D
17311
17312# Does compiler simultaneously support -c and -o options?
17313compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17314
17315# Whether or not to add -lc for building shared libraries.
17316build_libtool_need_lc=$archive_cmds_need_lc_D
17317
17318# Whether or not to disallow shared libs when runtime libs are static.
17319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17320
17321# Compiler flag to allow reflexive dlopens.
17322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17323
17324# Compiler flag to generate shared objects directly from archives.
17325whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17326
17327# Whether the compiler copes with passing no objects directly.
17328compiler_needs_object=$lt_compiler_needs_object_D
17329
17330# Create an old-style archive from a shared archive.
17331old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17332
17333# Create a temporary old-style archive to link instead of a shared archive.
17334old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17335
17336# Commands used to build a shared archive.
17337archive_cmds=$lt_archive_cmds_D
17338archive_expsym_cmds=$lt_archive_expsym_cmds_D
17339
17340# Commands used to build a loadable module if different from building
17341# a shared archive.
17342module_cmds=$lt_module_cmds_D
17343module_expsym_cmds=$lt_module_expsym_cmds_D
17344
17345# Whether we are building with GNU ld or not.
17346with_gnu_ld=$lt_with_gnu_ld_D
17347
17348# Flag that allows shared libraries with undefined symbols to be built.
17349allow_undefined_flag=$lt_allow_undefined_flag_D
17350
17351# Flag that enforces no undefined symbols.
17352no_undefined_flag=$lt_no_undefined_flag_D
17353
17354# Flag to hardcode \$libdir into a binary during linking.
17355# This must work even if \$libdir does not exist
17356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17357
17358# If ld is used when linking, flag to hardcode \$libdir into a binary
17359# during linking. This must work even if \$libdir does not exist.
17360hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17361
17362# Whether we need a single "-rpath" flag with a separated argument.
17363hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17364
17365# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17366# DIR into the resulting binary.
17367hardcode_direct=$hardcode_direct_D
17368
17369# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17370# DIR into the resulting binary and the resulting library dependency is
17371# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17372# library is relocated.
17373hardcode_direct_absolute=$hardcode_direct_absolute_D
17374
17375# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17376# into the resulting binary.
17377hardcode_minus_L=$hardcode_minus_L_D
17378
17379# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17380# into the resulting binary.
17381hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17382
17383# Set to "yes" if building a shared library automatically hardcodes DIR
17384# into the library and all subsequent libraries and executables linked
17385# against it.
17386hardcode_automatic=$hardcode_automatic_D
17387
17388# Set to yes if linker adds runtime paths of dependent libraries
17389# to runtime path list.
17390inherit_rpath=$inherit_rpath_D
17391
17392# Whether libtool must link a program against all its dependency libraries.
17393link_all_deplibs=$link_all_deplibs_D
17394
17395# Fix the shell variable \$srcfile for the compiler.
17396fix_srcfile_path=$lt_fix_srcfile_path_D
17397
17398# Set to "yes" if exported symbols are required.
17399always_export_symbols=$always_export_symbols_D
17400
17401# The commands to list exported symbols.
17402export_symbols_cmds=$lt_export_symbols_cmds_D
17403
17404# Symbols that should not be listed in the preloaded symbols.
17405exclude_expsyms=$lt_exclude_expsyms_D
17406
17407# Symbols that must always be exported.
17408include_expsyms=$lt_include_expsyms_D
17409
17410# Commands necessary for linking programs (against libraries) with templates.
17411prelink_cmds=$lt_prelink_cmds_D
17412
17413# Specify filename containing input files.
17414file_list_spec=$lt_file_list_spec_D
17415
17416# How to hardcode a shared library path into an executable.
17417hardcode_action=$hardcode_action_D
17418
17419# ### END LIBTOOL TAG CONFIG: D
17420_LT_EOF
17421
17422 ;;
17423 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17424 "default":C) if test -n "$CONFIG_FILES"; then
17425 if test -n "${with_target_subdir}"; then
17426 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17427 # that multilib installs will end up installed in the correct place.
17428 # The testsuite needs it for multilib-aware ABI baseline files.
17429 # To work around this not being passed down from config-ml.in ->
17430 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
17431 # append it here. Only modify Makefiles that have just been created.
17432 #
17433 # Also, get rid of this simulated-VPATH thing that automake does.
17434 cat > vpsed << \_EOF
17435 s!`test -f '$<' || echo '$(srcdir)/'`!!
17436_EOF
17437 for i in $SUBDIRS; do
17438 case $CONFIG_FILES in
17439 *${i}/Makefile*)
17440 #echo "Adding MULTISUBDIR to $i/Makefile"
17441 sed -f vpsed $i/Makefile > tmp
17442 grep '^MULTISUBDIR =' Makefile >> tmp
17443 mv tmp $i/Makefile
17444 ;;
17445 esac
17446 done
17447 rm vpsed
17448 fi
17449 fi
17450 ;;
17451
17452 esac
17453done # for ac_tag
17454
17455
17456as_fn_exit 0
17457_ACEOF
17458ac_clean_files=$ac_clean_files_save
17459
17460test $ac_write_fail = 0 ||
22e05272 17461 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
17462
17463
17464# configure is writing to config.log, and then calls config.status.
17465# config.status does its own redirection, appending to config.log.
17466# Unfortunately, on DOS this fails, as config.log is still kept open
17467# by configure, so config.status won't be able to write to it; its
17468# output is simply discarded. So we exec the FD to /dev/null,
17469# effectively closing config.log, so it can be properly (re)opened and
17470# appended to by config.status. When coming back to configure, we
17471# need to make the FD available again.
17472if test "$no_create" != yes; then
17473 ac_cs_success=:
17474 ac_config_status_args=
17475 test "$silent" = yes &&
17476 ac_config_status_args="$ac_config_status_args --quiet"
17477 exec 5>/dev/null
17478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17479 exec 5>>config.log
17480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17481 # would make configure fail if this is the last instruction.
22e05272 17482 $ac_cs_success || as_fn_exit 1
b4c522fa
IB
17483fi
17484if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17486$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17487fi
17488