]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
libphobos: Apply core.internal.hash updates from druntime
[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
85041a5b 637libtool_VERSION
b4c522fa
IB
638SPEC_PHOBOS_DEPS
639gdc_include_dir
ac67752d
IB
640libphobos_toolexeclibdir
641libphobos_toolexecdir
b4c522fa
IB
642gcc_version
643DRUNTIME_ZLIB_SYSTEM_FALSE
644DRUNTIME_ZLIB_SYSTEM_TRUE
645BACKTRACE_SUPPORTS_THREADS
646BACKTRACE_USES_MALLOC
647BACKTRACE_SUPPORTED
648LIBBACKTRACE
649LIBATOMIC
650DCFG_HAVE_LIBATOMIC
651DCFG_HAVE_64BIT_ATOMICS
652DCFG_HAVE_ATOMIC_BUILTINS
653DCFG_MINFO_BRACKETING
654DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
655DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
656DCFG_ARM_EABI_UNWINDER
657DCFG_THREAD_MODEL
658DRUNTIME_OS_SOLARIS_FALSE
659DRUNTIME_OS_SOLARIS_TRUE
660DRUNTIME_OS_MINGW_FALSE
661DRUNTIME_OS_MINGW_TRUE
662DRUNTIME_OS_LINUX_FALSE
663DRUNTIME_OS_LINUX_TRUE
664DRUNTIME_OS_OPENBSD_FALSE
665DRUNTIME_OS_OPENBSD_TRUE
666DRUNTIME_OS_NETBSD_FALSE
667DRUNTIME_OS_NETBSD_TRUE
668DRUNTIME_OS_FREEBSD_FALSE
669DRUNTIME_OS_FREEBSD_TRUE
670DRUNTIME_OS_DRAGONFLYBSD_FALSE
671DRUNTIME_OS_DRAGONFLYBSD_TRUE
672DRUNTIME_OS_DARWIN_FALSE
673DRUNTIME_OS_DARWIN_TRUE
674DRUNTIME_OS_ANDROID_FALSE
675DRUNTIME_OS_ANDROID_TRUE
676DRUNTIME_OS_AIX_FALSE
677DRUNTIME_OS_AIX_TRUE
678DRUNTIME_OS_UNIX_FALSE
679DRUNTIME_OS_UNIX_TRUE
680DRUNTIME_GC_ENABLE_FALSE
681DRUNTIME_GC_ENABLE_TRUE
682libphobos_srcdir
683libphobos_builddir
684get_gcc_base_ver
685phobos_compiler_shared_flag
686phobos_compiler_pic_flag
687ENABLE_STATIC_FALSE
688ENABLE_STATIC_TRUE
689ENABLE_SHARED_FALSE
690ENABLE_SHARED_TRUE
691CPP
692OTOOL64
693OTOOL
694LIPO
695NMEDIT
696DSYMUTIL
697OBJDUMP
698LN_S
699NM
700ac_ct_DUMPBIN
701DUMPBIN
702LD
703FGREP
704EGREP
705GREP
706SED
707LIBTOOL
708CFLAGS_FOR_BUILD
709CC_FOR_BUILD
710AR
711RANLIB
712MAINT
713MAINTAINER_MODE_FALSE
714MAINTAINER_MODE_TRUE
715GDCFLAGS
716GDC
717CCASFLAGS
718CCAS
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
22e05272
JM
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
b4c522fa
IB
730am__untar
731am__tar
732AMTAR
733am__leading_dot
734SET_MAKE
735AWK
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739STRIP
740install_sh
741MAKEINFO
742AUTOHEADER
743AUTOMAKE
744AUTOCONF
745ACLOCAL
746VERSION
747PACKAGE
748CYGPATH_W
749am__isrc
750INSTALL_DATA
751INSTALL_SCRIPT
752INSTALL_PROGRAM
753target_os
754target_vendor
755target_cpu
756target
757host_os
758host_vendor
759host_cpu
760host
761build_os
762build_vendor
763build_cpu
764build
765multi_basedir
766target_alias
767host_alias
768build_alias
769LIBS
770ECHO_T
771ECHO_N
772ECHO_C
773DEFS
774mandir
775localedir
776libdir
777psdir
778pdfdir
779dvidir
780htmldir
781infodir
782docdir
783oldincludedir
784includedir
ac67752d 785runstatedir
b4c522fa
IB
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
ac67752d 826enable_version_specific_runtime_libs
b4c522fa
IB
827'
828 ac_precious_vars='build_alias
829host_alias
830target_alias
831CPP
832CPPFLAGS'
833
834
835# Initialize some variables set by options.
836ac_init_help=
837ac_init_version=false
838ac_unrecognized_opts=
839ac_unrecognized_sep=
840# The variables have the same names as the options, with
841# dashes changed to underlines.
842cache_file=/dev/null
843exec_prefix=NONE
844no_create=
845no_recursion=
846prefix=NONE
847program_prefix=NONE
848program_suffix=NONE
849program_transform_name=s,x,x,
850silent=
851site=
852srcdir=
853verbose=
854x_includes=NONE
855x_libraries=NONE
856
857# Installation directory options.
858# These are left unexpanded so users can "make install exec_prefix=/foo"
859# and all the variables that are supposed to be based on exec_prefix
860# by default will actually change.
861# Use braces instead of parens because sh, perl, etc. also accept them.
862# (The list follows the same order as the GNU Coding Standards.)
863bindir='${exec_prefix}/bin'
864sbindir='${exec_prefix}/sbin'
865libexecdir='${exec_prefix}/libexec'
866datarootdir='${prefix}/share'
867datadir='${datarootdir}'
868sysconfdir='${prefix}/etc'
869sharedstatedir='${prefix}/com'
870localstatedir='${prefix}/var'
ac67752d 871runstatedir='${localstatedir}/run'
b4c522fa
IB
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
883
884ac_prev=
885ac_dashdash=
886for ac_option
887do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
22e05272
JM
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
b4c522fa
IB
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 943 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 969 as_fn_error $? "invalid feature name: $ac_useropt"
b4c522fa
IB
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
ac67752d
IB
1124 -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 | --runstate | --runstat | --runsta | --runst | --runs \
1126 | --run | --ru | --r)
1127 ac_prev=runstatedir ;;
1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 | --run=* | --ru=* | --r=*)
1131 runstatedir=$ac_optarg ;;
1132
b4c522fa
IB
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1182 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1198 as_fn_error $? "invalid package name: $ac_useropt"
b4c522fa
IB
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
22e05272
JM
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information"
b4c522fa
IB
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b4c522fa
IB
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b4c522fa
IB
1248 ;;
1249
1250 esac
1251done
1252
1253if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1255 as_fn_error $? "missing argument to $ac_option"
b4c522fa
IB
1256fi
1257
1258if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
22e05272 1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
b4c522fa
IB
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264fi
1265
1266# Check all directory arguments for consistency.
1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
ac67752d 1270 libdir localedir mandir runstatedir
b4c522fa
IB
1271do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
22e05272 1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b4c522fa
IB
1285done
1286
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
1293
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
b4c522fa
IB
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301fi
1302
1303ac_tool_prefix=
1304test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306test "$silent" = yes && exec 6>/dev/null
1307
1308
1309ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310ac_ls_di=`ls -di .` &&
1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1312 as_fn_error $? "working directory cannot be determined"
b4c522fa 1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1314 as_fn_error $? "pwd does not report name of working directory"
b4c522fa
IB
1315
1316
1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348else
1349 ac_srcdir_defaulted=no
1350fi
1351if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b4c522fa
IB
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
22e05272 1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b4c522fa
IB
1358 pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
22e05272 1397 -q, --quiet, --silent do not print \`checking ...' messages
b4c522fa
IB
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
ac67752d 1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
b4c522fa
IB
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437_ACEOF
1438
1439 cat <<\_ACEOF
1440
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of package-unused version-unused:";;
1456 esac
1457 cat <<\_ACEOF
1458
1459Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-multilib build many library versions (default)
22e05272
JM
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
b4c522fa
IB
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-werror turns on -Werror [default=no]
1475 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1476 --enable-unix enables Unix runtime (default: yes, for Unix
1477 targets)
1478 --enable-thread-lib=<arg>
1479 specify linker option for the system thread library
1480 (default: autodetect)
ac67752d
IB
1481 --enable-version-specific-runtime-libs
1482 Specify that runtime libraries should be installed
1483 in a compiler-specific directory
b4c522fa
IB
1484
1485Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-pic try to use only PIC/non-PIC objects [default=use
1489 both]
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-gcc-major-version-only
1492 use only GCC major number in filesystem paths
1493 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1494 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1495 auto)
1496 --with-target-system-zlib
1497 use installed libz (default: no)
1498 --with-cross-host=HOST configuring with a cross compiler
1499
1500Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b4c522fa
IB
1507 you have headers in a nonstandard directory <include dir>
1508 CCAS assembler compiler command (defaults to CC)
1509 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1510 GDC D compiler command
1511 GDCFLAGS D compiler flags
1512 CPP C preprocessor
1513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
1517Report bugs to the package provider.
1518_ACEOF
1519ac_status=$?
1520fi
1521
1522if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579 cat <<\_ACEOF
1580package-unused configure version-unused
22e05272 1581generated by GNU Autoconf 2.69
b4c522fa 1582
22e05272 1583Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589
1590## ------------------------ ##
1591## Autoconf initialization. ##
1592## ------------------------ ##
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
22e05272
JM
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
b4c522fa
IB
1629
1630} # ac_fn_c_try_compile
1631
1632# ac_fn_d_try_compile LINENO
1633# --------------------------
1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_d_try_compile ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_d_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
22e05272
JM
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
b4c522fa
IB
1667
1668} # ac_fn_d_try_compile
1669
1670# ac_fn_c_try_link LINENO
1671# -----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_link ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
22e05272 1697 test -x conftest$ac_exeext
b4c522fa
IB
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
b4c522fa
IB
1713
1714} # ac_fn_c_try_link
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
22e05272 1725if eval \${$3+:} false; then :
b4c522fa
IB
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735else
1736 eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
22e05272 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1768 test $ac_status = 0; } > conftest.i && {
b4c522fa
IB
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
22e05272
JM
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
b4c522fa
IB
1781
1782} # ac_fn_c_try_cpp
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=$ac_status
1819fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
b4c522fa
IB
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
22e05272 1834if eval \${$3+:} false; then :
b4c522fa
IB
1835 $as_echo_n "(cached) " >&6
1836else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
22e05272 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_d_try_link LINENO
1894# -----------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_d_try_link ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_d_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
22e05272 1920 test -x conftest$ac_exeext
b4c522fa
IB
1921 }; then :
1922 ac_retval=0
1923else
1924 $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
b4c522fa
IB
1936
1937} # ac_fn_d_try_link
1938
1939# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940# -------------------------------------------------------
1941# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942# the include files in INCLUDES and setting the cache variable VAR
1943# accordingly.
1944ac_fn_c_check_header_mongrel ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1947 if eval \${$3+:} false; then :
b4c522fa
IB
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
22e05272 1950if eval \${$3+:} false; then :
b4c522fa
IB
1951 $as_echo_n "(cached) " >&6
1952fi
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956else
1957 # Is the header compilable?
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959$as_echo_n "checking $2 usability... " >&6; }
1960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962$4
1963#include <$2>
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_header_compiler=yes
1967else
1968 ac_header_compiler=no
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972$as_echo "$ac_header_compiler" >&6; }
1973
1974# Is the header present?
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976$as_echo_n "checking $2 presence... " >&6; }
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h. */
1979#include <$2>
1980_ACEOF
1981if ac_fn_c_try_cpp "$LINENO"; then :
1982 ac_header_preproc=yes
1983else
1984 ac_header_preproc=no
1985fi
22e05272 1986rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
1987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988$as_echo "$ac_header_preproc" >&6; }
1989
1990# So? What about this header?
1991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 yes:no: )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 ;;
1998 no:yes:* )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 ;;
2010esac
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
22e05272 2013if eval \${$3+:} false; then :
b4c522fa
IB
2014 $as_echo_n "(cached) " >&6
2015else
2016 eval "$3=\$ac_header_compiler"
2017fi
2018eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020$as_echo "$ac_res" >&6; }
2021fi
22e05272 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b4c522fa
IB
2023
2024} # ac_fn_c_check_header_mongrel
2025cat >config.log <<_ACEOF
2026This file contains any messages produced by compilers while
2027running configure, to aid debugging if configure makes a mistake.
2028
2029It was created by package-unused $as_me version-unused, which was
22e05272 2030generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
2031
2032 $ $0 $@
2033
2034_ACEOF
2035exec 5>>config.log
2036{
2037cat <<_ASUNAME
2038## --------- ##
2039## Platform. ##
2040## --------- ##
2041
2042hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047
2048/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2050
2051/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2052/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2053/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2055/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2056/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2057/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2058
2059_ASUNAME
2060
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 $as_echo "PATH: $as_dir"
2067 done
2068IFS=$as_save_IFS
2069
2070} >&5
2071
2072cat >&5 <<_ACEOF
2073
2074
2075## ----------- ##
2076## Core tests. ##
2077## ----------- ##
2078
2079_ACEOF
2080
2081
2082# Keep a trace of the command line.
2083# Strip out --no-create and --no-recursion so they do not pile up.
2084# Strip out --silent because we don't want to record it for future runs.
2085# Also quote any args containing shell meta-characters.
2086# Make two passes to allow for proper duplicate-argument suppression.
2087ac_configure_args=
2088ac_configure_args0=
2089ac_configure_args1=
2090ac_must_keep_next=false
2091for ac_pass in 1 2
2092do
2093 for ac_arg
2094 do
2095 case $ac_arg in
2096 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2098 | -silent | --silent | --silen | --sile | --sil)
2099 continue ;;
2100 *\'*)
2101 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 esac
2103 case $ac_pass in
2104 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2105 2)
2106 as_fn_append ac_configure_args1 " '$ac_arg'"
2107 if test $ac_must_keep_next = true; then
2108 ac_must_keep_next=false # Got value, back to normal.
2109 else
2110 case $ac_arg in
2111 *=* | --config-cache | -C | -disable-* | --disable-* \
2112 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2113 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2114 | -with-* | --with-* | -without-* | --without-* | --x)
2115 case "$ac_configure_args0 " in
2116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2117 esac
2118 ;;
2119 -* ) ac_must_keep_next=true ;;
2120 esac
2121 fi
2122 as_fn_append ac_configure_args " '$ac_arg'"
2123 ;;
2124 esac
2125 done
2126done
2127{ ac_configure_args0=; unset ac_configure_args0;}
2128{ ac_configure_args1=; unset ac_configure_args1;}
2129
2130# When interrupted or exit'd, cleanup temporary files, and complete
2131# config.log. We remove comments because anyway the quotes in there
2132# would cause problems or look ugly.
2133# WARNING: Use '\'' to represent an apostrophe within the trap.
2134# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2135trap 'exit_status=$?
2136 # Save into config.log some information that might help in debugging.
2137 {
2138 echo
2139
22e05272 2140 $as_echo "## ---------------- ##
b4c522fa 2141## Cache variables. ##
22e05272 2142## ---------------- ##"
b4c522fa
IB
2143 echo
2144 # The following way of writing the cache mishandles newlines in values,
2145(
2146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in #(
2149 *${as_nl}*)
2150 case $ac_var in #(
2151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2153 esac
2154 case $ac_var in #(
2155 _ | IFS | as_nl) ;; #(
2156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157 *) { eval $ac_var=; unset $ac_var;} ;;
2158 esac ;;
2159 esac
2160 done
2161 (set) 2>&1 |
2162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163 *${as_nl}ac_space=\ *)
2164 sed -n \
2165 "s/'\''/'\''\\\\'\'''\''/g;
2166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2167 ;; #(
2168 *)
2169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170 ;;
2171 esac |
2172 sort
2173)
2174 echo
2175
22e05272 2176 $as_echo "## ----------------- ##
b4c522fa 2177## Output variables. ##
22e05272 2178## ----------------- ##"
b4c522fa
IB
2179 echo
2180 for ac_var in $ac_subst_vars
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
2190 if test -n "$ac_subst_files"; then
22e05272 2191 $as_echo "## ------------------- ##
b4c522fa 2192## File substitutions. ##
22e05272 2193## ------------------- ##"
b4c522fa
IB
2194 echo
2195 for ac_var in $ac_subst_files
2196 do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200 esac
2201 $as_echo "$ac_var='\''$ac_val'\''"
2202 done | sort
2203 echo
2204 fi
2205
2206 if test -s confdefs.h; then
22e05272 2207 $as_echo "## ----------- ##
b4c522fa 2208## confdefs.h. ##
22e05272 2209## ----------- ##"
b4c522fa
IB
2210 echo
2211 cat confdefs.h
2212 echo
2213 fi
2214 test "$ac_signal" != 0 &&
2215 $as_echo "$as_me: caught signal $ac_signal"
2216 $as_echo "$as_me: exit $exit_status"
2217 } >&5
2218 rm -f core *.core core.conftest.* &&
2219 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2220 exit $exit_status
2221' 0
2222for ac_signal in 1 2 13 15; do
2223 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2224done
2225ac_signal=0
2226
2227# confdefs.h avoids OS command line length limits that DEFS can exceed.
2228rm -f -r conftest* confdefs.h
2229
2230$as_echo "/* confdefs.h */" > confdefs.h
2231
2232# Predefined preprocessor variables.
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_NAME "$PACKAGE_NAME"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_VERSION "$PACKAGE_VERSION"
2244_ACEOF
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_STRING "$PACKAGE_STRING"
2248_ACEOF
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_URL "$PACKAGE_URL"
2256_ACEOF
2257
2258
2259# Let the site file select an alternate cache file if it wants to.
2260# Prefer an explicitly selected file to automatically selected ones.
2261ac_site_file1=NONE
2262ac_site_file2=NONE
2263if test -n "$CONFIG_SITE"; then
22e05272
JM
2264 # We do not want a PATH search for config.site.
2265 case $CONFIG_SITE in #((
2266 -*) ac_site_file1=./$CONFIG_SITE;;
2267 */*) ac_site_file1=$CONFIG_SITE;;
2268 *) ac_site_file1=./$CONFIG_SITE;;
2269 esac
b4c522fa
IB
2270elif test "x$prefix" != xNONE; then
2271 ac_site_file1=$prefix/share/config.site
2272 ac_site_file2=$prefix/etc/config.site
2273else
2274 ac_site_file1=$ac_default_prefix/share/config.site
2275 ac_site_file2=$ac_default_prefix/etc/config.site
2276fi
2277for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2278do
2279 test "x$ac_site_file" = xNONE && continue
22e05272 2280 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b4c522fa
IB
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2282$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2283 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2284 . "$ac_site_file" \
2285 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287as_fn_error $? "failed to load site script $ac_site_file
2288See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
2289 fi
2290done
2291
2292if test -r "$cache_file"; then
22e05272
JM
2293 # Some versions of bash will fail to source /dev/null (special files
2294 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2295 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b4c522fa
IB
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297$as_echo "$as_me: loading cache $cache_file" >&6;}
2298 case $cache_file in
2299 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2300 *) . "./$cache_file";;
2301 esac
2302 fi
2303else
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305$as_echo "$as_me: creating cache $cache_file" >&6;}
2306 >$cache_file
2307fi
2308
2309# Check that the precious variables saved in the cache have kept the same
2310# value.
2311ac_cache_corrupted=false
2312for ac_var in $ac_precious_vars; do
2313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2314 eval ac_new_set=\$ac_env_${ac_var}_set
2315 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2316 eval ac_new_val=\$ac_env_${ac_var}_value
2317 case $ac_old_set,$ac_new_set in
2318 set,)
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321 ac_cache_corrupted=: ;;
2322 ,set)
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325 ac_cache_corrupted=: ;;
2326 ,);;
2327 *)
2328 if test "x$ac_old_val" != "x$ac_new_val"; then
2329 # differences in whitespace do not lead to failure.
2330 ac_old_val_w=`echo x $ac_old_val`
2331 ac_new_val_w=`echo x $ac_new_val`
2332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335 ac_cache_corrupted=:
2336 else
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339 eval $ac_var=\$ac_old_val
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2342$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2344$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2345 fi;;
2346 esac
2347 # Pass precious variables to config.status.
2348 if test "$ac_new_set" = set; then
2349 case $ac_new_val in
2350 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 *) ac_arg=$ac_var=$ac_new_val ;;
2352 esac
2353 case " $ac_configure_args " in
2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2355 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2356 esac
2357 fi
2358done
2359if $ac_cache_corrupted; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2364 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b4c522fa
IB
2365fi
2366## -------------------- ##
2367## Main body of script. ##
2368## -------------------- ##
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378
2379
2380
2381ac_config_headers="$ac_config_headers config.h"
2382
2383
2384# Default to --enable-multilib
2385# Check whether --enable-multilib was given.
2386if test "${enable_multilib+set}" = set; then :
2387 enableval=$enable_multilib; case "$enableval" in
2388 yes) multilib=yes ;;
2389 no) multilib=no ;;
22e05272 2390 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
b4c522fa
IB
2391 esac
2392else
2393 multilib=yes
2394fi
2395
2396
2397# We may get other options which we leave undocumented:
2398# --with-target-subdir, --with-multisrctop, --with-multisubdir
2399# See config-ml.in if you want the gory details.
2400
2401if test "$srcdir" = "."; then
2402 if test "$with_target_subdir" != "."; then
2403 multi_basedir="$srcdir/$with_multisrctop../.."
2404 else
2405 multi_basedir="$srcdir/$with_multisrctop.."
2406 fi
2407else
2408 multi_basedir="$srcdir/.."
2409fi
2410
2411
2412# Even if the default multilib is not a cross compilation,
2413# it may be that some of the other multilibs are.
2414if test $cross_compiling = no && test $multilib = yes \
2415 && test "x${with_multisubdir}" != x ; then
2416 cross_compiling=maybe
2417fi
2418
2419ac_config_commands="$ac_config_commands default-1"
2420
2421ac_aux_dir=
2422for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2423 if test -f "$ac_dir/install-sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 break
2427 elif test -f "$ac_dir/install.sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 break
2431 elif test -f "$ac_dir/shtool"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/shtool install -c"
2434 break
2435 fi
b4c522fa
IB
2436done
2437if test -z "$ac_aux_dir"; then
22e05272 2438 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b4c522fa
IB
2439fi
2440
2441# These three variables are undocumented and unsupported,
2442# and are intended to be withdrawn in a future Autoconf release.
2443# They can cause serious problems if a builder's source tree is in a directory
2444# whose full name contains unusual characters.
2445ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2446ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2447ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2448
2449
2450# Make sure we can run config.sub.
2451$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2452 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b4c522fa
IB
2453
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455$as_echo_n "checking build system type... " >&6; }
22e05272 2456if ${ac_cv_build+:} false; then :
b4c522fa
IB
2457 $as_echo_n "(cached) " >&6
2458else
2459 ac_build_alias=$build_alias
2460test "x$ac_build_alias" = x &&
2461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2462test "x$ac_build_alias" = x &&
22e05272 2463 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b4c522fa 2464ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b4c522fa
IB
2466
2467fi
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469$as_echo "$ac_cv_build" >&6; }
2470case $ac_cv_build in
2471*-*-*) ;;
22e05272 2472*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b4c522fa
IB
2473esac
2474build=$ac_cv_build
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_build
2477shift
2478build_cpu=$1
2479build_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483build_os=$*
2484IFS=$ac_save_IFS
2485case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2486
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489$as_echo_n "checking host system type... " >&6; }
22e05272 2490if ${ac_cv_host+:} false; then :
b4c522fa
IB
2491 $as_echo_n "(cached) " >&6
2492else
2493 if test "x$host_alias" = x; then
2494 ac_cv_host=$ac_cv_build
2495else
2496 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b4c522fa
IB
2498fi
2499
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502$as_echo "$ac_cv_host" >&6; }
2503case $ac_cv_host in
2504*-*-*) ;;
22e05272 2505*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b4c522fa
IB
2506esac
2507host=$ac_cv_host
2508ac_save_IFS=$IFS; IFS='-'
2509set x $ac_cv_host
2510shift
2511host_cpu=$1
2512host_vendor=$2
2513shift; shift
2514# Remember, the first character of IFS is used to create $*,
2515# except with old shells:
2516host_os=$*
2517IFS=$ac_save_IFS
2518case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2519
2520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522$as_echo_n "checking target system type... " >&6; }
22e05272 2523if ${ac_cv_target+:} false; then :
b4c522fa
IB
2524 $as_echo_n "(cached) " >&6
2525else
2526 if test "x$target_alias" = x; then
2527 ac_cv_target=$ac_cv_host
2528else
2529 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b4c522fa
IB
2531fi
2532
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535$as_echo "$ac_cv_target" >&6; }
2536case $ac_cv_target in
2537*-*-*) ;;
22e05272 2538*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b4c522fa
IB
2539esac
2540target=$ac_cv_target
2541ac_save_IFS=$IFS; IFS='-'
2542set x $ac_cv_target
2543shift
2544target_cpu=$1
2545target_vendor=$2
2546shift; shift
2547# Remember, the first character of IFS is used to create $*,
2548# except with old shells:
2549target_os=$*
2550IFS=$ac_save_IFS
2551case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2552
2553
2554# The aliases save the names the user supplied, while $host etc.
2555# will get canonicalized.
2556test -n "$target_alias" &&
2557 test "$program_prefix$program_suffix$program_transform_name" = \
2558 NONENONEs,x,x, &&
2559 program_prefix=${target_alias}-
2560
2561
2562target_alias=${target_alias-$target}
2563
2564
2565# 1.11.1: Require that version of automake.
2566# foreign: Don't require README, INSTALL, NEWS, etc.
2567# no-define: Don't define PACKAGE and VERSION.
2568# no-dependencies: Don't generate automatic dependencies.
2569# (because it breaks when using bootstrap-lean, since some of the
2570# headers are gone at "make install" time).
2571# -Wall: Issue all automake warnings.
2572# -Wno-portability: Don't warn about constructs supported by GNU make.
2573# (because GCC requires GNU make anyhow).
22e05272
JM
2574# -Wno-override: Overrides used in testsuite.
2575am__api_version='1.15'
b4c522fa
IB
2576
2577# Find a good install program. We prefer a C program (faster),
2578# so one script is as good as another. But avoid the broken or
2579# incompatible versions:
2580# SysV /etc/install, /usr/sbin/install
2581# SunOS /usr/etc/install
2582# IRIX /sbin/install
2583# AIX /bin/install
2584# AmigaOS /C/install, which installs bootblocks on floppy discs
2585# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2586# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2587# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2588# OS/2's system install, which has a completely different semantic
2589# ./install, which can be erroneously created by make from ./install.sh.
2590# Reject install programs that cannot install multiple files.
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2592$as_echo_n "checking for a BSD-compatible install... " >&6; }
2593if test -z "$INSTALL"; then
22e05272 2594if ${ac_cv_path_install+:} false; then :
b4c522fa
IB
2595 $as_echo_n "(cached) " >&6
2596else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 # Account for people who put trailing slashes in PATH elements.
2603case $as_dir/ in #((
2604 ./ | .// | /[cC]/* | \
2605 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2606 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2607 /usr/ucb/* ) ;;
2608 *)
2609 # OSF1 and SCO ODT 3.0 have their own names for install.
2610 # Don't use installbsd from OSF since it installs stuff as root
2611 # by default.
2612 for ac_prog in ginstall scoinst install; do
2613 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2614 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b4c522fa
IB
2615 if test $ac_prog = install &&
2616 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617 # AIX install. It has an incompatible calling convention.
2618 :
2619 elif test $ac_prog = install &&
2620 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2621 # program-specific install script used by HP pwplus--don't use.
2622 :
2623 else
2624 rm -rf conftest.one conftest.two conftest.dir
2625 echo one > conftest.one
2626 echo two > conftest.two
2627 mkdir conftest.dir
2628 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2629 test -s conftest.one && test -s conftest.two &&
2630 test -s conftest.dir/conftest.one &&
2631 test -s conftest.dir/conftest.two
2632 then
2633 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634 break 3
2635 fi
2636 fi
2637 fi
2638 done
2639 done
2640 ;;
2641esac
2642
2643 done
2644IFS=$as_save_IFS
2645
2646rm -rf conftest.one conftest.two conftest.dir
2647
2648fi
2649 if test "${ac_cv_path_install+set}" = set; then
2650 INSTALL=$ac_cv_path_install
2651 else
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for INSTALL within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 INSTALL=$ac_install_sh
2657 fi
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660$as_echo "$INSTALL" >&6; }
2661
2662# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663# It thinks the first close brace ends the variable substitution.
2664test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665
2666test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667
2668test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671$as_echo_n "checking whether build environment is sane... " >&6; }
b4c522fa
IB
2672# Reject unsafe characters in $srcdir or the absolute working directory
2673# name. Accept space and tab only in the latter.
2674am_lf='
2675'
2676case `pwd` in
2677 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2678 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
b4c522fa
IB
2679esac
2680case $srcdir in
2681 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2682 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
b4c522fa
IB
2683esac
2684
22e05272 2685# Do 'set' in a subshell so we don't clobber the current shell's
b4c522fa
IB
2686# arguments. Must try -L first in case configure is actually a
2687# symlink; some systems play weird games with the mod time of symlinks
2688# (eg FreeBSD returns the mod time of the symlink's containing
2689# directory).
2690if (
22e05272
JM
2691 am_has_slept=no
2692 for am_try in 1 2; do
2693 echo "timestamp, slept: $am_has_slept" > conftest.file
2694 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695 if test "$*" = "X"; then
2696 # -L didn't work.
2697 set X `ls -t "$srcdir/configure" conftest.file`
2698 fi
2699 if test "$*" != "X $srcdir/configure conftest.file" \
2700 && test "$*" != "X conftest.file $srcdir/configure"; then
2701
2702 # If neither matched, then we have a broken ls. This can happen
2703 # if, for instance, CONFIG_SHELL is bash and it inherits a
2704 # broken ls alias from the environment. This has actually
2705 # happened. Such a system could not be considered "sane".
2706 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2707 alias in your environment" "$LINENO" 5
2708 fi
2709 if test "$2" = conftest.file || test $am_try -eq 2; then
2710 break
2711 fi
2712 # Just in case.
2713 sleep 1
2714 am_has_slept=yes
2715 done
b4c522fa
IB
2716 test "$2" = conftest.file
2717 )
2718then
2719 # Ok.
2720 :
2721else
22e05272 2722 as_fn_error $? "newly created file is older than distributed files!
b4c522fa
IB
2723Check your system clock" "$LINENO" 5
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726$as_echo "yes" >&6; }
22e05272
JM
2727# If we didn't sleep, we still need to ensure time stamps of config.status and
2728# generated files are strictly newer.
2729am_sleep_pid=
2730if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2731 ( sleep 1 ) &
2732 am_sleep_pid=$!
2733fi
2734
2735rm -f conftest.file
2736
b4c522fa
IB
2737test "$program_prefix" != NONE &&
2738 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2739# Use a double $ so make ignores it.
2740test "$program_suffix" != NONE &&
2741 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2742# Double any \ or $.
2743# By default was `s,x,x', remove it if useless.
2744ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2745program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2746
22e05272
JM
2747# Expand $ac_aux_dir to an absolute path.
2748am_aux_dir=`cd "$ac_aux_dir" && pwd`
b4c522fa
IB
2749
2750if test x"${MISSING+set}" != xset; then
2751 case $am_aux_dir in
2752 *\ * | *\ *)
2753 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2754 *)
2755 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2756 esac
2757fi
2758# Use eval to expand $SHELL
22e05272
JM
2759if eval "$MISSING --is-lightweight"; then
2760 am_missing_run="$MISSING "
b4c522fa
IB
2761else
2762 am_missing_run=
22e05272
JM
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2764$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
b4c522fa
IB
2765fi
2766
22e05272 2767if test x"${install_sh+set}" != xset; then
b4c522fa
IB
2768 case $am_aux_dir in
2769 *\ * | *\ *)
2770 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2771 *)
2772 install_sh="\${SHELL} $am_aux_dir/install-sh"
2773 esac
2774fi
2775
22e05272
JM
2776# Installed binaries are usually stripped using 'strip' when the user
2777# run "make install-strip". However 'strip' might not be the right
b4c522fa 2778# tool to use in cross-compilation environments, therefore Automake
22e05272 2779# will honor the 'STRIP' environment variable to overrule this program.
b4c522fa
IB
2780if test "$cross_compiling" != no; then
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2783set dummy ${ac_tool_prefix}strip; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2786if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
2787 $as_echo_n "(cached) " >&6
2788else
2789 if test -n "$STRIP"; then
2790 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
2799 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804 done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809STRIP=$ac_cv_prog_STRIP
2810if test -n "$STRIP"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2812$as_echo "$STRIP" >&6; }
2813else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
2816fi
2817
2818
2819fi
2820if test -z "$ac_cv_prog_STRIP"; then
2821 ac_ct_STRIP=$STRIP
2822 # Extract the first word of "strip", so it can be a program name with args.
2823set dummy strip; ac_word=$2
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2826if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
2827 $as_echo_n "(cached) " >&6
2828else
2829 if test -n "$ac_ct_STRIP"; then
2830 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
2839 ac_cv_prog_ac_ct_STRIP="strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
2844 done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2850if test -n "$ac_ct_STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2852$as_echo "$ac_ct_STRIP" >&6; }
2853else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855$as_echo "no" >&6; }
2856fi
2857
2858 if test "x$ac_ct_STRIP" = x; then
2859 STRIP=":"
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867 STRIP=$ac_ct_STRIP
2868 fi
2869else
2870 STRIP="$ac_cv_prog_STRIP"
2871fi
2872
2873fi
2874INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2875
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2877$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2878if test -z "$MKDIR_P"; then
22e05272 2879 if ${ac_cv_path_mkdir+:} false; then :
b4c522fa
IB
2880 $as_echo_n "(cached) " >&6
2881else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_prog in mkdir gmkdir; do
2888 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2889 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
b4c522fa
IB
2890 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2891 'mkdir (GNU coreutils) '* | \
2892 'mkdir (coreutils) '* | \
2893 'mkdir (fileutils) '4.1*)
2894 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2895 break 3;;
2896 esac
2897 done
2898 done
2899 done
2900IFS=$as_save_IFS
2901
2902fi
2903
22e05272 2904 test -d ./--version && rmdir ./--version
b4c522fa
IB
2905 if test "${ac_cv_path_mkdir+set}" = set; then
2906 MKDIR_P="$ac_cv_path_mkdir -p"
2907 else
2908 # As a last resort, use the slow shell script. Don't cache a
2909 # value for MKDIR_P within a source directory, because that will
2910 # break other packages using the cache if that directory is
2911 # removed, or if the value is a relative name.
b4c522fa
IB
2912 MKDIR_P="$ac_install_sh -d"
2913 fi
2914fi
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2916$as_echo "$MKDIR_P" >&6; }
2917
b4c522fa
IB
2918for ac_prog in gawk mawk nawk awk
2919do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921set dummy $ac_prog; ac_word=$2
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2924if ${ac_cv_prog_AWK+:} false; then :
b4c522fa
IB
2925 $as_echo_n "(cached) " >&6
2926else
2927 if test -n "$AWK"; then
2928 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
2937 ac_cv_prog_AWK="$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941done
2942 done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947AWK=$ac_cv_prog_AWK
2948if test -n "$AWK"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2950$as_echo "$AWK" >&6; }
2951else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956
2957 test -n "$AWK" && break
2958done
2959
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2961$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2962set x ${MAKE-make}
2963ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2964if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
2965 $as_echo_n "(cached) " >&6
2966else
2967 cat >conftest.make <<\_ACEOF
2968SHELL = /bin/sh
2969all:
2970 @echo '@@@%%%=$(MAKE)=@@@%%%'
2971_ACEOF
22e05272 2972# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
2973case `${MAKE-make} -f conftest.make 2>/dev/null` in
2974 *@@@%%%=?*=@@@%%%*)
2975 eval ac_cv_prog_make_${ac_make}_set=yes;;
2976 *)
2977 eval ac_cv_prog_make_${ac_make}_set=no;;
2978esac
2979rm -f conftest.make
2980fi
2981if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983$as_echo "yes" >&6; }
2984 SET_MAKE=
2985else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988 SET_MAKE="MAKE=${MAKE-make}"
2989fi
2990
2991rm -rf .tst 2>/dev/null
2992mkdir .tst 2>/dev/null
2993if test -d .tst; then
2994 am__leading_dot=.
2995else
2996 am__leading_dot=_
2997fi
2998rmdir .tst 2>/dev/null
2999
22e05272
JM
3000# Check whether --enable-silent-rules was given.
3001if test "${enable_silent_rules+set}" = set; then :
3002 enableval=$enable_silent_rules;
3003fi
3004
3005case $enable_silent_rules in # (((
3006 yes) AM_DEFAULT_VERBOSITY=0;;
3007 no) AM_DEFAULT_VERBOSITY=1;;
3008 *) AM_DEFAULT_VERBOSITY=1;;
3009esac
3010am_make=${MAKE-make}
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3012$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3013if ${am_cv_make_support_nested_variables+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015else
3016 if $as_echo 'TRUE=$(BAR$(V))
3017BAR0=false
3018BAR1=true
3019V=1
3020am__doit:
3021 @$(TRUE)
3022.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3023 am_cv_make_support_nested_variables=yes
3024else
3025 am_cv_make_support_nested_variables=no
3026fi
3027fi
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3029$as_echo "$am_cv_make_support_nested_variables" >&6; }
3030if test $am_cv_make_support_nested_variables = yes; then
3031 AM_V='$(V)'
3032 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3033else
3034 AM_V=$AM_DEFAULT_VERBOSITY
3035 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3036fi
3037AM_BACKSLASH='\'
3038
b4c522fa
IB
3039if test "`cd $srcdir && pwd`" != "`pwd`"; then
3040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3041 # is not polluted with repeated "-I."
3042 am__isrc=' -I$(srcdir)'
3043 # test to see if srcdir already configured
3044 if test -f $srcdir/config.status; then
22e05272 3045 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
b4c522fa
IB
3046 fi
3047fi
3048
3049# test whether we have cygpath
3050if test -z "$CYGPATH_W"; then
3051 if (cygpath --version) >/dev/null 2>/dev/null; then
3052 CYGPATH_W='cygpath -w'
3053 else
3054 CYGPATH_W=echo
3055 fi
3056fi
3057
3058
3059# Define the identity of the package.
3060 PACKAGE='libphobos'
3061 VERSION='version-unused'
3062
3063
3064# Some tools Automake needs.
3065
3066ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3067
3068
3069AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3070
3071
3072AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3073
3074
3075AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3076
3077
3078MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3079
22e05272
JM
3080# For better backward compatibility. To be removed once Automake 1.9.x
3081# dies out for good. For more background, see:
3082# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3083# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3084mkdir_p='$(MKDIR_P)'
3085
3086# We need awk for the "check" target (and possibly the TAP driver). The
3087# system "awk" is bad on some platforms.
b4c522fa
IB
3088# Always define AMTAR for backward compatibility. Yes, it's still used
3089# in the wild :-( We should find a proper way to deprecate it ...
3090AMTAR='$${TAR-tar}'
3091
22e05272
JM
3092
3093# We'll loop over all known methods to create a tar archive until one works.
3094_am_tools='gnutar pax cpio none'
3095
b4c522fa
IB
3096am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3097
3098
3099
3100
3101
3102
22e05272
JM
3103# POSIX will say in a future version that running "rm -f" with no argument
3104# is OK; and we want to be able to make that assumption in our Makefile
3105# recipes. So use an aggressive probe to check that the usage we want is
3106# actually supported "in the wild" to an acceptable degree.
3107# See automake bug#10828.
3108# To make any issue more visible, cause the running configure to be aborted
3109# by default if the 'rm' program in use doesn't match our expectations; the
3110# user can still override this though.
3111if rm -f && rm -fr && rm -rf; then : OK; else
3112 cat >&2 <<'END'
3113Oops!
3114
3115Your 'rm' program seems unable to run without file operands specified
3116on the command line, even when the '-f' option is present. This is contrary
3117to the behaviour of most rm programs out there, and not conforming with
3118the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3119
3120Please tell bug-automake@gnu.org about your system, including the value
3121of your $PATH and any error possibly output before this message. This
3122can help us improve future automake versions.
3123
3124END
3125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3126 echo 'Configuration will proceed anyway, since you have set the' >&2
3127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3128 echo >&2
3129 else
3130 cat >&2 <<'END'
3131Aborting the configuration process, to ensure you take notice of the issue.
3132
3133You can download and install GNU coreutils to get an 'rm' implementation
3134that behaves properly: <http://www.gnu.org/software/coreutils/>.
3135
3136If you want to complete the configuration process using your problematic
3137'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3138to "yes", and re-run configure.
3139
3140END
3141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3142 fi
3143fi
3144
3145
b4c522fa
IB
3146
3147
3148ac_ext=c
3149ac_cpp='$CPP $CPPFLAGS'
3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3158if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3159 $as_echo_n "(cached) " >&6
3160else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175done
3176 done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191fi
3192if test -z "$ac_cv_prog_CC"; then
3193 ac_ct_CC=$CC
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195set dummy gcc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3198if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
3199 $as_echo_n "(cached) " >&6
3200else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3211 ac_cv_prog_ac_ct_CC="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216 done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224$as_echo "$ac_ct_CC" >&6; }
3225else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234yes:)
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237ac_tool_warned=yes ;;
3238esac
3239 CC=$ac_ct_CC
3240 fi
3241else
3242 CC="$ac_cv_prog_CC"
3243fi
3244
3245if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248set dummy ${ac_tool_prefix}cc; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3251if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3252 $as_echo_n "(cached) " >&6
3253else
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3264 ac_cv_prog_CC="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268done
3269 done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284 fi
3285fi
3286if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288set dummy cc; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3291if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3292 $as_echo_n "(cached) " >&6
3293else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296else
3297 ac_prog_rejected=no
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected=yes
3307 continue
3308 fi
3309 ac_cv_prog_CC="cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313done
3314 done
3315IFS=$as_save_IFS
3316
3317if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3320 shift
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3325 shift
3326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 fi
3328fi
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341fi
3342if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog in cl.exe
3345 do
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3350if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
3351 $as_echo_n "(cached) " >&6
3352else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367done
3368 done
3369IFS=$as_save_IFS
3370
3371fi
3372fi
3373CC=$ac_cv_prog_CC
3374if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376$as_echo "$CC" >&6; }
3377else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380fi
3381
3382
3383 test -n "$CC" && break
3384 done
3385fi
3386if test -z "$CC"; then
3387 ac_ct_CC=$CC
3388 for ac_prog in cl.exe
3389do
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391set dummy $ac_prog; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3394if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
3395 $as_echo_n "(cached) " >&6
3396else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411done
3412 done
3413IFS=$as_save_IFS
3414
3415fi
3416fi
3417ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420$as_echo "$ac_ct_CC" >&6; }
3421else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427 test -n "$ac_ct_CC" && break
3428done
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434yes:)
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437ac_tool_warned=yes ;;
3438esac
3439 CC=$ac_ct_CC
3440 fi
3441fi
3442
3443fi
3444
3445
3446test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3448as_fn_error $? "no acceptable C compiler found in \$PATH
3449See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3450
3451# Provide some information about the compiler.
3452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453set X $ac_compile
3454ac_compiler=$2
3455for ac_option in --version -v -V -qversion; do
3456 { { ac_try="$ac_compiler $ac_option >&5"
3457case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 ac_status=$?
3465 if test -s conftest.err; then
3466 sed '10a\
3467... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
b4c522fa 3470 fi
22e05272 3471 rm -f conftest.er1 conftest.err
b4c522fa
IB
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474done
3475
3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
3478
3479int
3480main ()
3481{
3482
3483 ;
3484 return 0;
3485}
3486_ACEOF
3487ac_clean_files_save=$ac_clean_files
22e05272 3488ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b4c522fa
IB
3489# Try to create an executable without -o first, disregard a.out.
3490# It will help us diagnose broken compilers, and finding out an intuition
3491# of exeext.
22e05272
JM
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3493$as_echo_n "checking whether the C compiler works... " >&6; }
b4c522fa
IB
3494ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495
3496# The possible output files:
3497ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498
3499ac_rmfiles=
3500for ac_file in $ac_files
3501do
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506done
3507rm -f $ac_rmfiles
3508
3509if { { ac_try="$ac_link_default"
3510case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522# in a Makefile. We should not override ac_cv_exeext if it was cached,
3523# so that the user can short-circuit this test for compilers unknown to
3524# Autoconf.
3525for ac_file in $ac_files ''
3526do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530 ;;
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 fi
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3546 * )
3547 break;;
3548 esac
3549done
3550test "$ac_cv_exeext" = no && ac_cv_exeext=
3551
3552else
3553 ac_file=''
3554fi
b4c522fa 3555if test -z "$ac_file"; then :
22e05272
JM
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558$as_echo "$as_me: failed program was:" >&5
b4c522fa
IB
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3563as_fn_error 77 "C compiler cannot create executables
3564See \`config.log' for more details" "$LINENO" 5; }
3565else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3567$as_echo "yes" >&6; }
b4c522fa 3568fi
22e05272
JM
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3570$as_echo_n "checking for C compiler default output file name... " >&6; }
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572$as_echo "$ac_file" >&6; }
b4c522fa
IB
3573ac_exeext=$ac_cv_exeext
3574
22e05272 3575rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b4c522fa 3576ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3578$as_echo_n "checking for suffix of executables... " >&6; }
3579if { { ac_try="$ac_link"
3580case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3591# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3592# work properly (i.e., refer to `conftest.exe'), while it won't with
3593# `rm'.
3594for ac_file in conftest.exe conftest conftest.*; do
3595 test -f "$ac_file" || continue
3596 case $ac_file in
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 break;;
3600 * ) break;;
3601 esac
3602done
3603else
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3606as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3607See \`config.log' for more details" "$LINENO" 5; }
b4c522fa 3608fi
22e05272 3609rm -f conftest conftest$ac_cv_exeext
b4c522fa
IB
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3611$as_echo "$ac_cv_exeext" >&6; }
3612
3613rm -f conftest.$ac_ext
3614EXEEXT=$ac_cv_exeext
3615ac_exeext=$EXEEXT
22e05272
JM
3616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h. */
3618#include <stdio.h>
3619int
3620main ()
3621{
3622FILE *f = fopen ("conftest.out", "w");
3623 return ferror (f) || fclose (f) != 0;
3624
3625 ;
3626 return 0;
3627}
3628_ACEOF
3629ac_clean_files="$ac_clean_files conftest.out"
3630# Check that the compiler produces executables we can run. If not, either
3631# the compiler is broken, or we cross compile.
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633$as_echo_n "checking whether we are cross compiling... " >&6; }
3634if test "$cross_compiling" != yes; then
3635 { { ac_try="$ac_link"
3636case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639esac
3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641$as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_link") 2>&5
3643 ac_status=$?
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }
3646 if { ac_try='./conftest$ac_cv_exeext'
3647 { { case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652$as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_try") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; }; then
3657 cross_compiling=no
3658 else
3659 if test "$cross_compiling" = maybe; then
3660 cross_compiling=yes
3661 else
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664as_fn_error $? "cannot run C compiled programs.
3665If you meant to cross compile, use \`--host'.
3666See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668 fi
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3671$as_echo "$cross_compiling" >&6; }
3672
3673rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3674ac_clean_files=$ac_clean_files_save
b4c522fa
IB
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3676$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3677if ${ac_cv_objext+:} false; then :
b4c522fa
IB
3678 $as_echo_n "(cached) " >&6
3679else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691rm -f conftest.o conftest.obj
3692if { { ac_try="$ac_compile"
3693case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698$as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_compile") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; then :
3703 for ac_file in conftest.o conftest.obj conftest.*; do
3704 test -f "$ac_file" || continue;
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3708 break;;
3709 esac
3710done
3711else
3712 $as_echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3717as_fn_error $? "cannot compute suffix of object files: cannot compile
3718See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
3719fi
3720rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3723$as_echo "$ac_cv_objext" >&6; }
3724OBJEXT=$ac_cv_objext
3725ac_objext=$OBJEXT
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3727$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3728if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
3729 $as_echo_n "(cached) " >&6
3730else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h. */
3733
3734int
3735main ()
3736{
3737#ifndef __GNUC__
3738 choke me
3739#endif
3740
3741 ;
3742 return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_compiler_gnu=yes
3747else
3748 ac_compiler_gnu=no
3749fi
3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3755$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3756if test $ac_compiler_gnu = yes; then
3757 GCC=yes
3758else
3759 GCC=
3760fi
3761ac_test_CFLAGS=${CFLAGS+set}
3762ac_save_CFLAGS=$CFLAGS
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3764$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3765if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
3766 $as_echo_n "(cached) " >&6
3767else
3768 ac_save_c_werror_flag=$ac_c_werror_flag
3769 ac_c_werror_flag=yes
3770 ac_cv_prog_cc_g=no
3771 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
3785else
3786 CFLAGS=""
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799
3800else
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3802 CFLAGS="-g"
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
3805
3806int
3807main ()
3808{
3809
3810 ;
3811 return 0;
3812}
3813_ACEOF
3814if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_g=yes
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818fi
3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820fi
3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_c_werror_flag=$ac_save_c_werror_flag
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3825$as_echo "$ac_cv_prog_cc_g" >&6; }
3826if test "$ac_test_CFLAGS" = set; then
3827 CFLAGS=$ac_save_CFLAGS
3828elif test $ac_cv_prog_cc_g = yes; then
3829 if test "$GCC" = yes; then
3830 CFLAGS="-g -O2"
3831 else
3832 CFLAGS="-g"
3833 fi
3834else
3835 if test "$GCC" = yes; then
3836 CFLAGS="-O2"
3837 else
3838 CFLAGS=
3839 fi
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3842$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3843if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
3844 $as_echo_n "(cached) " >&6
3845else
3846 ac_cv_prog_cc_c89=no
3847ac_save_CC=$CC
3848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h. */
3850#include <stdarg.h>
3851#include <stdio.h>
22e05272 3852struct stat;
b4c522fa
IB
3853/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3854struct buf { int x; };
3855FILE * (*rcsopen) (struct buf *, struct stat *, int);
3856static char *e (p, i)
3857 char **p;
3858 int i;
3859{
3860 return p[i];
3861}
3862static char *f (char * (*g) (char **, int), char **p, ...)
3863{
3864 char *s;
3865 va_list v;
3866 va_start (v,p);
3867 s = g (p, va_arg (v,int));
3868 va_end (v);
3869 return s;
3870}
3871
3872/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3873 function prototypes and stuff, but not '\xHH' hex character constants.
3874 These don't provoke an error unfortunately, instead are silently treated
3875 as 'x'. The following induces an error, until -std is added to get
3876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3877 array size at least. It's necessary to write '\x00'==0 to get something
3878 that's true only with -std. */
3879int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3880
3881/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3882 inside strings and character constants. */
3883#define FOO(x) 'x'
3884int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3885
3886int test (int i, double x);
3887struct s1 {int (*f) (int a);};
3888struct s2 {int (*f) (double a);};
3889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3890int argc;
3891char **argv;
3892int
3893main ()
3894{
3895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3902do
3903 CC="$ac_save_CC $ac_arg"
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_c89=$ac_arg
3906fi
3907rm -f core conftest.err conftest.$ac_objext
3908 test "x$ac_cv_prog_cc_c89" != "xno" && break
3909done
3910rm -f conftest.$ac_ext
3911CC=$ac_save_CC
3912
3913fi
3914# AC_CACHE_VAL
3915case "x$ac_cv_prog_cc_c89" in
3916 x)
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918$as_echo "none needed" >&6; } ;;
3919 xno)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921$as_echo "unsupported" >&6; } ;;
3922 *)
3923 CC="$CC $ac_cv_prog_cc_c89"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3925$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926esac
3927if test "x$ac_cv_prog_cc_c89" != xno; then :
3928
3929fi
3930
3931ac_ext=c
3932ac_cpp='$CPP $CPPFLAGS'
3933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
22e05272
JM
3937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3943$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3944if ${am_cv_prog_cc_c_o+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946else
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h. */
3949
3950int
3951main ()
3952{
3953
3954 ;
3955 return 0;
3956}
3957_ACEOF
3958 # Make sure it works both with $CC and with simple cc.
3959 # Following AC_PROG_CC_C_O, we do the test twice because some
3960 # compilers refuse to overwrite an existing .o file with -o,
3961 # though they will create one.
3962 am_cv_prog_cc_c_o=yes
3963 for am_i in 1 2; do
3964 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3965 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } \
3969 && test -f conftest2.$ac_objext; then
3970 : OK
3971 else
3972 am_cv_prog_cc_c_o=no
3973 break
3974 fi
3975 done
3976 rm -f core conftest*
3977 unset am_i
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3980$as_echo "$am_cv_prog_cc_c_o" >&6; }
3981if test "$am_cv_prog_cc_c_o" != yes; then
3982 # Losing compiler, so override with the script.
3983 # FIXME: It is wrong to rewrite CC.
3984 # But if we don't then we get into trouble of one sort or another.
3985 # A longer-term fix would be to have automake use am__CC in this case,
3986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3987 CC="$am_aux_dir/compile $CC"
3988fi
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995
b4c522fa
IB
3996# By default we simply use the C compiler to build assembly code.
3997
3998test "${CCAS+set}" = set || CCAS=$CC
3999test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4000
4001
4002
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008if test -n "$ac_tool_prefix"; then
4009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4010set dummy ${ac_tool_prefix}gcc; ac_word=$2
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4013if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4014 $as_echo_n "(cached) " >&6
4015else
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030done
4031 done
4032IFS=$as_save_IFS
4033
4034fi
4035fi
4036CC=$ac_cv_prog_CC
4037if test -n "$CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039$as_echo "$CC" >&6; }
4040else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042$as_echo "no" >&6; }
4043fi
4044
4045
4046fi
4047if test -z "$ac_cv_prog_CC"; then
4048 ac_ct_CC=$CC
4049 # Extract the first word of "gcc", so it can be a program name with args.
4050set dummy gcc; ac_word=$2
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4053if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4054 $as_echo_n "(cached) " >&6
4055else
4056 if test -n "$ac_ct_CC"; then
4057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4058else
4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4066 ac_cv_prog_ac_ct_CC="gcc"
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070done
4071 done
4072IFS=$as_save_IFS
4073
4074fi
4075fi
4076ac_ct_CC=$ac_cv_prog_ac_ct_CC
4077if test -n "$ac_ct_CC"; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4079$as_echo "$ac_ct_CC" >&6; }
4080else
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082$as_echo "no" >&6; }
4083fi
4084
4085 if test "x$ac_ct_CC" = x; then
4086 CC=""
4087 else
4088 case $cross_compiling:$ac_tool_warned in
4089yes:)
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4092ac_tool_warned=yes ;;
4093esac
4094 CC=$ac_ct_CC
4095 fi
4096else
4097 CC="$ac_cv_prog_CC"
4098fi
4099
4100if test -z "$CC"; then
4101 if test -n "$ac_tool_prefix"; then
4102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4103set dummy ${ac_tool_prefix}cc; ac_word=$2
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4106if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4107 $as_echo_n "(cached) " >&6
4108else
4109 if test -n "$CC"; then
4110 ac_cv_prog_CC="$CC" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4119 ac_cv_prog_CC="${ac_tool_prefix}cc"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123done
4124 done
4125IFS=$as_save_IFS
4126
4127fi
4128fi
4129CC=$ac_cv_prog_CC
4130if test -n "$CC"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132$as_echo "$CC" >&6; }
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136fi
4137
4138
4139 fi
4140fi
4141if test -z "$CC"; then
4142 # Extract the first word of "cc", so it can be a program name with args.
4143set dummy cc; ac_word=$2
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4146if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4147 $as_echo_n "(cached) " >&6
4148else
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151else
4152 ac_prog_rejected=no
4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4161 ac_prog_rejected=yes
4162 continue
4163 fi
4164 ac_cv_prog_CC="cc"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168done
4169 done
4170IFS=$as_save_IFS
4171
4172if test $ac_prog_rejected = yes; then
4173 # We found a bogon in the path, so make sure we never use it.
4174 set dummy $ac_cv_prog_CC
4175 shift
4176 if test $# != 0; then
4177 # We chose a different compiler from the bogus one.
4178 # However, it has the same basename, so the bogon will be chosen
4179 # first if we set CC to just the basename; use the full file name.
4180 shift
4181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4182 fi
4183fi
4184fi
4185fi
4186CC=$ac_cv_prog_CC
4187if test -n "$CC"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4189$as_echo "$CC" >&6; }
4190else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192$as_echo "no" >&6; }
4193fi
4194
4195
4196fi
4197if test -z "$CC"; then
4198 if test -n "$ac_tool_prefix"; then
4199 for ac_prog in cl.exe
4200 do
4201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4205if ${ac_cv_prog_CC+:} false; then :
b4c522fa
IB
4206 $as_echo_n "(cached) " >&6
4207else
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4210else
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222done
4223 done
4224IFS=$as_save_IFS
4225
4226fi
4227fi
4228CC=$ac_cv_prog_CC
4229if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231$as_echo "$CC" >&6; }
4232else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
4235fi
4236
4237
4238 test -n "$CC" && break
4239 done
4240fi
4241if test -z "$CC"; then
4242 ac_ct_CC=$CC
4243 for ac_prog in cl.exe
4244do
4245 # Extract the first word of "$ac_prog", so it can be a program name with args.
4246set dummy $ac_prog; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4249if ${ac_cv_prog_ac_ct_CC+:} false; then :
b4c522fa
IB
4250 $as_echo_n "(cached) " >&6
4251else
4252 if test -n "$ac_ct_CC"; then
4253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4254else
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4262 ac_cv_prog_ac_ct_CC="$ac_prog"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266done
4267 done
4268IFS=$as_save_IFS
4269
4270fi
4271fi
4272ac_ct_CC=$ac_cv_prog_ac_ct_CC
4273if test -n "$ac_ct_CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4275$as_echo "$ac_ct_CC" >&6; }
4276else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
4279fi
4280
4281
4282 test -n "$ac_ct_CC" && break
4283done
4284
4285 if test "x$ac_ct_CC" = x; then
4286 CC=""
4287 else
4288 case $cross_compiling:$ac_tool_warned in
4289yes:)
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292ac_tool_warned=yes ;;
4293esac
4294 CC=$ac_ct_CC
4295 fi
4296fi
4297
4298fi
4299
4300
4301test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4303as_fn_error $? "no acceptable C compiler found in \$PATH
4304See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
4305
4306# Provide some information about the compiler.
4307$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4308set X $ac_compile
4309ac_compiler=$2
4310for ac_option in --version -v -V -qversion; do
4311 { { ac_try="$ac_compiler $ac_option >&5"
4312case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317$as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4319 ac_status=$?
4320 if test -s conftest.err; then
4321 sed '10a\
4322... rest of stderr output deleted ...
4323 10q' conftest.err >conftest.er1
4324 cat conftest.er1 >&5
b4c522fa 4325 fi
22e05272 4326 rm -f conftest.er1 conftest.err
b4c522fa
IB
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4329done
4330
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4332$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4333if ${ac_cv_c_compiler_gnu+:} false; then :
b4c522fa
IB
4334 $as_echo_n "(cached) " >&6
4335else
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h. */
4338
4339int
4340main ()
4341{
4342#ifndef __GNUC__
4343 choke me
4344#endif
4345
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350if ac_fn_c_try_compile "$LINENO"; then :
4351 ac_compiler_gnu=yes
4352else
4353 ac_compiler_gnu=no
4354fi
4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356ac_cv_c_compiler_gnu=$ac_compiler_gnu
4357
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4360$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4361if test $ac_compiler_gnu = yes; then
4362 GCC=yes
4363else
4364 GCC=
4365fi
4366ac_test_CFLAGS=${CFLAGS+set}
4367ac_save_CFLAGS=$CFLAGS
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4369$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4370if ${ac_cv_prog_cc_g+:} false; then :
b4c522fa
IB
4371 $as_echo_n "(cached) " >&6
4372else
4373 ac_save_c_werror_flag=$ac_c_werror_flag
4374 ac_c_werror_flag=yes
4375 ac_cv_prog_cc_g=no
4376 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
4390else
4391 CFLAGS=""
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
4394
4395int
4396main ()
4397{
4398
4399 ;
4400 return 0;
4401}
4402_ACEOF
4403if ac_fn_c_try_compile "$LINENO"; then :
4404
4405else
4406 ac_c_werror_flag=$ac_save_c_werror_flag
4407 CFLAGS="-g"
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410
4411int
4412main ()
4413{
4414
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_cv_prog_cc_g=yes
4421fi
4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425fi
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 ac_c_werror_flag=$ac_save_c_werror_flag
4428fi
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4430$as_echo "$ac_cv_prog_cc_g" >&6; }
4431if test "$ac_test_CFLAGS" = set; then
4432 CFLAGS=$ac_save_CFLAGS
4433elif test $ac_cv_prog_cc_g = yes; then
4434 if test "$GCC" = yes; then
4435 CFLAGS="-g -O2"
4436 else
4437 CFLAGS="-g"
4438 fi
4439else
4440 if test "$GCC" = yes; then
4441 CFLAGS="-O2"
4442 else
4443 CFLAGS=
4444 fi
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4447$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4448if ${ac_cv_prog_cc_c89+:} false; then :
b4c522fa
IB
4449 $as_echo_n "(cached) " >&6
4450else
4451 ac_cv_prog_cc_c89=no
4452ac_save_CC=$CC
4453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h. */
4455#include <stdarg.h>
4456#include <stdio.h>
22e05272 4457struct stat;
b4c522fa
IB
4458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4459struct buf { int x; };
4460FILE * (*rcsopen) (struct buf *, struct stat *, int);
4461static char *e (p, i)
4462 char **p;
4463 int i;
4464{
4465 return p[i];
4466}
4467static char *f (char * (*g) (char **, int), char **p, ...)
4468{
4469 char *s;
4470 va_list v;
4471 va_start (v,p);
4472 s = g (p, va_arg (v,int));
4473 va_end (v);
4474 return s;
4475}
4476
4477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4478 function prototypes and stuff, but not '\xHH' hex character constants.
4479 These don't provoke an error unfortunately, instead are silently treated
4480 as 'x'. The following induces an error, until -std is added to get
4481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4482 array size at least. It's necessary to write '\x00'==0 to get something
4483 that's true only with -std. */
4484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4485
4486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4487 inside strings and character constants. */
4488#define FOO(x) 'x'
4489int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4490
4491int test (int i, double x);
4492struct s1 {int (*f) (int a);};
4493struct s2 {int (*f) (double a);};
4494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4495int argc;
4496char **argv;
4497int
4498main ()
4499{
4500return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4507do
4508 CC="$ac_save_CC $ac_arg"
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_prog_cc_c89=$ac_arg
4511fi
4512rm -f core conftest.err conftest.$ac_objext
4513 test "x$ac_cv_prog_cc_c89" != "xno" && break
4514done
4515rm -f conftest.$ac_ext
4516CC=$ac_save_CC
4517
4518fi
4519# AC_CACHE_VAL
4520case "x$ac_cv_prog_cc_c89" in
4521 x)
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523$as_echo "none needed" >&6; } ;;
4524 xno)
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526$as_echo "unsupported" >&6; } ;;
4527 *)
4528 CC="$CC $ac_cv_prog_cc_c89"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4530$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4531esac
4532if test "x$ac_cv_prog_cc_c89" != xno; then :
4533
4534fi
4535
4536ac_ext=c
4537ac_cpp='$CPP $CPPFLAGS'
4538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
22e05272
JM
4542ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4548$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4549if ${am_cv_prog_cc_c_o+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h. */
4554
4555int
4556main ()
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563 # Make sure it works both with $CC and with simple cc.
4564 # Following AC_PROG_CC_C_O, we do the test twice because some
4565 # compilers refuse to overwrite an existing .o file with -o,
4566 # though they will create one.
4567 am_cv_prog_cc_c_o=yes
4568 for am_i in 1 2; do
4569 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4570 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } \
4574 && test -f conftest2.$ac_objext; then
4575 : OK
4576 else
4577 am_cv_prog_cc_c_o=no
4578 break
4579 fi
4580 done
4581 rm -f core conftest*
4582 unset am_i
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4585$as_echo "$am_cv_prog_cc_c_o" >&6; }
4586if test "$am_cv_prog_cc_c_o" != yes; then
4587 # Losing compiler, so override with the script.
4588 # FIXME: It is wrong to rewrite CC.
4589 # But if we don't then we get into trouble of one sort or another.
4590 # A longer-term fix would be to have automake use am__CC in this case,
4591 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4592 CC="$am_aux_dir/compile $CC"
4593fi
4594ac_ext=c
4595ac_cpp='$CPP $CPPFLAGS'
4596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599
4600
b4c522fa
IB
4601ac_ext=d
4602ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4603ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=yes
4605if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4607set dummy ${ac_tool_prefix}gdc; ac_word=$2
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4610if ${ac_cv_prog_GDC+:} false; then :
b4c522fa
IB
4611 $as_echo_n "(cached) " >&6
4612else
4613 if test -n "$GDC"; then
4614 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4623 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628 done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633GDC=$ac_cv_prog_GDC
4634if test -n "$GDC"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4636$as_echo "$GDC" >&6; }
4637else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641
4642
4643fi
4644if test -z "$ac_cv_prog_GDC"; then
4645 ac_ct_GDC=$GDC
4646 # Extract the first word of "gdc", so it can be a program name with args.
4647set dummy gdc; ac_word=$2
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4650if ${ac_cv_prog_ac_ct_GDC+:} false; then :
b4c522fa
IB
4651 $as_echo_n "(cached) " >&6
4652else
4653 if test -n "$ac_ct_GDC"; then
4654 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4663 ac_cv_prog_ac_ct_GDC="gdc"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668 done
4669IFS=$as_save_IFS
4670
4671fi
4672fi
4673ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4674if test -n "$ac_ct_GDC"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4676$as_echo "$ac_ct_GDC" >&6; }
4677else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
4681
4682 if test "x$ac_ct_GDC" = x; then
4683 GDC=""
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686yes:)
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689ac_tool_warned=yes ;;
4690esac
4691 GDC=$ac_ct_GDC
4692 fi
4693else
4694 GDC="$ac_cv_prog_GDC"
4695fi
4696
4697if test -z "$GDC"; then
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4700set dummy ${ac_tool_prefix}gdc; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4703if ${ac_cv_prog_GDC+:} false; then :
b4c522fa
IB
4704 $as_echo_n "(cached) " >&6
4705else
4706 if test -n "$GDC"; then
4707 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4716 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721 done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726GDC=$ac_cv_prog_GDC
4727if test -n "$GDC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4729$as_echo "$GDC" >&6; }
4730else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736 fi
4737fi
4738if test -z "$GDC"; then
4739 # Extract the first word of "gdc", so it can be a program name with args.
4740set dummy gdc; ac_word=$2
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4743if ${ac_cv_prog_GDC+:} false; then :
b4c522fa
IB
4744 $as_echo_n "(cached) " >&6
4745else
4746 if test -n "$GDC"; then
4747 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4748else
4749 ac_prog_rejected=no
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4757 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4758 ac_prog_rejected=yes
4759 continue
4760 fi
4761 ac_cv_prog_GDC="gdc"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765done
4766 done
4767IFS=$as_save_IFS
4768
4769if test $ac_prog_rejected = yes; then
4770 # We found a bogon in the path, so make sure we never use it.
4771 set dummy $ac_cv_prog_GDC
4772 shift
4773 if test $# != 0; then
4774 # We chose a different compiler from the bogus one.
4775 # However, it has the same basename, so the bogon will be chosen
4776 # first if we set GDC to just the basename; use the full file name.
4777 shift
4778 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4779 fi
4780fi
4781fi
4782fi
4783GDC=$ac_cv_prog_GDC
4784if test -n "$GDC"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4786$as_echo "$GDC" >&6; }
4787else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789$as_echo "no" >&6; }
4790fi
4791
4792
4793fi
4794
4795
4796# Provide some information about the compiler.
4797$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4798set X $ac_compile
4799ac_compiler=$2
4800{ { ac_try="$ac_compiler --version >&5"
4801case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804esac
4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806$as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_compiler --version >&5") 2>conftest.err
4808 ac_status=$?
4809 if test -s conftest.err; then
4810 sed '10a\
4811... rest of stderr output deleted ...
4812 10q' conftest.err >conftest.er1
4813 cat conftest.er1 >&5
b4c522fa 4814 fi
22e05272 4815 rm -f conftest.er1 conftest.err
b4c522fa
IB
4816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4817 test $ac_status = 0; }
4818ac_ext=c
4819ac_cpp='$CPP $CPPFLAGS'
4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4826$as_echo_n "checking for absolute libphobos source path... " >&6; }
22e05272 4827if ${phobos_cv_abs_srcdir+:} false; then :
b4c522fa
IB
4828 $as_echo_n "(cached) " >&6
4829else
4830 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4833$as_echo "$phobos_cv_abs_srcdir" >&6; }
4834 if test -d "$phobos_cv_abs_srcdir"; then :
4835
4836else
22e05272 4837 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
b4c522fa
IB
4838fi
4839
4840
4841
4842
4843 gdc_save_DFLAGS=$GDCFLAGS
4844 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4845
4846 ac_ext=d
4847ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4848ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=yes
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4852$as_echo_n "checking If $GDC can compile D sources... " >&6; }
4853 cat > conftest.$ac_ext <<_ACEOF
4854module mod;
4855
4856
4857extern(C) int main() {
4858 return 0;
4859}
4860_ACEOF
4861if ac_fn_d_try_compile "$LINENO"; then :
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863$as_echo "yes" >&6; }
4864else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
22e05272 4867 as_fn_error $? "can't compile D sources!" "$LINENO" 5
b4c522fa
IB
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876
4877 GDCFLAGS=$gdc_save_DFLAGS
4878
4879
4880
4881
4882
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4885$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4886 # Check whether --enable-maintainer-mode was given.
4887if test "${enable_maintainer_mode+set}" = set; then :
4888 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4889else
4890 USE_MAINTAINER_MODE=no
4891fi
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4894$as_echo "$USE_MAINTAINER_MODE" >&6; }
4895 if test $USE_MAINTAINER_MODE = yes; then
4896 MAINTAINER_MODE_TRUE=
4897 MAINTAINER_MODE_FALSE='#'
4898else
4899 MAINTAINER_MODE_TRUE='#'
4900 MAINTAINER_MODE_FALSE=
4901fi
4902
4903 MAINT=$MAINTAINER_MODE_TRUE
4904
4905
4906if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4908set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4911if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
4912 $as_echo_n "(cached) " >&6
4913else
4914 if test -n "$RANLIB"; then
4915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4916else
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928done
4929 done
4930IFS=$as_save_IFS
4931
4932fi
4933fi
4934RANLIB=$ac_cv_prog_RANLIB
4935if test -n "$RANLIB"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4937$as_echo "$RANLIB" >&6; }
4938else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940$as_echo "no" >&6; }
4941fi
4942
4943
4944fi
4945if test -z "$ac_cv_prog_RANLIB"; then
4946 ac_ct_RANLIB=$RANLIB
4947 # Extract the first word of "ranlib", so it can be a program name with args.
4948set dummy ranlib; ac_word=$2
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4951if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
4952 $as_echo_n "(cached) " >&6
4953else
4954 if test -n "$ac_ct_RANLIB"; then
4955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
4964 ac_cv_prog_ac_ct_RANLIB="ranlib"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969 done
4970IFS=$as_save_IFS
4971
4972fi
4973fi
4974ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4975if test -n "$ac_ct_RANLIB"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4977$as_echo "$ac_ct_RANLIB" >&6; }
4978else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
4981fi
4982
4983 if test "x$ac_ct_RANLIB" = x; then
4984 RANLIB=":"
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987yes:)
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990ac_tool_warned=yes ;;
4991esac
4992 RANLIB=$ac_ct_RANLIB
4993 fi
4994else
4995 RANLIB="$ac_cv_prog_RANLIB"
4996fi
4997
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5000$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5001set x ${MAKE-make}
5002ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 5003if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
b4c522fa
IB
5004 $as_echo_n "(cached) " >&6
5005else
5006 cat >conftest.make <<\_ACEOF
5007SHELL = /bin/sh
5008all:
5009 @echo '@@@%%%=$(MAKE)=@@@%%%'
5010_ACEOF
22e05272 5011# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b4c522fa
IB
5012case `${MAKE-make} -f conftest.make 2>/dev/null` in
5013 *@@@%%%=?*=@@@%%%*)
5014 eval ac_cv_prog_make_${ac_make}_set=yes;;
5015 *)
5016 eval ac_cv_prog_make_${ac_make}_set=no;;
5017esac
5018rm -f conftest.make
5019fi
5020if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022$as_echo "yes" >&6; }
5023 SET_MAKE=
5024else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026$as_echo "no" >&6; }
5027 SET_MAKE="MAKE=${MAKE-make}"
5028fi
5029
5030
5031# This should be inherited in the recursive make, but ensure it is defined.
5032test "$AR" || AR=ar
5033
5034
5035CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5036
5037
5038
5039# Enable libtool
5040case `pwd` in
5041 *\ * | *\ *)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5043$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5044esac
5045
5046
5047
5048macro_version='2.2.7a'
5049macro_revision='1.3134'
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063ltmain="$ac_aux_dir/ltmain.sh"
5064
5065# Backslashify metacharacters that are still active within
5066# double-quoted strings.
5067sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5068
5069# Same as above, but do not quote variable references.
5070double_quote_subst='s/\(["`\\]\)/\\\1/g'
5071
5072# Sed substitution to delay expansion of an escaped shell variable in a
5073# double_quote_subst'ed string.
5074delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5075
5076# Sed substitution to delay expansion of an escaped single quote.
5077delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5078
5079# Sed substitution to avoid accidental globbing in evaled expressions
5080no_glob_subst='s/\*/\\\*/g'
5081
5082ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5083ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5084ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5087$as_echo_n "checking how to print strings... " >&6; }
5088# Test print first, because it will be a builtin if present.
5089if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5090 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5091 ECHO='print -r --'
5092elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5093 ECHO='printf %s\n'
5094else
5095 # Use this function as a fallback that always works.
5096 func_fallback_echo ()
5097 {
5098 eval 'cat <<_LTECHO_EOF
5099$1
5100_LTECHO_EOF'
5101 }
5102 ECHO='func_fallback_echo'
5103fi
5104
5105# func_echo_all arg...
5106# Invoke $ECHO with all args, space-separated.
5107func_echo_all ()
5108{
5109 $ECHO ""
5110}
5111
5112case "$ECHO" in
5113 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5114$as_echo "printf" >&6; } ;;
5115 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5116$as_echo "print -r" >&6; } ;;
5117 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5118$as_echo "cat" >&6; } ;;
5119esac
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5136if ${ac_cv_path_SED+:} false; then :
b4c522fa
IB
5137 $as_echo_n "(cached) " >&6
5138else
5139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5140 for ac_i in 1 2 3 4 5 6 7; do
5141 ac_script="$ac_script$as_nl$ac_script"
5142 done
5143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5144 { ac_script=; unset ac_script;}
5145 if test -z "$SED"; then
5146 ac_path_SED_found=false
5147 # Loop through the user's path and test for each of PROGNAME-LIST
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_prog in sed gsed; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5156 as_fn_executable_p "$ac_path_SED" || continue
b4c522fa
IB
5157# Check for GNU ac_path_SED and select it if it is found.
5158 # Check for GNU $ac_path_SED
5159case `"$ac_path_SED" --version 2>&1` in
5160*GNU*)
5161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5162*)
5163 ac_count=0
5164 $as_echo_n 0123456789 >"conftest.in"
5165 while :
5166 do
5167 cat "conftest.in" "conftest.in" >"conftest.tmp"
5168 mv "conftest.tmp" "conftest.in"
5169 cp "conftest.in" "conftest.nl"
5170 $as_echo '' >> "conftest.nl"
5171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5173 as_fn_arith $ac_count + 1 && ac_count=$as_val
5174 if test $ac_count -gt ${ac_path_SED_max-0}; then
5175 # Best one so far, save it but keep looking for a better one
5176 ac_cv_path_SED="$ac_path_SED"
5177 ac_path_SED_max=$ac_count
5178 fi
5179 # 10*(2^10) chars as input seems more than enough
5180 test $ac_count -gt 10 && break
5181 done
5182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5183esac
5184
5185 $ac_path_SED_found && break 3
5186 done
5187 done
5188 done
5189IFS=$as_save_IFS
5190 if test -z "$ac_cv_path_SED"; then
22e05272 5191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b4c522fa
IB
5192 fi
5193else
5194 ac_cv_path_SED=$SED
5195fi
5196
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5199$as_echo "$ac_cv_path_SED" >&6; }
5200 SED="$ac_cv_path_SED"
5201 rm -f conftest.sed
5202
5203test -z "$SED" && SED=sed
5204Xsed="$SED -e 1s/^X//"
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5217$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5218if ${ac_cv_path_GREP+:} false; then :
b4c522fa
IB
5219 $as_echo_n "(cached) " >&6
5220else
5221 if test -z "$GREP"; then
5222 ac_path_GREP_found=false
5223 # Loop through the user's path and test for each of PROGNAME-LIST
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_prog in grep ggrep; do
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5232 as_fn_executable_p "$ac_path_GREP" || continue
b4c522fa
IB
5233# Check for GNU ac_path_GREP and select it if it is found.
5234 # Check for GNU $ac_path_GREP
5235case `"$ac_path_GREP" --version 2>&1` in
5236*GNU*)
5237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5238*)
5239 ac_count=0
5240 $as_echo_n 0123456789 >"conftest.in"
5241 while :
5242 do
5243 cat "conftest.in" "conftest.in" >"conftest.tmp"
5244 mv "conftest.tmp" "conftest.in"
5245 cp "conftest.in" "conftest.nl"
5246 $as_echo 'GREP' >> "conftest.nl"
5247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5249 as_fn_arith $ac_count + 1 && ac_count=$as_val
5250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5251 # Best one so far, save it but keep looking for a better one
5252 ac_cv_path_GREP="$ac_path_GREP"
5253 ac_path_GREP_max=$ac_count
5254 fi
5255 # 10*(2^10) chars as input seems more than enough
5256 test $ac_count -gt 10 && break
5257 done
5258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5259esac
5260
5261 $ac_path_GREP_found && break 3
5262 done
5263 done
5264 done
5265IFS=$as_save_IFS
5266 if test -z "$ac_cv_path_GREP"; then
22e05272 5267 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa
IB
5268 fi
5269else
5270 ac_cv_path_GREP=$GREP
5271fi
5272
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5275$as_echo "$ac_cv_path_GREP" >&6; }
5276 GREP="$ac_cv_path_GREP"
5277
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5280$as_echo_n "checking for egrep... " >&6; }
22e05272 5281if ${ac_cv_path_EGREP+:} false; then :
b4c522fa
IB
5282 $as_echo_n "(cached) " >&6
5283else
5284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5285 then ac_cv_path_EGREP="$GREP -E"
5286 else
5287 if test -z "$EGREP"; then
5288 ac_path_EGREP_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5292do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in egrep; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5298 as_fn_executable_p "$ac_path_EGREP" || continue
b4c522fa
IB
5299# Check for GNU ac_path_EGREP and select it if it is found.
5300 # Check for GNU $ac_path_EGREP
5301case `"$ac_path_EGREP" --version 2>&1` in
5302*GNU*)
5303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5304*)
5305 ac_count=0
5306 $as_echo_n 0123456789 >"conftest.in"
5307 while :
5308 do
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo 'EGREP' >> "conftest.nl"
5313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_EGREP="$ac_path_EGREP"
5319 ac_path_EGREP_max=$ac_count
5320 fi
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5323 done
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325esac
5326
5327 $ac_path_EGREP_found && break 3
5328 done
5329 done
5330 done
5331IFS=$as_save_IFS
5332 if test -z "$ac_cv_path_EGREP"; then
22e05272 5333 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa
IB
5334 fi
5335else
5336 ac_cv_path_EGREP=$EGREP
5337fi
5338
5339 fi
5340fi
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5342$as_echo "$ac_cv_path_EGREP" >&6; }
5343 EGREP="$ac_cv_path_EGREP"
5344
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5347$as_echo_n "checking for fgrep... " >&6; }
22e05272 5348if ${ac_cv_path_FGREP+:} false; then :
b4c522fa
IB
5349 $as_echo_n "(cached) " >&6
5350else
5351 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5352 then ac_cv_path_FGREP="$GREP -F"
5353 else
5354 if test -z "$FGREP"; then
5355 ac_path_FGREP_found=false
5356 # Loop through the user's path and test for each of PROGNAME-LIST
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_prog in fgrep; do
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5365 as_fn_executable_p "$ac_path_FGREP" || continue
b4c522fa
IB
5366# Check for GNU ac_path_FGREP and select it if it is found.
5367 # Check for GNU $ac_path_FGREP
5368case `"$ac_path_FGREP" --version 2>&1` in
5369*GNU*)
5370 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5371*)
5372 ac_count=0
5373 $as_echo_n 0123456789 >"conftest.in"
5374 while :
5375 do
5376 cat "conftest.in" "conftest.in" >"conftest.tmp"
5377 mv "conftest.tmp" "conftest.in"
5378 cp "conftest.in" "conftest.nl"
5379 $as_echo 'FGREP' >> "conftest.nl"
5380 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5382 as_fn_arith $ac_count + 1 && ac_count=$as_val
5383 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5384 # Best one so far, save it but keep looking for a better one
5385 ac_cv_path_FGREP="$ac_path_FGREP"
5386 ac_path_FGREP_max=$ac_count
5387 fi
5388 # 10*(2^10) chars as input seems more than enough
5389 test $ac_count -gt 10 && break
5390 done
5391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5392esac
5393
5394 $ac_path_FGREP_found && break 3
5395 done
5396 done
5397 done
5398IFS=$as_save_IFS
5399 if test -z "$ac_cv_path_FGREP"; then
22e05272 5400 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b4c522fa
IB
5401 fi
5402else
5403 ac_cv_path_FGREP=$FGREP
5404fi
5405
5406 fi
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5409$as_echo "$ac_cv_path_FGREP" >&6; }
5410 FGREP="$ac_cv_path_FGREP"
5411
5412
5413test -z "$GREP" && GREP=grep
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433# Check whether --with-gnu-ld was given.
5434if test "${with_gnu_ld+set}" = set; then :
5435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5436else
5437 with_gnu_ld=no
5438fi
5439
5440ac_prog=ld
5441if test "$GCC" = yes; then
5442 # Check if gcc -print-prog-name=ld gives a path.
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5444$as_echo_n "checking for ld used by $CC... " >&6; }
5445 case $host in
5446 *-*-mingw*)
5447 # gcc leaves a trailing carriage return which upsets mingw
5448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5449 *)
5450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5451 esac
5452 case $ac_prog in
5453 # Accept absolute paths.
5454 [\\/]* | ?:[\\/]*)
5455 re_direlt='/[^/][^/]*/\.\./'
5456 # Canonicalize the pathname of ld
5457 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5458 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5459 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5460 done
5461 test -z "$LD" && LD="$ac_prog"
5462 ;;
5463 "")
5464 # If it fails, then pretend we aren't using GCC.
5465 ac_prog=ld
5466 ;;
5467 *)
5468 # If it is relative, then search for the first ld in PATH.
5469 with_gnu_ld=unknown
5470 ;;
5471 esac
5472elif test "$with_gnu_ld" = yes; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5474$as_echo_n "checking for GNU ld... " >&6; }
5475else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5477$as_echo_n "checking for non-GNU ld... " >&6; }
5478fi
22e05272 5479if ${lt_cv_path_LD+:} false; then :
b4c522fa
IB
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -z "$LD"; then
5483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5484 for ac_dir in $PATH; do
5485 IFS="$lt_save_ifs"
5486 test -z "$ac_dir" && ac_dir=.
5487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5488 lt_cv_path_LD="$ac_dir/$ac_prog"
5489 # Check to see if the program is GNU ld. I'd rather use --version,
5490 # but apparently some variants of GNU ld only accept -v.
5491 # Break only if it was the GNU/non-GNU ld that we prefer.
5492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5493 *GNU* | *'with BFD'*)
5494 test "$with_gnu_ld" != no && break
5495 ;;
5496 *)
5497 test "$with_gnu_ld" != yes && break
5498 ;;
5499 esac
5500 fi
5501 done
5502 IFS="$lt_save_ifs"
5503else
5504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5505fi
5506fi
5507
5508LD="$lt_cv_path_LD"
5509if test -n "$LD"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5511$as_echo "$LD" >&6; }
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
22e05272 5516test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
b4c522fa
IB
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5518$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5519if ${lt_cv_prog_gnu_ld+:} false; then :
b4c522fa
IB
5520 $as_echo_n "(cached) " >&6
5521else
5522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5523case `$LD -v 2>&1 </dev/null` in
5524*GNU* | *'with BFD'*)
5525 lt_cv_prog_gnu_ld=yes
5526 ;;
5527*)
5528 lt_cv_prog_gnu_ld=no
5529 ;;
5530esac
5531fi
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5533$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5534with_gnu_ld=$lt_cv_prog_gnu_ld
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5545$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5546if ${lt_cv_path_NM+:} false; then :
b4c522fa
IB
5547 $as_echo_n "(cached) " >&6
5548else
5549 if test -n "$NM"; then
5550 # Let the user override the test.
5551 lt_cv_path_NM="$NM"
5552else
5553 lt_nm_to_check="${ac_tool_prefix}nm"
5554 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5555 lt_nm_to_check="$lt_nm_to_check nm"
5556 fi
5557 for lt_tmp_nm in $lt_nm_to_check; do
5558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5560 IFS="$lt_save_ifs"
5561 test -z "$ac_dir" && ac_dir=.
5562 tmp_nm="$ac_dir/$lt_tmp_nm"
5563 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5564 # Check to see if the nm accepts a BSD-compat flag.
5565 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5566 # nm: unknown option "B" ignored
5567 # Tru64's nm complains that /dev/null is an invalid object file
5568 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5569 */dev/null* | *'Invalid file or object type'*)
5570 lt_cv_path_NM="$tmp_nm -B"
5571 break
5572 ;;
5573 *)
5574 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5575 */dev/null*)
5576 lt_cv_path_NM="$tmp_nm -p"
5577 break
5578 ;;
5579 *)
5580 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5581 continue # so that we can try to find one that supports BSD flags
5582 ;;
5583 esac
5584 ;;
5585 esac
5586 fi
5587 done
5588 IFS="$lt_save_ifs"
5589 done
5590 : ${lt_cv_path_NM=no}
5591fi
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5594$as_echo "$lt_cv_path_NM" >&6; }
5595if test "$lt_cv_path_NM" != "no"; then
5596 NM="$lt_cv_path_NM"
5597else
5598 # Didn't find any BSD compatible name lister, look for dumpbin.
5599 if test -n "$DUMPBIN"; then :
5600 # Let the user override the test.
5601 else
5602 if test -n "$ac_tool_prefix"; then
5603 for ac_prog in dumpbin "link -dump"
5604 do
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5609if ${ac_cv_prog_DUMPBIN+:} false; then :
b4c522fa
IB
5610 $as_echo_n "(cached) " >&6
5611else
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
5622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627 done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632DUMPBIN=$ac_cv_prog_DUMPBIN
5633if test -n "$DUMPBIN"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5635$as_echo "$DUMPBIN" >&6; }
5636else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642 test -n "$DUMPBIN" && break
5643 done
5644fi
5645if test -z "$DUMPBIN"; then
5646 ac_ct_DUMPBIN=$DUMPBIN
5647 for ac_prog in dumpbin "link -dump"
5648do
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650set dummy $ac_prog; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5653if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
b4c522fa
IB
5654 $as_echo_n "(cached) " >&6
5655else
5656 if test -n "$ac_ct_DUMPBIN"; then
5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
5666 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670done
5671 done
5672IFS=$as_save_IFS
5673
5674fi
5675fi
5676ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5677if test -n "$ac_ct_DUMPBIN"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5679$as_echo "$ac_ct_DUMPBIN" >&6; }
5680else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685
5686 test -n "$ac_ct_DUMPBIN" && break
5687done
5688
5689 if test "x$ac_ct_DUMPBIN" = x; then
5690 DUMPBIN=":"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693yes:)
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696ac_tool_warned=yes ;;
5697esac
5698 DUMPBIN=$ac_ct_DUMPBIN
5699 fi
5700fi
5701
5702 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5703 *COFF*)
5704 DUMPBIN="$DUMPBIN -symbols"
5705 ;;
5706 *)
5707 DUMPBIN=:
5708 ;;
5709 esac
5710 fi
5711
5712 if test "$DUMPBIN" != ":"; then
5713 NM="$DUMPBIN"
5714 fi
5715fi
5716test -z "$NM" && NM=nm
5717
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5724$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5725if ${lt_cv_nm_interface+:} false; then :
b4c522fa
IB
5726 $as_echo_n "(cached) " >&6
5727else
5728 lt_cv_nm_interface="BSD nm"
5729 echo "int some_variable = 0;" > conftest.$ac_ext
5730 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5731 (eval "$ac_compile" 2>conftest.err)
5732 cat conftest.err >&5
5733 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5734 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5735 cat conftest.err >&5
5736 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5737 cat conftest.out >&5
5738 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5739 lt_cv_nm_interface="MS dumpbin"
5740 fi
5741 rm -f conftest*
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5744$as_echo "$lt_cv_nm_interface" >&6; }
5745
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5747$as_echo_n "checking whether ln -s works... " >&6; }
5748LN_S=$as_ln_s
5749if test "$LN_S" = "ln -s"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751$as_echo "yes" >&6; }
5752else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5754$as_echo "no, using $LN_S" >&6; }
5755fi
5756
5757# find the maximum length of command line arguments
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5759$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5760if ${lt_cv_sys_max_cmd_len+:} false; then :
b4c522fa
IB
5761 $as_echo_n "(cached) " >&6
5762else
5763 i=0
5764 teststring="ABCD"
5765
5766 case $build_os in
5767 msdosdjgpp*)
5768 # On DJGPP, this test can blow up pretty badly due to problems in libc
5769 # (any single argument exceeding 2000 bytes causes a buffer overrun
5770 # during glob expansion). Even if it were fixed, the result of this
5771 # check would be larger than it should be.
5772 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5773 ;;
5774
5775 gnu*)
5776 # Under GNU Hurd, this test is not required because there is
5777 # no limit to the length of command line arguments.
5778 # Libtool will interpret -1 as no limit whatsoever
5779 lt_cv_sys_max_cmd_len=-1;
5780 ;;
5781
5782 cygwin* | mingw* | cegcc*)
5783 # On Win9x/ME, this test blows up -- it succeeds, but takes
5784 # about 5 minutes as the teststring grows exponentially.
5785 # Worse, since 9x/ME are not pre-emptively multitasking,
5786 # you end up with a "frozen" computer, even though with patience
5787 # the test eventually succeeds (with a max line length of 256k).
5788 # Instead, let's just punt: use the minimum linelength reported by
5789 # all of the supported platforms: 8192 (on NT/2K/XP).
5790 lt_cv_sys_max_cmd_len=8192;
5791 ;;
5792
5793 mint*)
5794 # On MiNT this can take a long time and run out of memory.
5795 lt_cv_sys_max_cmd_len=8192;
5796 ;;
5797
5798 amigaos*)
5799 # On AmigaOS with pdksh, this test takes hours, literally.
5800 # So we just punt and use a minimum line length of 8192.
5801 lt_cv_sys_max_cmd_len=8192;
5802 ;;
5803
5804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5805 # This has been around since 386BSD, at least. Likely further.
5806 if test -x /sbin/sysctl; then
5807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5808 elif test -x /usr/sbin/sysctl; then
5809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5810 else
5811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5812 fi
5813 # And add a safety zone
5814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5816 ;;
5817
5818 interix*)
5819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5820 lt_cv_sys_max_cmd_len=196608
5821 ;;
5822
5823 osf*)
5824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5826 # nice to cause kernel panics so lets avoid the loop below.
5827 # First set a reasonable default.
5828 lt_cv_sys_max_cmd_len=16384
5829 #
5830 if test -x /sbin/sysconfig; then
5831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5833 esac
5834 fi
5835 ;;
5836 sco3.2v5*)
5837 lt_cv_sys_max_cmd_len=102400
5838 ;;
5839 sysv5* | sco5v6* | sysv4.2uw2*)
5840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5841 if test -n "$kargmax"; then
5842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5843 else
5844 lt_cv_sys_max_cmd_len=32768
5845 fi
5846 ;;
5847 *)
5848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5849 if test -n "$lt_cv_sys_max_cmd_len"; then
5850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5852 else
5853 # Make teststring a little bigger before we do anything with it.
5854 # a 1K string should be a reasonable start.
5855 for i in 1 2 3 4 5 6 7 8 ; do
5856 teststring=$teststring$teststring
5857 done
5858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5859 # If test is not a shell built-in, we'll probably end up computing a
5860 # maximum length that is only half of the actual maximum length, but
5861 # we can't tell.
5862 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5863 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5864 test $i != 17 # 1/2 MB should be enough
5865 do
5866 i=`expr $i + 1`
5867 teststring=$teststring$teststring
5868 done
5869 # Only check the string length outside the loop.
5870 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5871 teststring=
5872 # Add a significant safety factor because C++ compilers can tack on
5873 # massive amounts of additional arguments before passing them to the
5874 # linker. It appears as though 1/2 is a usable value.
5875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5876 fi
5877 ;;
5878 esac
5879
5880fi
5881
5882if test -n $lt_cv_sys_max_cmd_len ; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5884$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5887$as_echo "none" >&6; }
5888fi
5889max_cmd_len=$lt_cv_sys_max_cmd_len
5890
5891
5892
5893
5894
5895
5896: ${CP="cp -f"}
5897: ${MV="mv -f"}
5898: ${RM="rm -f"}
5899
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5901$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5902# Try some XSI features
5903xsi_shell=no
5904( _lt_dummy="a/b/c"
5905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5906 = c,a/b,, \
5907 && eval 'test $(( 1 + 1 )) -eq 2 \
5908 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5909 && xsi_shell=yes
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5911$as_echo "$xsi_shell" >&6; }
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5915$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5916lt_shell_append=no
5917( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5918 >/dev/null 2>&1 \
5919 && lt_shell_append=yes
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5921$as_echo "$lt_shell_append" >&6; }
5922
5923
5924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5925 lt_unset=unset
5926else
5927 lt_unset=false
5928fi
5929
5930
5931
5932
5933
5934# test EBCDIC or ASCII
5935case `echo X|tr X '\101'` in
5936 A) # ASCII based system
5937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5938 lt_SP2NL='tr \040 \012'
5939 lt_NL2SP='tr \015\012 \040\040'
5940 ;;
5941 *) # EBCDIC based system
5942 lt_SP2NL='tr \100 \n'
5943 lt_NL2SP='tr \r\n \100\100'
5944 ;;
5945esac
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5956$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5957if ${lt_cv_ld_reload_flag+:} false; then :
b4c522fa
IB
5958 $as_echo_n "(cached) " >&6
5959else
5960 lt_cv_ld_reload_flag='-r'
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5963$as_echo "$lt_cv_ld_reload_flag" >&6; }
5964reload_flag=$lt_cv_ld_reload_flag
5965case $reload_flag in
5966"" | " "*) ;;
5967*) reload_flag=" $reload_flag" ;;
5968esac
5969reload_cmds='$LD$reload_flag -o $output$reload_objs'
5970case $host_os in
5971 darwin*)
5972 if test "$GCC" = yes; then
5973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5974 else
5975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5976 fi
5977 ;;
5978esac
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5990set dummy ${ac_tool_prefix}objdump; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5993if ${ac_cv_prog_OBJDUMP+:} false; then :
b4c522fa
IB
5994 $as_echo_n "(cached) " >&6
5995else
5996 if test -n "$OBJDUMP"; then
5997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011 done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016OBJDUMP=$ac_cv_prog_OBJDUMP
6017if test -n "$OBJDUMP"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6019$as_echo "$OBJDUMP" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025
6026fi
6027if test -z "$ac_cv_prog_OBJDUMP"; then
6028 ac_ct_OBJDUMP=$OBJDUMP
6029 # Extract the first word of "objdump", so it can be a program name with args.
6030set dummy objdump; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6033if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b4c522fa
IB
6034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$ac_ct_OBJDUMP"; then
6037 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6046 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051 done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6057if test -n "$ac_ct_OBJDUMP"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6059$as_echo "$ac_ct_OBJDUMP" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065 if test "x$ac_ct_OBJDUMP" = x; then
6066 OBJDUMP="false"
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069yes:)
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072ac_tool_warned=yes ;;
6073esac
6074 OBJDUMP=$ac_ct_OBJDUMP
6075 fi
6076else
6077 OBJDUMP="$ac_cv_prog_OBJDUMP"
6078fi
6079
6080test -z "$OBJDUMP" && OBJDUMP=objdump
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6091$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6092if ${lt_cv_deplibs_check_method+:} false; then :
b4c522fa
IB
6093 $as_echo_n "(cached) " >&6
6094else
6095 lt_cv_file_magic_cmd='$MAGIC_CMD'
6096lt_cv_file_magic_test_file=
6097lt_cv_deplibs_check_method='unknown'
6098# Need to set the preceding variable on all platforms that support
6099# interlibrary dependencies.
6100# 'none' -- dependencies not supported.
6101# `unknown' -- same as none, but documents that we really don't know.
6102# 'pass_all' -- all dependencies passed with no checks.
6103# 'test_compile' -- check by making test program.
6104# 'file_magic [[regex]]' -- check by looking for files in library path
6105# which responds to the $file_magic_cmd with a given extended regex.
6106# If you have `file' or equivalent on your system and you're not sure
6107# whether `pass_all' will *always* work, you probably want this one.
6108
6109case $host_os in
6110aix[4-9]*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114beos*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118bsdi[45]*)
6119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6120 lt_cv_file_magic_cmd='/usr/bin/file -L'
6121 lt_cv_file_magic_test_file=/shlib/libc.so
6122 ;;
6123
6124cygwin*)
6125 # func_win32_libid is a shell function defined in ltmain.sh
6126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6127 lt_cv_file_magic_cmd='func_win32_libid'
6128 ;;
6129
6130mingw* | pw32*)
6131 # Base MSYS/MinGW do not provide the 'file' command needed by
6132 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6133 # unless we find 'file', for example because we are cross-compiling.
6134 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6135 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6137 lt_cv_file_magic_cmd='func_win32_libid'
6138 else
6139 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6140 lt_cv_file_magic_cmd='$OBJDUMP -f'
6141 fi
6142 ;;
6143
6144cegcc*)
6145 # use the weaker test based on 'objdump'. See mingw*.
6146 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6147 lt_cv_file_magic_cmd='$OBJDUMP -f'
6148 ;;
6149
6150darwin* | rhapsody*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154freebsd* | dragonfly*)
6155 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6156 case $host_cpu in
6157 i*86 )
6158 # Not sure whether the presence of OpenBSD here was a mistake.
6159 # Let's accept both of them until this is cleared up.
6160 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6161 lt_cv_file_magic_cmd=/usr/bin/file
6162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6163 ;;
6164 esac
6165 else
6166 lt_cv_deplibs_check_method=pass_all
6167 fi
6168 ;;
6169
6170gnu*)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173
6174haiku*)
6175 lt_cv_deplibs_check_method=pass_all
6176 ;;
6177
6178hpux10.20* | hpux11*)
6179 lt_cv_file_magic_cmd=/usr/bin/file
6180 case $host_cpu in
6181 ia64*)
6182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6183 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6184 ;;
6185 hppa*64*)
6186 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]'
6187 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6188 ;;
6189 *)
6190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6191 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6192 ;;
6193 esac
6194 ;;
6195
6196interix[3-9]*)
6197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6199 ;;
6200
6201irix5* | irix6* | nonstopux*)
6202 case $LD in
6203 *-32|*"-32 ") libmagic=32-bit;;
6204 *-n32|*"-n32 ") libmagic=N32;;
6205 *-64|*"-64 ") libmagic=64-bit;;
6206 *) libmagic=never-match;;
6207 esac
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210
6211# This must be Linux ELF.
6212linux* | k*bsd*-gnu | kopensolaris*-gnu)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216netbsd*)
6217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6219 else
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6221 fi
6222 ;;
6223
6224newos6*)
6225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6226 lt_cv_file_magic_cmd=/usr/bin/file
6227 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6228 ;;
6229
6230*nto* | *qnx*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234openbsd*)
6235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6237 else
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6239 fi
6240 ;;
6241
6242osf3* | osf4* | osf5*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246rdos*)
6247 lt_cv_deplibs_check_method=pass_all
6248 ;;
6249
6250solaris*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257
6258sysv4 | sysv4.3*)
6259 case $host_vendor in
6260 motorola)
6261 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]'
6262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6263 ;;
6264 ncr)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267 sequent)
6268 lt_cv_file_magic_cmd='/bin/file'
6269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6270 ;;
6271 sni)
6272 lt_cv_file_magic_cmd='/bin/file'
6273 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6274 lt_cv_file_magic_test_file=/lib/libc.so
6275 ;;
6276 siemens)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279 pc)
6280 lt_cv_deplibs_check_method=pass_all
6281 ;;
6282 esac
6283 ;;
6284
6285tpf*)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288esac
6289
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6292$as_echo "$lt_cv_deplibs_check_method" >&6; }
6293file_magic_cmd=$lt_cv_file_magic_cmd
6294deplibs_check_method=$lt_cv_deplibs_check_method
6295test -z "$deplibs_check_method" && deplibs_check_method=unknown
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6310set dummy ${ac_tool_prefix}ar; ac_word=$2
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6313if ${ac_cv_prog_AR+:} false; then :
b4c522fa
IB
6314 $as_echo_n "(cached) " >&6
6315else
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR="$AR" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6326 ac_cv_prog_AR="${ac_tool_prefix}ar"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331 done
6332IFS=$as_save_IFS
6333
6334fi
6335fi
6336AR=$ac_cv_prog_AR
6337if test -n "$AR"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6339$as_echo "$AR" >&6; }
6340else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342$as_echo "no" >&6; }
6343fi
6344
6345
6346fi
6347if test -z "$ac_cv_prog_AR"; then
6348 ac_ct_AR=$AR
6349 # Extract the first word of "ar", so it can be a program name with args.
6350set dummy ar; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6353if ${ac_cv_prog_ac_ct_AR+:} false; then :
b4c522fa
IB
6354 $as_echo_n "(cached) " >&6
6355else
6356 if test -n "$ac_ct_AR"; then
6357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6366 ac_cv_prog_ac_ct_AR="ar"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371 done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377if test -n "$ac_ct_AR"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379$as_echo "$ac_ct_AR" >&6; }
6380else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385 if test "x$ac_ct_AR" = x; then
6386 AR="false"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389yes:)
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392ac_tool_warned=yes ;;
6393esac
6394 AR=$ac_ct_AR
6395 fi
6396else
6397 AR="$ac_cv_prog_AR"
6398fi
6399
6400test -z "$AR" && AR=ar
6401test -z "$AR_FLAGS" && AR_FLAGS=cru
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6415set dummy ${ac_tool_prefix}strip; ac_word=$2
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6418if ${ac_cv_prog_STRIP+:} false; then :
b4c522fa
IB
6419 $as_echo_n "(cached) " >&6
6420else
6421 if test -n "$STRIP"; then
6422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435done
6436 done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441STRIP=$ac_cv_prog_STRIP
6442if test -n "$STRIP"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6444$as_echo "$STRIP" >&6; }
6445else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450
6451fi
6452if test -z "$ac_cv_prog_STRIP"; then
6453 ac_ct_STRIP=$STRIP
6454 # Extract the first word of "strip", so it can be a program name with args.
6455set dummy strip; ac_word=$2
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6458if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b4c522fa
IB
6459 $as_echo_n "(cached) " >&6
6460else
6461 if test -n "$ac_ct_STRIP"; then
6462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6471 ac_cv_prog_ac_ct_STRIP="strip"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475done
6476 done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6482if test -n "$ac_ct_STRIP"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6484$as_echo "$ac_ct_STRIP" >&6; }
6485else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487$as_echo "no" >&6; }
6488fi
6489
6490 if test "x$ac_ct_STRIP" = x; then
6491 STRIP=":"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494yes:)
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497ac_tool_warned=yes ;;
6498esac
6499 STRIP=$ac_ct_STRIP
6500 fi
6501else
6502 STRIP="$ac_cv_prog_STRIP"
6503fi
6504
6505test -z "$STRIP" && STRIP=:
6506
6507
6508
6509
6510
6511
6512if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6514set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6517if ${ac_cv_prog_RANLIB+:} false; then :
b4c522fa
IB
6518 $as_echo_n "(cached) " >&6
6519else
6520 if test -n "$RANLIB"; then
6521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534done
6535 done
6536IFS=$as_save_IFS
6537
6538fi
6539fi
6540RANLIB=$ac_cv_prog_RANLIB
6541if test -n "$RANLIB"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6543$as_echo "$RANLIB" >&6; }
6544else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546$as_echo "no" >&6; }
6547fi
6548
6549
6550fi
6551if test -z "$ac_cv_prog_RANLIB"; then
6552 ac_ct_RANLIB=$RANLIB
6553 # Extract the first word of "ranlib", so it can be a program name with args.
6554set dummy ranlib; ac_word=$2
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6557if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b4c522fa
IB
6558 $as_echo_n "(cached) " >&6
6559else
6560 if test -n "$ac_ct_RANLIB"; then
6561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
6570 ac_cv_prog_ac_ct_RANLIB="ranlib"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574done
6575 done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6581if test -n "$ac_ct_RANLIB"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6583$as_echo "$ac_ct_RANLIB" >&6; }
6584else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589 if test "x$ac_ct_RANLIB" = x; then
6590 RANLIB=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593yes:)
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596ac_tool_warned=yes ;;
6597esac
6598 RANLIB=$ac_ct_RANLIB
6599 fi
6600else
6601 RANLIB="$ac_cv_prog_RANLIB"
6602fi
6603
6604test -z "$RANLIB" && RANLIB=:
6605
6606
6607
6608
6609
6610
6611# Determine commands to create old-style static archives.
6612old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6613old_postinstall_cmds='chmod 644 $oldlib'
6614old_postuninstall_cmds=
6615
6616if test -n "$RANLIB"; then
6617 case $host_os in
6618 openbsd*)
6619 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6620 ;;
6621 *)
6622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6623 ;;
6624 esac
6625 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6626fi
6627
6628case $host_os in
6629 darwin*)
6630 lock_old_archive_extraction=yes ;;
6631 *)
6632 lock_old_archive_extraction=no ;;
6633esac
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
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673# If no C compiler was specified, use CC.
6674LTCC=${LTCC-"$CC"}
6675
6676# If no C compiler flags were specified, use CFLAGS.
6677LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6678
6679# Allow CC to be a program name with arguments.
6680compiler=$CC
6681
6682
6683# Check for command to grab the raw symbol name followed by C symbol from nm.
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6685$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6686if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b4c522fa
IB
6687 $as_echo_n "(cached) " >&6
6688else
6689
6690# These are sane defaults that work on at least a few old systems.
6691# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6692
6693# Character class describing NM global symbol codes.
6694symcode='[BCDEGRST]'
6695
6696# Regexp to match symbols that can be accessed directly from C.
6697sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6698
6699# Define system-specific variables.
6700case $host_os in
6701aix*)
6702 symcode='[BCDT]'
6703 ;;
6704cygwin* | mingw* | pw32* | cegcc*)
6705 symcode='[ABCDGISTW]'
6706 ;;
6707hpux*)
6708 if test "$host_cpu" = ia64; then
6709 symcode='[ABCDEGRST]'
6710 fi
6711 ;;
6712irix* | nonstopux*)
6713 symcode='[BCDEGRST]'
6714 ;;
6715osf*)
6716 symcode='[BCDEGQRST]'
6717 ;;
6718solaris*)
6719 symcode='[BDRT]'
6720 ;;
6721sco3.2v5*)
6722 symcode='[DT]'
6723 ;;
6724sysv4.2uw2*)
6725 symcode='[DT]'
6726 ;;
6727sysv5* | sco5v6* | unixware* | OpenUNIX*)
6728 symcode='[ABDT]'
6729 ;;
6730sysv4)
6731 symcode='[DFNSTU]'
6732 ;;
6733esac
6734
6735# If we're using GNU nm, then use its standard symbol codes.
6736case `$NM -V 2>&1` in
6737*GNU* | *'with BFD'*)
6738 symcode='[ABCDGIRSTW]' ;;
6739esac
6740
6741# Transform an extracted symbol line into a proper C declaration.
6742# Some systems (esp. on ia64) link data and code symbols differently,
6743# so use this general approach.
6744lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6745
6746# Transform an extracted symbol line into symbol name and symbol address
6747lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6748lt_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'"
6749
6750# Handle CRLF in mingw tool chain
6751opt_cr=
6752case $build_os in
6753mingw*)
6754 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6755 ;;
6756esac
6757
6758# Try without a prefix underscore, then with it.
6759for ac_symprfx in "" "_"; do
6760
6761 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6762 symxfrm="\\1 $ac_symprfx\\2 \\2"
6763
6764 # Write the raw and C identifiers.
6765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6766 # Fake it for dumpbin and say T for any non-static function
6767 # and D for any global variable.
6768 # Also find C++ and __fastcall symbols from MSVC++,
6769 # which start with @ or ?.
6770 lt_cv_sys_global_symbol_pipe="$AWK '"\
6771" {last_section=section; section=\$ 3};"\
6772" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6773" \$ 0!~/External *\|/{next};"\
6774" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6775" {if(hide[section]) next};"\
6776" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6777" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6778" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6779" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6780" ' prfx=^$ac_symprfx"
6781 else
6782 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6783 fi
6784
6785 # Check to see that the pipe works correctly.
6786 pipe_works=no
6787
6788 rm -f conftest*
6789 cat > conftest.$ac_ext <<_LT_EOF
6790#ifdef __cplusplus
6791extern "C" {
6792#endif
6793char nm_test_var;
6794void nm_test_func(void);
6795void nm_test_func(void){}
6796#ifdef __cplusplus
6797}
6798#endif
6799int main(){nm_test_var='a';nm_test_func();return(0);}
6800_LT_EOF
6801
6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803 (eval $ac_compile) 2>&5
6804 ac_status=$?
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; }; then
6807 # Now try to grab the symbols.
6808 nlist=conftest.nm
6809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6810 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6811 ac_status=$?
6812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813 test $ac_status = 0; } && test -s "$nlist"; then
6814 # Try sorting and uniquifying the output.
6815 if sort "$nlist" | uniq > "$nlist"T; then
6816 mv -f "$nlist"T "$nlist"
6817 else
6818 rm -f "$nlist"T
6819 fi
6820
6821 # Make sure that we snagged all the symbols we need.
6822 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6823 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6824 cat <<_LT_EOF > conftest.$ac_ext
6825#ifdef __cplusplus
6826extern "C" {
6827#endif
6828
6829_LT_EOF
6830 # Now generate the symbol file.
6831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6832
6833 cat <<_LT_EOF >> conftest.$ac_ext
6834
6835/* The mapping between symbol names and symbols. */
6836const struct {
6837 const char *name;
6838 void *address;
6839}
6840lt__PROGRAM__LTX_preloaded_symbols[] =
6841{
6842 { "@PROGRAM@", (void *) 0 },
6843_LT_EOF
6844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6845 cat <<\_LT_EOF >> conftest.$ac_ext
6846 {0, (void *) 0}
6847};
6848
6849/* This works around a problem in FreeBSD linker */
6850#ifdef FREEBSD_WORKAROUND
6851static const void *lt_preloaded_setup() {
6852 return lt__PROGRAM__LTX_preloaded_symbols;
6853}
6854#endif
6855
6856#ifdef __cplusplus
6857}
6858#endif
6859_LT_EOF
6860 # Now try linking the two files.
6861 mv conftest.$ac_objext conftstm.$ac_objext
6862 lt_save_LIBS="$LIBS"
6863 lt_save_CFLAGS="$CFLAGS"
6864 LIBS="conftstm.$ac_objext"
6865 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6867 (eval $ac_link) 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6871 pipe_works=yes
6872 fi
6873 LIBS="$lt_save_LIBS"
6874 CFLAGS="$lt_save_CFLAGS"
6875 else
6876 echo "cannot find nm_test_func in $nlist" >&5
6877 fi
6878 else
6879 echo "cannot find nm_test_var in $nlist" >&5
6880 fi
6881 else
6882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6883 fi
6884 else
6885 echo "$progname: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 fi
6888 rm -rf conftest* conftst*
6889
6890 # Do not use the global_symbol_pipe unless it works.
6891 if test "$pipe_works" = yes; then
6892 break
6893 else
6894 lt_cv_sys_global_symbol_pipe=
6895 fi
6896done
6897
6898fi
6899
6900if test -z "$lt_cv_sys_global_symbol_pipe"; then
6901 lt_cv_sys_global_symbol_to_cdecl=
6902fi
6903if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6905$as_echo "failed" >&6; }
6906else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6908$as_echo "ok" >&6; }
6909fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933# Check whether --enable-libtool-lock was given.
6934if test "${enable_libtool_lock+set}" = set; then :
6935 enableval=$enable_libtool_lock;
6936fi
6937
6938test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6939
6940# Some flags need to be propagated to the compiler or linker for good
6941# libtool support.
6942case $host in
6943ia64-*-hpux*)
6944 # Find out which ABI we are using.
6945 echo 'int i;' > conftest.$ac_ext
6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947 (eval $ac_compile) 2>&5
6948 ac_status=$?
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; }; then
6951 case `/usr/bin/file conftest.$ac_objext` in
6952 *ELF-32*)
6953 HPUX_IA64_MODE="32"
6954 ;;
6955 *ELF-64*)
6956 HPUX_IA64_MODE="64"
6957 ;;
6958 esac
6959 fi
6960 rm -rf conftest*
6961 ;;
6962*-*-irix6*)
6963 # Find out which ABI we are using.
6964 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966 (eval $ac_compile) 2>&5
6967 ac_status=$?
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
6970 if test "$lt_cv_prog_gnu_ld" = yes; then
6971 case `/usr/bin/file conftest.$ac_objext` in
6972 *32-bit*)
6973 LD="${LD-ld} -melf32bsmip"
6974 ;;
6975 *N32*)
6976 LD="${LD-ld} -melf32bmipn32"
6977 ;;
6978 *64-bit*)
6979 LD="${LD-ld} -melf64bmip"
6980 ;;
6981 esac
6982 else
6983 case `/usr/bin/file conftest.$ac_objext` in
6984 *32-bit*)
6985 LD="${LD-ld} -32"
6986 ;;
6987 *N32*)
6988 LD="${LD-ld} -n32"
6989 ;;
6990 *64-bit*)
6991 LD="${LD-ld} -64"
6992 ;;
6993 esac
6994 fi
6995 fi
6996 rm -rf conftest*
6997 ;;
6998
6999x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7000s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7001 # Find out which ABI we are using.
7002 echo 'int i;' > conftest.$ac_ext
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004 (eval $ac_compile) 2>&5
7005 ac_status=$?
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
7008 case `/usr/bin/file conftest.o` in
7009 *32-bit*)
7010 case $host in
7011 x86_64-*kfreebsd*-gnu)
7012 LD="${LD-ld} -m elf_i386_fbsd"
7013 ;;
7014 x86_64-*linux*)
7015 case `/usr/bin/file conftest.o` in
7016 *x86-64*)
7017 LD="${LD-ld} -m elf32_x86_64"
7018 ;;
7019 *)
7020 LD="${LD-ld} -m elf_i386"
7021 ;;
7022 esac
7023 ;;
7024 powerpc64le-*linux*)
7025 LD="${LD-ld} -m elf32lppclinux"
7026 ;;
7027 powerpc64-*linux*)
7028 LD="${LD-ld} -m elf32ppclinux"
7029 ;;
7030 s390x-*linux*)
7031 LD="${LD-ld} -m elf_s390"
7032 ;;
7033 sparc64-*linux*)
7034 LD="${LD-ld} -m elf32_sparc"
7035 ;;
7036 esac
7037 ;;
7038 *64-bit*)
7039 case $host in
7040 x86_64-*kfreebsd*-gnu)
7041 LD="${LD-ld} -m elf_x86_64_fbsd"
7042 ;;
7043 x86_64-*linux*)
7044 LD="${LD-ld} -m elf_x86_64"
7045 ;;
7046 powerpcle-*linux*)
7047 LD="${LD-ld} -m elf64lppc"
7048 ;;
7049 powerpc-*linux*)
7050 LD="${LD-ld} -m elf64ppc"
7051 ;;
7052 s390*-*linux*|s390*-*tpf*)
7053 LD="${LD-ld} -m elf64_s390"
7054 ;;
7055 sparc*-*linux*)
7056 LD="${LD-ld} -m elf64_sparc"
7057 ;;
7058 esac
7059 ;;
7060 esac
7061 fi
7062 rm -rf conftest*
7063 ;;
7064
7065*-*-sco3.2v5*)
7066 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7067 SAVE_CFLAGS="$CFLAGS"
7068 CFLAGS="$CFLAGS -belf"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7070$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7071if ${lt_cv_cc_needs_belf+:} false; then :
b4c522fa
IB
7072 $as_echo_n "(cached) " >&6
7073else
7074 ac_ext=c
7075ac_cpp='$CPP $CPPFLAGS'
7076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h. */
7082
7083int
7084main ()
7085{
7086
7087 ;
7088 return 0;
7089}
7090_ACEOF
7091if ac_fn_c_try_link "$LINENO"; then :
7092 lt_cv_cc_needs_belf=yes
7093else
7094 lt_cv_cc_needs_belf=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext conftest.$ac_ext
7098 ac_ext=c
7099ac_cpp='$CPP $CPPFLAGS'
7100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7106$as_echo "$lt_cv_cc_needs_belf" >&6; }
7107 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7108 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7109 CFLAGS="$SAVE_CFLAGS"
7110 fi
7111 ;;
7112sparc*-*solaris*)
7113 # Find out which ABI we are using.
7114 echo 'int i;' > conftest.$ac_ext
7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7116 (eval $ac_compile) 2>&5
7117 ac_status=$?
7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119 test $ac_status = 0; }; then
7120 case `/usr/bin/file conftest.o` in
7121 *64-bit*)
7122 case $lt_cv_prog_gnu_ld in
7123 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7124 *)
7125 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7126 LD="${LD-ld} -64"
7127 fi
7128 ;;
7129 esac
7130 ;;
7131 esac
7132 fi
7133 rm -rf conftest*
7134 ;;
7135esac
7136
7137need_locks="$enable_libtool_lock"
7138
7139
7140 case $host_os in
7141 rhapsody* | darwin*)
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7144set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7147if ${ac_cv_prog_DSYMUTIL+:} false; then :
b4c522fa
IB
7148 $as_echo_n "(cached) " >&6
7149else
7150 if test -n "$DSYMUTIL"; then
7151 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7160 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164done
7165 done
7166IFS=$as_save_IFS
7167
7168fi
7169fi
7170DSYMUTIL=$ac_cv_prog_DSYMUTIL
7171if test -n "$DSYMUTIL"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7173$as_echo "$DSYMUTIL" >&6; }
7174else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176$as_echo "no" >&6; }
7177fi
7178
7179
7180fi
7181if test -z "$ac_cv_prog_DSYMUTIL"; then
7182 ac_ct_DSYMUTIL=$DSYMUTIL
7183 # Extract the first word of "dsymutil", so it can be a program name with args.
7184set dummy dsymutil; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7187if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b4c522fa
IB
7188 $as_echo_n "(cached) " >&6
7189else
7190 if test -n "$ac_ct_DSYMUTIL"; then
7191 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7200 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205 done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7211if test -n "$ac_ct_DSYMUTIL"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7213$as_echo "$ac_ct_DSYMUTIL" >&6; }
7214else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219 if test "x$ac_ct_DSYMUTIL" = x; then
7220 DSYMUTIL=":"
7221 else
7222 case $cross_compiling:$ac_tool_warned in
7223yes:)
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226ac_tool_warned=yes ;;
7227esac
7228 DSYMUTIL=$ac_ct_DSYMUTIL
7229 fi
7230else
7231 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7232fi
7233
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7239if ${ac_cv_prog_NMEDIT+:} false; then :
b4c522fa
IB
7240 $as_echo_n "(cached) " >&6
7241else
7242 if test -n "$NMEDIT"; then
7243 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7252 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257 done
7258IFS=$as_save_IFS
7259
7260fi
7261fi
7262NMEDIT=$ac_cv_prog_NMEDIT
7263if test -n "$NMEDIT"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7265$as_echo "$NMEDIT" >&6; }
7266else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268$as_echo "no" >&6; }
7269fi
7270
7271
7272fi
7273if test -z "$ac_cv_prog_NMEDIT"; then
7274 ac_ct_NMEDIT=$NMEDIT
7275 # Extract the first word of "nmedit", so it can be a program name with args.
7276set dummy nmedit; ac_word=$2
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7279if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b4c522fa
IB
7280 $as_echo_n "(cached) " >&6
7281else
7282 if test -n "$ac_ct_NMEDIT"; then
7283 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7292 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296done
7297 done
7298IFS=$as_save_IFS
7299
7300fi
7301fi
7302ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7303if test -n "$ac_ct_NMEDIT"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7305$as_echo "$ac_ct_NMEDIT" >&6; }
7306else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
7309fi
7310
7311 if test "x$ac_ct_NMEDIT" = x; then
7312 NMEDIT=":"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315yes:)
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7318ac_tool_warned=yes ;;
7319esac
7320 NMEDIT=$ac_ct_NMEDIT
7321 fi
7322else
7323 NMEDIT="$ac_cv_prog_NMEDIT"
7324fi
7325
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}lipo; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7331if ${ac_cv_prog_LIPO+:} false; then :
b4c522fa
IB
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$LIPO"; then
7335 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7344 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349 done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354LIPO=$ac_cv_prog_LIPO
7355if test -n "$LIPO"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7357$as_echo "$LIPO" >&6; }
7358else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363
7364fi
7365if test -z "$ac_cv_prog_LIPO"; then
7366 ac_ct_LIPO=$LIPO
7367 # Extract the first word of "lipo", so it can be a program name with args.
7368set dummy lipo; ac_word=$2
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7371if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
b4c522fa
IB
7372 $as_echo_n "(cached) " >&6
7373else
7374 if test -n "$ac_ct_LIPO"; then
7375 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7384 ac_cv_prog_ac_ct_LIPO="lipo"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388done
7389 done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7395if test -n "$ac_ct_LIPO"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7397$as_echo "$ac_ct_LIPO" >&6; }
7398else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403 if test "x$ac_ct_LIPO" = x; then
7404 LIPO=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407yes:)
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410ac_tool_warned=yes ;;
7411esac
7412 LIPO=$ac_ct_LIPO
7413 fi
7414else
7415 LIPO="$ac_cv_prog_LIPO"
7416fi
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7420set dummy ${ac_tool_prefix}otool; ac_word=$2
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7423if ${ac_cv_prog_OTOOL+:} false; then :
b4c522fa
IB
7424 $as_echo_n "(cached) " >&6
7425else
7426 if test -n "$OTOOL"; then
7427 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7436 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441 done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446OTOOL=$ac_cv_prog_OTOOL
7447if test -n "$OTOOL"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7449$as_echo "$OTOOL" >&6; }
7450else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453fi
7454
7455
7456fi
7457if test -z "$ac_cv_prog_OTOOL"; then
7458 ac_ct_OTOOL=$OTOOL
7459 # Extract the first word of "otool", so it can be a program name with args.
7460set dummy otool; ac_word=$2
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7463if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b4c522fa
IB
7464 $as_echo_n "(cached) " >&6
7465else
7466 if test -n "$ac_ct_OTOOL"; then
7467 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7476 ac_cv_prog_ac_ct_OTOOL="otool"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481 done
7482IFS=$as_save_IFS
7483
7484fi
7485fi
7486ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7487if test -n "$ac_ct_OTOOL"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7489$as_echo "$ac_ct_OTOOL" >&6; }
7490else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495 if test "x$ac_ct_OTOOL" = x; then
7496 OTOOL=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499yes:)
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504 OTOOL=$ac_ct_OTOOL
7505 fi
7506else
7507 OTOOL="$ac_cv_prog_OTOOL"
7508fi
7509
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7512set dummy ${ac_tool_prefix}otool64; ac_word=$2
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7515if ${ac_cv_prog_OTOOL64+:} false; then :
b4c522fa
IB
7516 $as_echo_n "(cached) " >&6
7517else
7518 if test -n "$OTOOL64"; then
7519 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7528 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532done
7533 done
7534IFS=$as_save_IFS
7535
7536fi
7537fi
7538OTOOL64=$ac_cv_prog_OTOOL64
7539if test -n "$OTOOL64"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7541$as_echo "$OTOOL64" >&6; }
7542else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547
7548fi
7549if test -z "$ac_cv_prog_OTOOL64"; then
7550 ac_ct_OTOOL64=$OTOOL64
7551 # Extract the first word of "otool64", so it can be a program name with args.
7552set dummy otool64; ac_word=$2
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7555if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
b4c522fa
IB
7556 $as_echo_n "(cached) " >&6
7557else
7558 if test -n "$ac_ct_OTOOL64"; then
7559 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
7568 ac_cv_prog_ac_ct_OTOOL64="otool64"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572done
7573 done
7574IFS=$as_save_IFS
7575
7576fi
7577fi
7578ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7579if test -n "$ac_ct_OTOOL64"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7581$as_echo "$ac_ct_OTOOL64" >&6; }
7582else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585fi
7586
7587 if test "x$ac_ct_OTOOL64" = x; then
7588 OTOOL64=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591yes:)
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594ac_tool_warned=yes ;;
7595esac
7596 OTOOL64=$ac_ct_OTOOL64
7597 fi
7598else
7599 OTOOL64="$ac_cv_prog_OTOOL64"
7600fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7629$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7630if ${lt_cv_apple_cc_single_mod+:} false; then :
b4c522fa
IB
7631 $as_echo_n "(cached) " >&6
7632else
7633 lt_cv_apple_cc_single_mod=no
7634 if test -z "${LT_MULTI_MODULE}"; then
7635 # By default we will add the -single_module flag. You can override
7636 # by either setting the environment variable LT_MULTI_MODULE
7637 # non-empty at configure time, or by adding -multi_module to the
7638 # link flags.
7639 rm -rf libconftest.dylib*
7640 echo "int foo(void){return 1;}" > conftest.c
7641 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7642-dynamiclib -Wl,-single_module conftest.c" >&5
7643 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7644 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7645 _lt_result=$?
7646 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7647 lt_cv_apple_cc_single_mod=yes
7648 else
7649 cat conftest.err >&5
7650 fi
7651 rm -rf libconftest.dylib*
7652 rm -f conftest.*
7653 fi
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7656$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7658$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7659if ${lt_cv_ld_exported_symbols_list+:} false; then :
b4c522fa
IB
7660 $as_echo_n "(cached) " >&6
7661else
7662 lt_cv_ld_exported_symbols_list=no
7663 save_LDFLAGS=$LDFLAGS
7664 echo "_main" > conftest.sym
7665 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h. */
7668
7669int
7670main ()
7671{
7672
7673 ;
7674 return 0;
7675}
7676_ACEOF
7677if ac_fn_c_try_link "$LINENO"; then :
7678 lt_cv_ld_exported_symbols_list=yes
7679else
7680 lt_cv_ld_exported_symbols_list=no
7681fi
7682rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LDFLAGS="$save_LDFLAGS"
7685
7686fi
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7688$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7690$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7691if ${lt_cv_ld_force_load+:} false; then :
b4c522fa
IB
7692 $as_echo_n "(cached) " >&6
7693else
7694 lt_cv_ld_force_load=no
7695 cat > conftest.c << _LT_EOF
7696int forced_loaded() { return 2;}
7697_LT_EOF
7698 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7699 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7700 echo "$AR cru libconftest.a conftest.o" >&5
7701 $AR cru libconftest.a conftest.o 2>&5
7702 cat > conftest.c << _LT_EOF
7703int main() { return 0;}
7704_LT_EOF
7705 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7706 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7707 _lt_result=$?
7708 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7709 lt_cv_ld_force_load=yes
7710 else
7711 cat conftest.err >&5
7712 fi
7713 rm -f conftest.err libconftest.a conftest conftest.c
7714 rm -rf conftest.dSYM
7715
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7718$as_echo "$lt_cv_ld_force_load" >&6; }
7719 case $host_os in
7720 rhapsody* | darwin1.[012])
7721 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7722 darwin1.*)
7723 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724 darwin*) # darwin 5.x on
7725 # if running on 10.5 or later, the deployment target defaults
7726 # to the OS version, if on x86, and 10.4, the deployment
7727 # target defaults to 10.4. Don't you love it?
7728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7729 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7730 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731 10.[012][,.]*)
7732 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7733 10.*)
7734 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7735 esac
7736 ;;
7737 esac
7738 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7739 _lt_dar_single_mod='$single_module'
7740 fi
7741 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7742 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7743 else
7744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745 fi
7746 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7747 _lt_dsymutil='~$DSYMUTIL $lib || :'
7748 else
7749 _lt_dsymutil=
7750 fi
7751 ;;
7752 esac
7753
7754ac_ext=c
7755ac_cpp='$CPP $CPPFLAGS'
7756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7760$as_echo_n "checking how to run the C preprocessor... " >&6; }
7761# On Suns, sometimes $CPP names a directory.
7762if test -n "$CPP" && test -d "$CPP"; then
7763 CPP=
7764fi
7765if test -z "$CPP"; then
22e05272 7766 if ${ac_cv_prog_CPP+:} false; then :
b4c522fa
IB
7767 $as_echo_n "(cached) " >&6
7768else
7769 # Double quotes because CPP needs to be expanded
7770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7771 do
7772 ac_preproc_ok=false
7773for ac_c_preproc_warn_flag in '' yes
7774do
7775 # Use a header file that comes with gcc, so configuring glibc
7776 # with a fresh cross-compiler works.
7777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7778 # <limits.h> exists even on freestanding compilers.
7779 # On the NeXT, cc -E runs the code through the compiler's parser,
7780 # not just through cpp. "Syntax error" is here to catch this case.
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h. */
7783#ifdef __STDC__
7784# include <limits.h>
7785#else
7786# include <assert.h>
7787#endif
7788 Syntax error
7789_ACEOF
7790if ac_fn_c_try_cpp "$LINENO"; then :
7791
7792else
7793 # Broken: fails on valid input.
7794continue
7795fi
22e05272 7796rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7797
7798 # OK, works on sane cases. Now check whether nonexistent headers
7799 # can be detected and how.
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h. */
7802#include <ac_nonexistent.h>
7803_ACEOF
7804if ac_fn_c_try_cpp "$LINENO"; then :
7805 # Broken: success on invalid input.
7806continue
7807else
7808 # Passes both tests.
7809ac_preproc_ok=:
7810break
7811fi
22e05272 7812rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7813
7814done
7815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7816rm -f conftest.i conftest.err conftest.$ac_ext
b4c522fa
IB
7817if $ac_preproc_ok; then :
7818 break
7819fi
7820
7821 done
7822 ac_cv_prog_CPP=$CPP
7823
7824fi
7825 CPP=$ac_cv_prog_CPP
7826else
7827 ac_cv_prog_CPP=$CPP
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7830$as_echo "$CPP" >&6; }
7831ac_preproc_ok=false
7832for ac_c_preproc_warn_flag in '' yes
7833do
7834 # Use a header file that comes with gcc, so configuring glibc
7835 # with a fresh cross-compiler works.
7836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7837 # <limits.h> exists even on freestanding compilers.
7838 # On the NeXT, cc -E runs the code through the compiler's parser,
7839 # not just through cpp. "Syntax error" is here to catch this case.
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h. */
7842#ifdef __STDC__
7843# include <limits.h>
7844#else
7845# include <assert.h>
7846#endif
7847 Syntax error
7848_ACEOF
7849if ac_fn_c_try_cpp "$LINENO"; then :
7850
7851else
7852 # Broken: fails on valid input.
7853continue
7854fi
22e05272 7855rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7856
7857 # OK, works on sane cases. Now check whether nonexistent headers
7858 # can be detected and how.
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h. */
7861#include <ac_nonexistent.h>
7862_ACEOF
7863if ac_fn_c_try_cpp "$LINENO"; then :
7864 # Broken: success on invalid input.
7865continue
7866else
7867 # Passes both tests.
7868ac_preproc_ok=:
7869break
7870fi
22e05272 7871rm -f conftest.err conftest.i conftest.$ac_ext
b4c522fa
IB
7872
7873done
7874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7875rm -f conftest.i conftest.err conftest.$ac_ext
b4c522fa
IB
7876if $ac_preproc_ok; then :
7877
7878else
7879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7881as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7882See \`config.log' for more details" "$LINENO" 5; }
b4c522fa
IB
7883fi
7884
7885ac_ext=c
7886ac_cpp='$CPP $CPPFLAGS'
7887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889ac_compiler_gnu=$ac_cv_c_compiler_gnu
7890
7891
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7893$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7894if ${ac_cv_header_stdc+:} false; then :
b4c522fa
IB
7895 $as_echo_n "(cached) " >&6
7896else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899#include <stdlib.h>
7900#include <stdarg.h>
7901#include <string.h>
7902#include <float.h>
7903
7904int
7905main ()
7906{
7907
7908 ;
7909 return 0;
7910}
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913 ac_cv_header_stdc=yes
7914else
7915 ac_cv_header_stdc=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918
7919if test $ac_cv_header_stdc = yes; then
7920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h. */
7923#include <string.h>
7924
7925_ACEOF
7926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7927 $EGREP "memchr" >/dev/null 2>&1; then :
7928
7929else
7930 ac_cv_header_stdc=no
7931fi
7932rm -f conftest*
7933
7934fi
7935
7936if test $ac_cv_header_stdc = yes; then
7937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h. */
7940#include <stdlib.h>
7941
7942_ACEOF
7943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7944 $EGREP "free" >/dev/null 2>&1; then :
7945
7946else
7947 ac_cv_header_stdc=no
7948fi
7949rm -f conftest*
7950
7951fi
7952
7953if test $ac_cv_header_stdc = yes; then
7954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7955 if test "$cross_compiling" = yes; then :
7956 :
7957else
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959/* end confdefs.h. */
7960#include <ctype.h>
7961#include <stdlib.h>
7962#if ((' ' & 0x0FF) == 0x020)
7963# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7964# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7965#else
7966# define ISLOWER(c) \
7967 (('a' <= (c) && (c) <= 'i') \
7968 || ('j' <= (c) && (c) <= 'r') \
7969 || ('s' <= (c) && (c) <= 'z'))
7970# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7971#endif
7972
7973#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7974int
7975main ()
7976{
7977 int i;
7978 for (i = 0; i < 256; i++)
7979 if (XOR (islower (i), ISLOWER (i))
7980 || toupper (i) != TOUPPER (i))
7981 return 2;
7982 return 0;
7983}
7984_ACEOF
7985if ac_fn_c_try_run "$LINENO"; then :
7986
7987else
7988 ac_cv_header_stdc=no
7989fi
7990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7991 conftest.$ac_objext conftest.beam conftest.$ac_ext
7992fi
7993
7994fi
7995fi
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7997$as_echo "$ac_cv_header_stdc" >&6; }
7998if test $ac_cv_header_stdc = yes; then
7999
8000$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8001
8002fi
8003
8004# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8005for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8006 inttypes.h stdint.h unistd.h
8007do :
8008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8009ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8010"
22e05272 8011if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b4c522fa
IB
8012 cat >>confdefs.h <<_ACEOF
8013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8014_ACEOF
8015
8016fi
8017
8018done
8019
8020
8021for ac_header in dlfcn.h
8022do :
8023 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8024"
22e05272 8025if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b4c522fa
IB
8026 cat >>confdefs.h <<_ACEOF
8027#define HAVE_DLFCN_H 1
8028_ACEOF
8029
8030fi
8031
8032done
8033
8034
8035
8036
8037
8038# Set options
8039enable_dlopen=yes
8040
8041
8042
8043
8044 enable_win32_dll=no
8045
8046
8047 # Check whether --enable-shared was given.
8048if test "${enable_shared+set}" = set; then :
8049 enableval=$enable_shared; p=${PACKAGE-default}
8050 case $enableval in
8051 yes) enable_shared=yes ;;
8052 no) enable_shared=no ;;
8053 *)
8054 enable_shared=no
8055 # Look at the argument we got. We use all the common list separators.
8056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8057 for pkg in $enableval; do
8058 IFS="$lt_save_ifs"
8059 if test "X$pkg" = "X$p"; then
8060 enable_shared=yes
8061 fi
8062 done
8063 IFS="$lt_save_ifs"
8064 ;;
8065 esac
8066else
8067 enable_shared=yes
8068fi
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 # Check whether --enable-static was given.
8079if test "${enable_static+set}" = set; then :
8080 enableval=$enable_static; p=${PACKAGE-default}
8081 case $enableval in
8082 yes) enable_static=yes ;;
8083 no) enable_static=no ;;
8084 *)
8085 enable_static=no
8086 # Look at the argument we got. We use all the common list separators.
8087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8088 for pkg in $enableval; do
8089 IFS="$lt_save_ifs"
8090 if test "X$pkg" = "X$p"; then
8091 enable_static=yes
8092 fi
8093 done
8094 IFS="$lt_save_ifs"
8095 ;;
8096 esac
8097else
8098 enable_static=yes
8099fi
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110# Check whether --with-pic was given.
8111if test "${with_pic+set}" = set; then :
8112 withval=$with_pic; pic_mode="$withval"
8113else
8114 pic_mode=default
8115fi
8116
8117
8118test -z "$pic_mode" && pic_mode=default
8119
8120
8121
8122
8123
8124
8125
8126 # Check whether --enable-fast-install was given.
8127if test "${enable_fast_install+set}" = set; then :
8128 enableval=$enable_fast_install; p=${PACKAGE-default}
8129 case $enableval in
8130 yes) enable_fast_install=yes ;;
8131 no) enable_fast_install=no ;;
8132 *)
8133 enable_fast_install=no
8134 # Look at the argument we got. We use all the common list separators.
8135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8136 for pkg in $enableval; do
8137 IFS="$lt_save_ifs"
8138 if test "X$pkg" = "X$p"; then
8139 enable_fast_install=yes
8140 fi
8141 done
8142 IFS="$lt_save_ifs"
8143 ;;
8144 esac
8145else
8146 enable_fast_install=yes
8147fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159# This can be used to rebuild libtool when needed
8160LIBTOOL_DEPS="$ltmain"
8161
8162# Always use our own libtool.
8163LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190test -z "$LN_S" && LN_S="ln -s"
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205if test -n "${ZSH_VERSION+set}" ; then
8206 setopt NO_GLOB_SUBST
8207fi
8208
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8210$as_echo_n "checking for objdir... " >&6; }
22e05272 8211if ${lt_cv_objdir+:} false; then :
b4c522fa
IB
8212 $as_echo_n "(cached) " >&6
8213else
8214 rm -f .libs 2>/dev/null
8215mkdir .libs 2>/dev/null
8216if test -d .libs; then
8217 lt_cv_objdir=.libs
8218else
8219 # MS-DOS does not allow filenames that begin with a dot.
8220 lt_cv_objdir=_libs
8221fi
8222rmdir .libs 2>/dev/null
8223fi
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8225$as_echo "$lt_cv_objdir" >&6; }
8226objdir=$lt_cv_objdir
8227
8228
8229
8230
8231
8232cat >>confdefs.h <<_ACEOF
8233#define LT_OBJDIR "$lt_cv_objdir/"
8234_ACEOF
8235
8236
8237
8238
8239case $host_os in
8240aix3*)
8241 # AIX sometimes has problems with the GCC collect2 program. For some
8242 # reason, if we set the COLLECT_NAMES environment variable, the problems
8243 # vanish in a puff of smoke.
8244 if test "X${COLLECT_NAMES+set}" != Xset; then
8245 COLLECT_NAMES=
8246 export COLLECT_NAMES
8247 fi
8248 ;;
8249esac
8250
8251# Global variables:
8252ofile=libtool
8253can_build_shared=yes
8254
8255# All known linkers require a `.a' archive for static linking (except MSVC,
8256# which needs '.lib').
8257libext=a
8258
8259with_gnu_ld="$lt_cv_prog_gnu_ld"
8260
8261old_CC="$CC"
8262old_CFLAGS="$CFLAGS"
8263
8264# Set sane defaults for various variables
8265test -z "$CC" && CC=cc
8266test -z "$LTCC" && LTCC=$CC
8267test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8268test -z "$LD" && LD=ld
8269test -z "$ac_objext" && ac_objext=o
8270
8271for cc_temp in $compiler""; do
8272 case $cc_temp in
8273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8275 \-*) ;;
8276 *) break;;
8277 esac
8278done
8279cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8280
8281
8282# Only perform the check for file, if the check method requires it
8283test -z "$MAGIC_CMD" && MAGIC_CMD=file
8284case $deplibs_check_method in
8285file_magic*)
8286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8288$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8289if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8290 $as_echo_n "(cached) " >&6
8291else
8292 case $MAGIC_CMD in
8293[\\/*] | ?:[\\/]*)
8294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8295 ;;
8296*)
8297 lt_save_MAGIC_CMD="$MAGIC_CMD"
8298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8300 for ac_dir in $ac_dummy; do
8301 IFS="$lt_save_ifs"
8302 test -z "$ac_dir" && ac_dir=.
8303 if test -f $ac_dir/${ac_tool_prefix}file; then
8304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8305 if test -n "$file_magic_test_file"; then
8306 case $deplibs_check_method in
8307 "file_magic "*)
8308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8311 $EGREP "$file_magic_regex" > /dev/null; then
8312 :
8313 else
8314 cat <<_LT_EOF 1>&2
8315
8316*** Warning: the command libtool uses to detect shared libraries,
8317*** $file_magic_cmd, produces output that libtool cannot recognize.
8318*** The result is that libtool may fail to recognize shared libraries
8319*** as such. This will affect the creation of libtool libraries that
8320*** depend on shared libraries, but programs linked with such libtool
8321*** libraries will work regardless of this problem. Nevertheless, you
8322*** may want to report the problem to your system manager and/or to
8323*** bug-libtool@gnu.org
8324
8325_LT_EOF
8326 fi ;;
8327 esac
8328 fi
8329 break
8330 fi
8331 done
8332 IFS="$lt_save_ifs"
8333 MAGIC_CMD="$lt_save_MAGIC_CMD"
8334 ;;
8335esac
8336fi
8337
8338MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8339if test -n "$MAGIC_CMD"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8341$as_echo "$MAGIC_CMD" >&6; }
8342else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
8345fi
8346
8347
8348
8349
8350
8351if test -z "$lt_cv_path_MAGIC_CMD"; then
8352 if test -n "$ac_tool_prefix"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8354$as_echo_n "checking for file... " >&6; }
22e05272 8355if ${lt_cv_path_MAGIC_CMD+:} false; then :
b4c522fa
IB
8356 $as_echo_n "(cached) " >&6
8357else
8358 case $MAGIC_CMD in
8359[\\/*] | ?:[\\/]*)
8360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8361 ;;
8362*)
8363 lt_save_MAGIC_CMD="$MAGIC_CMD"
8364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8366 for ac_dir in $ac_dummy; do
8367 IFS="$lt_save_ifs"
8368 test -z "$ac_dir" && ac_dir=.
8369 if test -f $ac_dir/file; then
8370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8371 if test -n "$file_magic_test_file"; then
8372 case $deplibs_check_method in
8373 "file_magic "*)
8374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8377 $EGREP "$file_magic_regex" > /dev/null; then
8378 :
8379 else
8380 cat <<_LT_EOF 1>&2
8381
8382*** Warning: the command libtool uses to detect shared libraries,
8383*** $file_magic_cmd, produces output that libtool cannot recognize.
8384*** The result is that libtool may fail to recognize shared libraries
8385*** as such. This will affect the creation of libtool libraries that
8386*** depend on shared libraries, but programs linked with such libtool
8387*** libraries will work regardless of this problem. Nevertheless, you
8388*** may want to report the problem to your system manager and/or to
8389*** bug-libtool@gnu.org
8390
8391_LT_EOF
8392 fi ;;
8393 esac
8394 fi
8395 break
8396 fi
8397 done
8398 IFS="$lt_save_ifs"
8399 MAGIC_CMD="$lt_save_MAGIC_CMD"
8400 ;;
8401esac
8402fi
8403
8404MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8405if test -n "$MAGIC_CMD"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407$as_echo "$MAGIC_CMD" >&6; }
8408else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411fi
8412
8413
8414 else
8415 MAGIC_CMD=:
8416 fi
8417fi
8418
8419 fi
8420 ;;
8421esac
8422
8423# Use C for the default configuration in the libtool script
8424
8425lt_save_CC="$CC"
8426ac_ext=c
8427ac_cpp='$CPP $CPPFLAGS'
8428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8430ac_compiler_gnu=$ac_cv_c_compiler_gnu
8431
8432
8433# Source file extension for C test sources.
8434ac_ext=c
8435
8436# Object file extension for compiled C test sources.
8437objext=o
8438objext=$objext
8439
8440# Code to be used in simple compile tests
8441lt_simple_compile_test_code="int some_variable = 0;"
8442
8443# Code to be used in simple link tests
8444lt_simple_link_test_code='int main(){return(0);}'
8445
8446
8447
8448
8449
8450
8451
8452# If no C compiler was specified, use CC.
8453LTCC=${LTCC-"$CC"}
8454
8455# If no C compiler flags were specified, use CFLAGS.
8456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8457
8458# Allow CC to be a program name with arguments.
8459compiler=$CC
8460
8461# Save the default compiler, since it gets overwritten when the other
8462# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8463compiler_DEFAULT=$CC
8464
8465# save warnings/boilerplate of simple test code
8466ac_outfile=conftest.$ac_objext
8467echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8468eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8469_lt_compiler_boilerplate=`cat conftest.err`
8470$RM conftest*
8471
8472ac_outfile=conftest.$ac_objext
8473echo "$lt_simple_link_test_code" >conftest.$ac_ext
8474eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8475_lt_linker_boilerplate=`cat conftest.err`
8476$RM -r conftest*
8477
8478
8479## CAVEAT EMPTOR:
8480## There is no encapsulation within the following macros, do not change
8481## the running order or otherwise move them around unless you know exactly
8482## what you are doing...
8483if test -n "$compiler"; then
8484
8485lt_prog_compiler_no_builtin_flag=
8486
8487if test "$GCC" = yes; then
8488 case $cc_basename in
8489 nvcc*)
8490 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8491 *)
8492 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8493 esac
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8496$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8497if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
8498 $as_echo_n "(cached) " >&6
8499else
8500 lt_cv_prog_compiler_rtti_exceptions=no
8501 ac_outfile=conftest.$ac_objext
8502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8503 lt_compiler_flag="-fno-rtti -fno-exceptions"
8504 # Insert the option either (1) after the last *FLAGS variable, or
8505 # (2) before a word containing "conftest.", or (3) at the end.
8506 # Note that $ac_compile itself does not contain backslashes and begins
8507 # with a dollar sign (not a hyphen), so the echo should work correctly.
8508 # The option is referenced via a variable to avoid confusing sed.
8509 lt_compile=`echo "$ac_compile" | $SED \
8510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512 -e 's:$: $lt_compiler_flag:'`
8513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8514 (eval "$lt_compile" 2>conftest.err)
8515 ac_status=$?
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 if (exit $ac_status) && test -s "$ac_outfile"; then
8519 # The compiler can only warn and ignore the option if not recognized
8520 # So say no if there are warnings other than the usual output.
8521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8524 lt_cv_prog_compiler_rtti_exceptions=yes
8525 fi
8526 fi
8527 $RM conftest*
8528
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8531$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8532
8533if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8534 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8535else
8536 :
8537fi
8538
8539fi
8540
8541
8542
8543
8544
8545
8546 lt_prog_compiler_wl=
8547lt_prog_compiler_pic=
8548lt_prog_compiler_static=
8549
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8551$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8552
8553 if test "$GCC" = yes; then
8554 lt_prog_compiler_wl='-Wl,'
8555 lt_prog_compiler_static='-static'
8556
8557 case $host_os in
8558 aix*)
8559 # All AIX code is PIC.
8560 if test "$host_cpu" = ia64; then
8561 # AIX 5 now supports IA64 processor
8562 lt_prog_compiler_static='-Bstatic'
8563 fi
8564 lt_prog_compiler_pic='-fPIC'
8565 ;;
8566
8567 amigaos*)
8568 case $host_cpu in
8569 powerpc)
8570 # see comment about AmigaOS4 .so support
8571 lt_prog_compiler_pic='-fPIC'
8572 ;;
8573 m68k)
8574 # FIXME: we need at least 68020 code to build shared libraries, but
8575 # adding the `-m68020' flag to GCC prevents building anything better,
8576 # like `-m68040'.
8577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8578 ;;
8579 esac
8580 ;;
8581
8582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8583 # PIC is the default for these OSes.
8584 ;;
8585
8586 mingw* | cygwin* | pw32* | os2* | cegcc*)
8587 # This hack is so that the source file can tell whether it is being
8588 # built for inclusion in a dll (and should export symbols for example).
8589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8590 # (--disable-auto-import) libraries
8591 lt_prog_compiler_pic='-DDLL_EXPORT'
8592 ;;
8593
8594 darwin* | rhapsody*)
8595 # PIC is the default on this platform
8596 # Common symbols not allowed in MH_DYLIB files
8597 lt_prog_compiler_pic='-fno-common'
8598 ;;
8599
8600 haiku*)
8601 # PIC is the default for Haiku.
8602 # The "-static" flag exists, but is broken.
8603 lt_prog_compiler_static=
8604 ;;
8605
8606 hpux*)
8607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8609 # sets the default TLS model and affects inlining.
8610 case $host_cpu in
8611 hppa*64*)
8612 # +Z the default
8613 ;;
8614 *)
8615 lt_prog_compiler_pic='-fPIC'
8616 ;;
8617 esac
8618 ;;
8619
8620 interix[3-9]*)
8621 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8622 # Instead, we relocate shared libraries at runtime.
8623 ;;
8624
8625 msdosdjgpp*)
8626 # Just because we use GCC doesn't mean we suddenly get shared libraries
8627 # on systems that don't support them.
8628 lt_prog_compiler_can_build_shared=no
8629 enable_shared=no
8630 ;;
8631
8632 *nto* | *qnx*)
8633 # QNX uses GNU C++, but need to define -shared option too, otherwise
8634 # it will coredump.
8635 lt_prog_compiler_pic='-fPIC -shared'
8636 ;;
8637
8638 sysv4*MP*)
8639 if test -d /usr/nec; then
8640 lt_prog_compiler_pic=-Kconform_pic
8641 fi
8642 ;;
8643
8644 *)
8645 lt_prog_compiler_pic='-fPIC'
8646 ;;
8647 esac
8648
8649 case $cc_basename in
8650 nvcc*) # Cuda Compiler Driver 2.2
8651 lt_prog_compiler_wl='-Xlinker '
8652 lt_prog_compiler_pic='-Xcompiler -fPIC'
8653 ;;
8654 esac
8655 else
8656 # PORTME Check for flag to pass linker flags through the system compiler.
8657 case $host_os in
8658 aix*)
8659 lt_prog_compiler_wl='-Wl,'
8660 if test "$host_cpu" = ia64; then
8661 # AIX 5 now supports IA64 processor
8662 lt_prog_compiler_static='-Bstatic'
8663 else
8664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8665 fi
8666 ;;
8667
8668 mingw* | cygwin* | pw32* | os2* | cegcc*)
8669 # This hack is so that the source file can tell whether it is being
8670 # built for inclusion in a dll (and should export symbols for example).
8671 lt_prog_compiler_pic='-DDLL_EXPORT'
8672 ;;
8673
8674 hpux9* | hpux10* | hpux11*)
8675 lt_prog_compiler_wl='-Wl,'
8676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8677 # not for PA HP-UX.
8678 case $host_cpu in
8679 hppa*64*|ia64*)
8680 # +Z the default
8681 ;;
8682 *)
8683 lt_prog_compiler_pic='+Z'
8684 ;;
8685 esac
8686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8687 lt_prog_compiler_static='${wl}-a ${wl}archive'
8688 ;;
8689
8690 irix5* | irix6* | nonstopux*)
8691 lt_prog_compiler_wl='-Wl,'
8692 # PIC (with -KPIC) is the default.
8693 lt_prog_compiler_static='-non_shared'
8694 ;;
8695
8696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8697 case $cc_basename in
8698 # old Intel for x86_64 which still supported -KPIC.
8699 ecc*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-KPIC'
8702 lt_prog_compiler_static='-static'
8703 ;;
8704 # icc used to be incompatible with GCC.
8705 # ICC 10 doesn't accept -KPIC any more.
8706 icc* | ifort*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-fPIC'
8709 lt_prog_compiler_static='-static'
8710 ;;
8711 # Lahey Fortran 8.1.
8712 lf95*)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='--shared'
8715 lt_prog_compiler_static='--static'
8716 ;;
8717 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8718 # Portland Group compilers (*not* the Pentium gcc compiler,
8719 # which looks to be a dead project)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-fpic'
8722 lt_prog_compiler_static='-Bstatic'
8723 ;;
8724 ccc*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # All Alpha code is PIC.
8727 lt_prog_compiler_static='-non_shared'
8728 ;;
8729 xl* | bgxl* | bgf* | mpixl*)
8730 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-qpic'
8733 lt_prog_compiler_static='-qstaticlink'
8734 ;;
8735 *)
8736 case `$CC -V 2>&1 | sed 5q` in
8737 *Sun\ F* | *Sun*Fortran*)
8738 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8739 lt_prog_compiler_pic='-KPIC'
8740 lt_prog_compiler_static='-Bstatic'
8741 lt_prog_compiler_wl=''
8742 ;;
8743 *Sun\ C*)
8744 # Sun C 5.9
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8747 lt_prog_compiler_wl='-Wl,'
8748 ;;
8749 esac
8750 ;;
8751 esac
8752 ;;
8753
8754 newsos6)
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 *nto* | *qnx*)
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8761 # it will coredump.
8762 lt_prog_compiler_pic='-fPIC -shared'
8763 ;;
8764
8765 osf3* | osf4* | osf5*)
8766 lt_prog_compiler_wl='-Wl,'
8767 # All OSF/1 code is PIC.
8768 lt_prog_compiler_static='-non_shared'
8769 ;;
8770
8771 rdos*)
8772 lt_prog_compiler_static='-non_shared'
8773 ;;
8774
8775 solaris*)
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-Bstatic'
8778 case $cc_basename in
8779 f77* | f90* | f95*)
8780 lt_prog_compiler_wl='-Qoption ld ';;
8781 *)
8782 lt_prog_compiler_wl='-Wl,';;
8783 esac
8784 ;;
8785
8786 sunos4*)
8787 lt_prog_compiler_wl='-Qoption ld '
8788 lt_prog_compiler_pic='-PIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 ;;
8791
8792 sysv4 | sysv4.2uw2* | sysv4.3*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 ;;
8797
8798 sysv4*MP*)
8799 if test -d /usr/nec ;then
8800 lt_prog_compiler_pic='-Kconform_pic'
8801 lt_prog_compiler_static='-Bstatic'
8802 fi
8803 ;;
8804
8805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8809 ;;
8810
8811 unicos*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_can_build_shared=no
8814 ;;
8815
8816 uts4*)
8817 lt_prog_compiler_pic='-pic'
8818 lt_prog_compiler_static='-Bstatic'
8819 ;;
8820
8821 *)
8822 lt_prog_compiler_can_build_shared=no
8823 ;;
8824 esac
8825 fi
8826
8827case $host_os in
8828 # For platforms which do not support PIC, -DPIC is meaningless:
8829 *djgpp*)
8830 lt_prog_compiler_pic=
8831 ;;
8832 *)
8833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8834 ;;
8835esac
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8837$as_echo "$lt_prog_compiler_pic" >&6; }
8838
8839
8840
8841
8842
8843
8844#
8845# Check to make sure the PIC flag actually works.
8846#
8847if test -n "$lt_prog_compiler_pic"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8849$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8850if ${lt_cv_prog_compiler_pic_works+:} false; then :
b4c522fa
IB
8851 $as_echo_n "(cached) " >&6
8852else
8853 lt_cv_prog_compiler_pic_works=no
8854 ac_outfile=conftest.$ac_objext
8855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8857 # Insert the option either (1) after the last *FLAGS variable, or
8858 # (2) before a word containing "conftest.", or (3) at the end.
8859 # Note that $ac_compile itself does not contain backslashes and begins
8860 # with a dollar sign (not a hyphen), so the echo should work correctly.
8861 # The option is referenced via a variable to avoid confusing sed.
8862 lt_compile=`echo "$ac_compile" | $SED \
8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865 -e 's:$: $lt_compiler_flag:'`
8866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8867 (eval "$lt_compile" 2>conftest.err)
8868 ac_status=$?
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 if (exit $ac_status) && test -s "$ac_outfile"; then
8872 # The compiler can only warn and ignore the option if not recognized
8873 # So say no if there are warnings other than the usual output.
8874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8877 lt_cv_prog_compiler_pic_works=yes
8878 fi
8879 fi
8880 $RM conftest*
8881
8882fi
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8884$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8885
8886if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8887 case $lt_prog_compiler_pic in
8888 "" | " "*) ;;
8889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8890 esac
8891else
8892 lt_prog_compiler_pic=
8893 lt_prog_compiler_can_build_shared=no
8894fi
8895
8896fi
8897
8898
8899
8900
8901
8902
8903#
8904# Check to make sure the static flag actually works.
8905#
8906wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8908$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8909if ${lt_cv_prog_compiler_static_works+:} false; then :
b4c522fa
IB
8910 $as_echo_n "(cached) " >&6
8911else
8912 lt_cv_prog_compiler_static_works=no
8913 save_LDFLAGS="$LDFLAGS"
8914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8917 # The linker can only warn and ignore the option if not recognized
8918 # So say no if there are warnings
8919 if test -s conftest.err; then
8920 # Append any errors to the config.log.
8921 cat conftest.err 1>&5
8922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8924 if diff conftest.exp conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_static_works=yes
8926 fi
8927 else
8928 lt_cv_prog_compiler_static_works=yes
8929 fi
8930 fi
8931 $RM -r conftest*
8932 LDFLAGS="$save_LDFLAGS"
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8936$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8937
8938if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8939 :
8940else
8941 lt_prog_compiler_static=
8942fi
8943
8944
8945
8946
8947
8948
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8951$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8952if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
8953 $as_echo_n "(cached) " >&6
8954else
8955 lt_cv_prog_compiler_c_o=no
8956 $RM -r conftest 2>/dev/null
8957 mkdir conftest
8958 cd conftest
8959 mkdir out
8960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8961
8962 lt_compiler_flag="-o out/conftest2.$ac_objext"
8963 # Insert the option either (1) after the last *FLAGS variable, or
8964 # (2) before a word containing "conftest.", or (3) at the end.
8965 # Note that $ac_compile itself does not contain backslashes and begins
8966 # with a dollar sign (not a hyphen), so the echo should work correctly.
8967 lt_compile=`echo "$ac_compile" | $SED \
8968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8970 -e 's:$: $lt_compiler_flag:'`
8971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8972 (eval "$lt_compile" 2>out/conftest.err)
8973 ac_status=$?
8974 cat out/conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8977 then
8978 # The compiler can only warn and ignore the option if not recognized
8979 # So say no if there are warnings
8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_c_o=yes
8984 fi
8985 fi
8986 chmod u+w . 2>&5
8987 $RM conftest*
8988 # SGI C++ compiler will create directory out/ii_files/ for
8989 # template instantiation
8990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8991 $RM out/* && rmdir out
8992 cd ..
8993 $RM -r conftest
8994 $RM conftest*
8995
8996fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8998$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8999
9000
9001
9002
9003
9004
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9006$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9007if ${lt_cv_prog_compiler_c_o+:} false; then :
b4c522fa
IB
9008 $as_echo_n "(cached) " >&6
9009else
9010 lt_cv_prog_compiler_c_o=no
9011 $RM -r conftest 2>/dev/null
9012 mkdir conftest
9013 cd conftest
9014 mkdir out
9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016
9017 lt_compiler_flag="-o out/conftest2.$ac_objext"
9018 # Insert the option either (1) after the last *FLAGS variable, or
9019 # (2) before a word containing "conftest.", or (3) at the end.
9020 # Note that $ac_compile itself does not contain backslashes and begins
9021 # with a dollar sign (not a hyphen), so the echo should work correctly.
9022 lt_compile=`echo "$ac_compile" | $SED \
9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025 -e 's:$: $lt_compiler_flag:'`
9026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9027 (eval "$lt_compile" 2>out/conftest.err)
9028 ac_status=$?
9029 cat out/conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9032 then
9033 # The compiler can only warn and ignore the option if not recognized
9034 # So say no if there are warnings
9035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9038 lt_cv_prog_compiler_c_o=yes
9039 fi
9040 fi
9041 chmod u+w . 2>&5
9042 $RM conftest*
9043 # SGI C++ compiler will create directory out/ii_files/ for
9044 # template instantiation
9045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9046 $RM out/* && rmdir out
9047 cd ..
9048 $RM -r conftest
9049 $RM conftest*
9050
9051fi
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9053$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9054
9055
9056
9057
9058hard_links="nottested"
9059if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9060 # do not overwrite the value of need_locks provided by the user
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9062$as_echo_n "checking if we can lock with hard links... " >&6; }
9063 hard_links=yes
9064 $RM conftest*
9065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9066 touch conftest.a
9067 ln conftest.a conftest.b 2>&5 || hard_links=no
9068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9070$as_echo "$hard_links" >&6; }
9071 if test "$hard_links" = no; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9073$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9074 need_locks=warn
9075 fi
9076else
9077 need_locks=no
9078fi
9079
9080
9081
9082
9083
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9086$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9087
9088 runpath_var=
9089 allow_undefined_flag=
9090 always_export_symbols=no
9091 archive_cmds=
9092 archive_expsym_cmds=
9093 compiler_needs_object=no
9094 enable_shared_with_static_runtimes=no
9095 export_dynamic_flag_spec=
9096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9097 hardcode_automatic=no
9098 hardcode_direct=no
9099 hardcode_direct_absolute=no
9100 hardcode_libdir_flag_spec=
9101 hardcode_libdir_flag_spec_ld=
9102 hardcode_libdir_separator=
9103 hardcode_minus_L=no
9104 hardcode_shlibpath_var=unsupported
9105 inherit_rpath=no
9106 link_all_deplibs=unknown
9107 module_cmds=
9108 module_expsym_cmds=
9109 old_archive_from_new_cmds=
9110 old_archive_from_expsyms_cmds=
9111 thread_safe_flag_spec=
9112 whole_archive_flag_spec=
9113 # include_expsyms should be a list of space-separated symbols to be *always*
9114 # included in the symbol list
9115 include_expsyms=
9116 # exclude_expsyms can be an extended regexp of symbols to exclude
9117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9119 # as well as any symbol that contains `d'.
9120 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9122 # platforms (ab)use it in PIC code, but their linkers get confused if
9123 # the symbol is explicitly referenced. Since portable code cannot
9124 # rely on this symbol name, it's probably fine to never include it in
9125 # preloaded symbol tables.
9126 # Exclude shared library initialization/finalization symbols.
9127 extract_expsyms_cmds=
9128
9129 case $host_os in
9130 cygwin* | mingw* | pw32* | cegcc*)
9131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9132 # When not using gcc, we currently assume that we are using
9133 # Microsoft Visual C++.
9134 if test "$GCC" != yes; then
9135 with_gnu_ld=no
9136 fi
9137 ;;
9138 interix*)
9139 # we just hope/assume this is gcc and not c89 (= MSVC++)
9140 with_gnu_ld=yes
9141 ;;
9142 openbsd*)
9143 with_gnu_ld=no
9144 ;;
9145 esac
9146
9147 ld_shlibs=yes
9148
9149 # On some targets, GNU ld is compatible enough with the native linker
9150 # that we're better off using the native interface for both.
9151 lt_use_gnu_ld_interface=no
9152 if test "$with_gnu_ld" = yes; then
9153 case $host_os in
9154 aix*)
9155 # The AIX port of GNU ld has always aspired to compatibility
9156 # with the native linker. However, as the warning in the GNU ld
9157 # block says, versions before 2.19.5* couldn't really create working
9158 # shared libraries, regardless of the interface used.
9159 case `$LD -v 2>&1` in
9160 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9161 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9162 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9163 *)
9164 lt_use_gnu_ld_interface=yes
9165 ;;
9166 esac
9167 ;;
9168 *)
9169 lt_use_gnu_ld_interface=yes
9170 ;;
9171 esac
9172 fi
9173
9174 if test "$lt_use_gnu_ld_interface" = yes; then
9175 # If archive_cmds runs LD, not CC, wlarc should be empty
9176 wlarc='${wl}'
9177
9178 # Set some defaults for GNU ld with shared library support. These
9179 # are reset later if shared libraries are not supported. Putting them
9180 # here allows them to be overridden if necessary.
9181 runpath_var=LD_RUN_PATH
9182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9183 export_dynamic_flag_spec='${wl}--export-dynamic'
9184 # ancient GNU ld didn't support --whole-archive et. al.
9185 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9186 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9187 else
9188 whole_archive_flag_spec=
9189 fi
9190 supports_anon_versioning=no
9191 case `$LD -v 2>&1` in
9192 *GNU\ gold*) supports_anon_versioning=yes ;;
9193 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9194 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9195 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9196 *\ 2.11.*) ;; # other 2.11 versions
9197 *) supports_anon_versioning=yes ;;
9198 esac
9199
9200 # See if GNU ld supports shared libraries.
9201 case $host_os in
9202 aix[3-9]*)
9203 # On AIX/PPC, the GNU linker is very broken
9204 if test "$host_cpu" != ia64; then
9205 ld_shlibs=no
9206 cat <<_LT_EOF 1>&2
9207
9208*** Warning: the GNU linker, at least up to release 2.19, is reported
9209*** to be unable to reliably create shared libraries on AIX.
9210*** Therefore, libtool is disabling shared libraries support. If you
9211*** really care for shared libraries, you may want to install binutils
9212*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9213*** You will then need to restart the configuration process.
9214
9215_LT_EOF
9216 fi
9217 ;;
9218
9219 amigaos*)
9220 case $host_cpu in
9221 powerpc)
9222 # see comment about AmigaOS4 .so support
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 archive_expsym_cmds=''
9225 ;;
9226 m68k)
9227 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)'
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9230 ;;
9231 esac
9232 ;;
9233
9234 beos*)
9235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236 allow_undefined_flag=unsupported
9237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9238 # support --undefined. This deserves some investigation. FIXME
9239 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240 else
9241 ld_shlibs=no
9242 fi
9243 ;;
9244
9245 cygwin* | mingw* | pw32* | cegcc*)
9246 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9247 # as there is no search path for DLLs.
9248 hardcode_libdir_flag_spec='-L$libdir'
9249 export_dynamic_flag_spec='${wl}--export-all-symbols'
9250 allow_undefined_flag=unsupported
9251 always_export_symbols=no
9252 enable_shared_with_static_runtimes=yes
9253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9254
9255 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9257 # If the export-symbols file already is a .def file (1st line
9258 # is EXPORTS), use it as is; otherwise, prepend...
9259 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9260 cp $export_symbols $output_objdir/$soname.def;
9261 else
9262 echo EXPORTS > $output_objdir/$soname.def;
9263 cat $export_symbols >> $output_objdir/$soname.def;
9264 fi~
9265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270
9271 haiku*)
9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 link_all_deplibs=yes
9274 ;;
9275
9276 interix[3-9]*)
9277 hardcode_direct=no
9278 hardcode_shlibpath_var=no
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280 export_dynamic_flag_spec='${wl}-E'
9281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9282 # Instead, shared libraries are loaded at an image base (0x10000000 by
9283 # default) and relocated if they conflict, which is a slow very memory
9284 # consuming and fragmenting process. To avoid this, we pick a random,
9285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9286 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9288 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'
9289 ;;
9290
9291 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9292 tmp_diet=no
9293 if test "$host_os" = linux-dietlibc; then
9294 case $cc_basename in
9295 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9296 esac
9297 fi
9298 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9299 && test "$tmp_diet" = no
9300 then
9301 tmp_addflag=' $pic_flag'
9302 tmp_sharedflag='-shared'
9303 case $cc_basename,$host_cpu in
9304 pgcc*) # Portland Group C compiler
9305 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'
9306 tmp_addflag=' $pic_flag'
9307 ;;
9308 pgf77* | pgf90* | pgf95* | pgfortran*)
9309 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
9312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9313 tmp_addflag=' -i_dynamic' ;;
9314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9315 tmp_addflag=' -i_dynamic -nofor_main' ;;
9316 ifc* | ifort*) # Intel Fortran compiler
9317 tmp_addflag=' -nofor_main' ;;
9318 lf95*) # Lahey Fortran 8.1
9319 whole_archive_flag_spec=
9320 tmp_sharedflag='--shared' ;;
9321 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9322 tmp_sharedflag='-qmkshrobj'
9323 tmp_addflag= ;;
9324 nvcc*) # Cuda Compiler Driver 2.2
9325 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'
9326 compiler_needs_object=yes
9327 ;;
9328 esac
9329 case `$CC -V 2>&1 | sed 5q` in
9330 *Sun\ C*) # Sun C 5.9
9331 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'
9332 compiler_needs_object=yes
9333 tmp_sharedflag='-G' ;;
9334 *Sun\ F*) # Sun Fortran 8.3
9335 tmp_sharedflag='-G' ;;
9336 esac
9337 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338
9339 if test "x$supports_anon_versioning" = xyes; then
9340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9342 echo "local: *; };" >> $output_objdir/$libname.ver~
9343 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9344 fi
9345
9346 case $cc_basename in
9347 xlf* | bgf* | bgxlf* | mpixlf*)
9348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9349 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9350 hardcode_libdir_flag_spec=
9351 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9352 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9353 if test "x$supports_anon_versioning" = xyes; then
9354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9356 echo "local: *; };" >> $output_objdir/$libname.ver~
9357 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9358 fi
9359 ;;
9360 esac
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365
9366 netbsd*)
9367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9368 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9369 wlarc=
9370 else
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373 fi
9374 ;;
9375
9376 solaris*)
9377 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9378 ld_shlibs=no
9379 cat <<_LT_EOF 1>&2
9380
9381*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9382*** create shared libraries on Solaris systems. Therefore, libtool
9383*** is disabling shared libraries support. We urge you to upgrade GNU
9384*** binutils to release 2.9.1 or newer. Another option is to modify
9385*** your PATH or compiler configuration so that the native linker is
9386*** used, and then restart.
9387
9388_LT_EOF
9389 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392 else
9393 ld_shlibs=no
9394 fi
9395 ;;
9396
9397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9398 case `$LD -v 2>&1` in
9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9400 ld_shlibs=no
9401 cat <<_LT_EOF 1>&2
9402
9403*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9404*** reliably create shared libraries on SCO systems. Therefore, libtool
9405*** is disabling shared libraries support. We urge you to upgrade GNU
9406*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9407*** your PATH or compiler configuration so that the native linker is
9408*** used, and then restart.
9409
9410_LT_EOF
9411 ;;
9412 *)
9413 # For security reasons, it is highly recommended that you always
9414 # use absolute paths for naming shared libraries, and exclude the
9415 # DT_RUNPATH tag from executables and libraries. But doing so
9416 # requires that you compile everything twice, which is a pain.
9417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421 else
9422 ld_shlibs=no
9423 fi
9424 ;;
9425 esac
9426 ;;
9427
9428 sunos4*)
9429 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9430 wlarc=
9431 hardcode_direct=yes
9432 hardcode_shlibpath_var=no
9433 ;;
9434
9435 *)
9436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9439 else
9440 ld_shlibs=no
9441 fi
9442 ;;
9443 esac
9444
9445 if test "$ld_shlibs" = no; then
9446 runpath_var=
9447 hardcode_libdir_flag_spec=
9448 export_dynamic_flag_spec=
9449 whole_archive_flag_spec=
9450 fi
9451 else
9452 # PORTME fill in a description of your system's linker (not GNU ld)
9453 case $host_os in
9454 aix3*)
9455 allow_undefined_flag=unsupported
9456 always_export_symbols=yes
9457 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'
9458 # Note: this linker hardcodes the directories in LIBPATH if there
9459 # are no directories specified by -L.
9460 hardcode_minus_L=yes
9461 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9462 # Neither direct hardcoding nor static linking is supported with a
9463 # broken collect2.
9464 hardcode_direct=unsupported
9465 fi
9466 ;;
9467
9468 aix[4-9]*)
9469 if test "$host_cpu" = ia64; then
9470 # On IA64, the linker does run time linking by default, so we don't
9471 # have to do anything special.
9472 aix_use_runtimelinking=no
9473 exp_sym_flag='-Bexport'
9474 no_entry_flag=""
9475 else
9476 # If we're using GNU nm, then we don't want the "-C" option.
9477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9478 # Also, AIX nm treats weak defined symbols like other global
9479 # defined symbols, whereas GNU nm marks them as "W".
9480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9481 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'
9482 else
9483 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'
9484 fi
9485 aix_use_runtimelinking=no
9486
9487 # Test if we are trying to use run time linking or normal
9488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9489 # need to do runtime linking.
9490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9491 for ld_flag in $LDFLAGS; do
9492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9493 aix_use_runtimelinking=yes
9494 break
9495 fi
9496 done
9497 ;;
9498 esac
9499
9500 exp_sym_flag='-bexport'
9501 no_entry_flag='-bnoentry'
9502 fi
9503
9504 # When large executables or shared objects are built, AIX ld can
9505 # have problems creating the table of contents. If linking a library
9506 # or program results in "error TOC overflow" add -mminimal-toc to
9507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9509
9510 archive_cmds=''
9511 hardcode_direct=yes
9512 hardcode_direct_absolute=yes
9513 hardcode_libdir_separator=':'
9514 link_all_deplibs=yes
9515 file_list_spec='${wl}-f,'
9516
9517 if test "$GCC" = yes; then
9518 case $host_os in aix4.[012]|aix4.[012].*)
9519 # We only want to do this on AIX 4.2 and lower, the check
9520 # below for broken collect2 doesn't work under 4.3+
9521 collect2name=`${CC} -print-prog-name=collect2`
9522 if test -f "$collect2name" &&
9523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9524 then
9525 # We have reworked collect2
9526 :
9527 else
9528 # We have old collect2
9529 hardcode_direct=unsupported
9530 # It fails to find uninstalled libraries when the uninstalled
9531 # path is not listed in the libpath. Setting hardcode_minus_L
9532 # to unsupported forces relinking
9533 hardcode_minus_L=yes
9534 hardcode_libdir_flag_spec='-L$libdir'
9535 hardcode_libdir_separator=
9536 fi
9537 ;;
9538 esac
9539 shared_flag='-shared'
9540 if test "$aix_use_runtimelinking" = yes; then
9541 shared_flag="$shared_flag "'${wl}-G'
9542 fi
9543 else
9544 # not using gcc
9545 if test "$host_cpu" = ia64; then
9546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9547 # chokes on -Wl,-G. The following line is correct:
9548 shared_flag='-G'
9549 else
9550 if test "$aix_use_runtimelinking" = yes; then
9551 shared_flag='${wl}-G'
9552 else
9553 shared_flag='${wl}-bM:SRE'
9554 fi
9555 fi
9556 fi
9557
9558 export_dynamic_flag_spec='${wl}-bexpall'
9559 # It seems that -bexpall does not export symbols beginning with
9560 # underscore (_), so it is better to generate a list of symbols to export.
9561 always_export_symbols=yes
9562 if test "$aix_use_runtimelinking" = yes; then
9563 # Warning - without using the other runtime loading flags (-brtl),
9564 # -berok will link without error, but may produce a broken library.
9565 allow_undefined_flag='-berok'
9566 # Determine the default libpath from the value encoded in an
9567 # empty executable.
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h. */
9570
9571int
9572main ()
9573{
9574
9575 ;
9576 return 0;
9577}
9578_ACEOF
9579if ac_fn_c_try_link "$LINENO"; then :
9580
9581lt_aix_libpath_sed='
9582 /Import File Strings/,/^$/ {
9583 /^0/ {
9584 s/^0 *\(.*\)$/\1/
9585 p
9586 }
9587 }'
9588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589# Check for a 64-bit object if we didn't find anything.
9590if test -z "$aix_libpath"; then
9591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9592fi
9593fi
9594rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9597
9598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9599 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"
9600 else
9601 if test "$host_cpu" = ia64; then
9602 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9603 allow_undefined_flag="-z nodefs"
9604 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"
9605 else
9606 # Determine the default libpath from the value encoded in an
9607 # empty executable.
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h. */
9610
9611int
9612main ()
9613{
9614
9615 ;
9616 return 0;
9617}
9618_ACEOF
9619if ac_fn_c_try_link "$LINENO"; then :
9620
9621lt_aix_libpath_sed='
9622 /Import File Strings/,/^$/ {
9623 /^0/ {
9624 s/^0 *\(.*\)$/\1/
9625 p
9626 }
9627 }'
9628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629# Check for a 64-bit object if we didn't find anything.
9630if test -z "$aix_libpath"; then
9631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632fi
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9637
9638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9639 # Warning - without using the other run time loading flags,
9640 # -berok will link without error, but may produce a broken library.
9641 no_undefined_flag=' ${wl}-bernotok'
9642 allow_undefined_flag=' ${wl}-berok'
9643 if test "$with_gnu_ld" = yes; then
9644 # We only use this code for GNU lds that support --whole-archive.
9645 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9646 else
9647 # Exported symbols can be pulled into shared objects from archives
9648 whole_archive_flag_spec='$convenience'
9649 fi
9650 archive_cmds_need_lc=yes
9651 # This is similar to how AIX traditionally builds its shared libraries.
9652 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'
9653 fi
9654 fi
9655 ;;
9656
9657 amigaos*)
9658 case $host_cpu in
9659 powerpc)
9660 # see comment about AmigaOS4 .so support
9661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 archive_expsym_cmds=''
9663 ;;
9664 m68k)
9665 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)'
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_minus_L=yes
9668 ;;
9669 esac
9670 ;;
9671
9672 bsdi[45]*)
9673 export_dynamic_flag_spec=-rdynamic
9674 ;;
9675
9676 cygwin* | mingw* | pw32* | cegcc*)
9677 # When not using gcc, we currently assume that we are using
9678 # Microsoft Visual C++.
9679 # hardcode_libdir_flag_spec is actually meaningless, as there is
9680 # no search path for DLLs.
9681 hardcode_libdir_flag_spec=' '
9682 allow_undefined_flag=unsupported
9683 # Tell ltmain to make .lib files, not .a files.
9684 libext=lib
9685 # Tell ltmain to make .dll files, not .so files.
9686 shrext_cmds=".dll"
9687 # FIXME: Setting linknames here is a bad hack.
9688 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9689 # The linker will automatically build a .lib file if we build a DLL.
9690 old_archive_from_new_cmds='true'
9691 # FIXME: Should let the user specify the lib program.
9692 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9693 fix_srcfile_path='`cygpath -w "$srcfile"`'
9694 enable_shared_with_static_runtimes=yes
9695 ;;
9696
9697 darwin* | rhapsody*)
9698
9699
9700 archive_cmds_need_lc=no
9701 hardcode_direct=no
9702 hardcode_automatic=yes
9703 hardcode_shlibpath_var=unsupported
9704 if test "$lt_cv_ld_force_load" = "yes"; then
9705 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\"`'
9706 else
9707 whole_archive_flag_spec=''
9708 fi
9709 link_all_deplibs=yes
9710 allow_undefined_flag="$_lt_dar_allow_undefined"
9711 case $cc_basename in
9712 ifort*) _lt_dar_can_shared=yes ;;
9713 *) _lt_dar_can_shared=$GCC ;;
9714 esac
9715 if test "$_lt_dar_can_shared" = "yes"; then
9716 output_verbose_link_cmd=func_echo_all
9717 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9718 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9719 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}"
9720 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}"
9721
9722 else
9723 ld_shlibs=no
9724 fi
9725
9726 ;;
9727
9728 dgux*)
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9735 # support. Future versions do this automatically, but an explicit c++rt0.o
9736 # does not break anything, and helps significantly (at the cost of a little
9737 # extra space).
9738 freebsd2.2*)
9739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9740 hardcode_libdir_flag_spec='-R$libdir'
9741 hardcode_direct=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9746 freebsd2.*)
9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_direct=yes
9749 hardcode_minus_L=yes
9750 hardcode_shlibpath_var=no
9751 ;;
9752
9753 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9754 freebsd* | dragonfly*)
9755 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9756 hardcode_libdir_flag_spec='-R$libdir'
9757 hardcode_direct=yes
9758 hardcode_shlibpath_var=no
9759 ;;
9760
9761 hpux9*)
9762 if test "$GCC" = yes; then
9763 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'
9764 else
9765 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'
9766 fi
9767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9768 hardcode_libdir_separator=:
9769 hardcode_direct=yes
9770
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L=yes
9774 export_dynamic_flag_spec='${wl}-E'
9775 ;;
9776
9777 hpux10*)
9778 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9779 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9780 else
9781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9782 fi
9783 if test "$with_gnu_ld" = no; then
9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_flag_spec_ld='+b $libdir'
9786 hardcode_libdir_separator=:
9787 hardcode_direct=yes
9788 hardcode_direct_absolute=yes
9789 export_dynamic_flag_spec='${wl}-E'
9790 # hardcode_minus_L: Not really in the search PATH,
9791 # but as the default location of the library.
9792 hardcode_minus_L=yes
9793 fi
9794 ;;
9795
9796 hpux11*)
9797 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9798 case $host_cpu in
9799 hppa*64*)
9800 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 ia64*)
9803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 *)
9806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807 ;;
9808 esac
9809 else
9810 case $host_cpu in
9811 hppa*64*)
9812 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 ia64*)
9815 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9816 ;;
9817 *)
9818
9819 # Older versions of the 11.00 compiler do not understand -b yet
9820 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9822$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9823if ${lt_cv_prog_compiler__b+:} false; then :
b4c522fa
IB
9824 $as_echo_n "(cached) " >&6
9825else
9826 lt_cv_prog_compiler__b=no
9827 save_LDFLAGS="$LDFLAGS"
9828 LDFLAGS="$LDFLAGS -b"
9829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9831 # The linker can only warn and ignore the option if not recognized
9832 # So say no if there are warnings
9833 if test -s conftest.err; then
9834 # Append any errors to the config.log.
9835 cat conftest.err 1>&5
9836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9838 if diff conftest.exp conftest.er2 >/dev/null; then
9839 lt_cv_prog_compiler__b=yes
9840 fi
9841 else
9842 lt_cv_prog_compiler__b=yes
9843 fi
9844 fi
9845 $RM -r conftest*
9846 LDFLAGS="$save_LDFLAGS"
9847
9848fi
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9850$as_echo "$lt_cv_prog_compiler__b" >&6; }
9851
9852if test x"$lt_cv_prog_compiler__b" = xyes; then
9853 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854else
9855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856fi
9857
9858 ;;
9859 esac
9860 fi
9861 if test "$with_gnu_ld" = no; then
9862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9863 hardcode_libdir_separator=:
9864
9865 case $host_cpu in
9866 hppa*64*|ia64*)
9867 hardcode_direct=no
9868 hardcode_shlibpath_var=no
9869 ;;
9870 *)
9871 hardcode_direct=yes
9872 hardcode_direct_absolute=yes
9873 export_dynamic_flag_spec='${wl}-E'
9874
9875 # hardcode_minus_L: Not really in the search PATH,
9876 # but as the default location of the library.
9877 hardcode_minus_L=yes
9878 ;;
9879 esac
9880 fi
9881 ;;
9882
9883 irix5* | irix6* | nonstopux*)
9884 if test "$GCC" = yes; then
9885 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'
9886 # Try to use the -exported_symbol ld option, if it does not
9887 # work, assume that -exports_file does not work either and
9888 # implicitly export all symbols.
9889 save_LDFLAGS="$LDFLAGS"
9890 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892/* end confdefs.h. */
9893int foo(void) {}
9894_ACEOF
9895if ac_fn_c_try_link "$LINENO"; then :
9896 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'
9897
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 LDFLAGS="$save_LDFLAGS"
9902 else
9903 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'
9904 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'
9905 fi
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9908 hardcode_libdir_separator=:
9909 inherit_rpath=yes
9910 link_all_deplibs=yes
9911 ;;
9912
9913 netbsd*)
9914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9916 else
9917 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9918 fi
9919 hardcode_libdir_flag_spec='-R$libdir'
9920 hardcode_direct=yes
9921 hardcode_shlibpath_var=no
9922 ;;
9923
9924 newsos6)
9925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_direct=yes
9927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9928 hardcode_libdir_separator=:
9929 hardcode_shlibpath_var=no
9930 ;;
9931
9932 *nto* | *qnx*)
9933 ;;
9934
9935 openbsd*)
9936 if test -f /usr/libexec/ld.so; then
9937 hardcode_direct=yes
9938 hardcode_shlibpath_var=no
9939 hardcode_direct_absolute=yes
9940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9944 export_dynamic_flag_spec='${wl}-E'
9945 else
9946 case $host_os in
9947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_libdir_flag_spec='-R$libdir'
9950 ;;
9951 *)
9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9954 ;;
9955 esac
9956 fi
9957 else
9958 ld_shlibs=no
9959 fi
9960 ;;
9961
9962 os2*)
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_minus_L=yes
9965 allow_undefined_flag=unsupported
9966 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'
9967 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9968 ;;
9969
9970 osf3*)
9971 if test "$GCC" = yes; then
9972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9973 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'
9974 else
9975 allow_undefined_flag=' -expect_unresolved \*'
9976 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'
9977 fi
9978 archive_cmds_need_lc='no'
9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980 hardcode_libdir_separator=:
9981 ;;
9982
9983 osf4* | osf5*) # as osf3* with the addition of -msym flag
9984 if test "$GCC" = yes; then
9985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9986 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'
9987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9988 else
9989 allow_undefined_flag=' -expect_unresolved \*'
9990 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'
9991 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~
9992 $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'
9993
9994 # Both c and cxx compiler support -rpath directly
9995 hardcode_libdir_flag_spec='-rpath $libdir'
9996 fi
9997 archive_cmds_need_lc='no'
9998 hardcode_libdir_separator=:
9999 ;;
10000
10001 solaris*)
10002 no_undefined_flag=' -z defs'
10003 if test "$GCC" = yes; then
10004 wlarc='${wl}'
10005 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10008 else
10009 case `$CC -V 2>&1` in
10010 *"Compilers 5.0"*)
10011 wlarc=''
10012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10015 ;;
10016 *)
10017 wlarc='${wl}'
10018 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10020 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10021 ;;
10022 esac
10023 fi
10024 hardcode_libdir_flag_spec='-R$libdir'
10025 hardcode_shlibpath_var=no
10026 case $host_os in
10027 solaris2.[0-5] | solaris2.[0-5].*) ;;
10028 *)
10029 # The compiler driver will combine and reorder linker options,
10030 # but understands `-z linker_flag'. GCC discards it without `$wl',
10031 # but is careful enough not to reorder.
10032 # Supported since Solaris 2.6 (maybe 2.5.1?)
10033 if test "$GCC" = yes; then
10034 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10035 else
10036 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10037 fi
10038 ;;
10039 esac
10040 link_all_deplibs=yes
10041 ;;
10042
10043 sunos4*)
10044 if test "x$host_vendor" = xsequent; then
10045 # Use $CC to link under sequent, because it throws in some extra .o
10046 # files that make .init and .fini sections work.
10047 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10048 else
10049 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10050 fi
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_direct=yes
10053 hardcode_minus_L=yes
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 sysv4)
10058 case $host_vendor in
10059 sni)
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct=yes # is this really true???
10062 ;;
10063 siemens)
10064 ## LD is ld it makes a PLAMLIB
10065 ## CC just makes a GrossModule.
10066 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10067 reload_cmds='$CC -r -o $output$reload_objs'
10068 hardcode_direct=no
10069 ;;
10070 motorola)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10073 ;;
10074 esac
10075 runpath_var='LD_RUN_PATH'
10076 hardcode_shlibpath_var=no
10077 ;;
10078
10079 sysv4.3*)
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_shlibpath_var=no
10082 export_dynamic_flag_spec='-Bexport'
10083 ;;
10084
10085 sysv4*MP*)
10086 if test -d /usr/nec; then
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_shlibpath_var=no
10089 runpath_var=LD_RUN_PATH
10090 hardcode_runpath_var=yes
10091 ld_shlibs=yes
10092 fi
10093 ;;
10094
10095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10096 no_undefined_flag='${wl}-z,text'
10097 archive_cmds_need_lc=no
10098 hardcode_shlibpath_var=no
10099 runpath_var='LD_RUN_PATH'
10100
10101 if test "$GCC" = yes; then
10102 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 else
10105 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 fi
10108 ;;
10109
10110 sysv5* | sco3.2v5* | sco5v6*)
10111 # Note: We can NOT use -z defs as we might desire, because we do not
10112 # link with -lc, and that would cause any symbols used from libc to
10113 # always be unresolved, which means just about no library would
10114 # ever link correctly. If we're not using GNU ld we use -z text
10115 # though, which does catch some bad symbols but isn't as heavy-handed
10116 # as -z defs.
10117 no_undefined_flag='${wl}-z,text'
10118 allow_undefined_flag='${wl}-z,nodefs'
10119 archive_cmds_need_lc=no
10120 hardcode_shlibpath_var=no
10121 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10122 hardcode_libdir_separator=':'
10123 link_all_deplibs=yes
10124 export_dynamic_flag_spec='${wl}-Bexport'
10125 runpath_var='LD_RUN_PATH'
10126
10127 if test "$GCC" = yes; then
10128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 else
10131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 fi
10134 ;;
10135
10136 uts4*)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_libdir_flag_spec='-L$libdir'
10139 hardcode_shlibpath_var=no
10140 ;;
10141
10142 *)
10143 ld_shlibs=no
10144 ;;
10145 esac
10146
10147 if test x$host_vendor = xsni; then
10148 case $host in
10149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10150 export_dynamic_flag_spec='${wl}-Blargedynsym'
10151 ;;
10152 esac
10153 fi
10154 fi
10155
10156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10157$as_echo "$ld_shlibs" >&6; }
10158test "$ld_shlibs" = no && can_build_shared=no
10159
10160with_gnu_ld=$with_gnu_ld
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176#
10177# Do we need to explicitly link libc?
10178#
10179case "x$archive_cmds_need_lc" in
10180x|xyes)
10181 # Assume -lc should be added
10182 archive_cmds_need_lc=yes
10183
10184 if test "$enable_shared" = yes && test "$GCC" = yes; then
10185 case $archive_cmds in
10186 *'~'*)
10187 # FIXME: we may have to deal with multi-command sequences.
10188 ;;
10189 '$CC '*)
10190 # Test whether the compiler implicitly links with -lc since on some
10191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10192 # to ld, don't add -lc before -lgcc.
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10194$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10195if ${lt_cv_archive_cmds_need_lc+:} false; then :
b4c522fa
IB
10196 $as_echo_n "(cached) " >&6
10197else
10198 $RM conftest*
10199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10200
10201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10202 (eval $ac_compile) 2>&5
10203 ac_status=$?
10204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10205 test $ac_status = 0; } 2>conftest.err; then
10206 soname=conftest
10207 lib=conftest
10208 libobjs=conftest.$ac_objext
10209 deplibs=
10210 wl=$lt_prog_compiler_wl
10211 pic_flag=$lt_prog_compiler_pic
10212 compiler_flags=-v
10213 linker_flags=-v
10214 verstring=
10215 output_objdir=.
10216 libname=conftest
10217 lt_save_allow_undefined_flag=$allow_undefined_flag
10218 allow_undefined_flag=
10219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10220 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10221 ac_status=$?
10222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223 test $ac_status = 0; }
10224 then
10225 lt_cv_archive_cmds_need_lc=no
10226 else
10227 lt_cv_archive_cmds_need_lc=yes
10228 fi
10229 allow_undefined_flag=$lt_save_allow_undefined_flag
10230 else
10231 cat conftest.err 1>&5
10232 fi
10233 $RM conftest*
10234
10235fi
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10237$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10238 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10239 ;;
10240 esac
10241 fi
10242 ;;
10243esac
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
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10402$as_echo_n "checking dynamic linker characteristics... " >&6; }
10403
10404if test "$GCC" = yes; then
10405 case $host_os in
10406 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10407 *) lt_awk_arg="/^libraries:/" ;;
10408 esac
10409 case $host_os in
10410 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10411 *) lt_sed_strip_eq="s,=/,/,g" ;;
10412 esac
10413 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10414 case $lt_search_path_spec in
10415 *\;*)
10416 # if the path contains ";" then we assume it to be the separator
10417 # otherwise default to the standard path separator (i.e. ":") - it is
10418 # assumed that no part of a normal pathname contains ";" but that should
10419 # okay in the real world where ";" in dirpaths is itself problematic.
10420 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10421 ;;
10422 *)
10423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10424 ;;
10425 esac
10426 # Ok, now we have the path, separated by spaces, we can step through it
10427 # and add multilib dir if necessary.
10428 lt_tmp_lt_search_path_spec=
10429 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10430 for lt_sys_path in $lt_search_path_spec; do
10431 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10433 else
10434 test -d "$lt_sys_path" && \
10435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10436 fi
10437 done
10438 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10439BEGIN {RS=" "; FS="/|\n";} {
10440 lt_foo="";
10441 lt_count=0;
10442 for (lt_i = NF; lt_i > 0; lt_i--) {
10443 if ($lt_i != "" && $lt_i != ".") {
10444 if ($lt_i == "..") {
10445 lt_count++;
10446 } else {
10447 if (lt_count == 0) {
10448 lt_foo="/" $lt_i lt_foo;
10449 } else {
10450 lt_count--;
10451 }
10452 }
10453 }
10454 }
10455 if (lt_foo != "") { lt_freq[lt_foo]++; }
10456 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10457}'`
10458 # AWK program above erroneously prepends '/' to C:/dos/paths
10459 # for these hosts.
10460 case $host_os in
10461 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10462 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10463 esac
10464 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10465else
10466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10467fi
10468library_names_spec=
10469libname_spec='lib$name'
10470soname_spec=
10471shrext_cmds=".so"
10472postinstall_cmds=
10473postuninstall_cmds=
10474finish_cmds=
10475finish_eval=
10476shlibpath_var=
10477shlibpath_overrides_runpath=unknown
10478version_type=none
10479dynamic_linker="$host_os ld.so"
10480sys_lib_dlsearch_path_spec="/lib /usr/lib"
10481need_lib_prefix=unknown
10482hardcode_into_libs=no
10483
10484# when you set need_version to no, make sure it does not cause -set_version
10485# flags to be left without arguments
10486need_version=unknown
10487
10488case $host_os in
10489aix3*)
10490 version_type=linux
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10492 shlibpath_var=LIBPATH
10493
10494 # AIX 3 has no versioning support, so we append a major version to the name.
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 ;;
10497
10498aix[4-9]*)
10499 version_type=linux
10500 need_lib_prefix=no
10501 need_version=no
10502 hardcode_into_libs=yes
10503 if test "$host_cpu" = ia64; then
10504 # AIX 5 supports IA64
10505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 else
10508 # With GCC up to 2.95.x, collect2 would create an import file
10509 # for dependence libraries. The import file would start with
10510 # the line `#! .'. This would cause the generated library to
10511 # depend on `.', always an invalid library. This was fixed in
10512 # development snapshots of GCC prior to 3.0.
10513 case $host_os in
10514 aix4 | aix4.[01] | aix4.[01].*)
10515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10516 echo ' yes '
10517 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10518 :
10519 else
10520 can_build_shared=no
10521 fi
10522 ;;
10523 esac
10524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10525 # soname into executable. Probably we can add versioning support to
10526 # collect2, so additional links can be useful in future.
10527 if test "$aix_use_runtimelinking" = yes; then
10528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10529 # instead of lib<name>.a to let people know that these are not
10530 # typical AIX shared libraries.
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 else
10533 # We preserve .a as extension for shared libraries through AIX4.2
10534 # and later when we are not doing run time linking.
10535 library_names_spec='${libname}${release}.a $libname.a'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 fi
10538 shlibpath_var=LIBPATH
10539 fi
10540 ;;
10541
10542amigaos*)
10543 case $host_cpu in
10544 powerpc)
10545 # Since July 2007 AmigaOS4 officially supports .so libraries.
10546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 ;;
10549 m68k)
10550 library_names_spec='$libname.ixlibrary $libname.a'
10551 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10552 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'
10553 ;;
10554 esac
10555 ;;
10556
10557beos*)
10558 library_names_spec='${libname}${shared_ext}'
10559 dynamic_linker="$host_os ld.so"
10560 shlibpath_var=LIBRARY_PATH
10561 ;;
10562
10563bsdi[45]*)
10564 version_type=linux
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10572 # the default ld.so.conf also contains /usr/contrib/lib and
10573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10574 # libtool to hard-code these into programs
10575 ;;
10576
10577cygwin* | mingw* | pw32* | cegcc*)
10578 version_type=windows
10579 shrext_cmds=".dll"
10580 need_version=no
10581 need_lib_prefix=no
10582
10583 case $GCC,$host_os in
10584 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10585 library_names_spec='$libname.dll.a'
10586 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10587 postinstall_cmds='base_file=`basename \${file}`~
10588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10589 dldir=$destdir/`dirname \$dlpath`~
10590 test -d \$dldir || mkdir -p \$dldir~
10591 $install_prog $dir/$dlname \$dldir/$dlname~
10592 chmod a+x \$dldir/$dlname~
10593 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10594 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10595 fi'
10596 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10597 dlpath=$dir/\$dldll~
10598 $RM \$dlpath'
10599 shlibpath_overrides_runpath=yes
10600
10601 case $host_os in
10602 cygwin*)
10603 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10604 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605
10606 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10607 ;;
10608 mingw* | cegcc*)
10609 # MinGW DLLs use traditional 'lib' prefix
10610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10611 ;;
10612 pw32*)
10613 # pw32 DLLs use 'pw' prefix rather than 'lib'
10614 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10615 ;;
10616 esac
10617 ;;
10618
10619 *)
10620 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10621 ;;
10622 esac
10623 dynamic_linker='Win32 ld.exe'
10624 # FIXME: first we should search . and the directory the executable is in
10625 shlibpath_var=PATH
10626 ;;
10627
10628darwin* | rhapsody*)
10629 dynamic_linker="$host_os dyld"
10630 version_type=darwin
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10634 soname_spec='${libname}${release}${major}$shared_ext'
10635 shlibpath_overrides_runpath=yes
10636 shlibpath_var=DYLD_LIBRARY_PATH
10637 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10638
10639 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10640 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10641 ;;
10642
10643dgux*)
10644 version_type=linux
10645 need_lib_prefix=no
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 ;;
10651
10652freebsd* | dragonfly*)
10653 # DragonFly does not have aout. When/if they implement a new
10654 # versioning mechanism, adjust this.
10655 if test -x /usr/bin/objformat; then
10656 objformat=`/usr/bin/objformat`
10657 else
10658 case $host_os in
10659 freebsd[23].*) objformat=aout ;;
10660 *) objformat=elf ;;
10661 esac
10662 fi
10663 version_type=freebsd-$objformat
10664 case $version_type in
10665 freebsd-elf*)
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10667 need_version=no
10668 need_lib_prefix=no
10669 ;;
10670 freebsd-*)
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10672 need_version=yes
10673 ;;
10674 esac
10675 shlibpath_var=LD_LIBRARY_PATH
10676 case $host_os in
10677 freebsd2.*)
10678 shlibpath_overrides_runpath=yes
10679 ;;
10680 freebsd3.[01]* | freebsdelf3.[01]*)
10681 shlibpath_overrides_runpath=yes
10682 hardcode_into_libs=yes
10683 ;;
10684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10686 shlibpath_overrides_runpath=no
10687 hardcode_into_libs=yes
10688 ;;
10689 *) # from 4.6 on, and DragonFly
10690 shlibpath_overrides_runpath=yes
10691 hardcode_into_libs=yes
10692 ;;
10693 esac
10694 ;;
10695
10696gnu*)
10697 version_type=linux
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 hardcode_into_libs=yes
10704 ;;
10705
10706haiku*)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 dynamic_linker="$host_os runtime_loader"
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10716 hardcode_into_libs=yes
10717 ;;
10718
10719hpux9* | hpux10* | hpux11*)
10720 # Give a soname corresponding to the major version so that dld.sl refuses to
10721 # link against other versions.
10722 version_type=sunos
10723 need_lib_prefix=no
10724 need_version=no
10725 case $host_cpu in
10726 ia64*)
10727 shrext_cmds='.so'
10728 hardcode_into_libs=yes
10729 dynamic_linker="$host_os dld.so"
10730 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
10735 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10736 else
10737 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10738 fi
10739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10740 ;;
10741 hppa*64*)
10742 shrext_cmds='.sl'
10743 hardcode_into_libs=yes
10744 dynamic_linker="$host_os dld.sl"
10745 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10751 ;;
10752 *)
10753 shrext_cmds='.sl'
10754 dynamic_linker="$host_os dld.sl"
10755 shlibpath_var=SHLIB_PATH
10756 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 ;;
10760 esac
10761 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10762 postinstall_cmds='chmod 555 $lib'
10763 # or fails outright, so override atomically:
10764 install_override_mode=555
10765 ;;
10766
10767interix[3-9]*)
10768 version_type=linux
10769 need_lib_prefix=no
10770 need_version=no
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10772 soname_spec='${libname}${release}${shared_ext}$major'
10773 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=no
10776 hardcode_into_libs=yes
10777 ;;
10778
10779irix5* | irix6* | nonstopux*)
10780 case $host_os in
10781 nonstopux*) version_type=nonstopux ;;
10782 *)
10783 if test "$lt_cv_prog_gnu_ld" = yes; then
10784 version_type=linux
10785 else
10786 version_type=irix
10787 fi ;;
10788 esac
10789 need_lib_prefix=no
10790 need_version=no
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10793 case $host_os in
10794 irix5* | nonstopux*)
10795 libsuff= shlibsuff=
10796 ;;
10797 *)
10798 case $LD in # libtool.m4 will add one of these switches to LD
10799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10800 libsuff= shlibsuff= libmagic=32-bit;;
10801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10802 libsuff=32 shlibsuff=N32 libmagic=N32;;
10803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10804 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10805 *) libsuff= shlibsuff= libmagic=never-match;;
10806 esac
10807 ;;
10808 esac
10809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10810 shlibpath_overrides_runpath=no
10811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10813 hardcode_into_libs=yes
10814 ;;
10815
10816# No shared lib support for Linux oldld, aout, or coff.
10817linux*oldld* | linux*aout* | linux*coff*)
10818 dynamic_linker=no
10819 ;;
10820
10821# This must be Linux ELF.
10822linux* | k*bsd*-gnu | kopensolaris*-gnu)
10823 version_type=linux
10824 need_lib_prefix=no
10825 need_version=no
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=no
10831
10832 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10833 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b4c522fa
IB
10834 $as_echo_n "(cached) " >&6
10835else
10836 lt_cv_shlibpath_overrides_runpath=no
10837 save_LDFLAGS=$LDFLAGS
10838 save_libdir=$libdir
10839 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10840 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842/* end confdefs.h. */
10843
10844int
10845main ()
10846{
10847
10848 ;
10849 return 0;
10850}
10851_ACEOF
10852if ac_fn_c_try_link "$LINENO"; then :
10853 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10854 lt_cv_shlibpath_overrides_runpath=yes
10855fi
10856fi
10857rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LDFLAGS=$save_LDFLAGS
10860 libdir=$save_libdir
10861
10862fi
10863
10864 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10865
10866 # This implies no fast_install, which is unacceptable.
10867 # Some rework will be needed to allow for fast_install
10868 # before this can be enabled.
10869 hardcode_into_libs=yes
10870
10871 # Append ld.so.conf contents to the search path
10872 if test -f /etc/ld.so.conf; then
10873 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' ' '`
10874 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10875 fi
10876
10877 # We used to test for /lib/ld.so.1 and disable shared libraries on
10878 # powerpc, because MkLinux only supported shared libraries with the
10879 # GNU dynamic linker. Since this was broken with cross compilers,
10880 # most powerpc-linux boxes support dynamic linking these days and
10881 # people can always --disable-shared, the test was removed, and we
10882 # assume the GNU/Linux dynamic linker is in use.
10883 dynamic_linker='GNU/Linux ld.so'
10884 ;;
10885
10886netbsd*)
10887 version_type=sunos
10888 need_lib_prefix=no
10889 need_version=no
10890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10893 dynamic_linker='NetBSD (a.out) ld.so'
10894 else
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 dynamic_linker='NetBSD ld.elf_so'
10898 fi
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=yes
10901 hardcode_into_libs=yes
10902 ;;
10903
10904newsos6)
10905 version_type=linux
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 ;;
10910
10911*nto* | *qnx*)
10912 version_type=qnx
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=no
10919 hardcode_into_libs=yes
10920 dynamic_linker='ldqnx.so'
10921 ;;
10922
10923openbsd*)
10924 version_type=sunos
10925 sys_lib_dlsearch_path_spec="/usr/lib"
10926 need_lib_prefix=no
10927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10928 case $host_os in
10929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10930 *) need_version=no ;;
10931 esac
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10936 case $host_os in
10937 openbsd2.[89] | openbsd2.[89].*)
10938 shlibpath_overrides_runpath=no
10939 ;;
10940 *)
10941 shlibpath_overrides_runpath=yes
10942 ;;
10943 esac
10944 else
10945 shlibpath_overrides_runpath=yes
10946 fi
10947 ;;
10948
10949os2*)
10950 libname_spec='$name'
10951 shrext_cmds=".dll"
10952 need_lib_prefix=no
10953 library_names_spec='$libname${shared_ext} $libname.a'
10954 dynamic_linker='OS/2 ld.exe'
10955 shlibpath_var=LIBPATH
10956 ;;
10957
10958osf3* | osf4* | osf5*)
10959 version_type=osf
10960 need_lib_prefix=no
10961 need_version=no
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10967 ;;
10968
10969rdos*)
10970 dynamic_linker=no
10971 ;;
10972
10973solaris*)
10974 version_type=linux
10975 need_lib_prefix=no
10976 need_version=no
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=yes
10981 hardcode_into_libs=yes
10982 # ldd complains unless libraries are executable
10983 postinstall_cmds='chmod +x $lib'
10984 ;;
10985
10986sunos4*)
10987 version_type=sunos
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=yes
10992 if test "$with_gnu_ld" = yes; then
10993 need_lib_prefix=no
10994 fi
10995 need_version=yes
10996 ;;
10997
10998sysv4 | sysv4.3*)
10999 version_type=linux
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 case $host_vendor in
11004 sni)
11005 shlibpath_overrides_runpath=no
11006 need_lib_prefix=no
11007 runpath_var=LD_RUN_PATH
11008 ;;
11009 siemens)
11010 need_lib_prefix=no
11011 ;;
11012 motorola)
11013 need_lib_prefix=no
11014 need_version=no
11015 shlibpath_overrides_runpath=no
11016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11017 ;;
11018 esac
11019 ;;
11020
11021sysv4*MP*)
11022 if test -d /usr/nec ;then
11023 version_type=linux
11024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11025 soname_spec='$libname${shared_ext}.$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 fi
11028 ;;
11029
11030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11031 version_type=freebsd-elf
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038 hardcode_into_libs=yes
11039 if test "$with_gnu_ld" = yes; then
11040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11041 else
11042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11043 case $host_os in
11044 sco3.2v5*)
11045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11046 ;;
11047 esac
11048 fi
11049 sys_lib_dlsearch_path_spec='/usr/lib'
11050 ;;
11051
11052tpf*)
11053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11054 version_type=linux
11055 need_lib_prefix=no
11056 need_version=no
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060 hardcode_into_libs=yes
11061 ;;
11062
11063uts4*)
11064 version_type=linux
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 soname_spec='${libname}${release}${shared_ext}$major'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 ;;
11069
11070*)
11071 dynamic_linker=no
11072 ;;
11073esac
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11075$as_echo "$dynamic_linker" >&6; }
11076test "$dynamic_linker" = no && can_build_shared=no
11077
11078variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11079if test "$GCC" = yes; then
11080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11081fi
11082
11083if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11084 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11085fi
11086if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11087 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11088fi
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
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11182$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11183hardcode_action=
11184if test -n "$hardcode_libdir_flag_spec" ||
11185 test -n "$runpath_var" ||
11186 test "X$hardcode_automatic" = "Xyes" ; then
11187
11188 # We can hardcode non-existent directories.
11189 if test "$hardcode_direct" != no &&
11190 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11191 # have to relink, otherwise we might link with an installed library
11192 # when we should be linking with a yet-to-be-installed one
11193 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11194 test "$hardcode_minus_L" != no; then
11195 # Linking always hardcodes the temporary library directory.
11196 hardcode_action=relink
11197 else
11198 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11199 hardcode_action=immediate
11200 fi
11201else
11202 # We cannot hardcode anything, or else we can only hardcode existing
11203 # directories.
11204 hardcode_action=unsupported
11205fi
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11207$as_echo "$hardcode_action" >&6; }
11208
11209if test "$hardcode_action" = relink ||
11210 test "$inherit_rpath" = yes; then
11211 # Fast installation is not supported
11212 enable_fast_install=no
11213elif test "$shlibpath_overrides_runpath" = yes ||
11214 test "$enable_shared" = no; then
11215 # Fast installation is not necessary
11216 enable_fast_install=needless
11217fi
11218
11219
11220
11221
11222
11223
11224 if test "x$enable_dlopen" != xyes; then
11225 enable_dlopen=unknown
11226 enable_dlopen_self=unknown
11227 enable_dlopen_self_static=unknown
11228else
11229 lt_cv_dlopen=no
11230 lt_cv_dlopen_libs=
11231
11232 case $host_os in
11233 beos*)
11234 lt_cv_dlopen="load_add_on"
11235 lt_cv_dlopen_libs=
11236 lt_cv_dlopen_self=yes
11237 ;;
11238
11239 mingw* | pw32* | cegcc*)
11240 lt_cv_dlopen="LoadLibrary"
11241 lt_cv_dlopen_libs=
11242 ;;
11243
11244 cygwin*)
11245 lt_cv_dlopen="dlopen"
11246 lt_cv_dlopen_libs=
11247 ;;
11248
11249 darwin*)
11250 # if libdl is installed we need to link against it
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11252$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11253if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11254 $as_echo_n "(cached) " >&6
11255else
11256 ac_check_lib_save_LIBS=$LIBS
11257LIBS="-ldl $LIBS"
11258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259/* end confdefs.h. */
11260
11261/* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11264#ifdef __cplusplus
11265extern "C"
11266#endif
11267char dlopen ();
11268int
11269main ()
11270{
11271return dlopen ();
11272 ;
11273 return 0;
11274}
11275_ACEOF
11276if ac_fn_c_try_link "$LINENO"; then :
11277 ac_cv_lib_dl_dlopen=yes
11278else
11279 ac_cv_lib_dl_dlopen=no
11280fi
11281rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283LIBS=$ac_check_lib_save_LIBS
11284fi
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11286$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11287if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11288 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11289else
11290
11291 lt_cv_dlopen="dyld"
11292 lt_cv_dlopen_libs=
11293 lt_cv_dlopen_self=yes
11294
11295fi
11296
11297 ;;
11298
11299 *)
11300 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11301if test "x$ac_cv_func_shl_load" = xyes; then :
b4c522fa
IB
11302 lt_cv_dlopen="shl_load"
11303else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11305$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11306if ${ac_cv_lib_dld_shl_load+:} false; then :
b4c522fa
IB
11307 $as_echo_n "(cached) " >&6
11308else
11309 ac_check_lib_save_LIBS=$LIBS
11310LIBS="-ldld $LIBS"
11311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312/* end confdefs.h. */
11313
11314/* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320char shl_load ();
11321int
11322main ()
11323{
11324return shl_load ();
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329if ac_fn_c_try_link "$LINENO"; then :
11330 ac_cv_lib_dld_shl_load=yes
11331else
11332 ac_cv_lib_dld_shl_load=no
11333fi
11334rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336LIBS=$ac_check_lib_save_LIBS
11337fi
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11339$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11340if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b4c522fa
IB
11341 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11342else
11343 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11344if test "x$ac_cv_func_dlopen" = xyes; then :
b4c522fa
IB
11345 lt_cv_dlopen="dlopen"
11346else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11348$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11349if ${ac_cv_lib_dl_dlopen+:} false; then :
b4c522fa
IB
11350 $as_echo_n "(cached) " >&6
11351else
11352 ac_check_lib_save_LIBS=$LIBS
11353LIBS="-ldl $LIBS"
11354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355/* end confdefs.h. */
11356
11357/* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360#ifdef __cplusplus
11361extern "C"
11362#endif
11363char dlopen ();
11364int
11365main ()
11366{
11367return dlopen ();
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_dl_dlopen=yes
11374else
11375 ac_cv_lib_dl_dlopen=no
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379LIBS=$ac_check_lib_save_LIBS
11380fi
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11382$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11383if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b4c522fa
IB
11384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11385else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11387$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11388if ${ac_cv_lib_svld_dlopen+:} false; then :
b4c522fa
IB
11389 $as_echo_n "(cached) " >&6
11390else
11391 ac_check_lib_save_LIBS=$LIBS
11392LIBS="-lsvld $LIBS"
11393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h. */
11395
11396/* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11399#ifdef __cplusplus
11400extern "C"
11401#endif
11402char dlopen ();
11403int
11404main ()
11405{
11406return dlopen ();
11407 ;
11408 return 0;
11409}
11410_ACEOF
11411if ac_fn_c_try_link "$LINENO"; then :
11412 ac_cv_lib_svld_dlopen=yes
11413else
11414 ac_cv_lib_svld_dlopen=no
11415fi
11416rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418LIBS=$ac_check_lib_save_LIBS
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11421$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11422if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b4c522fa
IB
11423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11424else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11426$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11427if ${ac_cv_lib_dld_dld_link+:} false; then :
b4c522fa
IB
11428 $as_echo_n "(cached) " >&6
11429else
11430 ac_check_lib_save_LIBS=$LIBS
11431LIBS="-ldld $LIBS"
11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h. */
11434
11435/* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11438#ifdef __cplusplus
11439extern "C"
11440#endif
11441char dld_link ();
11442int
11443main ()
11444{
11445return dld_link ();
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450if ac_fn_c_try_link "$LINENO"; then :
11451 ac_cv_lib_dld_dld_link=yes
11452else
11453 ac_cv_lib_dld_dld_link=no
11454fi
11455rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457LIBS=$ac_check_lib_save_LIBS
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11460$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11461if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b4c522fa
IB
11462 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11463fi
11464
11465
11466fi
11467
11468
11469fi
11470
11471
11472fi
11473
11474
11475fi
11476
11477
11478fi
11479
11480 ;;
11481 esac
11482
11483 if test "x$lt_cv_dlopen" != xno; then
11484 enable_dlopen=yes
11485 else
11486 enable_dlopen=no
11487 fi
11488
11489 case $lt_cv_dlopen in
11490 dlopen)
11491 save_CPPFLAGS="$CPPFLAGS"
11492 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11493
11494 save_LDFLAGS="$LDFLAGS"
11495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11496
11497 save_LIBS="$LIBS"
11498 LIBS="$lt_cv_dlopen_libs $LIBS"
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11501$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11502if ${lt_cv_dlopen_self+:} false; then :
b4c522fa
IB
11503 $as_echo_n "(cached) " >&6
11504else
11505 if test "$cross_compiling" = yes; then :
11506 lt_cv_dlopen_self=cross
11507else
11508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11509 lt_status=$lt_dlunknown
11510 cat > conftest.$ac_ext <<_LT_EOF
85041a5b 11511#line 11511 "configure"
b4c522fa
IB
11512#include "confdefs.h"
11513
11514#if HAVE_DLFCN_H
11515#include <dlfcn.h>
11516#endif
11517
11518#include <stdio.h>
11519
11520#ifdef RTLD_GLOBAL
11521# define LT_DLGLOBAL RTLD_GLOBAL
11522#else
11523# ifdef DL_GLOBAL
11524# define LT_DLGLOBAL DL_GLOBAL
11525# else
11526# define LT_DLGLOBAL 0
11527# endif
11528#endif
11529
11530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11531 find out it does not work in some platform. */
11532#ifndef LT_DLLAZY_OR_NOW
11533# ifdef RTLD_LAZY
11534# define LT_DLLAZY_OR_NOW RTLD_LAZY
11535# else
11536# ifdef DL_LAZY
11537# define LT_DLLAZY_OR_NOW DL_LAZY
11538# else
11539# ifdef RTLD_NOW
11540# define LT_DLLAZY_OR_NOW RTLD_NOW
11541# else
11542# ifdef DL_NOW
11543# define LT_DLLAZY_OR_NOW DL_NOW
11544# else
11545# define LT_DLLAZY_OR_NOW 0
11546# endif
11547# endif
11548# endif
11549# endif
11550#endif
11551
11552/* When -fvisbility=hidden is used, assume the code has been annotated
11553 correspondingly for the symbols needed. */
11554#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11555void fnord () __attribute__((visibility("default")));
11556#endif
11557
11558void fnord () { int i=42; }
11559int main ()
11560{
11561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11562 int status = $lt_dlunknown;
11563
11564 if (self)
11565 {
11566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11567 else
11568 {
11569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 else puts (dlerror ());
11571 }
11572 /* dlclose (self); */
11573 }
11574 else
11575 puts (dlerror ());
11576
11577 return status;
11578}
11579_LT_EOF
11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11581 (eval $ac_link) 2>&5
11582 ac_status=$?
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11585 (./conftest; exit; ) >&5 2>/dev/null
11586 lt_status=$?
11587 case x$lt_status in
11588 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11589 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11590 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11591 esac
11592 else :
11593 # compilation failed
11594 lt_cv_dlopen_self=no
11595 fi
11596fi
11597rm -fr conftest*
11598
11599
11600fi
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11602$as_echo "$lt_cv_dlopen_self" >&6; }
11603
11604 if test "x$lt_cv_dlopen_self" = xyes; then
11605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11607$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11608if ${lt_cv_dlopen_self_static+:} false; then :
b4c522fa
IB
11609 $as_echo_n "(cached) " >&6
11610else
11611 if test "$cross_compiling" = yes; then :
11612 lt_cv_dlopen_self_static=cross
11613else
11614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11615 lt_status=$lt_dlunknown
11616 cat > conftest.$ac_ext <<_LT_EOF
85041a5b 11617#line 11617 "configure"
b4c522fa
IB
11618#include "confdefs.h"
11619
11620#if HAVE_DLFCN_H
11621#include <dlfcn.h>
11622#endif
11623
11624#include <stdio.h>
11625
11626#ifdef RTLD_GLOBAL
11627# define LT_DLGLOBAL RTLD_GLOBAL
11628#else
11629# ifdef DL_GLOBAL
11630# define LT_DLGLOBAL DL_GLOBAL
11631# else
11632# define LT_DLGLOBAL 0
11633# endif
11634#endif
11635
11636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11637 find out it does not work in some platform. */
11638#ifndef LT_DLLAZY_OR_NOW
11639# ifdef RTLD_LAZY
11640# define LT_DLLAZY_OR_NOW RTLD_LAZY
11641# else
11642# ifdef DL_LAZY
11643# define LT_DLLAZY_OR_NOW DL_LAZY
11644# else
11645# ifdef RTLD_NOW
11646# define LT_DLLAZY_OR_NOW RTLD_NOW
11647# else
11648# ifdef DL_NOW
11649# define LT_DLLAZY_OR_NOW DL_NOW
11650# else
11651# define LT_DLLAZY_OR_NOW 0
11652# endif
11653# endif
11654# endif
11655# endif
11656#endif
11657
11658/* When -fvisbility=hidden is used, assume the code has been annotated
11659 correspondingly for the symbols needed. */
11660#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11661void fnord () __attribute__((visibility("default")));
11662#endif
11663
11664void fnord () { int i=42; }
11665int main ()
11666{
11667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11668 int status = $lt_dlunknown;
11669
11670 if (self)
11671 {
11672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11673 else
11674 {
11675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11676 else puts (dlerror ());
11677 }
11678 /* dlclose (self); */
11679 }
11680 else
11681 puts (dlerror ());
11682
11683 return status;
11684}
11685_LT_EOF
11686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11687 (eval $ac_link) 2>&5
11688 ac_status=$?
11689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11690 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11691 (./conftest; exit; ) >&5 2>/dev/null
11692 lt_status=$?
11693 case x$lt_status in
11694 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11695 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11696 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11697 esac
11698 else :
11699 # compilation failed
11700 lt_cv_dlopen_self_static=no
11701 fi
11702fi
11703rm -fr conftest*
11704
11705
11706fi
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11708$as_echo "$lt_cv_dlopen_self_static" >&6; }
11709 fi
11710
11711 CPPFLAGS="$save_CPPFLAGS"
11712 LDFLAGS="$save_LDFLAGS"
11713 LIBS="$save_LIBS"
11714 ;;
11715 esac
11716
11717 case $lt_cv_dlopen_self in
11718 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11719 *) enable_dlopen_self=unknown ;;
11720 esac
11721
11722 case $lt_cv_dlopen_self_static in
11723 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11724 *) enable_dlopen_self_static=unknown ;;
11725 esac
11726fi
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744striplib=
11745old_striplib=
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11747$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11748if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11749 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11750 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752$as_echo "yes" >&6; }
11753else
11754# FIXME - insert some real tests, host_os isn't really good enough
11755 case $host_os in
11756 darwin*)
11757 if test -n "$STRIP" ; then
11758 striplib="$STRIP -x"
11759 old_striplib="$STRIP -S"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761$as_echo "yes" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764$as_echo "no" >&6; }
11765 fi
11766 ;;
11767 *)
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
11770 ;;
11771 esac
11772fi
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785 # Report which library types will actually be built
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11787$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11789$as_echo "$can_build_shared" >&6; }
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11792$as_echo_n "checking whether to build shared libraries... " >&6; }
11793 test "$can_build_shared" = "no" && enable_shared=no
11794
11795 # On AIX, shared libraries and static libraries use the same namespace, and
11796 # are all built from PIC.
11797 case $host_os in
11798 aix3*)
11799 test "$enable_shared" = yes && enable_static=no
11800 if test -n "$RANLIB"; then
11801 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11802 postinstall_cmds='$RANLIB $lib'
11803 fi
11804 ;;
11805
11806 aix[4-9]*)
11807 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11808 test "$enable_shared" = yes && enable_static=no
11809 fi
11810 ;;
11811 esac
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11813$as_echo "$enable_shared" >&6; }
11814
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11816$as_echo_n "checking whether to build static libraries... " >&6; }
11817 # Make sure either enable_shared or enable_static is yes.
11818 test "$enable_shared" = yes || enable_static=yes
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11820$as_echo "$enable_static" >&6; }
11821
11822
11823
11824
11825fi
11826ac_ext=c
11827ac_cpp='$CPP $CPPFLAGS'
11828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11830ac_compiler_gnu=$ac_cv_c_compiler_gnu
11831
11832CC="$lt_save_CC"
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846 ac_config_commands="$ac_config_commands libtool"
11847
11848
11849
11850
11851# Only expand once:
11852
11853
11854
11855
11856
11857 gdc_save_DFLAGS=$GDCFLAGS
11858 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11859
11860
11861# Source file extension for D test sources.
11862ac_ext=d
11863
11864# Object file extension for compiled D test sources.
11865objext=o
11866objext_D=$objext
11867
11868# Code to be used in simple compile tests
11869lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11870
11871# Code to be used in simple link tests
11872lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11873
11874# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11875
11876
11877
11878
11879
11880
11881# If no C compiler was specified, use CC.
11882LTCC=${LTCC-"$CC"}
11883
11884# If no C compiler flags were specified, use CFLAGS.
11885LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11886
11887# Allow CC to be a program name with arguments.
11888compiler=$CC
11889
11890
11891# save warnings/boilerplate of simple test code
11892ac_outfile=conftest.$ac_objext
11893echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11895_lt_compiler_boilerplate=`cat conftest.err`
11896$RM conftest*
11897
11898ac_outfile=conftest.$ac_objext
11899echo "$lt_simple_link_test_code" >conftest.$ac_ext
11900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11901_lt_linker_boilerplate=`cat conftest.err`
11902$RM -r conftest*
11903
11904
11905# Allow CC to be a program name with arguments.
11906lt_save_CC=$CC
11907lt_save_CFLAGS=$CFLAGS
11908lt_save_DFLAGS=$GDCFLAGS
11909lt_save_GCC=$GCC
11910GCC=yes
11911CC=${GDC-"gdc"}
11912# Need to specify location for object.d
11913GDCFLAGS="-nophoboslib $GDCFLAGS"
11914CFLAGS=$GDCFLAGS
11915compiler=$CC
11916compiler_D=$CC
11917LD_D=$CC
11918for cc_temp in $compiler""; do
11919 case $cc_temp in
11920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11922 \-*) ;;
11923 *) break;;
11924 esac
11925done
11926cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11927
11928
11929# GDC did not exist at the time GCC didn't implicitly link libc in.
11930archive_cmds_need_lc_D=no
11931
11932old_archive_cmds_D=$old_archive_cmds
11933reload_flag_D=$reload_flag
11934reload_cmds_D=$reload_cmds
11935
11936## CAVEAT EMPTOR:
11937## There is no encapsulation within the following macros, do not change
11938## the running order or otherwise move them around unless you know exactly
11939## what you are doing...
11940if test -n "$compiler"; then
11941
11942lt_prog_compiler_no_builtin_flag_D=
11943
11944if test "$GCC" = yes; then
11945 case $cc_basename in
11946 nvcc*)
11947 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11948 *)
11949 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11950 esac
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11953$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 11954if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b4c522fa
IB
11955 $as_echo_n "(cached) " >&6
11956else
11957 lt_cv_prog_compiler_rtti_exceptions=no
11958 ac_outfile=conftest.$ac_objext
11959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11960 lt_compiler_flag="-fno-rtti -fno-exceptions"
11961 # Insert the option either (1) after the last *FLAGS variable, or
11962 # (2) before a word containing "conftest.", or (3) at the end.
11963 # Note that $ac_compile itself does not contain backslashes and begins
11964 # with a dollar sign (not a hyphen), so the echo should work correctly.
11965 # The option is referenced via a variable to avoid confusing sed.
11966 lt_compile=`echo "$ac_compile" | $SED \
11967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11969 -e 's:$: $lt_compiler_flag:'`
11970 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11971 (eval "$lt_compile" 2>conftest.err)
11972 ac_status=$?
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 if (exit $ac_status) && test -s "$ac_outfile"; then
11976 # The compiler can only warn and ignore the option if not recognized
11977 # So say no if there are warnings other than the usual output.
11978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11981 lt_cv_prog_compiler_rtti_exceptions=yes
11982 fi
11983 fi
11984 $RM conftest*
11985
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11988$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11989
11990if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11991 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11992else
11993 :
11994fi
11995
11996fi
11997
11998
11999
12000 lt_prog_compiler_wl_D=
12001lt_prog_compiler_pic_D=
12002lt_prog_compiler_static_D=
12003
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12005$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12006
12007 if test "$GCC" = yes; then
12008 lt_prog_compiler_wl_D='-Wl,'
12009 lt_prog_compiler_static_D='-static'
12010
12011 case $host_os in
12012 aix*)
12013 # All AIX code is PIC.
12014 if test "$host_cpu" = ia64; then
12015 # AIX 5 now supports IA64 processor
12016 lt_prog_compiler_static_D='-Bstatic'
12017 fi
12018 lt_prog_compiler_pic_D='-fPIC'
12019 ;;
12020
12021 amigaos*)
12022 case $host_cpu in
12023 powerpc)
12024 # see comment about AmigaOS4 .so support
12025 lt_prog_compiler_pic_D='-fPIC'
12026 ;;
12027 m68k)
12028 # FIXME: we need at least 68020 code to build shared libraries, but
12029 # adding the `-m68020' flag to GCC prevents building anything better,
12030 # like `-m68040'.
12031 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12032 ;;
12033 esac
12034 ;;
12035
12036 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12037 # PIC is the default for these OSes.
12038 ;;
12039
12040 mingw* | cygwin* | pw32* | os2* | cegcc*)
12041 # This hack is so that the source file can tell whether it is being
12042 # built for inclusion in a dll (and should export symbols for example).
12043 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12044 # (--disable-auto-import) libraries
12045 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12046 ;;
12047
12048 darwin* | rhapsody*)
12049 # PIC is the default on this platform
12050 # Common symbols not allowed in MH_DYLIB files
12051 lt_prog_compiler_pic_D='-fno-common'
12052 ;;
12053
12054 haiku*)
12055 # PIC is the default for Haiku.
12056 # The "-static" flag exists, but is broken.
12057 lt_prog_compiler_static_D=
12058 ;;
12059
12060 hpux*)
12061 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12062 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12063 # sets the default TLS model and affects inlining.
12064 case $host_cpu in
12065 hppa*64*)
12066 # +Z the default
12067 ;;
12068 *)
12069 lt_prog_compiler_pic_D='-fPIC'
12070 ;;
12071 esac
12072 ;;
12073
12074 interix[3-9]*)
12075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12076 # Instead, we relocate shared libraries at runtime.
12077 ;;
12078
12079 msdosdjgpp*)
12080 # Just because we use GCC doesn't mean we suddenly get shared libraries
12081 # on systems that don't support them.
12082 lt_prog_compiler_can_build_shared_D=no
12083 enable_shared=no
12084 ;;
12085
12086 *nto* | *qnx*)
12087 # QNX uses GNU C++, but need to define -shared option too, otherwise
12088 # it will coredump.
12089 lt_prog_compiler_pic_D='-fPIC -shared'
12090 ;;
12091
12092 sysv4*MP*)
12093 if test -d /usr/nec; then
12094 lt_prog_compiler_pic_D=-Kconform_pic
12095 fi
12096 ;;
12097
12098 *)
12099 lt_prog_compiler_pic_D='-fPIC'
12100 ;;
12101 esac
12102
12103 case $cc_basename in
12104 nvcc*) # Cuda Compiler Driver 2.2
12105 lt_prog_compiler_wl_D='-Xlinker '
12106 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12107 ;;
12108 esac
12109 else
12110 # PORTME Check for flag to pass linker flags through the system compiler.
12111 case $host_os in
12112 aix*)
12113 lt_prog_compiler_wl_D='-Wl,'
12114 if test "$host_cpu" = ia64; then
12115 # AIX 5 now supports IA64 processor
12116 lt_prog_compiler_static_D='-Bstatic'
12117 else
12118 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12119 fi
12120 ;;
12121
12122 mingw* | cygwin* | pw32* | os2* | cegcc*)
12123 # This hack is so that the source file can tell whether it is being
12124 # built for inclusion in a dll (and should export symbols for example).
12125 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12126 ;;
12127
12128 hpux9* | hpux10* | hpux11*)
12129 lt_prog_compiler_wl_D='-Wl,'
12130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12131 # not for PA HP-UX.
12132 case $host_cpu in
12133 hppa*64*|ia64*)
12134 # +Z the default
12135 ;;
12136 *)
12137 lt_prog_compiler_pic_D='+Z'
12138 ;;
12139 esac
12140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12141 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12142 ;;
12143
12144 irix5* | irix6* | nonstopux*)
12145 lt_prog_compiler_wl_D='-Wl,'
12146 # PIC (with -KPIC) is the default.
12147 lt_prog_compiler_static_D='-non_shared'
12148 ;;
12149
12150 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12151 case $cc_basename in
12152 # old Intel for x86_64 which still supported -KPIC.
12153 ecc*)
12154 lt_prog_compiler_wl_D='-Wl,'
12155 lt_prog_compiler_pic_D='-KPIC'
12156 lt_prog_compiler_static_D='-static'
12157 ;;
12158 # icc used to be incompatible with GCC.
12159 # ICC 10 doesn't accept -KPIC any more.
12160 icc* | ifort*)
12161 lt_prog_compiler_wl_D='-Wl,'
12162 lt_prog_compiler_pic_D='-fPIC'
12163 lt_prog_compiler_static_D='-static'
12164 ;;
12165 # Lahey Fortran 8.1.
12166 lf95*)
12167 lt_prog_compiler_wl_D='-Wl,'
12168 lt_prog_compiler_pic_D='--shared'
12169 lt_prog_compiler_static_D='--static'
12170 ;;
12171 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12172 # Portland Group compilers (*not* the Pentium gcc compiler,
12173 # which looks to be a dead project)
12174 lt_prog_compiler_wl_D='-Wl,'
12175 lt_prog_compiler_pic_D='-fpic'
12176 lt_prog_compiler_static_D='-Bstatic'
12177 ;;
12178 ccc*)
12179 lt_prog_compiler_wl_D='-Wl,'
12180 # All Alpha code is PIC.
12181 lt_prog_compiler_static_D='-non_shared'
12182 ;;
12183 xl* | bgxl* | bgf* | mpixl*)
12184 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12185 lt_prog_compiler_wl_D='-Wl,'
12186 lt_prog_compiler_pic_D='-qpic'
12187 lt_prog_compiler_static_D='-qstaticlink'
12188 ;;
12189 *)
12190 case `$CC -V 2>&1 | sed 5q` in
12191 *Sun\ F* | *Sun*Fortran*)
12192 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12193 lt_prog_compiler_pic_D='-KPIC'
12194 lt_prog_compiler_static_D='-Bstatic'
12195 lt_prog_compiler_wl_D=''
12196 ;;
12197 *Sun\ C*)
12198 # Sun C 5.9
12199 lt_prog_compiler_pic_D='-KPIC'
12200 lt_prog_compiler_static_D='-Bstatic'
12201 lt_prog_compiler_wl_D='-Wl,'
12202 ;;
12203 esac
12204 ;;
12205 esac
12206 ;;
12207
12208 newsos6)
12209 lt_prog_compiler_pic_D='-KPIC'
12210 lt_prog_compiler_static_D='-Bstatic'
12211 ;;
12212
12213 *nto* | *qnx*)
12214 # QNX uses GNU C++, but need to define -shared option too, otherwise
12215 # it will coredump.
12216 lt_prog_compiler_pic_D='-fPIC -shared'
12217 ;;
12218
12219 osf3* | osf4* | osf5*)
12220 lt_prog_compiler_wl_D='-Wl,'
12221 # All OSF/1 code is PIC.
12222 lt_prog_compiler_static_D='-non_shared'
12223 ;;
12224
12225 rdos*)
12226 lt_prog_compiler_static_D='-non_shared'
12227 ;;
12228
12229 solaris*)
12230 lt_prog_compiler_pic_D='-KPIC'
12231 lt_prog_compiler_static_D='-Bstatic'
12232 case $cc_basename in
12233 f77* | f90* | f95*)
12234 lt_prog_compiler_wl_D='-Qoption ld ';;
12235 *)
12236 lt_prog_compiler_wl_D='-Wl,';;
12237 esac
12238 ;;
12239
12240 sunos4*)
12241 lt_prog_compiler_wl_D='-Qoption ld '
12242 lt_prog_compiler_pic_D='-PIC'
12243 lt_prog_compiler_static_D='-Bstatic'
12244 ;;
12245
12246 sysv4 | sysv4.2uw2* | sysv4.3*)
12247 lt_prog_compiler_wl_D='-Wl,'
12248 lt_prog_compiler_pic_D='-KPIC'
12249 lt_prog_compiler_static_D='-Bstatic'
12250 ;;
12251
12252 sysv4*MP*)
12253 if test -d /usr/nec ;then
12254 lt_prog_compiler_pic_D='-Kconform_pic'
12255 lt_prog_compiler_static_D='-Bstatic'
12256 fi
12257 ;;
12258
12259 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12260 lt_prog_compiler_wl_D='-Wl,'
12261 lt_prog_compiler_pic_D='-KPIC'
12262 lt_prog_compiler_static_D='-Bstatic'
12263 ;;
12264
12265 unicos*)
12266 lt_prog_compiler_wl_D='-Wl,'
12267 lt_prog_compiler_can_build_shared_D=no
12268 ;;
12269
12270 uts4*)
12271 lt_prog_compiler_pic_D='-pic'
12272 lt_prog_compiler_static_D='-Bstatic'
12273 ;;
12274
12275 *)
12276 lt_prog_compiler_can_build_shared_D=no
12277 ;;
12278 esac
12279 fi
12280
12281case $host_os in
12282 # For platforms which do not support PIC, -DPIC is meaningless:
12283 *djgpp*)
12284 lt_prog_compiler_pic_D=
12285 ;;
12286 *)
12287 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12288 ;;
12289esac
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12291$as_echo "$lt_prog_compiler_pic_D" >&6; }
12292
12293
12294
12295#
12296# Check to make sure the PIC flag actually works.
12297#
12298if test -n "$lt_prog_compiler_pic_D"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12300$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
22e05272 12301if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
b4c522fa
IB
12302 $as_echo_n "(cached) " >&6
12303else
12304 lt_cv_prog_compiler_pic_works_D=no
12305 ac_outfile=conftest.$ac_objext
12306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12307 lt_compiler_flag="$lt_prog_compiler_pic_D"
12308 # Insert the option either (1) after the last *FLAGS variable, or
12309 # (2) before a word containing "conftest.", or (3) at the end.
12310 # Note that $ac_compile itself does not contain backslashes and begins
12311 # with a dollar sign (not a hyphen), so the echo should work correctly.
12312 # The option is referenced via a variable to avoid confusing sed.
12313 lt_compile=`echo "$ac_compile" | $SED \
12314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12316 -e 's:$: $lt_compiler_flag:'`
12317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12318 (eval "$lt_compile" 2>conftest.err)
12319 ac_status=$?
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 if (exit $ac_status) && test -s "$ac_outfile"; then
12323 # The compiler can only warn and ignore the option if not recognized
12324 # So say no if there are warnings other than the usual output.
12325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12328 lt_cv_prog_compiler_pic_works_D=yes
12329 fi
12330 fi
12331 $RM conftest*
12332
12333fi
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12335$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12336
12337if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12338 case $lt_prog_compiler_pic_D in
12339 "" | " "*) ;;
12340 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12341 esac
12342else
12343 lt_prog_compiler_pic_D=
12344 lt_prog_compiler_can_build_shared_D=no
12345fi
12346
12347fi
12348
12349
12350
12351#
12352# Check to make sure the static flag actually works.
12353#
12354wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12356$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12357if ${lt_cv_prog_compiler_static_works_D+:} false; then :
b4c522fa
IB
12358 $as_echo_n "(cached) " >&6
12359else
12360 lt_cv_prog_compiler_static_works_D=no
12361 save_LDFLAGS="$LDFLAGS"
12362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12365 # The linker can only warn and ignore the option if not recognized
12366 # So say no if there are warnings
12367 if test -s conftest.err; then
12368 # Append any errors to the config.log.
12369 cat conftest.err 1>&5
12370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12372 if diff conftest.exp conftest.er2 >/dev/null; then
12373 lt_cv_prog_compiler_static_works_D=yes
12374 fi
12375 else
12376 lt_cv_prog_compiler_static_works_D=yes
12377 fi
12378 fi
12379 $RM -r conftest*
12380 LDFLAGS="$save_LDFLAGS"
12381
12382fi
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12384$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12385
12386if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12387 :
12388else
12389 lt_prog_compiler_static_D=
12390fi
12391
12392
12393
12394
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12396$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12397if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12398 $as_echo_n "(cached) " >&6
12399else
12400 lt_cv_prog_compiler_c_o_D=no
12401 $RM -r conftest 2>/dev/null
12402 mkdir conftest
12403 cd conftest
12404 mkdir out
12405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12406
12407 lt_compiler_flag="-o out/conftest2.$ac_objext"
12408 # Insert the option either (1) after the last *FLAGS variable, or
12409 # (2) before a word containing "conftest.", or (3) at the end.
12410 # Note that $ac_compile itself does not contain backslashes and begins
12411 # with a dollar sign (not a hyphen), so the echo should work correctly.
12412 lt_compile=`echo "$ac_compile" | $SED \
12413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12415 -e 's:$: $lt_compiler_flag:'`
12416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12417 (eval "$lt_compile" 2>out/conftest.err)
12418 ac_status=$?
12419 cat out/conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12422 then
12423 # The compiler can only warn and ignore the option if not recognized
12424 # So say no if there are warnings
12425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12428 lt_cv_prog_compiler_c_o_D=yes
12429 fi
12430 fi
12431 chmod u+w . 2>&5
12432 $RM conftest*
12433 # SGI C++ compiler will create directory out/ii_files/ for
12434 # template instantiation
12435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12436 $RM out/* && rmdir out
12437 cd ..
12438 $RM -r conftest
12439 $RM conftest*
12440
12441fi
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12443$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12444
12445
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12448$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12449if ${lt_cv_prog_compiler_c_o_D+:} false; then :
b4c522fa
IB
12450 $as_echo_n "(cached) " >&6
12451else
12452 lt_cv_prog_compiler_c_o_D=no
12453 $RM -r conftest 2>/dev/null
12454 mkdir conftest
12455 cd conftest
12456 mkdir out
12457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12458
12459 lt_compiler_flag="-o out/conftest2.$ac_objext"
12460 # Insert the option either (1) after the last *FLAGS variable, or
12461 # (2) before a word containing "conftest.", or (3) at the end.
12462 # Note that $ac_compile itself does not contain backslashes and begins
12463 # with a dollar sign (not a hyphen), so the echo should work correctly.
12464 lt_compile=`echo "$ac_compile" | $SED \
12465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12467 -e 's:$: $lt_compiler_flag:'`
12468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12469 (eval "$lt_compile" 2>out/conftest.err)
12470 ac_status=$?
12471 cat out/conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12474 then
12475 # The compiler can only warn and ignore the option if not recognized
12476 # So say no if there are warnings
12477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12480 lt_cv_prog_compiler_c_o_D=yes
12481 fi
12482 fi
12483 chmod u+w . 2>&5
12484 $RM conftest*
12485 # SGI C++ compiler will create directory out/ii_files/ for
12486 # template instantiation
12487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12488 $RM out/* && rmdir out
12489 cd ..
12490 $RM -r conftest
12491 $RM conftest*
12492
12493fi
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12495$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12496
12497
12498
12499
12500hard_links="nottested"
12501if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12502 # do not overwrite the value of need_locks provided by the user
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12504$as_echo_n "checking if we can lock with hard links... " >&6; }
12505 hard_links=yes
12506 $RM conftest*
12507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12508 touch conftest.a
12509 ln conftest.a conftest.b 2>&5 || hard_links=no
12510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12512$as_echo "$hard_links" >&6; }
12513 if test "$hard_links" = no; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12515$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12516 need_locks=warn
12517 fi
12518else
12519 need_locks=no
12520fi
12521
12522
12523
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12525$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12526
12527 runpath_var=
12528 allow_undefined_flag_D=
12529 always_export_symbols_D=no
12530 archive_cmds_D=
12531 archive_expsym_cmds_D=
12532 compiler_needs_object_D=no
12533 enable_shared_with_static_runtimes_D=no
12534 export_dynamic_flag_spec_D=
12535 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12536 hardcode_automatic_D=no
12537 hardcode_direct_D=no
12538 hardcode_direct_absolute_D=no
12539 hardcode_libdir_flag_spec_D=
12540 hardcode_libdir_flag_spec_ld_D=
12541 hardcode_libdir_separator_D=
12542 hardcode_minus_L_D=no
12543 hardcode_shlibpath_var_D=unsupported
12544 inherit_rpath_D=no
12545 link_all_deplibs_D=unknown
12546 module_cmds_D=
12547 module_expsym_cmds_D=
12548 old_archive_from_new_cmds_D=
12549 old_archive_from_expsyms_cmds_D=
12550 thread_safe_flag_spec_D=
12551 whole_archive_flag_spec_D=
12552 # include_expsyms should be a list of space-separated symbols to be *always*
12553 # included in the symbol list
12554 include_expsyms_D=
12555 # exclude_expsyms can be an extended regexp of symbols to exclude
12556 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12558 # as well as any symbol that contains `d'.
12559 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12561 # platforms (ab)use it in PIC code, but their linkers get confused if
12562 # the symbol is explicitly referenced. Since portable code cannot
12563 # rely on this symbol name, it's probably fine to never include it in
12564 # preloaded symbol tables.
12565 # Exclude shared library initialization/finalization symbols.
12566 extract_expsyms_cmds=
12567
12568 case $host_os in
12569 cygwin* | mingw* | pw32* | cegcc*)
12570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12571 # When not using gcc, we currently assume that we are using
12572 # Microsoft Visual C++.
12573 if test "$GCC" != yes; then
12574 with_gnu_ld=no
12575 fi
12576 ;;
12577 interix*)
12578 # we just hope/assume this is gcc and not c89 (= MSVC++)
12579 with_gnu_ld=yes
12580 ;;
12581 openbsd*)
12582 with_gnu_ld=no
12583 ;;
12584 esac
12585
12586 ld_shlibs_D=yes
12587
12588 # On some targets, GNU ld is compatible enough with the native linker
12589 # that we're better off using the native interface for both.
12590 lt_use_gnu_ld_interface=no
12591 if test "$with_gnu_ld" = yes; then
12592 case $host_os in
12593 aix*)
12594 # The AIX port of GNU ld has always aspired to compatibility
12595 # with the native linker. However, as the warning in the GNU ld
12596 # block says, versions before 2.19.5* couldn't really create working
12597 # shared libraries, regardless of the interface used.
12598 case `$LD -v 2>&1` in
12599 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12600 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12601 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12602 *)
12603 lt_use_gnu_ld_interface=yes
12604 ;;
12605 esac
12606 ;;
12607 *)
12608 lt_use_gnu_ld_interface=yes
12609 ;;
12610 esac
12611 fi
12612
12613 if test "$lt_use_gnu_ld_interface" = yes; then
12614 # If archive_cmds runs LD, not CC, wlarc should be empty
12615 wlarc='${wl}'
12616
12617 # Set some defaults for GNU ld with shared library support. These
12618 # are reset later if shared libraries are not supported. Putting them
12619 # here allows them to be overridden if necessary.
12620 runpath_var=LD_RUN_PATH
12621 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12622 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12623 # ancient GNU ld didn't support --whole-archive et. al.
12624 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12625 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12626 else
12627 whole_archive_flag_spec_D=
12628 fi
12629 supports_anon_versioning=no
12630 case `$LD -v 2>&1` in
12631 *GNU\ gold*) supports_anon_versioning=yes ;;
12632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12635 *\ 2.11.*) ;; # other 2.11 versions
12636 *) supports_anon_versioning=yes ;;
12637 esac
12638
12639 # See if GNU ld supports shared libraries.
12640 case $host_os in
12641 aix[3-9]*)
12642 # On AIX/PPC, the GNU linker is very broken
12643 if test "$host_cpu" != ia64; then
12644 ld_shlibs_D=no
12645 cat <<_LT_EOF 1>&2
12646
12647*** Warning: the GNU linker, at least up to release 2.19, is reported
12648*** to be unable to reliably create shared libraries on AIX.
12649*** Therefore, libtool is disabling shared libraries support. If you
12650*** really care for shared libraries, you may want to install binutils
12651*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12652*** You will then need to restart the configuration process.
12653
12654_LT_EOF
12655 fi
12656 ;;
12657
12658 amigaos*)
12659 case $host_cpu in
12660 powerpc)
12661 # see comment about AmigaOS4 .so support
12662 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663 archive_expsym_cmds_D=''
12664 ;;
12665 m68k)
12666 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)'
12667 hardcode_libdir_flag_spec_D='-L$libdir'
12668 hardcode_minus_L_D=yes
12669 ;;
12670 esac
12671 ;;
12672
12673 beos*)
12674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12675 allow_undefined_flag_D=unsupported
12676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12677 # support --undefined. This deserves some investigation. FIXME
12678 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679 else
12680 ld_shlibs_D=no
12681 fi
12682 ;;
12683
12684 cygwin* | mingw* | pw32* | cegcc*)
12685 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12686 # as there is no search path for DLLs.
12687 hardcode_libdir_flag_spec_D='-L$libdir'
12688 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12689 allow_undefined_flag_D=unsupported
12690 always_export_symbols_D=no
12691 enable_shared_with_static_runtimes_D=yes
12692 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12693
12694 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12695 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12696 # If the export-symbols file already is a .def file (1st line
12697 # is EXPORTS), use it as is; otherwise, prepend...
12698 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12699 cp $export_symbols $output_objdir/$soname.def;
12700 else
12701 echo EXPORTS > $output_objdir/$soname.def;
12702 cat $export_symbols >> $output_objdir/$soname.def;
12703 fi~
12704 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12705 else
12706 ld_shlibs_D=no
12707 fi
12708 ;;
12709
12710 haiku*)
12711 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712 link_all_deplibs_D=yes
12713 ;;
12714
12715 interix[3-9]*)
12716 hardcode_direct_D=no
12717 hardcode_shlibpath_var_D=no
12718 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12719 export_dynamic_flag_spec_D='${wl}-E'
12720 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12721 # Instead, shared libraries are loaded at an image base (0x10000000 by
12722 # default) and relocated if they conflict, which is a slow very memory
12723 # consuming and fragmenting process. To avoid this, we pick a random,
12724 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12725 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12726 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'
12727 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'
12728 ;;
12729
12730 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12731 tmp_diet=no
12732 if test "$host_os" = linux-dietlibc; then
12733 case $cc_basename in
12734 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12735 esac
12736 fi
12737 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12738 && test "$tmp_diet" = no
12739 then
12740 tmp_addflag=' $pic_flag'
12741 tmp_sharedflag='-shared'
12742 case $cc_basename,$host_cpu in
12743 pgcc*) # Portland Group C compiler
12744 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'
12745 tmp_addflag=' $pic_flag'
12746 ;;
12747 pgf77* | pgf90* | pgf95* | pgfortran*)
12748 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
12751 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12752 tmp_addflag=' -i_dynamic' ;;
12753 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12754 tmp_addflag=' -i_dynamic -nofor_main' ;;
12755 ifc* | ifort*) # Intel Fortran compiler
12756 tmp_addflag=' -nofor_main' ;;
12757 lf95*) # Lahey Fortran 8.1
12758 whole_archive_flag_spec_D=
12759 tmp_sharedflag='--shared' ;;
12760 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12761 tmp_sharedflag='-qmkshrobj'
12762 tmp_addflag= ;;
12763 nvcc*) # Cuda Compiler Driver 2.2
12764 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'
12765 compiler_needs_object_D=yes
12766 ;;
12767 esac
12768 case `$CC -V 2>&1 | sed 5q` in
12769 *Sun\ C*) # Sun C 5.9
12770 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'
12771 compiler_needs_object_D=yes
12772 tmp_sharedflag='-G' ;;
12773 *Sun\ F*) # Sun Fortran 8.3
12774 tmp_sharedflag='-G' ;;
12775 esac
12776 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12777
12778 if test "x$supports_anon_versioning" = xyes; then
12779 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12781 echo "local: *; };" >> $output_objdir/$libname.ver~
12782 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12783 fi
12784
12785 case $cc_basename in
12786 xlf* | bgf* | bgxlf* | mpixlf*)
12787 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12788 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12789 hardcode_libdir_flag_spec_D=
12790 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12791 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12792 if test "x$supports_anon_versioning" = xyes; then
12793 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12795 echo "local: *; };" >> $output_objdir/$libname.ver~
12796 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12797 fi
12798 ;;
12799 esac
12800 else
12801 ld_shlibs_D=no
12802 fi
12803 ;;
12804
12805 netbsd*)
12806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12807 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12808 wlarc=
12809 else
12810 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12811 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12812 fi
12813 ;;
12814
12815 solaris*)
12816 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12817 ld_shlibs_D=no
12818 cat <<_LT_EOF 1>&2
12819
12820*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12821*** create shared libraries on Solaris systems. Therefore, libtool
12822*** is disabling shared libraries support. We urge you to upgrade GNU
12823*** binutils to release 2.9.1 or newer. Another option is to modify
12824*** your PATH or compiler configuration so that the native linker is
12825*** used, and then restart.
12826
12827_LT_EOF
12828 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12829 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12830 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12831 else
12832 ld_shlibs_D=no
12833 fi
12834 ;;
12835
12836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12837 case `$LD -v 2>&1` in
12838 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12839 ld_shlibs_D=no
12840 cat <<_LT_EOF 1>&2
12841
12842*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12843*** reliably create shared libraries on SCO systems. Therefore, libtool
12844*** is disabling shared libraries support. We urge you to upgrade GNU
12845*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12846*** your PATH or compiler configuration so that the native linker is
12847*** used, and then restart.
12848
12849_LT_EOF
12850 ;;
12851 *)
12852 # For security reasons, it is highly recommended that you always
12853 # use absolute paths for naming shared libraries, and exclude the
12854 # DT_RUNPATH tag from executables and libraries. But doing so
12855 # requires that you compile everything twice, which is a pain.
12856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12857 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12858 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12859 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12860 else
12861 ld_shlibs_D=no
12862 fi
12863 ;;
12864 esac
12865 ;;
12866
12867 sunos4*)
12868 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12869 wlarc=
12870 hardcode_direct_D=yes
12871 hardcode_shlibpath_var_D=no
12872 ;;
12873
12874 *)
12875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12876 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12877 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12878 else
12879 ld_shlibs_D=no
12880 fi
12881 ;;
12882 esac
12883
12884 if test "$ld_shlibs_D" = no; then
12885 runpath_var=
12886 hardcode_libdir_flag_spec_D=
12887 export_dynamic_flag_spec_D=
12888 whole_archive_flag_spec_D=
12889 fi
12890 else
12891 # PORTME fill in a description of your system's linker (not GNU ld)
12892 case $host_os in
12893 aix3*)
12894 allow_undefined_flag_D=unsupported
12895 always_export_symbols_D=yes
12896 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'
12897 # Note: this linker hardcodes the directories in LIBPATH if there
12898 # are no directories specified by -L.
12899 hardcode_minus_L_D=yes
12900 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12901 # Neither direct hardcoding nor static linking is supported with a
12902 # broken collect2.
12903 hardcode_direct_D=unsupported
12904 fi
12905 ;;
12906
12907 aix[4-9]*)
12908 if test "$host_cpu" = ia64; then
12909 # On IA64, the linker does run time linking by default, so we don't
12910 # have to do anything special.
12911 aix_use_runtimelinking=no
12912 exp_sym_flag='-Bexport'
12913 no_entry_flag=""
12914 else
12915 # If we're using GNU nm, then we don't want the "-C" option.
12916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12917 # Also, AIX nm treats weak defined symbols like other global
12918 # defined symbols, whereas GNU nm marks them as "W".
12919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12920 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'
12921 else
12922 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'
12923 fi
12924 aix_use_runtimelinking=no
12925
12926 # Test if we are trying to use run time linking or normal
12927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12928 # need to do runtime linking.
12929 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12930 for ld_flag in $LDFLAGS; do
12931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12932 aix_use_runtimelinking=yes
12933 break
12934 fi
12935 done
12936 ;;
12937 esac
12938
12939 exp_sym_flag='-bexport'
12940 no_entry_flag='-bnoentry'
12941 fi
12942
12943 # When large executables or shared objects are built, AIX ld can
12944 # have problems creating the table of contents. If linking a library
12945 # or program results in "error TOC overflow" add -mminimal-toc to
12946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12948
12949 archive_cmds_D=''
12950 hardcode_direct_D=yes
12951 hardcode_direct_absolute_D=yes
12952 hardcode_libdir_separator_D=':'
12953 link_all_deplibs_D=yes
12954 file_list_spec_D='${wl}-f,'
12955
12956 if test "$GCC" = yes; then
12957 case $host_os in aix4.[012]|aix4.[012].*)
12958 # We only want to do this on AIX 4.2 and lower, the check
12959 # below for broken collect2 doesn't work under 4.3+
12960 collect2name=`${CC} -print-prog-name=collect2`
12961 if test -f "$collect2name" &&
12962 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12963 then
12964 # We have reworked collect2
12965 :
12966 else
12967 # We have old collect2
12968 hardcode_direct_D=unsupported
12969 # It fails to find uninstalled libraries when the uninstalled
12970 # path is not listed in the libpath. Setting hardcode_minus_L
12971 # to unsupported forces relinking
12972 hardcode_minus_L_D=yes
12973 hardcode_libdir_flag_spec_D='-L$libdir'
12974 hardcode_libdir_separator_D=
12975 fi
12976 ;;
12977 esac
12978 shared_flag='-shared'
12979 if test "$aix_use_runtimelinking" = yes; then
12980 shared_flag="$shared_flag "'${wl}-G'
12981 fi
12982 else
12983 # not using gcc
12984 if test "$host_cpu" = ia64; then
12985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12986 # chokes on -Wl,-G. The following line is correct:
12987 shared_flag='-G'
12988 else
12989 if test "$aix_use_runtimelinking" = yes; then
12990 shared_flag='${wl}-G'
12991 else
12992 shared_flag='${wl}-bM:SRE'
12993 fi
12994 fi
12995 fi
12996
12997 export_dynamic_flag_spec_D='${wl}-bexpall'
12998 # It seems that -bexpall does not export symbols beginning with
12999 # underscore (_), so it is better to generate a list of symbols to export.
13000 always_export_symbols_D=yes
13001 if test "$aix_use_runtimelinking" = yes; then
13002 # Warning - without using the other runtime loading flags (-brtl),
13003 # -berok will link without error, but may produce a broken library.
13004 allow_undefined_flag_D='-berok'
13005 # Determine the default libpath from the value encoded in an
13006 # empty executable.
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h. */
13009
13010int
13011main ()
13012{
13013
13014 ;
13015 return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_link "$LINENO"; then :
13019
13020lt_aix_libpath_sed='
13021 /Import File Strings/,/^$/ {
13022 /^0/ {
13023 s/^0 *\(.*\)$/\1/
13024 p
13025 }
13026 }'
13027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028# Check for a 64-bit object if we didn't find anything.
13029if test -z "$aix_libpath"; then
13030 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031fi
13032fi
13033rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13036
13037 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13038 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"
13039 else
13040 if test "$host_cpu" = ia64; then
13041 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13042 allow_undefined_flag_D="-z nodefs"
13043 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"
13044 else
13045 # Determine the default libpath from the value encoded in an
13046 # empty executable.
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h. */
13049
13050int
13051main ()
13052{
13053
13054 ;
13055 return 0;
13056}
13057_ACEOF
13058if ac_fn_c_try_link "$LINENO"; then :
13059
13060lt_aix_libpath_sed='
13061 /Import File Strings/,/^$/ {
13062 /^0/ {
13063 s/^0 *\(.*\)$/\1/
13064 p
13065 }
13066 }'
13067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13068# Check for a 64-bit object if we didn't find anything.
13069if test -z "$aix_libpath"; then
13070 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13071fi
13072fi
13073rm -f core conftest.err conftest.$ac_objext \
13074 conftest$ac_exeext conftest.$ac_ext
13075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13076
13077 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13078 # Warning - without using the other run time loading flags,
13079 # -berok will link without error, but may produce a broken library.
13080 no_undefined_flag_D=' ${wl}-bernotok'
13081 allow_undefined_flag_D=' ${wl}-berok'
13082 if test "$with_gnu_ld" = yes; then
13083 # We only use this code for GNU lds that support --whole-archive.
13084 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13085 else
13086 # Exported symbols can be pulled into shared objects from archives
13087 whole_archive_flag_spec_D='$convenience'
13088 fi
13089 archive_cmds_need_lc_D=yes
13090 # This is similar to how AIX traditionally builds its shared libraries.
13091 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'
13092 fi
13093 fi
13094 ;;
13095
13096 amigaos*)
13097 case $host_cpu in
13098 powerpc)
13099 # see comment about AmigaOS4 .so support
13100 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13101 archive_expsym_cmds_D=''
13102 ;;
13103 m68k)
13104 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)'
13105 hardcode_libdir_flag_spec_D='-L$libdir'
13106 hardcode_minus_L_D=yes
13107 ;;
13108 esac
13109 ;;
13110
13111 bsdi[45]*)
13112 export_dynamic_flag_spec_D=-rdynamic
13113 ;;
13114
13115 cygwin* | mingw* | pw32* | cegcc*)
13116 # When not using gcc, we currently assume that we are using
13117 # Microsoft Visual C++.
13118 # hardcode_libdir_flag_spec is actually meaningless, as there is
13119 # no search path for DLLs.
13120 hardcode_libdir_flag_spec_D=' '
13121 allow_undefined_flag_D=unsupported
13122 # Tell ltmain to make .lib files, not .a files.
13123 libext=lib
13124 # Tell ltmain to make .dll files, not .so files.
13125 shrext_cmds=".dll"
13126 # FIXME: Setting linknames here is a bad hack.
13127 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13128 # The linker will automatically build a .lib file if we build a DLL.
13129 old_archive_from_new_cmds_D='true'
13130 # FIXME: Should let the user specify the lib program.
13131 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13132 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13133 enable_shared_with_static_runtimes_D=yes
13134 ;;
13135
13136 darwin* | rhapsody*)
13137
13138
13139 archive_cmds_need_lc_D=no
13140 hardcode_direct_D=no
13141 hardcode_automatic_D=yes
13142 hardcode_shlibpath_var_D=unsupported
13143 if test "$lt_cv_ld_force_load" = "yes"; then
13144 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\"`'
13145 else
13146 whole_archive_flag_spec_D=''
13147 fi
13148 link_all_deplibs_D=yes
13149 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13150 case $cc_basename in
13151 ifort*) _lt_dar_can_shared=yes ;;
13152 *) _lt_dar_can_shared=$GCC ;;
13153 esac
13154 if test "$_lt_dar_can_shared" = "yes"; then
13155 output_verbose_link_cmd=func_echo_all
13156 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}"
13157 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13158 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}"
13159 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}"
13160
13161 else
13162 ld_shlibs_D=no
13163 fi
13164
13165 ;;
13166
13167 dgux*)
13168 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13169 hardcode_libdir_flag_spec_D='-L$libdir'
13170 hardcode_shlibpath_var_D=no
13171 ;;
13172
13173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13174 # support. Future versions do this automatically, but an explicit c++rt0.o
13175 # does not break anything, and helps significantly (at the cost of a little
13176 # extra space).
13177 freebsd2.2*)
13178 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13179 hardcode_libdir_flag_spec_D='-R$libdir'
13180 hardcode_direct_D=yes
13181 hardcode_shlibpath_var_D=no
13182 ;;
13183
13184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13185 freebsd2.*)
13186 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13187 hardcode_direct_D=yes
13188 hardcode_minus_L_D=yes
13189 hardcode_shlibpath_var_D=no
13190 ;;
13191
13192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13193 freebsd* | dragonfly*)
13194 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13195 hardcode_libdir_flag_spec_D='-R$libdir'
13196 hardcode_direct_D=yes
13197 hardcode_shlibpath_var_D=no
13198 ;;
13199
13200 hpux9*)
13201 if test "$GCC" = yes; then
13202 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'
13203 else
13204 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'
13205 fi
13206 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13207 hardcode_libdir_separator_D=:
13208 hardcode_direct_D=yes
13209
13210 # hardcode_minus_L: Not really in the search PATH,
13211 # but as the default location of the library.
13212 hardcode_minus_L_D=yes
13213 export_dynamic_flag_spec_D='${wl}-E'
13214 ;;
13215
13216 hpux10*)
13217 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13218 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13219 else
13220 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13221 fi
13222 if test "$with_gnu_ld" = no; then
13223 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13225 hardcode_libdir_separator_D=:
13226 hardcode_direct_D=yes
13227 hardcode_direct_absolute_D=yes
13228 export_dynamic_flag_spec_D='${wl}-E'
13229 # hardcode_minus_L: Not really in the search PATH,
13230 # but as the default location of the library.
13231 hardcode_minus_L_D=yes
13232 fi
13233 ;;
13234
13235 hpux11*)
13236 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13237 case $host_cpu in
13238 hppa*64*)
13239 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13240 ;;
13241 ia64*)
13242 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13243 ;;
13244 *)
13245 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13246 ;;
13247 esac
13248 else
13249 case $host_cpu in
13250 hppa*64*)
13251 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13252 ;;
13253 ia64*)
13254 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13255 ;;
13256 *)
13257 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13258 ;;
13259 esac
13260 fi
13261 if test "$with_gnu_ld" = no; then
13262 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13263 hardcode_libdir_separator_D=:
13264
13265 case $host_cpu in
13266 hppa*64*|ia64*)
13267 hardcode_direct_D=no
13268 hardcode_shlibpath_var_D=no
13269 ;;
13270 *)
13271 hardcode_direct_D=yes
13272 hardcode_direct_absolute_D=yes
13273 export_dynamic_flag_spec_D='${wl}-E'
13274
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_D=yes
13278 ;;
13279 esac
13280 fi
13281 ;;
13282
13283 irix5* | irix6* | nonstopux*)
13284 if test "$GCC" = yes; then
13285 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'
13286 # Try to use the -exported_symbol ld option, if it does not
13287 # work, assume that -exports_file does not work either and
13288 # implicitly export all symbols.
13289 save_LDFLAGS="$LDFLAGS"
13290 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h. */
13293int foo(void) {}
13294_ACEOF
13295if ac_fn_c_try_link "$LINENO"; then :
13296 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'
13297
13298fi
13299rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LDFLAGS="$save_LDFLAGS"
13302 else
13303 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'
13304 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'
13305 fi
13306 archive_cmds_need_lc_D='no'
13307 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13308 hardcode_libdir_separator_D=:
13309 inherit_rpath_D=yes
13310 link_all_deplibs_D=yes
13311 ;;
13312
13313 netbsd*)
13314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13315 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13316 else
13317 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13318 fi
13319 hardcode_libdir_flag_spec_D='-R$libdir'
13320 hardcode_direct_D=yes
13321 hardcode_shlibpath_var_D=no
13322 ;;
13323
13324 newsos6)
13325 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13326 hardcode_direct_D=yes
13327 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13328 hardcode_libdir_separator_D=:
13329 hardcode_shlibpath_var_D=no
13330 ;;
13331
13332 *nto* | *qnx*)
13333 ;;
13334
13335 openbsd*)
13336 if test -f /usr/libexec/ld.so; then
13337 hardcode_direct_D=yes
13338 hardcode_shlibpath_var_D=no
13339 hardcode_direct_absolute_D=yes
13340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13341 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13343 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13344 export_dynamic_flag_spec_D='${wl}-E'
13345 else
13346 case $host_os in
13347 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13348 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13349 hardcode_libdir_flag_spec_D='-R$libdir'
13350 ;;
13351 *)
13352 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13353 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13354 ;;
13355 esac
13356 fi
13357 else
13358 ld_shlibs_D=no
13359 fi
13360 ;;
13361
13362 os2*)
13363 hardcode_libdir_flag_spec_D='-L$libdir'
13364 hardcode_minus_L_D=yes
13365 allow_undefined_flag_D=unsupported
13366 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'
13367 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13368 ;;
13369
13370 osf3*)
13371 if test "$GCC" = yes; then
13372 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13373 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'
13374 else
13375 allow_undefined_flag_D=' -expect_unresolved \*'
13376 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'
13377 fi
13378 archive_cmds_need_lc_D='no'
13379 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13380 hardcode_libdir_separator_D=:
13381 ;;
13382
13383 osf4* | osf5*) # as osf3* with the addition of -msym flag
13384 if test "$GCC" = yes; then
13385 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13386 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'
13387 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13388 else
13389 allow_undefined_flag_D=' -expect_unresolved \*'
13390 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'
13391 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~
13392 $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'
13393
13394 # Both c and cxx compiler support -rpath directly
13395 hardcode_libdir_flag_spec_D='-rpath $libdir'
13396 fi
13397 archive_cmds_need_lc_D='no'
13398 hardcode_libdir_separator_D=:
13399 ;;
13400
13401 solaris*)
13402 no_undefined_flag_D=' -z defs'
13403 if test "$GCC" = yes; then
13404 wlarc='${wl}'
13405 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13406 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13407 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13408 else
13409 case `$CC -V 2>&1` in
13410 *"Compilers 5.0"*)
13411 wlarc=''
13412 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13415 ;;
13416 *)
13417 wlarc='${wl}'
13418 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13419 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13420 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13421 ;;
13422 esac
13423 fi
13424 hardcode_libdir_flag_spec_D='-R$libdir'
13425 hardcode_shlibpath_var_D=no
13426 case $host_os in
13427 solaris2.[0-5] | solaris2.[0-5].*) ;;
13428 *)
13429 # The compiler driver will combine and reorder linker options,
13430 # but understands `-z linker_flag'. GCC discards it without `$wl',
13431 # but is careful enough not to reorder.
13432 # Supported since Solaris 2.6 (maybe 2.5.1?)
13433 if test "$GCC" = yes; then
13434 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13435 else
13436 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13437 fi
13438 ;;
13439 esac
13440 link_all_deplibs_D=yes
13441 ;;
13442
13443 sunos4*)
13444 if test "x$host_vendor" = xsequent; then
13445 # Use $CC to link under sequent, because it throws in some extra .o
13446 # files that make .init and .fini sections work.
13447 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13448 else
13449 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13450 fi
13451 hardcode_libdir_flag_spec_D='-L$libdir'
13452 hardcode_direct_D=yes
13453 hardcode_minus_L_D=yes
13454 hardcode_shlibpath_var_D=no
13455 ;;
13456
13457 sysv4)
13458 case $host_vendor in
13459 sni)
13460 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 hardcode_direct_D=yes # is this really true???
13462 ;;
13463 siemens)
13464 ## LD is ld it makes a PLAMLIB
13465 ## CC just makes a GrossModule.
13466 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13467 reload_cmds_D='$CC -r -o $output$reload_objs'
13468 hardcode_direct_D=no
13469 ;;
13470 motorola)
13471 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13473 ;;
13474 esac
13475 runpath_var='LD_RUN_PATH'
13476 hardcode_shlibpath_var_D=no
13477 ;;
13478
13479 sysv4.3*)
13480 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_shlibpath_var_D=no
13482 export_dynamic_flag_spec_D='-Bexport'
13483 ;;
13484
13485 sysv4*MP*)
13486 if test -d /usr/nec; then
13487 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_shlibpath_var_D=no
13489 runpath_var=LD_RUN_PATH
13490 hardcode_runpath_var=yes
13491 ld_shlibs_D=yes
13492 fi
13493 ;;
13494
13495 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13496 no_undefined_flag_D='${wl}-z,text'
13497 archive_cmds_need_lc_D=no
13498 hardcode_shlibpath_var_D=no
13499 runpath_var='LD_RUN_PATH'
13500
13501 if test "$GCC" = yes; then
13502 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13504 else
13505 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 fi
13508 ;;
13509
13510 sysv5* | sco3.2v5* | sco5v6*)
13511 # Note: We can NOT use -z defs as we might desire, because we do not
13512 # link with -lc, and that would cause any symbols used from libc to
13513 # always be unresolved, which means just about no library would
13514 # ever link correctly. If we're not using GNU ld we use -z text
13515 # though, which does catch some bad symbols but isn't as heavy-handed
13516 # as -z defs.
13517 no_undefined_flag_D='${wl}-z,text'
13518 allow_undefined_flag_D='${wl}-z,nodefs'
13519 archive_cmds_need_lc_D=no
13520 hardcode_shlibpath_var_D=no
13521 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13522 hardcode_libdir_separator_D=':'
13523 link_all_deplibs_D=yes
13524 export_dynamic_flag_spec_D='${wl}-Bexport'
13525 runpath_var='LD_RUN_PATH'
13526
13527 if test "$GCC" = yes; then
13528 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13530 else
13531 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533 fi
13534 ;;
13535
13536 uts4*)
13537 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538 hardcode_libdir_flag_spec_D='-L$libdir'
13539 hardcode_shlibpath_var_D=no
13540 ;;
13541
13542 *)
13543 ld_shlibs_D=no
13544 ;;
13545 esac
13546
13547 if test x$host_vendor = xsni; then
13548 case $host in
13549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13550 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13551 ;;
13552 esac
13553 fi
13554 fi
13555
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13557$as_echo "$ld_shlibs_D" >&6; }
13558test "$ld_shlibs_D" = no && can_build_shared=no
13559
13560with_gnu_ld_D=$with_gnu_ld
13561
13562
13563
13564
13565
13566
13567#
13568# Do we need to explicitly link libc?
13569#
13570case "x$archive_cmds_need_lc_D" in
13571x|xyes)
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_D=yes
13574
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_D in
13577 *'~'*)
13578 # FIXME: we may have to deal with multi-command sequences.
13579 ;;
13580 '$CC '*)
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13585$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13586if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
b4c522fa
IB
13587 $as_echo_n "(cached) " >&6
13588else
13589 $RM conftest*
13590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13591
13592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13593 (eval $ac_compile) 2>&5
13594 ac_status=$?
13595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596 test $ac_status = 0; } 2>conftest.err; then
13597 soname=conftest
13598 lib=conftest
13599 libobjs=conftest.$ac_objext
13600 deplibs=
13601 wl=$lt_prog_compiler_wl_D
13602 pic_flag=$lt_prog_compiler_pic_D
13603 compiler_flags=-v
13604 linker_flags=-v
13605 verstring=
13606 output_objdir=.
13607 libname=conftest
13608 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13609 allow_undefined_flag_D=
13610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13611 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }
13615 then
13616 lt_cv_archive_cmds_need_lc_D=no
13617 else
13618 lt_cv_archive_cmds_need_lc_D=yes
13619 fi
13620 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13621 else
13622 cat conftest.err 1>&5
13623 fi
13624 $RM conftest*
13625
13626fi
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13628$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13629 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13630 ;;
13631 esac
13632 fi
13633 ;;
13634esac
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
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13700$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13701hardcode_action_D=
13702if test -n "$hardcode_libdir_flag_spec_D" ||
13703 test -n "$runpath_var_D" ||
13704 test "X$hardcode_automatic_D" = "Xyes" ; then
13705
13706 # We can hardcode non-existent directories.
13707 if test "$hardcode_direct_D" != no &&
13708 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13709 # have to relink, otherwise we might link with an installed library
13710 # when we should be linking with a yet-to-be-installed one
13711 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13712 test "$hardcode_minus_L_D" != no; then
13713 # Linking always hardcodes the temporary library directory.
13714 hardcode_action_D=relink
13715 else
13716 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13717 hardcode_action_D=immediate
13718 fi
13719else
13720 # We cannot hardcode anything, or else we can only hardcode existing
13721 # directories.
13722 hardcode_action_D=unsupported
13723fi
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13725$as_echo "$hardcode_action_D" >&6; }
13726
13727if test "$hardcode_action_D" = relink ||
13728 test "$inherit_rpath_D" = yes; then
13729 # Fast installation is not supported
13730 enable_fast_install=no
13731elif test "$shlibpath_overrides_runpath" = yes ||
13732 test "$enable_shared" = no; then
13733 # Fast installation is not necessary
13734 enable_fast_install=needless
13735fi
13736
13737
13738
13739
13740
13741
13742
13743fi
13744
13745ac_ext=c
13746ac_cpp='$CPP $CPPFLAGS'
13747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749ac_compiler_gnu=$ac_cv_c_compiler_gnu
13750
13751
13752GCC=$lt_save_GCC
13753CC=$lt_save_CC
13754CFLAGS=$lt_save_CFLAGS
13755GDCFLAGS=$lt_save_DFLAGS
13756
13757 GDCFLAGS=$gdc_save_DFLAGS
13758
13759 if test "$enable_shared" = "yes"; then
13760 ENABLE_SHARED_TRUE=
13761 ENABLE_SHARED_FALSE='#'
13762else
13763 ENABLE_SHARED_TRUE='#'
13764 ENABLE_SHARED_FALSE=
13765fi
13766
13767 if test "$enable_static" = "yes"; then
13768 ENABLE_STATIC_TRUE=
13769 ENABLE_STATIC_FALSE='#'
13770else
13771 ENABLE_STATIC_TRUE='#'
13772 ENABLE_STATIC_FALSE=
13773fi
13774
13775
13776# libtool variables for Phobos shared and position-independent compiles.
13777#
13778# Use phobos_compiler_shared_flag to designate the compile-time flags for
13779# creating shared objects. Default: -fversion=Shared.
13780#
13781# Use phobos_compiler_pic_flag to designate the compile-time flags for
13782# creating position-independent objects. This varies with the target
13783# hardware and operating system, but is often: -fPIC.
13784#
13785# The distinction between pic and shared compilation flags is not present in
13786# libtool, and so we make it here. How it is handled is that in shared
13787# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13788# ensure that conditional compilation of shared runtime code is compiled in.
13789# The original PIC flags are then used in the compilation of every object.
13790#
13791# Why are objects destined for libgphobos.a compiled with -fPIC?
13792# Because -fPIC is not harmful to use for objects destined for static
13793# libraries. In addition, using -fPIC will allow the use of static
13794# libgphobos.a in the creation of other D shared libraries.
13795if test "$enable_shared" = yes; then
13796 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13797 phobos_compiler_shared_flag="-fversion=Shared"
13798else
13799 phobos_compiler_pic_flag=
13800 phobos_compiler_shared_flag=
13801fi
13802
13803
13804
13805# Override the libtool's pic_flag and pic_mode.
13806# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13807# NB: this impacts --with-pic and --without-pic.
13808lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13809pic_mode='default'
13810
13811# Determine what GCC version number to use in filesystem paths.
13812
13813 get_gcc_base_ver="cat"
13814
13815# Check whether --with-gcc-major-version-only was given.
13816if test "${with_gcc_major_version_only+set}" = set; then :
13817 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13818 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13819 fi
13820
13821fi
13822
13823
13824
13825
13826# libphobos/libdruntime specific options and feature detection
13827
13828 # These need to be absolute paths, yet at the same time need to
13829 # canonicalize only relative paths, because then amd will not unmount
13830 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13831 libphobos_builddir=`${PWDCMD-pwd}`
13832 case $srcdir in
13833 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13834 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13835 esac
13836
13837
13838
13839
13840 if test ${multilib} = yes; then
13841 multilib_arg="--enable-multilib"
13842 else
13843 multilib_arg=
13844 fi
13845
13846
13847 # Check whether --enable-werror was given.
13848if test "${enable_werror+set}" = set; then :
13849 enableval=$enable_werror;
13850fi
13851
13852 WERROR_FLAG=""
13853 if test "x$enable_werror" = "xyes"; then
13854 WERROR_FLAG="-Werror"
13855 fi
13856
13857
13858 # Check whether --enable-druntime-gc was given.
13859if test "${enable_druntime_gc+set}" = set; then :
13860 enableval=$enable_druntime_gc; enable_druntime_gc=no
13861else
13862 enable_druntime_gc=yes
13863fi
13864
13865
13866 if test "$enable_druntime_gc" = "yes"; then
13867 DRUNTIME_GC_ENABLE_TRUE=
13868 DRUNTIME_GC_ENABLE_FALSE='#'
13869else
13870 DRUNTIME_GC_ENABLE_TRUE='#'
13871 DRUNTIME_GC_ENABLE_FALSE=
13872fi
13873
13874
13875
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13877$as_echo_n "checking for target OS... " >&6; }
22e05272 13878if ${druntime_cv_target_os+:} false; then :
b4c522fa
IB
13879 $as_echo_n "(cached) " >&6
13880else
13881 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13882fi
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13884$as_echo "$druntime_cv_target_os" >&6; }
13885 if test -z "$druntime_cv_target_os"; then :
22e05272 13886 as_fn_error $? "can't detect target OS" "$LINENO" 5
b4c522fa
IB
13887fi
13888
13889
13890
13891 # Check whether --enable-unix was given.
13892if test "${enable_unix+set}" = set; then :
13893 enableval=$enable_unix; :
13894else
13895 enable_unix=auto
13896fi
13897
13898
13899 case "$druntime_cv_target_os" in
13900 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13901 esac
13902 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13903 enable_unix=yes
13904 fi
13905 if test "$enable_unix" = "yes"; then
13906 DRUNTIME_OS_UNIX_TRUE=
13907 DRUNTIME_OS_UNIX_FALSE='#'
13908else
13909 DRUNTIME_OS_UNIX_TRUE='#'
13910 DRUNTIME_OS_UNIX_FALSE=
13911fi
13912
13913
13914
13915
13916
13917 druntime_target_os_parsed=""
13918 case "$druntime_cv_target_os" in
13919 aix*) druntime_target_os_parsed="aix"
13920 ;;
13921 *android*)
13922 druntime_target_os_parsed="android"
13923 ;;
13924 darwin*) druntime_target_os_parsed="darwin"
13925 ;;
13926 dragonfly*)
13927 druntime_target_os_parsed="dragonflybsd"
13928 ;;
13929 freebsd*|k*bsd*-gnu)
13930 druntime_target_os_parsed="freebsd"
13931 ;;
13932 openbsd*)
13933 druntime_target_os_parsed="openbsd"
13934 ;;
13935 netbsd*)
13936 druntime_target_os_parsed="netbsd"
13937 ;;
13938 linux*) druntime_target_os_parsed="linux"
13939 ;;
13940 mingw*) druntime_target_os_parsed="mingw"
13941 ;;
13942 *solaris*) druntime_target_os_parsed="solaris"
13943 esac
13944 if test "$druntime_target_os_parsed" = "aix"; then
13945 DRUNTIME_OS_AIX_TRUE=
13946 DRUNTIME_OS_AIX_FALSE='#'
13947else
13948 DRUNTIME_OS_AIX_TRUE='#'
13949 DRUNTIME_OS_AIX_FALSE=
13950fi
13951
13952 if test "$druntime_target_os_parsed" = "android"; then
13953 DRUNTIME_OS_ANDROID_TRUE=
13954 DRUNTIME_OS_ANDROID_FALSE='#'
13955else
13956 DRUNTIME_OS_ANDROID_TRUE='#'
13957 DRUNTIME_OS_ANDROID_FALSE=
13958fi
13959
13960 if test "$druntime_target_os_parsed" = "darwin"; then
13961 DRUNTIME_OS_DARWIN_TRUE=
13962 DRUNTIME_OS_DARWIN_FALSE='#'
13963else
13964 DRUNTIME_OS_DARWIN_TRUE='#'
13965 DRUNTIME_OS_DARWIN_FALSE=
13966fi
13967
13968 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13969 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13970 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13971else
13972 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13973 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13974fi
13975
13976 if test "$druntime_target_os_parsed" = "freebsd"; then
13977 DRUNTIME_OS_FREEBSD_TRUE=
13978 DRUNTIME_OS_FREEBSD_FALSE='#'
13979else
13980 DRUNTIME_OS_FREEBSD_TRUE='#'
13981 DRUNTIME_OS_FREEBSD_FALSE=
13982fi
13983
13984 if test "$druntime_target_os_parsed" = "netbsd"; then
13985 DRUNTIME_OS_NETBSD_TRUE=
13986 DRUNTIME_OS_NETBSD_FALSE='#'
13987else
13988 DRUNTIME_OS_NETBSD_TRUE='#'
13989 DRUNTIME_OS_NETBSD_FALSE=
13990fi
13991
13992 if test "$druntime_target_os_parsed" = "openbsd"; then
13993 DRUNTIME_OS_OPENBSD_TRUE=
13994 DRUNTIME_OS_OPENBSD_FALSE='#'
13995else
13996 DRUNTIME_OS_OPENBSD_TRUE='#'
13997 DRUNTIME_OS_OPENBSD_FALSE=
13998fi
13999
14000 if test "$druntime_target_os_parsed" = "linux"; then
14001 DRUNTIME_OS_LINUX_TRUE=
14002 DRUNTIME_OS_LINUX_FALSE='#'
14003else
14004 DRUNTIME_OS_LINUX_TRUE='#'
14005 DRUNTIME_OS_LINUX_FALSE=
14006fi
14007
14008 if test "$druntime_target_os_parsed" = "mingw"; then
14009 DRUNTIME_OS_MINGW_TRUE=
14010 DRUNTIME_OS_MINGW_FALSE='#'
14011else
14012 DRUNTIME_OS_MINGW_TRUE='#'
14013 DRUNTIME_OS_MINGW_FALSE=
14014fi
14015
14016 if test "$druntime_target_os_parsed" = "solaris"; then
14017 DRUNTIME_OS_SOLARIS_TRUE=
14018 DRUNTIME_OS_SOLARIS_FALSE='#'
14019else
14020 DRUNTIME_OS_SOLARIS_TRUE='#'
14021 DRUNTIME_OS_SOLARIS_FALSE=
14022fi
14023
14024
14025
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14028$as_echo_n "checking for thread model used by GDC... " >&6; }
14029 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14031$as_echo "$d_thread_model" >&6; }
14032
14033 # Map from thread model to thread interface.
14034
14035case $d_thread_model in
14036 aix) DCFG_THREAD_MODEL="Posix" ;;
14037 lynx) DCFG_THREAD_MODEL="Posix" ;;
14038 posix) DCFG_THREAD_MODEL="Posix" ;;
14039 single) DCFG_THREAD_MODEL="Single" ;;
14040 win32) DCFG_THREAD_MODEL="Win32" ;;
14041 # TODO: These targets need porting.
14042 dce|mipssde|rtems|tpf|vxworks)
14043 DCFG_THREAD_MODEL="Single" ;;
14044 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14045esac
14046
14047
14048
14049
14050 ac_ext=c
14051ac_cpp='$CPP $CPPFLAGS'
14052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14057$as_echo_n "checking for ARM unwinder... " >&6; }
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059/* end confdefs.h. */
14060#include <unwind.h>
14061int
14062main ()
14063{
14064
14065 #if __ARM_EABI_UNWINDER__
14066 #error Yes, it is.
14067 #endif
14068
14069 ;
14070 return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_compile "$LINENO"; then :
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075$as_echo "no" >&6; }
14076 DCFG_ARM_EABI_UNWINDER=false
14077else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14079$as_echo "yes" >&6; }
14080 DCFG_ARM_EABI_UNWINDER=true
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083
14084 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14085 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14086 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14087else
14088 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14089 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14090fi
14091
14092 ac_ext=c
14093ac_cpp='$CPP $CPPFLAGS'
14094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14096ac_compiler_gnu=$ac_cv_c_compiler_gnu
14097
14098
14099
14100 ac_ext=c
14101ac_cpp='$CPP $CPPFLAGS'
14102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14104ac_compiler_gnu=$ac_cv_c_compiler_gnu
14105
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14107$as_echo_n "checking for minfo section bracketing... " >&6; }
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109/* end confdefs.h. */
14110
14111 void* module_info_ptr __attribute__((section ("minfo")));
14112 extern void* __start_minfo __attribute__((visibility ("hidden")));
14113 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14114
14115 int main()
14116 {
14117 // Never run, just to prevent compiler from optimizing access
14118 return &__start_minfo == &__stop_minfo;
14119 }
14120
14121_ACEOF
14122if ac_fn_c_try_link "$LINENO"; then :
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14124$as_echo "yes" >&6; }
14125 DCFG_MINFO_BRACKETING=true
14126else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128$as_echo "no" >&6; }
14129 DCFG_MINFO_BRACKETING=false
14130fi
14131rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14133
14134 ac_ext=c
14135ac_cpp='$CPP $CPPFLAGS'
14136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138ac_compiler_gnu=$ac_cv_c_compiler_gnu
14139
14140
14141
14142
14143
14144 gdc_save_DFLAGS=$GDCFLAGS
14145 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14146
14147 ac_ext=d
14148ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14149ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150ac_compiler_gnu=yes
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14153$as_echo_n "checking for library containing malloc... " >&6; }
22e05272 14154if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14155 $as_echo_n "(cached) " >&6
14156else
14157 ac_func_search_save_LIBS=$LIBS
14158cat > conftest.$ac_ext <<_ACEOF
14159module mod;
14160 extern(C) int malloc();
14161
14162extern(C) int main() {
14163 malloc(); return 0;
14164}
14165_ACEOF
14166for ac_lib in '' c; do
14167 if test -z "$ac_lib"; then
14168 ac_res="none required"
14169 else
14170 ac_res=-l$ac_lib
14171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14172 fi
14173 if ac_fn_d_try_link "$LINENO"; then :
14174 ac_cv_search_malloc=$ac_res
14175fi
14176rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext
22e05272 14178 if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14179 break
14180fi
14181done
22e05272 14182if ${ac_cv_search_malloc+:} false; then :
b4c522fa
IB
14183
14184else
14185 ac_cv_search_malloc=no
14186fi
14187rm conftest.$ac_ext
14188LIBS=$ac_func_search_save_LIBS
14189fi
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14191$as_echo "$ac_cv_search_malloc" >&6; }
14192ac_res=$ac_cv_search_malloc
14193if test "$ac_res" != no; then :
14194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14195
14196fi
14197
14198
14199 enable_thread_lib=yes
14200 # Check whether --enable-thread-lib was given.
14201if test "${enable_thread_lib+set}" = set; then :
14202 enableval=$enable_thread_lib;
14203fi
14204
14205
14206 if test "x$enable_thread_lib" = "xyes"; then :
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14209$as_echo_n "checking for library containing pthread_create... " >&6; }
22e05272 14210if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14211 $as_echo_n "(cached) " >&6
14212else
14213 ac_func_search_save_LIBS=$LIBS
14214cat > conftest.$ac_ext <<_ACEOF
14215module mod;
14216 extern(C) int pthread_create();
14217
14218extern(C) int main() {
14219 pthread_create(); return 0;
14220}
14221_ACEOF
14222for ac_lib in '' pthread; do
14223 if test -z "$ac_lib"; then
14224 ac_res="none required"
14225 else
14226 ac_res=-l$ac_lib
14227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14228 fi
14229 if ac_fn_d_try_link "$LINENO"; then :
14230 ac_cv_search_pthread_create=$ac_res
14231fi
14232rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext
22e05272 14234 if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14235 break
14236fi
14237done
22e05272 14238if ${ac_cv_search_pthread_create+:} false; then :
b4c522fa
IB
14239
14240else
14241 ac_cv_search_pthread_create=no
14242fi
14243rm conftest.$ac_ext
14244LIBS=$ac_func_search_save_LIBS
14245fi
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14247$as_echo "$ac_cv_search_pthread_create" >&6; }
14248ac_res=$ac_cv_search_pthread_create
14249if test "$ac_res" != no; then :
14250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14251
14252fi
14253
14254
14255else
14256
14257 if test "x$enable_thread_lib" = "xno"; then :
14258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14260$as_echo_n "checking for thread library... " >&6; }
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14262$as_echo "disabled" >&6; }
14263
14264else
14265
14266 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14268$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
22e05272 14269if eval \${$as_ac_Lib+:} false; then :
b4c522fa
IB
14270 $as_echo_n "(cached) " >&6
14271else
14272 ac_check_lib_save_LIBS=$LIBS
14273LIBS="-l$enable_thread_lib $LIBS"
14274cat > conftest.$ac_ext <<_ACEOF
14275module mod;
14276 extern(C) int pthread_create();
14277
14278extern(C) int main() {
14279 pthread_create(); return 0;
14280}
14281_ACEOF
14282if ac_fn_d_try_link "$LINENO"; then :
14283 eval "$as_ac_Lib=yes"
14284else
14285 eval "$as_ac_Lib=no"
14286fi
14287rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289LIBS=$ac_check_lib_save_LIBS
14290fi
14291eval ac_res=\$$as_ac_Lib
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14293$as_echo "$ac_res" >&6; }
22e05272 14294if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
b4c522fa
IB
14295 cat >>confdefs.h <<_ACEOF
14296#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14297_ACEOF
14298
14299 LIBS="-l$enable_thread_lib $LIBS"
14300
14301else
14302
22e05272 14303 as_fn_error $? "Thread library not found" "$LINENO" 5
b4c522fa
IB
14304
14305fi
14306
14307
14308fi
14309
14310fi
14311
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14313$as_echo_n "checking for library containing cosf... " >&6; }
22e05272 14314if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14315 $as_echo_n "(cached) " >&6
14316else
14317 ac_func_search_save_LIBS=$LIBS
14318cat > conftest.$ac_ext <<_ACEOF
14319module mod;
14320 extern(C) int cosf();
14321
14322extern(C) int main() {
14323 cosf(); return 0;
14324}
14325_ACEOF
14326for ac_lib in '' m; do
14327 if test -z "$ac_lib"; then
14328 ac_res="none required"
14329 else
14330 ac_res=-l$ac_lib
14331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14332 fi
14333 if ac_fn_d_try_link "$LINENO"; then :
14334 ac_cv_search_cosf=$ac_res
14335fi
14336rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext
22e05272 14338 if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14339 break
14340fi
14341done
22e05272 14342if ${ac_cv_search_cosf+:} false; then :
b4c522fa
IB
14343
14344else
14345 ac_cv_search_cosf=no
14346fi
14347rm conftest.$ac_ext
14348LIBS=$ac_func_search_save_LIBS
14349fi
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14351$as_echo "$ac_cv_search_cosf" >&6; }
14352ac_res=$ac_cv_search_cosf
14353if test "$ac_res" != no; then :
14354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14355
14356fi
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14359$as_echo_n "checking for library containing clock_gettime... " >&6; }
22e05272 14360if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14361 $as_echo_n "(cached) " >&6
14362else
14363 ac_func_search_save_LIBS=$LIBS
14364cat > conftest.$ac_ext <<_ACEOF
14365module mod;
14366 extern(C) int clock_gettime();
14367
14368extern(C) int main() {
14369 clock_gettime(); return 0;
14370}
14371_ACEOF
14372for ac_lib in '' rt; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14375 else
14376 ac_res=-l$ac_lib
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14378 fi
14379 if ac_fn_d_try_link "$LINENO"; then :
14380 ac_cv_search_clock_gettime=$ac_res
14381fi
14382rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext
22e05272 14384 if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14385 break
14386fi
14387done
22e05272 14388if ${ac_cv_search_clock_gettime+:} false; then :
b4c522fa
IB
14389
14390else
14391 ac_cv_search_clock_gettime=no
14392fi
14393rm conftest.$ac_ext
14394LIBS=$ac_func_search_save_LIBS
14395fi
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14397$as_echo "$ac_cv_search_clock_gettime" >&6; }
14398ac_res=$ac_cv_search_clock_gettime
14399if test "$ac_res" != no; then :
14400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14401
14402fi
14403
14404
14405 # This checks to see if the host supports the compiler-generated builtins
14406 # for atomic operations for various integral sizes. Note, this is intended
14407 # to be an all-or-nothing switch, so all the atomic operations that are
14408 # used should be checked.
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14410$as_echo_n "checking for atomic builtins for byte... " >&6; }
22e05272 14411 if ${druntime_cv_atomic_byte+:} false; then :
b4c522fa
IB
14412 $as_echo_n "(cached) " >&6
14413else
14414
14415 cat > conftest.$ac_ext <<_ACEOF
14416module mod;
14417import gcc.builtins;
14418
14419extern(C) int main() {
14420
14421 shared(byte) c1;
14422 byte c2, c3;
14423 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14424 __atomic_load_1(&c1, 5);
14425 __atomic_store_1(&c1, c2, 5);
14426 return 0;
14427
14428}
14429_ACEOF
14430if ac_fn_d_try_link "$LINENO"; then :
14431 druntime_cv_atomic_byte=yes
14432else
14433 druntime_cv_atomic_byte=no
14434fi
14435rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14437
14438fi
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14441$as_echo "$druntime_cv_atomic_byte" >&6; }
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14444$as_echo_n "checking for atomic builtins for short... " >&6; }
22e05272 14445 if ${druntime_cv_atomic_short+:} false; then :
b4c522fa
IB
14446 $as_echo_n "(cached) " >&6
14447else
14448
14449 cat > conftest.$ac_ext <<_ACEOF
14450module mod;
14451import gcc.builtins;
14452
14453extern(C) int main() {
14454
14455 shared(short) c1;
14456 short c2, c3;
14457 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14458 __atomic_load_2(&c1, 5);
14459 __atomic_store_2(&c1, c2, 5);
14460 return 0;
14461
14462}
14463_ACEOF
14464if ac_fn_d_try_link "$LINENO"; then :
14465 druntime_cv_atomic_short=yes
14466else
14467 druntime_cv_atomic_short=no
14468fi
14469rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
14471
14472fi
14473
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14475$as_echo "$druntime_cv_atomic_short" >&6; }
14476
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14478$as_echo_n "checking for atomic builtins for int... " >&6; }
22e05272 14479 if ${druntime_cv_atomic_int+:} false; then :
b4c522fa
IB
14480 $as_echo_n "(cached) " >&6
14481else
14482
14483 cat > conftest.$ac_ext <<_ACEOF
14484module mod;
14485import gcc.builtins;
14486
14487extern(C) int main() {
14488
14489 shared(int) c1;
14490 int c2, c3;
14491 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14492 __atomic_load_4(&c1, 5);
14493 __atomic_store_4(&c1, c2, 5);
14494 return 0;
14495
14496}
14497_ACEOF
14498if ac_fn_d_try_link "$LINENO"; then :
14499 druntime_cv_atomic_int=yes
14500else
14501 druntime_cv_atomic_int=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14505
14506fi
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14509$as_echo "$druntime_cv_atomic_int" >&6; }
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14512$as_echo_n "checking for atomic builtins for long... " >&6; }
22e05272 14513 if ${druntime_cv_atomic_long+:} false; then :
b4c522fa
IB
14514 $as_echo_n "(cached) " >&6
14515else
14516
14517 cat > conftest.$ac_ext <<_ACEOF
14518module mod;
14519import gcc.builtins;
14520
14521extern(C) int main() {
14522
14523 shared(long) c1;
14524 long c2, c3;
14525 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14526 __atomic_load_8(&c1, 5);
14527 __atomic_store_8(&c1, c2, 5);
14528 return 0;
14529
14530}
14531_ACEOF
14532if ac_fn_d_try_link "$LINENO"; then :
14533 druntime_cv_atomic_long=yes
14534else
14535 druntime_cv_atomic_long=no
14536fi
14537rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539
14540fi
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14543$as_echo "$druntime_cv_atomic_long" >&6; }
14544
14545 # Have atomic builtin support if all but the long test above passes.
14546 DCFG_HAVE_ATOMIC_BUILTINS=false
14547 if test "$druntime_cv_atomic_byte" = yes \
14548 && test "$druntime_cv_atomic_short" = yes \
14549 && test "$druntime_cv_atomic_int" = yes; then \
14550 DCFG_HAVE_ATOMIC_BUILTINS=true
14551 fi
14552
14553 # Have 64-bit atomic support if the long test above passes.
14554 DCFG_HAVE_64BIT_ATOMICS=false
14555 if test "$druntime_cv_atomic_long" = yes; then
14556 DCFG_HAVE_64BIT_ATOMICS=true
14557 fi
14558
14559
14560
14561
14562 ac_ext=c
14563ac_cpp='$CPP $CPPFLAGS'
14564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14566ac_compiler_gnu=$ac_cv_c_compiler_gnu
14567
14568
14569 GDCFLAGS=$gdc_save_DFLAGS
14570
14571
14572
14573
14574# Check whether --with-libatomic was given.
14575if test "${with_libatomic+set}" = set; then :
14576 withval=$with_libatomic;
14577fi
14578
14579
14580 DCFG_HAVE_LIBATOMIC=false
14581 LIBATOMIC=
14582 if test "x$with_libatomic" != "xno"; then :
14583
14584 DCFG_HAVE_LIBATOMIC=true
14585 LIBATOMIC=../../libatomic/libatomic_convenience.la
14586
14587else
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14590$as_echo_n "checking for libatomic... " >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14592$as_echo "disabled" >&6; }
14593
14594fi
14595
14596
14597
14598
14599
14600 ac_ext=c
14601ac_cpp='$CPP $CPPFLAGS'
14602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604ac_compiler_gnu=$ac_cv_c_compiler_gnu
14605
14606 BACKTRACE_SUPPORTED=false
14607 BACKTRACE_USES_MALLOC=false
14608 BACKTRACE_SUPPORTS_THREADS=false
14609 LIBBACKTRACE=""
14610
14611
14612# Check whether --with-libbacktrace was given.
14613if test "${with_libbacktrace+set}" = set; then :
14614 withval=$with_libbacktrace;
14615fi
14616
14617
14618 if test "x$with_libbacktrace" != "xno"; then :
14619
14620 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14621
14622 gdc_save_CPPFLAGS=$CPPFLAGS
14623 CPPFLAGS+=" -I../libbacktrace "
14624
14625 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
22e05272 14626if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
b4c522fa
IB
14627 have_libbacktrace_h=true
14628else
14629 have_libbacktrace_h=false
14630fi
14631
14632
14633
14634 if $have_libbacktrace_h; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14636$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638/* end confdefs.h. */
14639
14640 #include <backtrace-supported.h>
14641 #if BACKTRACE_SUPPORTED
14642 FOUND_LIBBACKTRACE_RESULT_GDC
14643 #endif
14644
14645_ACEOF
14646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14647 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14648 BACKTRACE_SUPPORTED=true
14649else
14650 BACKTRACE_SUPPORTED=false
14651fi
14652rm -f conftest*
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14655$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14656
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14658$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660/* end confdefs.h. */
14661
14662 #include <backtrace-supported.h>
14663 #if BACKTRACE_USES_MALLOC
14664 FOUND_LIBBACKTRACE_RESULT_GDC
14665 #endif
14666
14667_ACEOF
14668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14669 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14670 BACKTRACE_USES_MALLOC=true
14671else
14672 BACKTRACE_USES_MALLOC=false
14673fi
14674rm -f conftest*
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14677$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14678
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14680$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682/* end confdefs.h. */
14683
14684 #include <backtrace-supported.h>
14685 #if BACKTRACE_SUPPORTS_THREADS
14686 FOUND_LIBBACKTRACE_RESULT_GDC
14687 #endif
14688
14689_ACEOF
14690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14691 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14692 BACKTRACE_SUPPORTS_THREADS=true
14693else
14694 BACKTRACE_SUPPORTS_THREADS=false
14695fi
14696rm -f conftest*
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14699$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14700 fi
14701 CPPFLAGS=$gdc_save_CPPFLAGS
14702
14703else
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14706$as_echo_n "checking for libbacktrace... " >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14708$as_echo "disabled" >&6; }
14709
14710fi
14711
14712
14713
14714
14715
14716 ac_ext=c
14717ac_cpp='$CPP $CPPFLAGS'
14718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14720ac_compiler_gnu=$ac_cv_c_compiler_gnu
14721
14722
14723
14724 # Libtool has already checked this, so re-use the inferred dlopen lib.
14725 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14726
14727 LIBS="$LIBS $lt_cv_dlopen_libs"
14728
14729fi
14730
14731
14732
14733# Check whether --with-target-system-zlib was given.
14734if test "${with_target_system_zlib+set}" = set; then :
14735 withval=$with_target_system_zlib;
14736fi
14737
14738
14739 system_zlib=false
14740 if test "x$with_target_system_zlib" = "xyes"; then :
14741
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14743$as_echo_n "checking for deflate in -lz... " >&6; }
22e05272 14744if ${ac_cv_lib_z_deflate+:} false; then :
b4c522fa
IB
14745 $as_echo_n "(cached) " >&6
14746else
14747 ac_check_lib_save_LIBS=$LIBS
14748LIBS="-lz $LIBS"
14749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750/* end confdefs.h. */
14751
14752/* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14755#ifdef __cplusplus
14756extern "C"
14757#endif
14758char deflate ();
14759int
14760main ()
14761{
14762return deflate ();
14763 ;
14764 return 0;
14765}
14766_ACEOF
14767if ac_fn_c_try_link "$LINENO"; then :
14768 ac_cv_lib_z_deflate=yes
14769else
14770 ac_cv_lib_z_deflate=no
14771fi
14772rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774LIBS=$ac_check_lib_save_LIBS
14775fi
14776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14777$as_echo "$ac_cv_lib_z_deflate" >&6; }
22e05272 14778if test "x$ac_cv_lib_z_deflate" = xyes; then :
b4c522fa
IB
14779
14780 system_zlib=yes
14781
14782else
14783
22e05272 14784 as_fn_error $? "System zlib not found" "$LINENO" 5
b4c522fa
IB
14785
14786fi
14787
14788
14789else
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14792$as_echo_n "checking for zlib... " >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14794$as_echo "just compiled" >&6; }
14795
14796fi
14797
14798 if test "$with_target_system_zlib" = yes; then
14799 DRUNTIME_ZLIB_SYSTEM_TRUE=
14800 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14801else
14802 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14803 DRUNTIME_ZLIB_SYSTEM_FALSE=
14804fi
14805
14806
14807
14808
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14811$as_echo_n "checking D GCC version... " >&6; }
14812 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14814$as_echo "$gcc_version" >&6; }
14815
14816
14817
14818# Check whether --with-cross-host was given.
14819if test "${with_cross_host+set}" = set; then :
14820 withval=$with_cross_host;
14821fi
14822
14823
ac67752d
IB
14824 libphobos_toolexecdir=no
14825 libphobos_toolexeclibdir=no
b4c522fa 14826
ac67752d
IB
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14828$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14829 # Check whether --enable-version-specific-runtime-libs was given.
14830if test "${enable_version_specific_runtime_libs+set}" = set; then :
14831 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
14832 yes) version_specific_libs=yes ;;
14833 no) version_specific_libs=no ;;
14834 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14835 esac
14836else
b4c522fa 14837 version_specific_libs=no
ac67752d
IB
14838fi
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14841$as_echo "$version_specific_libs" >&6; }
b4c522fa
IB
14842
14843 # Version-specific runtime libs processing.
14844 if test $version_specific_libs = yes; then
ac67752d
IB
14845 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14846 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
b4c522fa 14847 else
ac67752d
IB
14848 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14849 # Install a library built with a cross compiler in tooldir, not libdir.
14850 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14851 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
14852 libphobos_toolexeclibdir='${toolexecdir}/lib'
14853 else
14854 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14855 libphobos_toolexeclibdir='${libdir}'
14856 fi
14857 multi_os_directory=`$GDC -print-multi-os-directory`
14858 case $multi_os_directory in
14859 .) ;; # Avoid trailing /.
14860 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14861 esac
b4c522fa
IB
14862 fi
14863
14864
14865
14866 # Default case for install directory for D sources files.
14867 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14868
14869
14870
14871# Add dependencies for libgphobos.spec file
14872SPEC_PHOBOS_DEPS="$LIBS"
14873
14874
14875# Libdruntime / phobos soname version
85041a5b 14876libtool_VERSION=76:3:0
b4c522fa
IB
14877
14878
14879# Set default flags (after DRUNTIME_WERROR!)
14880if test -z "$GDCFLAGS"; then
14881 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
14882fi
14883
14884
14885if test -z "$GDCFLAGSX"; then
14886 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
14887fi
14888
14889
14890# Sanity check for the cross-compilation case:
14891ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22e05272 14892if test "x$ac_cv_header_stdio_h" = xyes; then :
b4c522fa
IB
14893 :
14894else
22e05272 14895 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
b4c522fa
IB
14896fi
14897
14898
14899
ac67752d 14900ac_config_files="$ac_config_files Makefile"
b4c522fa
IB
14901
14902
14903ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14904
14905ac_config_files="$ac_config_files src/libgphobos.spec"
14906
14907ac_config_files="$ac_config_files testsuite/testsuite_flags"
14908
14909
ac67752d
IB
14910# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
14911# that multilib installs will end up installed in the correct place.
14912# The testsuite needs it for multilib-aware ABI baseline files.
14913# To work around this not being passed down from config-ml.in ->
14914# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
14915# append it here. Only modify Makefiles that have just been created.
14916#
14917# Also, get rid of this simulated-VPATH thing that automake does.
14918ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
b4c522fa
IB
14919
14920
14921cat >confcache <<\_ACEOF
14922# This file is a shell script that caches the results of configure
14923# tests run on this system so they can be shared between configure
14924# scripts and configure runs, see configure's option --config-cache.
14925# It is not useful on other systems. If it contains results you don't
14926# want to keep, you may remove or edit it.
14927#
14928# config.status only pays attention to the cache file if you give it
14929# the --recheck option to rerun configure.
14930#
14931# `ac_cv_env_foo' variables (set or unset) will be overridden when
14932# loading this file, other *unset* `ac_cv_foo' will be assigned the
14933# following values.
14934
14935_ACEOF
14936
14937# The following way of writing the cache mishandles newlines in values,
14938# but we know of no workaround that is simple, portable, and efficient.
14939# So, we kill variables containing newlines.
14940# Ultrix sh set writes to stderr and can't be redirected directly,
14941# and sets the high bit in the cache file unless we assign to the vars.
14942(
14943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14944 eval ac_val=\$$ac_var
14945 case $ac_val in #(
14946 *${as_nl}*)
14947 case $ac_var in #(
14948 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14950 esac
14951 case $ac_var in #(
14952 _ | IFS | as_nl) ;; #(
14953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14954 *) { eval $ac_var=; unset $ac_var;} ;;
14955 esac ;;
14956 esac
14957 done
14958
14959 (set) 2>&1 |
14960 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14961 *${as_nl}ac_space=\ *)
14962 # `set' does not quote correctly, so add quotes: double-quote
14963 # substitution turns \\\\ into \\, and sed turns \\ into \.
14964 sed -n \
14965 "s/'/'\\\\''/g;
14966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14967 ;; #(
14968 *)
14969 # `set' quotes correctly as required by POSIX, so do not add quotes.
14970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14971 ;;
14972 esac |
14973 sort
14974) |
14975 sed '
14976 /^ac_cv_env_/b end
14977 t clear
14978 :clear
14979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14980 t end
14981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14982 :end' >>confcache
14983if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14984 if test -w "$cache_file"; then
22e05272 14985 if test "x$cache_file" != "x/dev/null"; then
b4c522fa
IB
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14987$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
14988 if test ! -f "$cache_file" || test -h "$cache_file"; then
14989 cat confcache >"$cache_file"
14990 else
14991 case $cache_file in #(
14992 */* | ?:*)
14993 mv -f confcache "$cache_file"$$ &&
14994 mv -f "$cache_file"$$ "$cache_file" ;; #(
14995 *)
14996 mv -f confcache "$cache_file" ;;
14997 esac
14998 fi
14999 fi
b4c522fa
IB
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15002$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15003 fi
15004fi
15005rm -f confcache
15006
15007test "x$prefix" = xNONE && prefix=$ac_default_prefix
15008# Let make expand exec_prefix.
15009test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15010
15011DEFS=-DHAVE_CONFIG_H
15012
15013ac_libobjs=
15014ac_ltlibobjs=
22e05272 15015U=
b4c522fa
IB
15016for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15017 # 1. Remove the extension, and $U if already installed.
15018 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15019 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15021 # will be set to the directory where LIBOBJS objects are built.
15022 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15023 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15024done
15025LIBOBJS=$ac_libobjs
15026
15027LTLIBOBJS=$ac_ltlibobjs
15028
15029
22e05272
JM
15030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15031$as_echo_n "checking that generated files are newer than configure... " >&6; }
15032 if test -n "$am_sleep_pid"; then
15033 # Hide warnings about reused PIDs.
15034 wait $am_sleep_pid 2>/dev/null
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15037$as_echo "done" >&6; }
b4c522fa
IB
15038 if test -n "$EXEEXT"; then
15039 am__EXEEXT_TRUE=
15040 am__EXEEXT_FALSE='#'
15041else
15042 am__EXEEXT_TRUE='#'
15043 am__EXEEXT_FALSE=
15044fi
15045
15046if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15047 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b4c522fa
IB
15048Usually this means the macro was only invoked conditionally." "$LINENO" 5
15049fi
15050if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
22e05272 15051 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
b4c522fa
IB
15052Usually this means the macro was only invoked conditionally." "$LINENO" 5
15053fi
15054if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
22e05272 15055 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
b4c522fa
IB
15056Usually this means the macro was only invoked conditionally." "$LINENO" 5
15057fi
15058if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
22e05272 15059 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
b4c522fa
IB
15060Usually this means the macro was only invoked conditionally." "$LINENO" 5
15061fi
15062if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
22e05272 15063 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
b4c522fa
IB
15064Usually this means the macro was only invoked conditionally." "$LINENO" 5
15065fi
15066if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
22e05272 15067 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
b4c522fa
IB
15068Usually this means the macro was only invoked conditionally." "$LINENO" 5
15069fi
15070if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
22e05272 15071 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
b4c522fa
IB
15072Usually this means the macro was only invoked conditionally." "$LINENO" 5
15073fi
15074if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
22e05272 15075 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
b4c522fa
IB
15076Usually this means the macro was only invoked conditionally." "$LINENO" 5
15077fi
15078if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
22e05272 15079 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
b4c522fa
IB
15080Usually this means the macro was only invoked conditionally." "$LINENO" 5
15081fi
15082if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
22e05272 15083 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
b4c522fa
IB
15084Usually this means the macro was only invoked conditionally." "$LINENO" 5
15085fi
15086if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
22e05272 15087 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
b4c522fa
IB
15088Usually this means the macro was only invoked conditionally." "$LINENO" 5
15089fi
15090if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
22e05272 15091 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
b4c522fa
IB
15092Usually this means the macro was only invoked conditionally." "$LINENO" 5
15093fi
15094if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
22e05272 15095 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
b4c522fa
IB
15096Usually this means the macro was only invoked conditionally." "$LINENO" 5
15097fi
15098if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
22e05272 15099 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
b4c522fa
IB
15100Usually this means the macro was only invoked conditionally." "$LINENO" 5
15101fi
15102if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
22e05272 15103 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
b4c522fa
IB
15104Usually this means the macro was only invoked conditionally." "$LINENO" 5
15105fi
15106if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
22e05272 15107 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
b4c522fa
IB
15108Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109fi
15110if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
22e05272 15111 as_fn_error $? "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
b4c522fa
IB
15112Usually this means the macro was only invoked conditionally." "$LINENO" 5
15113fi
15114
22e05272 15115: "${CONFIG_STATUS=./config.status}"
b4c522fa
IB
15116ac_write_fail=0
15117ac_clean_files_save=$ac_clean_files
15118ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15120$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15121as_write_fail=0
15122cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15123#! $SHELL
15124# Generated by $as_me.
15125# Run this file to recreate the current configuration.
15126# Compiler output produced by configure, useful for debugging
15127# configure, is in config.log if it exists.
15128
15129debug=false
15130ac_cs_recheck=false
15131ac_cs_silent=false
15132
15133SHELL=\${CONFIG_SHELL-$SHELL}
15134export SHELL
15135_ASEOF
15136cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15137## -------------------- ##
15138## M4sh Initialization. ##
15139## -------------------- ##
15140
15141# Be more Bourne compatible
15142DUALCASE=1; export DUALCASE # for MKS sh
15143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15144 emulate sh
15145 NULLCMD=:
15146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15147 # is contrary to our usage. Disable this feature.
15148 alias -g '${1+"$@"}'='"$@"'
15149 setopt NO_GLOB_SUBST
15150else
15151 case `(set -o) 2>/dev/null` in #(
15152 *posix*) :
15153 set -o posix ;; #(
15154 *) :
15155 ;;
15156esac
15157fi
15158
15159
15160as_nl='
15161'
15162export as_nl
15163# Printing a long string crashes Solaris 7 /usr/bin/printf.
15164as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15167# Prefer a ksh shell builtin over an external printf program on Solaris,
15168# but without wasting forks for bash or zsh.
15169if test -z "$BASH_VERSION$ZSH_VERSION" \
15170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15171 as_echo='print -r --'
15172 as_echo_n='print -rn --'
15173elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15174 as_echo='printf %s\n'
15175 as_echo_n='printf %s'
15176else
15177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15179 as_echo_n='/usr/ucb/echo -n'
15180 else
15181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15182 as_echo_n_body='eval
15183 arg=$1;
15184 case $arg in #(
15185 *"$as_nl"*)
15186 expr "X$arg" : "X\\(.*\\)$as_nl";
15187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15188 esac;
15189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15190 '
15191 export as_echo_n_body
15192 as_echo_n='sh -c $as_echo_n_body as_echo'
15193 fi
15194 export as_echo_body
15195 as_echo='sh -c $as_echo_body as_echo'
15196fi
15197
15198# The user is always right.
15199if test "${PATH_SEPARATOR+set}" != set; then
15200 PATH_SEPARATOR=:
15201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15203 PATH_SEPARATOR=';'
15204 }
15205fi
15206
15207
15208# IFS
15209# We need space, tab and new line, in precisely that order. Quoting is
15210# there to prevent editors from complaining about space-tab.
15211# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15212# splitting by setting IFS to empty value.)
15213IFS=" "" $as_nl"
15214
15215# Find who we are. Look in the path if we contain no directory separator.
22e05272 15216as_myself=
b4c522fa
IB
15217case $0 in #((
15218 *[\\/]* ) as_myself=$0 ;;
15219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220for as_dir in $PATH
15221do
15222 IFS=$as_save_IFS
15223 test -z "$as_dir" && as_dir=.
15224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15225 done
15226IFS=$as_save_IFS
15227
15228 ;;
15229esac
15230# We did not find ourselves, most probably we were run as `sh COMMAND'
15231# in which case we are not to be found in the path.
15232if test "x$as_myself" = x; then
15233 as_myself=$0
15234fi
15235if test ! -f "$as_myself"; then
15236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15237 exit 1
15238fi
15239
15240# Unset variables that we do not need and which cause bugs (e.g. in
15241# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15242# suppresses any "Segmentation fault" message there. '((' could
15243# trigger a bug in pdksh 5.2.14.
15244for as_var in BASH_ENV ENV MAIL MAILPATH
15245do eval test x\${$as_var+set} = xset \
15246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15247done
15248PS1='$ '
15249PS2='> '
15250PS4='+ '
15251
15252# NLS nuisances.
15253LC_ALL=C
15254export LC_ALL
15255LANGUAGE=C
15256export LANGUAGE
15257
15258# CDPATH.
15259(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15260
15261
22e05272
JM
15262# as_fn_error STATUS ERROR [LINENO LOG_FD]
15263# ----------------------------------------
b4c522fa
IB
15264# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15265# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15266# script with STATUS, using 1 if that was 0.
b4c522fa
IB
15267as_fn_error ()
15268{
22e05272
JM
15269 as_status=$1; test $as_status -eq 0 && as_status=1
15270 if test "$4"; then
15271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b4c522fa 15273 fi
22e05272 15274 $as_echo "$as_me: error: $2" >&2
b4c522fa
IB
15275 as_fn_exit $as_status
15276} # as_fn_error
15277
15278
15279# as_fn_set_status STATUS
15280# -----------------------
15281# Set $? to STATUS, without forking.
15282as_fn_set_status ()
15283{
15284 return $1
15285} # as_fn_set_status
15286
15287# as_fn_exit STATUS
15288# -----------------
15289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15290as_fn_exit ()
15291{
15292 set +e
15293 as_fn_set_status $1
15294 exit $1
15295} # as_fn_exit
15296
15297# as_fn_unset VAR
15298# ---------------
15299# Portably unset VAR.
15300as_fn_unset ()
15301{
15302 { eval $1=; unset $1;}
15303}
15304as_unset=as_fn_unset
15305# as_fn_append VAR VALUE
15306# ----------------------
15307# Append the text in VALUE to the end of the definition contained in VAR. Take
15308# advantage of any shell optimizations that allow amortized linear growth over
15309# repeated appends, instead of the typical quadratic growth present in naive
15310# implementations.
15311if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15312 eval 'as_fn_append ()
15313 {
15314 eval $1+=\$2
15315 }'
15316else
15317 as_fn_append ()
15318 {
15319 eval $1=\$$1\$2
15320 }
15321fi # as_fn_append
15322
15323# as_fn_arith ARG...
15324# ------------------
15325# Perform arithmetic evaluation on the ARGs, and store the result in the
15326# global $as_val. Take advantage of shells that can avoid forks. The arguments
15327# must be portable across $(()) and expr.
15328if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15329 eval 'as_fn_arith ()
15330 {
15331 as_val=$(( $* ))
15332 }'
15333else
15334 as_fn_arith ()
15335 {
15336 as_val=`expr "$@" || test $? -eq 1`
15337 }
15338fi # as_fn_arith
15339
15340
15341if expr a : '\(a\)' >/dev/null 2>&1 &&
15342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15343 as_expr=expr
15344else
15345 as_expr=false
15346fi
15347
15348if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15349 as_basename=basename
15350else
15351 as_basename=false
15352fi
15353
15354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15355 as_dirname=dirname
15356else
15357 as_dirname=false
15358fi
15359
15360as_me=`$as_basename -- "$0" ||
15361$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15362 X"$0" : 'X\(//\)$' \| \
15363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15364$as_echo X/"$0" |
15365 sed '/^.*\/\([^/][^/]*\)\/*$/{
15366 s//\1/
15367 q
15368 }
15369 /^X\/\(\/\/\)$/{
15370 s//\1/
15371 q
15372 }
15373 /^X\/\(\/\).*/{
15374 s//\1/
15375 q
15376 }
15377 s/.*/./; q'`
15378
15379# Avoid depending upon Character Ranges.
15380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15383as_cr_digits='0123456789'
15384as_cr_alnum=$as_cr_Letters$as_cr_digits
15385
15386ECHO_C= ECHO_N= ECHO_T=
15387case `echo -n x` in #(((((
15388-n*)
15389 case `echo 'xy\c'` in
15390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15391 xy) ECHO_C='\c';;
15392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15393 ECHO_T=' ';;
15394 esac;;
15395*)
15396 ECHO_N='-n';;
15397esac
15398
15399rm -f conf$$ conf$$.exe conf$$.file
15400if test -d conf$$.dir; then
15401 rm -f conf$$.dir/conf$$.file
15402else
15403 rm -f conf$$.dir
15404 mkdir conf$$.dir 2>/dev/null
15405fi
15406if (echo >conf$$.file) 2>/dev/null; then
15407 if ln -s conf$$.file conf$$ 2>/dev/null; then
15408 as_ln_s='ln -s'
15409 # ... but there are two gotchas:
15410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15412 # In both cases, we have to default to `cp -pR'.
b4c522fa 15413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15414 as_ln_s='cp -pR'
b4c522fa
IB
15415 elif ln conf$$.file conf$$ 2>/dev/null; then
15416 as_ln_s=ln
15417 else
22e05272 15418 as_ln_s='cp -pR'
b4c522fa
IB
15419 fi
15420else
22e05272 15421 as_ln_s='cp -pR'
b4c522fa
IB
15422fi
15423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15424rmdir conf$$.dir 2>/dev/null
15425
15426
15427# as_fn_mkdir_p
15428# -------------
15429# Create "$as_dir" as a directory, including parents if necessary.
15430as_fn_mkdir_p ()
15431{
15432
15433 case $as_dir in #(
15434 -*) as_dir=./$as_dir;;
15435 esac
15436 test -d "$as_dir" || eval $as_mkdir_p || {
15437 as_dirs=
15438 while :; do
15439 case $as_dir in #(
15440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15441 *) as_qdir=$as_dir;;
15442 esac
15443 as_dirs="'$as_qdir' $as_dirs"
15444 as_dir=`$as_dirname -- "$as_dir" ||
15445$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446 X"$as_dir" : 'X\(//\)[^/]' \| \
15447 X"$as_dir" : 'X\(//\)$' \| \
15448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15449$as_echo X"$as_dir" |
15450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15451 s//\1/
15452 q
15453 }
15454 /^X\(\/\/\)[^/].*/{
15455 s//\1/
15456 q
15457 }
15458 /^X\(\/\/\)$/{
15459 s//\1/
15460 q
15461 }
15462 /^X\(\/\).*/{
15463 s//\1/
15464 q
15465 }
15466 s/.*/./; q'`
15467 test -d "$as_dir" && break
15468 done
15469 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b4c522fa
IB
15471
15472
15473} # as_fn_mkdir_p
15474if mkdir -p . 2>/dev/null; then
15475 as_mkdir_p='mkdir -p "$as_dir"'
15476else
15477 test -d ./-p && rmdir ./-p
15478 as_mkdir_p=false
15479fi
15480
22e05272
JM
15481
15482# as_fn_executable_p FILE
15483# -----------------------
15484# Test if FILE is an executable regular file.
15485as_fn_executable_p ()
15486{
15487 test -f "$1" && test -x "$1"
15488} # as_fn_executable_p
15489as_test_x='test -x'
15490as_executable_p=as_fn_executable_p
b4c522fa
IB
15491
15492# Sed expression to map a string onto a valid CPP name.
15493as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15494
15495# Sed expression to map a string onto a valid variable name.
15496as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15497
15498
15499exec 6>&1
15500## ----------------------------------- ##
15501## Main body of $CONFIG_STATUS script. ##
15502## ----------------------------------- ##
15503_ASEOF
15504test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15505
15506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15507# Save the log message, to keep $0 and so on meaningful, and to
15508# report actual input values of CONFIG_FILES etc. instead of their
15509# values after options handling.
15510ac_log="
15511This file was extended by package-unused $as_me version-unused, which was
22e05272 15512generated by GNU Autoconf 2.69. Invocation command line was
b4c522fa
IB
15513
15514 CONFIG_FILES = $CONFIG_FILES
15515 CONFIG_HEADERS = $CONFIG_HEADERS
15516 CONFIG_LINKS = $CONFIG_LINKS
15517 CONFIG_COMMANDS = $CONFIG_COMMANDS
15518 $ $0 $@
15519
15520on `(hostname || uname -n) 2>/dev/null | sed 1q`
15521"
15522
15523_ACEOF
15524
15525case $ac_config_files in *"
15526"*) set x $ac_config_files; shift; ac_config_files=$*;;
15527esac
15528
15529case $ac_config_headers in *"
15530"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15531esac
15532
15533
15534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535# Files that config.status was made for.
15536config_files="$ac_config_files"
15537config_headers="$ac_config_headers"
15538config_commands="$ac_config_commands"
15539
15540_ACEOF
15541
15542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543ac_cs_usage="\
15544\`$as_me' instantiates files and other configuration actions
15545from templates according to the current configuration. Unless the files
15546and actions are specified as TAGs, all are instantiated by default.
15547
15548Usage: $0 [OPTION]... [TAG]...
15549
15550 -h, --help print this help, then exit
15551 -V, --version print version number and configuration settings, then exit
22e05272 15552 --config print configuration, then exit
b4c522fa
IB
15553 -q, --quiet, --silent
15554 do not print progress messages
15555 -d, --debug don't remove temporary files
15556 --recheck update $as_me by reconfiguring in the same conditions
15557 --file=FILE[:TEMPLATE]
15558 instantiate the configuration file FILE
15559 --header=FILE[:TEMPLATE]
15560 instantiate the configuration header FILE
15561
15562Configuration files:
15563$config_files
15564
15565Configuration headers:
15566$config_headers
15567
15568Configuration commands:
15569$config_commands
15570
15571Report bugs to the package provider."
15572
15573_ACEOF
15574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15575ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b4c522fa
IB
15576ac_cs_version="\\
15577package-unused config.status version-unused
22e05272
JM
15578configured by $0, generated by GNU Autoconf 2.69,
15579 with options \\"\$ac_cs_config\\"
b4c522fa 15580
22e05272 15581Copyright (C) 2012 Free Software Foundation, Inc.
b4c522fa
IB
15582This config.status script is free software; the Free Software Foundation
15583gives unlimited permission to copy, distribute and modify it."
15584
15585ac_pwd='$ac_pwd'
15586srcdir='$srcdir'
15587INSTALL='$INSTALL'
15588MKDIR_P='$MKDIR_P'
15589AWK='$AWK'
15590test -n "\$AWK" || AWK=awk
15591_ACEOF
15592
15593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15594# The default lists apply if the user does not specify any file.
15595ac_need_defaults=:
15596while test $# != 0
15597do
15598 case $1 in
22e05272 15599 --*=?*)
b4c522fa
IB
15600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15602 ac_shift=:
15603 ;;
22e05272
JM
15604 --*=)
15605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15606 ac_optarg=
15607 ac_shift=:
15608 ;;
b4c522fa
IB
15609 *)
15610 ac_option=$1
15611 ac_optarg=$2
15612 ac_shift=shift
15613 ;;
15614 esac
15615
15616 case $ac_option in
15617 # Handling of the options.
15618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15619 ac_cs_recheck=: ;;
15620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15621 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
15622 --config | --confi | --conf | --con | --co | --c )
15623 $as_echo "$ac_cs_config"; exit ;;
b4c522fa
IB
15624 --debug | --debu | --deb | --de | --d | -d )
15625 debug=: ;;
15626 --file | --fil | --fi | --f )
15627 $ac_shift
15628 case $ac_optarg in
15629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 15630 '') as_fn_error $? "missing file argument" ;;
b4c522fa
IB
15631 esac
15632 as_fn_append CONFIG_FILES " '$ac_optarg'"
15633 ac_need_defaults=false;;
15634 --header | --heade | --head | --hea )
15635 $ac_shift
15636 case $ac_optarg in
15637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15638 esac
15639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15640 ac_need_defaults=false;;
15641 --he | --h)
15642 # Conflict between --help and --header
22e05272 15643 as_fn_error $? "ambiguous option: \`$1'
b4c522fa
IB
15644Try \`$0 --help' for more information.";;
15645 --help | --hel | -h )
15646 $as_echo "$ac_cs_usage"; exit ;;
15647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15649 ac_cs_silent=: ;;
15650
15651 # This is an error.
22e05272 15652 -*) as_fn_error $? "unrecognized option: \`$1'
b4c522fa
IB
15653Try \`$0 --help' for more information." ;;
15654
15655 *) as_fn_append ac_config_targets " $1"
15656 ac_need_defaults=false ;;
15657
15658 esac
15659 shift
15660done
15661
15662ac_configure_extra_args=
15663
15664if $ac_cs_silent; then
15665 exec 6>/dev/null
15666 ac_configure_extra_args="$ac_configure_extra_args --silent"
15667fi
15668
15669_ACEOF
15670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671if \$ac_cs_recheck; then
22e05272 15672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b4c522fa
IB
15673 shift
15674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15675 CONFIG_SHELL='$SHELL'
15676 export CONFIG_SHELL
15677 exec "\$@"
15678fi
15679
15680_ACEOF
15681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15682exec 5>>config.log
15683{
15684 echo
15685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15686## Running $as_me. ##
15687_ASBOX
15688 $as_echo "$ac_log"
15689} >&5
15690
15691_ACEOF
15692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693#
15694# INIT-COMMANDS
15695#
15696
15697srcdir="$srcdir"
15698host="$host"
15699target="$target"
15700with_multisubdir="$with_multisubdir"
15701with_multisrctop="$with_multisrctop"
15702with_target_subdir="$with_target_subdir"
15703ac_configure_args="${multilib_arg} ${ac_configure_args}"
15704multi_basedir="$multi_basedir"
15705CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15706CC="$CC"
15707CXX="$CXX"
15708GFORTRAN="$GFORTRAN"
15709GDC="$GDC"
15710
15711
15712# The HP-UX ksh and POSIX shell print the target directory to stdout
15713# if CDPATH is set.
15714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15715
15716sed_quote_subst='$sed_quote_subst'
15717double_quote_subst='$double_quote_subst'
15718delay_variable_subst='$delay_variable_subst'
15719macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15720macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15721enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15722enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15723pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15724enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15725SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15726ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15727host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15728host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15729host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15730build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15731build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15732build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15733SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15734Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15735GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15736EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15737FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15738LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15739NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15740LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15741max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15742ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15743exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15744lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15745lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15746lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15747reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15748reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15749OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15750deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15751file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15752AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15753AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15754STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15755RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15756old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15757old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15758old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15759lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15760CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15761CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15762compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15763GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15764lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15765lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15766lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15767lt_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"`'
15768objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15769MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15770lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15771lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15772lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15773lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15774lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15775need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15776DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15777NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15778LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15779OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15780OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15781libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15782shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15783extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15784archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15785enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15786export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15787whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15788compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15789old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15790old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15791archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15792archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15793module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15794module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15795with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15796allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15797no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15798hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15799hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15800hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15801hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15802hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15803hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15804hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15806inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15807link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15808fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15809always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15810export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15811exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15812include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15813prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15814file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15815variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15816need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15817need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15818version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15819runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15820shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15821shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15822libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15823library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15824soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15825install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15826postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15827postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15828finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15829finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15830hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15831sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15832sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15833hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15834enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15835enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15836enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15837old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15838striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15839LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15840reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15841reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15842old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15843compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15844GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15845lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15846lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15847lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15848lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15849lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15850archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15851enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15852export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15853whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15854compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15855old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15856old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15857archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15858archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15859module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15860module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15861with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15862allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15863no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15864hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15865hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15866hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15867hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15868hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15869hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15870hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15871hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15872inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15873link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15874fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15875always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15876export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15877exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15878include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15879prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15880file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15881hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15882
15883LTCC='$LTCC'
15884LTCFLAGS='$LTCFLAGS'
15885compiler='$compiler_DEFAULT'
15886
15887# A function that is used when there is no print builtin or printf.
15888func_fallback_echo ()
15889{
15890 eval 'cat <<_LTECHO_EOF
15891\$1
15892_LTECHO_EOF'
15893}
15894
15895# Quote evaled strings.
15896for var in SHELL \
15897ECHO \
15898SED \
15899GREP \
15900EGREP \
15901FGREP \
15902LD \
15903NM \
15904LN_S \
15905lt_SP2NL \
15906lt_NL2SP \
15907reload_flag \
15908OBJDUMP \
15909deplibs_check_method \
15910file_magic_cmd \
15911AR \
15912AR_FLAGS \
15913STRIP \
15914RANLIB \
15915CC \
15916CFLAGS \
15917compiler \
15918lt_cv_sys_global_symbol_pipe \
15919lt_cv_sys_global_symbol_to_cdecl \
15920lt_cv_sys_global_symbol_to_c_name_address \
15921lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15922lt_prog_compiler_no_builtin_flag \
15923lt_prog_compiler_wl \
15924lt_prog_compiler_pic \
15925lt_prog_compiler_static \
15926lt_cv_prog_compiler_c_o \
15927need_locks \
15928DSYMUTIL \
15929NMEDIT \
15930LIPO \
15931OTOOL \
15932OTOOL64 \
15933shrext_cmds \
15934export_dynamic_flag_spec \
15935whole_archive_flag_spec \
15936compiler_needs_object \
15937with_gnu_ld \
15938allow_undefined_flag \
15939no_undefined_flag \
15940hardcode_libdir_flag_spec \
15941hardcode_libdir_flag_spec_ld \
15942hardcode_libdir_separator \
15943fix_srcfile_path \
15944exclude_expsyms \
15945include_expsyms \
15946file_list_spec \
15947variables_saved_for_relink \
15948libname_spec \
15949library_names_spec \
15950soname_spec \
15951install_override_mode \
15952finish_eval \
15953old_striplib \
15954striplib \
15955LD_D \
15956reload_flag_D \
15957compiler_D \
15958lt_prog_compiler_no_builtin_flag_D \
15959lt_prog_compiler_wl_D \
15960lt_prog_compiler_pic_D \
15961lt_prog_compiler_static_D \
15962lt_cv_prog_compiler_c_o_D \
15963export_dynamic_flag_spec_D \
15964whole_archive_flag_spec_D \
15965compiler_needs_object_D \
15966with_gnu_ld_D \
15967allow_undefined_flag_D \
15968no_undefined_flag_D \
15969hardcode_libdir_flag_spec_D \
15970hardcode_libdir_flag_spec_ld_D \
15971hardcode_libdir_separator_D \
15972fix_srcfile_path_D \
15973exclude_expsyms_D \
15974include_expsyms_D \
15975file_list_spec_D; do
15976 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15977 *[\\\\\\\`\\"\\\$]*)
15978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15979 ;;
15980 *)
15981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15982 ;;
15983 esac
15984done
15985
15986# Double-quote double-evaled strings.
15987for var in reload_cmds \
15988old_postinstall_cmds \
15989old_postuninstall_cmds \
15990old_archive_cmds \
15991extract_expsyms_cmds \
15992old_archive_from_new_cmds \
15993old_archive_from_expsyms_cmds \
15994archive_cmds \
15995archive_expsym_cmds \
15996module_cmds \
15997module_expsym_cmds \
15998export_symbols_cmds \
15999prelink_cmds \
16000postinstall_cmds \
16001postuninstall_cmds \
16002finish_cmds \
16003sys_lib_search_path_spec \
16004sys_lib_dlsearch_path_spec \
16005reload_cmds_D \
16006old_archive_cmds_D \
16007old_archive_from_new_cmds_D \
16008old_archive_from_expsyms_cmds_D \
16009archive_cmds_D \
16010archive_expsym_cmds_D \
16011module_cmds_D \
16012module_expsym_cmds_D \
16013export_symbols_cmds_D \
16014prelink_cmds_D; do
16015 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16016 *[\\\\\\\`\\"\\\$]*)
16017 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16018 ;;
16019 *)
16020 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16021 ;;
16022 esac
16023done
16024
16025ac_aux_dir='$ac_aux_dir'
16026xsi_shell='$xsi_shell'
16027lt_shell_append='$lt_shell_append'
16028
16029# See if we are running on zsh, and set the options which allow our
16030# commands through without removal of \ escapes INIT.
16031if test -n "\${ZSH_VERSION+set}" ; then
16032 setopt NO_GLOB_SUBST
16033fi
16034
16035
16036 PACKAGE='$PACKAGE'
16037 VERSION='$VERSION'
16038 TIMESTAMP='$TIMESTAMP'
16039 RM='$RM'
16040 ofile='$ofile'
16041
16042
16043
16044
16045
16046
b4c522fa
IB
16047_ACEOF
16048
16049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16050
16051# Handling of arguments.
16052for ac_config_target in $ac_config_targets
16053do
16054 case $ac_config_target in
16055 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16056 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16057 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16058 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b4c522fa
IB
16059 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16060 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16061 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16062 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
ac67752d
IB
16063 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16064 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16065 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b4c522fa 16066
22e05272 16067 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b4c522fa
IB
16068 esac
16069done
16070
16071
16072# If the user did not use the arguments to specify the items to instantiate,
16073# then the envvar interface is used. Set only those that are not.
16074# We use the long form for the default assignment because of an extremely
16075# bizarre bug on SunOS 4.1.3.
16076if $ac_need_defaults; then
16077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16080fi
16081
16082# Have a temporary directory for convenience. Make it in the build tree
16083# simply because there is no reason against having it here, and in addition,
16084# creating and moving files from /tmp can sometimes cause problems.
16085# Hook for its removal unless debugging.
16086# Note that there is a small window in which the directory will not be cleaned:
16087# after its creation but before its name has been assigned to `$tmp'.
16088$debug ||
16089{
22e05272 16090 tmp= ac_tmp=
b4c522fa 16091 trap 'exit_status=$?
22e05272
JM
16092 : "${ac_tmp:=$tmp}"
16093 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b4c522fa
IB
16094' 0
16095 trap 'as_fn_exit 1' 1 2 13 15
16096}
16097# Create a (secure) tmp directory for tmp files.
16098
16099{
16100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16101 test -d "$tmp"
b4c522fa
IB
16102} ||
16103{
16104 tmp=./conf$$-$RANDOM
16105 (umask 077 && mkdir "$tmp")
22e05272
JM
16106} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16107ac_tmp=$tmp
b4c522fa
IB
16108
16109# Set up the scripts for CONFIG_FILES section.
16110# No need to generate them if there are no CONFIG_FILES.
16111# This happens for instance with `./config.status config.h'.
16112if test -n "$CONFIG_FILES"; then
16113
16114
16115ac_cr=`echo X | tr X '\015'`
16116# On cygwin, bash can eat \r inside `` if the user requested igncr.
16117# But we know of no other shell where ac_cr would be empty at this
16118# point, so we can use a bashism as a fallback.
16119if test "x$ac_cr" = x; then
16120 eval ac_cr=\$\'\\r\'
16121fi
16122ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16123if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16124 ac_cs_awk_cr='\\r'
b4c522fa
IB
16125else
16126 ac_cs_awk_cr=$ac_cr
16127fi
16128
22e05272 16129echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b4c522fa
IB
16130_ACEOF
16131
16132
16133{
16134 echo "cat >conf$$subs.awk <<_ACEOF" &&
16135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16136 echo "_ACEOF"
16137} >conf$$subs.sh ||
22e05272
JM
16138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16139ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b4c522fa
IB
16140ac_delim='%!_!# '
16141for ac_last_try in false false false false false :; do
16142 . ./conf$$subs.sh ||
22e05272 16143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16144
16145 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16146 if test $ac_delim_n = $ac_delim_num; then
16147 break
16148 elif $ac_last_try; then
22e05272 16149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
16150 else
16151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16152 fi
16153done
16154rm -f conf$$subs.sh
16155
16156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16157cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b4c522fa
IB
16158_ACEOF
16159sed -n '
16160h
16161s/^/S["/; s/!.*/"]=/
16162p
16163g
16164s/^[^!]*!//
16165:repl
16166t repl
16167s/'"$ac_delim"'$//
16168t delim
16169:nl
16170h
22e05272 16171s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16172t more1
16173s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16174p
16175n
16176b repl
16177:more1
16178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16179p
16180g
16181s/.\{148\}//
16182t nl
16183:delim
16184h
22e05272 16185s/\(.\{148\}\)..*/\1/
b4c522fa
IB
16186t more2
16187s/["\\]/\\&/g; s/^/"/; s/$/"/
16188p
16189b
16190:more2
16191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16192p
16193g
16194s/.\{148\}//
16195t delim
16196' <conf$$subs.awk | sed '
16197/^[^""]/{
16198 N
16199 s/\n//
16200}
16201' >>$CONFIG_STATUS || ac_write_fail=1
16202rm -f conf$$subs.awk
16203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16204_ACAWK
22e05272 16205cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b4c522fa
IB
16206 for (key in S) S_is_set[key] = 1
16207 FS = "\a"
16208
16209}
16210{
16211 line = $ 0
16212 nfields = split(line, field, "@")
16213 substed = 0
16214 len = length(field[1])
16215 for (i = 2; i < nfields; i++) {
16216 key = field[i]
16217 keylen = length(key)
16218 if (S_is_set[key]) {
16219 value = S[key]
16220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16221 len += length(value) + length(field[++i])
16222 substed = 1
16223 } else
16224 len += 1 + keylen
16225 }
16226
16227 print line
16228}
16229
16230_ACAWK
16231_ACEOF
16232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16233if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16234 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16235else
16236 cat
22e05272
JM
16237fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16238 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b4c522fa
IB
16239_ACEOF
16240
22e05272
JM
16241# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16242# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b4c522fa
IB
16243# trailing colons and then remove the whole line if VPATH becomes empty
16244# (actually we leave an empty line to preserve line numbers).
16245if test "x$srcdir" = x.; then
22e05272
JM
16246 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16247h
16248s///
16249s/^/:/
16250s/[ ]*$/:/
16251s/:\$(srcdir):/:/g
16252s/:\${srcdir}:/:/g
16253s/:@srcdir@:/:/g
16254s/^:*//
b4c522fa 16255s/:*$//
22e05272
JM
16256x
16257s/\(=[ ]*\).*/\1/
16258G
16259s/\n//
b4c522fa
IB
16260s/^[^=]*=[ ]*$//
16261}'
16262fi
16263
16264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16265fi # test -n "$CONFIG_FILES"
16266
16267# Set up the scripts for CONFIG_HEADERS section.
16268# No need to generate them if there are no CONFIG_HEADERS.
16269# This happens for instance with `./config.status Makefile'.
16270if test -n "$CONFIG_HEADERS"; then
22e05272 16271cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
b4c522fa
IB
16272BEGIN {
16273_ACEOF
16274
16275# Transform confdefs.h into an awk script `defines.awk', embedded as
16276# here-document in config.status, that substitutes the proper values into
16277# config.h.in to produce config.h.
16278
16279# Create a delimiter string that does not exist in confdefs.h, to ease
16280# handling of long lines.
16281ac_delim='%!_!# '
16282for ac_last_try in false false :; do
22e05272
JM
16283 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16284 if test -z "$ac_tt"; then
b4c522fa
IB
16285 break
16286 elif $ac_last_try; then
22e05272 16287 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b4c522fa
IB
16288 else
16289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16290 fi
16291done
16292
16293# For the awk script, D is an array of macro values keyed by name,
16294# likewise P contains macro parameters if any. Preserve backslash
16295# newline sequences.
16296
16297ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16298sed -n '
16299s/.\{148\}/&'"$ac_delim"'/g
16300t rset
16301:rset
16302s/^[ ]*#[ ]*define[ ][ ]*/ /
16303t def
16304d
16305:def
16306s/\\$//
16307t bsnl
16308s/["\\]/\\&/g
16309s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16310D["\1"]=" \3"/p
16311s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16312d
16313:bsnl
16314s/["\\]/\\&/g
16315s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16316D["\1"]=" \3\\\\\\n"\\/p
16317t cont
16318s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16319t cont
16320d
16321:cont
16322n
16323s/.\{148\}/&'"$ac_delim"'/g
16324t clear
16325:clear
16326s/\\$//
16327t bsnlc
16328s/["\\]/\\&/g; s/^/"/; s/$/"/p
16329d
16330:bsnlc
16331s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16332b cont
16333' <confdefs.h | sed '
16334s/'"$ac_delim"'/"\\\
16335"/g' >>$CONFIG_STATUS || ac_write_fail=1
16336
16337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16338 for (key in D) D_is_set[key] = 1
16339 FS = "\a"
16340}
16341/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16342 line = \$ 0
16343 split(line, arg, " ")
16344 if (arg[1] == "#") {
16345 defundef = arg[2]
16346 mac1 = arg[3]
16347 } else {
16348 defundef = substr(arg[1], 2)
16349 mac1 = arg[2]
16350 }
16351 split(mac1, mac2, "(") #)
16352 macro = mac2[1]
16353 prefix = substr(line, 1, index(line, defundef) - 1)
16354 if (D_is_set[macro]) {
16355 # Preserve the white space surrounding the "#".
16356 print prefix "define", macro P[macro] D[macro]
16357 next
16358 } else {
16359 # Replace #undef with comments. This is necessary, for example,
16360 # in the case of _POSIX_SOURCE, which is predefined and required
16361 # on some systems where configure will not decide to define it.
16362 if (defundef == "undef") {
16363 print "/*", prefix defundef, macro, "*/"
16364 next
16365 }
16366 }
16367}
16368{ print }
16369_ACAWK
16370_ACEOF
16371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 16372 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
b4c522fa
IB
16373fi # test -n "$CONFIG_HEADERS"
16374
16375
16376eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16377shift
16378for ac_tag
16379do
16380 case $ac_tag in
16381 :[FHLC]) ac_mode=$ac_tag; continue;;
16382 esac
16383 case $ac_mode$ac_tag in
16384 :[FHL]*:*);;
22e05272 16385 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b4c522fa
IB
16386 :[FH]-) ac_tag=-:-;;
16387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16388 esac
16389 ac_save_IFS=$IFS
16390 IFS=:
16391 set x $ac_tag
16392 IFS=$ac_save_IFS
16393 shift
16394 ac_file=$1
16395 shift
16396
16397 case $ac_mode in
16398 :L) ac_source=$1;;
16399 :[FH])
16400 ac_file_inputs=
16401 for ac_f
16402 do
16403 case $ac_f in
22e05272 16404 -) ac_f="$ac_tmp/stdin";;
b4c522fa
IB
16405 *) # Look for the file first in the build tree, then in the source tree
16406 # (if the path is not absolute). The absolute path cannot be DOS-style,
16407 # because $ac_f cannot contain `:'.
16408 test -f "$ac_f" ||
16409 case $ac_f in
16410 [\\/$]*) false;;
16411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16412 esac ||
22e05272 16413 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b4c522fa
IB
16414 esac
16415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16416 as_fn_append ac_file_inputs " '$ac_f'"
16417 done
16418
16419 # Let's still pretend it is `configure' which instantiates (i.e., don't
16420 # use $as_me), people would be surprised to read:
16421 # /* config.h. Generated by config.status. */
16422 configure_input='Generated from '`
16423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16424 `' by configure.'
16425 if test x"$ac_file" != x-; then
16426 configure_input="$ac_file. $configure_input"
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16428$as_echo "$as_me: creating $ac_file" >&6;}
16429 fi
16430 # Neutralize special characters interpreted by sed in replacement strings.
16431 case $configure_input in #(
16432 *\&* | *\|* | *\\* )
16433 ac_sed_conf_input=`$as_echo "$configure_input" |
16434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16435 *) ac_sed_conf_input=$configure_input;;
16436 esac
16437
16438 case $ac_tag in
22e05272
JM
16439 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b4c522fa
IB
16441 esac
16442 ;;
16443 esac
16444
16445 ac_dir=`$as_dirname -- "$ac_file" ||
16446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16447 X"$ac_file" : 'X\(//\)[^/]' \| \
16448 X"$ac_file" : 'X\(//\)$' \| \
16449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16450$as_echo X"$ac_file" |
16451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16452 s//\1/
16453 q
16454 }
16455 /^X\(\/\/\)[^/].*/{
16456 s//\1/
16457 q
16458 }
16459 /^X\(\/\/\)$/{
16460 s//\1/
16461 q
16462 }
16463 /^X\(\/\).*/{
16464 s//\1/
16465 q
16466 }
16467 s/.*/./; q'`
16468 as_dir="$ac_dir"; as_fn_mkdir_p
16469 ac_builddir=.
16470
16471case "$ac_dir" in
16472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16473*)
16474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16475 # A ".." for each directory in $ac_dir_suffix.
16476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16477 case $ac_top_builddir_sub in
16478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16480 esac ;;
16481esac
16482ac_abs_top_builddir=$ac_pwd
16483ac_abs_builddir=$ac_pwd$ac_dir_suffix
16484# for backward compatibility:
16485ac_top_builddir=$ac_top_build_prefix
16486
16487case $srcdir in
16488 .) # We are building in place.
16489 ac_srcdir=.
16490 ac_top_srcdir=$ac_top_builddir_sub
16491 ac_abs_top_srcdir=$ac_pwd ;;
16492 [\\/]* | ?:[\\/]* ) # Absolute name.
16493 ac_srcdir=$srcdir$ac_dir_suffix;
16494 ac_top_srcdir=$srcdir
16495 ac_abs_top_srcdir=$srcdir ;;
16496 *) # Relative name.
16497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16498 ac_top_srcdir=$ac_top_build_prefix$srcdir
16499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16500esac
16501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16502
16503
16504 case $ac_mode in
16505 :F)
16506 #
16507 # CONFIG_FILE
16508 #
16509
16510 case $INSTALL in
16511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16513 esac
16514 ac_MKDIR_P=$MKDIR_P
16515 case $MKDIR_P in
16516 [\\/$]* | ?:[\\/]* ) ;;
16517 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16518 esac
16519_ACEOF
16520
16521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16522# If the template does not know about datarootdir, expand it.
16523# FIXME: This hack should be removed a few years after 2.60.
16524ac_datarootdir_hack=; ac_datarootdir_seen=
16525ac_sed_dataroot='
16526/datarootdir/ {
16527 p
16528 q
16529}
16530/@datadir@/p
16531/@docdir@/p
16532/@infodir@/p
16533/@localedir@/p
16534/@mandir@/p'
16535case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16536*datarootdir*) ac_datarootdir_seen=yes;;
16537*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16539$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16540_ACEOF
16541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542 ac_datarootdir_hack='
16543 s&@datadir@&$datadir&g
16544 s&@docdir@&$docdir&g
16545 s&@infodir@&$infodir&g
16546 s&@localedir@&$localedir&g
16547 s&@mandir@&$mandir&g
16548 s&\\\${datarootdir}&$datarootdir&g' ;;
16549esac
16550_ACEOF
16551
16552# Neutralize VPATH when `$srcdir' = `.'.
16553# Shell code in configure.ac might set extrasub.
16554# FIXME: do we really want to maintain this feature?
16555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16556ac_sed_extra="$ac_vpsub
16557$extrasub
16558_ACEOF
16559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16560:t
16561/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16562s|@configure_input@|$ac_sed_conf_input|;t t
16563s&@top_builddir@&$ac_top_builddir_sub&;t t
16564s&@top_build_prefix@&$ac_top_build_prefix&;t t
16565s&@srcdir@&$ac_srcdir&;t t
16566s&@abs_srcdir@&$ac_abs_srcdir&;t t
16567s&@top_srcdir@&$ac_top_srcdir&;t t
16568s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16569s&@builddir@&$ac_builddir&;t t
16570s&@abs_builddir@&$ac_abs_builddir&;t t
16571s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16572s&@INSTALL@&$ac_INSTALL&;t t
16573s&@MKDIR_P@&$ac_MKDIR_P&;t t
16574$ac_datarootdir_hack
16575"
22e05272
JM
16576eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16577 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
16578
16579test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16580 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16582 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b4c522fa 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16584which seems to be undefined. Please make sure it is defined" >&5
b4c522fa 16585$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16586which seems to be undefined. Please make sure it is defined" >&2;}
b4c522fa 16587
22e05272 16588 rm -f "$ac_tmp/stdin"
b4c522fa 16589 case $ac_file in
22e05272
JM
16590 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16591 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b4c522fa 16592 esac \
22e05272 16593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
16594 ;;
16595 :H)
16596 #
16597 # CONFIG_HEADER
16598 #
16599 if test x"$ac_file" != x-; then
16600 {
16601 $as_echo "/* $configure_input */" \
22e05272
JM
16602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16603 } >"$ac_tmp/config.h" \
16604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16605 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b4c522fa
IB
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16607$as_echo "$as_me: $ac_file is unchanged" >&6;}
16608 else
16609 rm -f "$ac_file"
22e05272
JM
16610 mv "$ac_tmp/config.h" "$ac_file" \
16611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b4c522fa
IB
16612 fi
16613 else
16614 $as_echo "/* $configure_input */" \
22e05272
JM
16615 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16616 || as_fn_error $? "could not create -" "$LINENO" 5
b4c522fa
IB
16617 fi
16618# Compute "$ac_file"'s index in $config_headers.
16619_am_arg="$ac_file"
16620_am_stamp_count=1
16621for _am_header in $config_headers :; do
16622 case $_am_header in
16623 $_am_arg | $_am_arg:* )
16624 break ;;
16625 * )
16626 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16627 esac
16628done
16629echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16630$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16631 X"$_am_arg" : 'X\(//\)[^/]' \| \
16632 X"$_am_arg" : 'X\(//\)$' \| \
16633 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16634$as_echo X"$_am_arg" |
16635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16636 s//\1/
16637 q
16638 }
16639 /^X\(\/\/\)[^/].*/{
16640 s//\1/
16641 q
16642 }
16643 /^X\(\/\/\)$/{
16644 s//\1/
16645 q
16646 }
16647 /^X\(\/\).*/{
16648 s//\1/
16649 q
16650 }
16651 s/.*/./; q'`/stamp-h$_am_stamp_count
16652 ;;
16653
16654 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16655$as_echo "$as_me: executing $ac_file commands" >&6;}
16656 ;;
16657 esac
16658
16659
16660 case $ac_file$ac_mode in
16661 "default-1":C)
16662# Only add multilib support code if we just rebuilt the top-level
16663# Makefile.
16664case " $CONFIG_FILES " in
16665 *" Makefile "*)
16666 ac_file=Makefile . ${multi_basedir}/config-ml.in
16667 ;;
16668esac ;;
16669 "libtool":C)
16670
16671 # See if we are running on zsh, and set the options which allow our
16672 # commands through without removal of \ escapes.
16673 if test -n "${ZSH_VERSION+set}" ; then
16674 setopt NO_GLOB_SUBST
16675 fi
16676
16677 cfgfile="${ofile}T"
16678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16679 $RM "$cfgfile"
16680
16681 cat <<_LT_EOF >> "$cfgfile"
16682#! $SHELL
16683
16684# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16685# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16687# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16688#
16689# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16690# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16691# Written by Gordon Matzigkeit, 1996
16692#
16693# This file is part of GNU Libtool.
16694#
16695# GNU Libtool is free software; you can redistribute it and/or
16696# modify it under the terms of the GNU General Public License as
16697# published by the Free Software Foundation; either version 2 of
16698# the License, or (at your option) any later version.
16699#
16700# As a special exception to the GNU General Public License,
16701# if you distribute this file as part of a program or library that
16702# is built using GNU Libtool, you may include this file under the
16703# same distribution terms that you use for the rest of that program.
16704#
16705# GNU Libtool is distributed in the hope that it will be useful,
16706# but WITHOUT ANY WARRANTY; without even the implied warranty of
16707# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16708# GNU General Public License for more details.
16709#
16710# You should have received a copy of the GNU General Public License
16711# along with GNU Libtool; see the file COPYING. If not, a copy
16712# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16713# obtained by writing to the Free Software Foundation, Inc.,
16714# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16715
16716
16717# The names of the tagged configurations supported by this script.
16718available_tags="D "
16719
16720# ### BEGIN LIBTOOL CONFIG
16721
16722# Which release of libtool.m4 was used?
16723macro_version=$macro_version
16724macro_revision=$macro_revision
16725
16726# Whether or not to build shared libraries.
16727build_libtool_libs=$enable_shared
16728
16729# Whether or not to build static libraries.
16730build_old_libs=$enable_static
16731
16732# What type of objects to build.
16733pic_mode=$pic_mode
16734
16735# Whether or not to optimize for fast installation.
16736fast_install=$enable_fast_install
16737
16738# Shell to use when invoking shell scripts.
16739SHELL=$lt_SHELL
16740
16741# An echo program that protects backslashes.
16742ECHO=$lt_ECHO
16743
16744# The host system.
16745host_alias=$host_alias
16746host=$host
16747host_os=$host_os
16748
16749# The build system.
16750build_alias=$build_alias
16751build=$build
16752build_os=$build_os
16753
16754# A sed program that does not truncate output.
16755SED=$lt_SED
16756
16757# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16758Xsed="\$SED -e 1s/^X//"
16759
16760# A grep program that handles long lines.
16761GREP=$lt_GREP
16762
16763# An ERE matcher.
16764EGREP=$lt_EGREP
16765
16766# A literal string matcher.
16767FGREP=$lt_FGREP
16768
16769# A BSD- or MS-compatible name lister.
16770NM=$lt_NM
16771
16772# Whether we need soft or hard links.
16773LN_S=$lt_LN_S
16774
16775# What is the maximum length of a command?
16776max_cmd_len=$max_cmd_len
16777
16778# Object file suffix (normally "o").
16779objext=$ac_objext
16780
16781# Executable file suffix (normally "").
16782exeext=$exeext
16783
16784# whether the shell understands "unset".
16785lt_unset=$lt_unset
16786
16787# turn spaces into newlines.
16788SP2NL=$lt_lt_SP2NL
16789
16790# turn newlines into spaces.
16791NL2SP=$lt_lt_NL2SP
16792
16793# An object symbol dumper.
16794OBJDUMP=$lt_OBJDUMP
16795
16796# Method to check whether dependent libraries are shared objects.
16797deplibs_check_method=$lt_deplibs_check_method
16798
16799# Command to use when deplibs_check_method == "file_magic".
16800file_magic_cmd=$lt_file_magic_cmd
16801
16802# The archiver.
16803AR=$lt_AR
16804AR_FLAGS=$lt_AR_FLAGS
16805
16806# A symbol stripping program.
16807STRIP=$lt_STRIP
16808
16809# Commands used to install an old-style archive.
16810RANLIB=$lt_RANLIB
16811old_postinstall_cmds=$lt_old_postinstall_cmds
16812old_postuninstall_cmds=$lt_old_postuninstall_cmds
16813
16814# Whether to use a lock for old archive extraction.
16815lock_old_archive_extraction=$lock_old_archive_extraction
16816
16817# A C compiler.
16818LTCC=$lt_CC
16819
16820# LTCC compiler flags.
16821LTCFLAGS=$lt_CFLAGS
16822
16823# Take the output of nm and produce a listing of raw symbols and C names.
16824global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16825
16826# Transform the output of nm in a proper C declaration.
16827global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16828
16829# Transform the output of nm in a C name address pair.
16830global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16831
16832# Transform the output of nm in a C name address pair when lib prefix is needed.
16833global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16834
16835# The name of the directory that contains temporary libtool files.
16836objdir=$objdir
16837
16838# Used to examine libraries when file_magic_cmd begins with "file".
16839MAGIC_CMD=$MAGIC_CMD
16840
16841# Must we lock files when doing compilation?
16842need_locks=$lt_need_locks
16843
16844# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16845DSYMUTIL=$lt_DSYMUTIL
16846
16847# Tool to change global to local symbols on Mac OS X.
16848NMEDIT=$lt_NMEDIT
16849
16850# Tool to manipulate fat objects and archives on Mac OS X.
16851LIPO=$lt_LIPO
16852
16853# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16854OTOOL=$lt_OTOOL
16855
16856# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16857OTOOL64=$lt_OTOOL64
16858
16859# Old archive suffix (normally "a").
16860libext=$libext
16861
16862# Shared library suffix (normally ".so").
16863shrext_cmds=$lt_shrext_cmds
16864
16865# The commands to extract the exported symbol list from a shared archive.
16866extract_expsyms_cmds=$lt_extract_expsyms_cmds
16867
16868# Variables whose values should be saved in libtool wrapper scripts and
16869# restored at link time.
16870variables_saved_for_relink=$lt_variables_saved_for_relink
16871
16872# Do we need the "lib" prefix for modules?
16873need_lib_prefix=$need_lib_prefix
16874
16875# Do we need a version for libraries?
16876need_version=$need_version
16877
16878# Library versioning type.
16879version_type=$version_type
16880
16881# Shared library runtime path variable.
16882runpath_var=$runpath_var
16883
16884# Shared library path variable.
16885shlibpath_var=$shlibpath_var
16886
16887# Is shlibpath searched before the hard-coded library search path?
16888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16889
16890# Format of library name prefix.
16891libname_spec=$lt_libname_spec
16892
16893# List of archive names. First name is the real one, the rest are links.
16894# The last name is the one that the linker finds with -lNAME
16895library_names_spec=$lt_library_names_spec
16896
16897# The coded name of the library, if different from the real name.
16898soname_spec=$lt_soname_spec
16899
16900# Permission mode override for installation of shared libraries.
16901install_override_mode=$lt_install_override_mode
16902
16903# Command to use after installation of a shared archive.
16904postinstall_cmds=$lt_postinstall_cmds
16905
16906# Command to use after uninstallation of a shared archive.
16907postuninstall_cmds=$lt_postuninstall_cmds
16908
16909# Commands used to finish a libtool library installation in a directory.
16910finish_cmds=$lt_finish_cmds
16911
16912# As "finish_cmds", except a single script fragment to be evaled but
16913# not shown.
16914finish_eval=$lt_finish_eval
16915
16916# Whether we should hardcode library paths into libraries.
16917hardcode_into_libs=$hardcode_into_libs
16918
16919# Compile-time system search path for libraries.
16920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16921
16922# Run-time system search path for libraries.
16923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16924
16925# Whether dlopen is supported.
16926dlopen_support=$enable_dlopen
16927
16928# Whether dlopen of programs is supported.
16929dlopen_self=$enable_dlopen_self
16930
16931# Whether dlopen of statically linked programs is supported.
16932dlopen_self_static=$enable_dlopen_self_static
16933
16934# Commands to strip libraries.
16935old_striplib=$lt_old_striplib
16936striplib=$lt_striplib
16937
16938
16939# The linker used to build libraries.
16940LD=$lt_LD
16941
16942# How to create reloadable object files.
16943reload_flag=$lt_reload_flag
16944reload_cmds=$lt_reload_cmds
16945
16946# Commands used to build an old-style archive.
16947old_archive_cmds=$lt_old_archive_cmds
16948
16949# A language specific compiler.
16950CC=$lt_compiler
16951
16952# Is the compiler the GNU compiler?
16953with_gcc=$GCC
16954
16955# Compiler flag to turn off builtin functions.
16956no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16957
16958# How to pass a linker flag through the compiler.
16959wl=$lt_lt_prog_compiler_wl
16960
16961# Additional compiler flags for building library objects.
16962pic_flag=$lt_lt_prog_compiler_pic
16963
16964# Compiler flag to prevent dynamic linking.
16965link_static_flag=$lt_lt_prog_compiler_static
16966
16967# Does compiler simultaneously support -c and -o options?
16968compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16969
16970# Whether or not to add -lc for building shared libraries.
16971build_libtool_need_lc=$archive_cmds_need_lc
16972
16973# Whether or not to disallow shared libs when runtime libs are static.
16974allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16975
16976# Compiler flag to allow reflexive dlopens.
16977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16978
16979# Compiler flag to generate shared objects directly from archives.
16980whole_archive_flag_spec=$lt_whole_archive_flag_spec
16981
16982# Whether the compiler copes with passing no objects directly.
16983compiler_needs_object=$lt_compiler_needs_object
16984
16985# Create an old-style archive from a shared archive.
16986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16987
16988# Create a temporary old-style archive to link instead of a shared archive.
16989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16990
16991# Commands used to build a shared archive.
16992archive_cmds=$lt_archive_cmds
16993archive_expsym_cmds=$lt_archive_expsym_cmds
16994
16995# Commands used to build a loadable module if different from building
16996# a shared archive.
16997module_cmds=$lt_module_cmds
16998module_expsym_cmds=$lt_module_expsym_cmds
16999
17000# Whether we are building with GNU ld or not.
17001with_gnu_ld=$lt_with_gnu_ld
17002
17003# Flag that allows shared libraries with undefined symbols to be built.
17004allow_undefined_flag=$lt_allow_undefined_flag
17005
17006# Flag that enforces no undefined symbols.
17007no_undefined_flag=$lt_no_undefined_flag
17008
17009# Flag to hardcode \$libdir into a binary during linking.
17010# This must work even if \$libdir does not exist
17011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17012
17013# If ld is used when linking, flag to hardcode \$libdir into a binary
17014# during linking. This must work even if \$libdir does not exist.
17015hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17016
17017# Whether we need a single "-rpath" flag with a separated argument.
17018hardcode_libdir_separator=$lt_hardcode_libdir_separator
17019
17020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17021# DIR into the resulting binary.
17022hardcode_direct=$hardcode_direct
17023
17024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17025# DIR into the resulting binary and the resulting library dependency is
17026# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17027# library is relocated.
17028hardcode_direct_absolute=$hardcode_direct_absolute
17029
17030# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17031# into the resulting binary.
17032hardcode_minus_L=$hardcode_minus_L
17033
17034# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17035# into the resulting binary.
17036hardcode_shlibpath_var=$hardcode_shlibpath_var
17037
17038# Set to "yes" if building a shared library automatically hardcodes DIR
17039# into the library and all subsequent libraries and executables linked
17040# against it.
17041hardcode_automatic=$hardcode_automatic
17042
17043# Set to yes if linker adds runtime paths of dependent libraries
17044# to runtime path list.
17045inherit_rpath=$inherit_rpath
17046
17047# Whether libtool must link a program against all its dependency libraries.
17048link_all_deplibs=$link_all_deplibs
17049
17050# Fix the shell variable \$srcfile for the compiler.
17051fix_srcfile_path=$lt_fix_srcfile_path
17052
17053# Set to "yes" if exported symbols are required.
17054always_export_symbols=$always_export_symbols
17055
17056# The commands to list exported symbols.
17057export_symbols_cmds=$lt_export_symbols_cmds
17058
17059# Symbols that should not be listed in the preloaded symbols.
17060exclude_expsyms=$lt_exclude_expsyms
17061
17062# Symbols that must always be exported.
17063include_expsyms=$lt_include_expsyms
17064
17065# Commands necessary for linking programs (against libraries) with templates.
17066prelink_cmds=$lt_prelink_cmds
17067
17068# Specify filename containing input files.
17069file_list_spec=$lt_file_list_spec
17070
17071# How to hardcode a shared library path into an executable.
17072hardcode_action=$hardcode_action
17073
17074# ### END LIBTOOL CONFIG
17075
17076_LT_EOF
17077
17078 case $host_os in
17079 aix3*)
17080 cat <<\_LT_EOF >> "$cfgfile"
17081# AIX sometimes has problems with the GCC collect2 program. For some
17082# reason, if we set the COLLECT_NAMES environment variable, the problems
17083# vanish in a puff of smoke.
17084if test "X${COLLECT_NAMES+set}" != Xset; then
17085 COLLECT_NAMES=
17086 export COLLECT_NAMES
17087fi
17088_LT_EOF
17089 ;;
17090 esac
17091
17092
17093ltmain="$ac_aux_dir/ltmain.sh"
17094
17095
17096 # We use sed instead of cat because bash on DJGPP gets confused if
17097 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17098 # text mode, it properly converts lines to CR/LF. This bash problem
17099 # is reportedly fixed, but why not run on old versions too?
17100 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17101 || (rm -f "$cfgfile"; exit 1)
17102
17103 case $xsi_shell in
17104 yes)
17105 cat << \_LT_EOF >> "$cfgfile"
17106
17107# func_dirname file append nondir_replacement
17108# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17109# otherwise set result to NONDIR_REPLACEMENT.
17110func_dirname ()
17111{
17112 case ${1} in
17113 */*) func_dirname_result="${1%/*}${2}" ;;
17114 * ) func_dirname_result="${3}" ;;
17115 esac
17116}
17117
17118# func_basename file
17119func_basename ()
17120{
17121 func_basename_result="${1##*/}"
17122}
17123
17124# func_dirname_and_basename file append nondir_replacement
17125# perform func_basename and func_dirname in a single function
17126# call:
17127# dirname: Compute the dirname of FILE. If nonempty,
17128# add APPEND to the result, otherwise set result
17129# to NONDIR_REPLACEMENT.
17130# value returned in "$func_dirname_result"
17131# basename: Compute filename of FILE.
17132# value retuned in "$func_basename_result"
17133# Implementation must be kept synchronized with func_dirname
17134# and func_basename. For efficiency, we do not delegate to
17135# those functions but instead duplicate the functionality here.
17136func_dirname_and_basename ()
17137{
17138 case ${1} in
17139 */*) func_dirname_result="${1%/*}${2}" ;;
17140 * ) func_dirname_result="${3}" ;;
17141 esac
17142 func_basename_result="${1##*/}"
17143}
17144
17145# func_stripname prefix suffix name
17146# strip PREFIX and SUFFIX off of NAME.
17147# PREFIX and SUFFIX must not contain globbing or regex special
17148# characters, hashes, percent signs, but SUFFIX may contain a leading
17149# dot (in which case that matches only a dot).
17150func_stripname ()
17151{
17152 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17153 # positional parameters, so assign one to ordinary parameter first.
17154 func_stripname_result=${3}
17155 func_stripname_result=${func_stripname_result#"${1}"}
17156 func_stripname_result=${func_stripname_result%"${2}"}
17157}
17158
17159# func_opt_split
17160func_opt_split ()
17161{
17162 func_opt_split_opt=${1%%=*}
17163 func_opt_split_arg=${1#*=}
17164}
17165
17166# func_lo2o object
17167func_lo2o ()
17168{
17169 case ${1} in
17170 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17171 *) func_lo2o_result=${1} ;;
17172 esac
17173}
17174
17175# func_xform libobj-or-source
17176func_xform ()
17177{
17178 func_xform_result=${1%.*}.lo
17179}
17180
17181# func_arith arithmetic-term...
17182func_arith ()
17183{
17184 func_arith_result=$(( $* ))
17185}
17186
17187# func_len string
17188# STRING may not start with a hyphen.
17189func_len ()
17190{
17191 func_len_result=${#1}
17192}
17193
17194_LT_EOF
17195 ;;
17196 *) # Bourne compatible functions.
17197 cat << \_LT_EOF >> "$cfgfile"
17198
17199# func_dirname file append nondir_replacement
17200# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17201# otherwise set result to NONDIR_REPLACEMENT.
17202func_dirname ()
17203{
17204 # Extract subdirectory from the argument.
17205 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17206 if test "X$func_dirname_result" = "X${1}"; then
17207 func_dirname_result="${3}"
17208 else
17209 func_dirname_result="$func_dirname_result${2}"
17210 fi
17211}
17212
17213# func_basename file
17214func_basename ()
17215{
17216 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17217}
17218
17219
17220# func_stripname prefix suffix name
17221# strip PREFIX and SUFFIX off of NAME.
17222# PREFIX and SUFFIX must not contain globbing or regex special
17223# characters, hashes, percent signs, but SUFFIX may contain a leading
17224# dot (in which case that matches only a dot).
17225# func_strip_suffix prefix name
17226func_stripname ()
17227{
17228 case ${2} in
17229 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17230 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17231 esac
17232}
17233
17234# sed scripts:
17235my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17236my_sed_long_arg='1s/^-[^=]*=//'
17237
17238# func_opt_split
17239func_opt_split ()
17240{
17241 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17242 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17243}
17244
17245# func_lo2o object
17246func_lo2o ()
17247{
17248 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17249}
17250
17251# func_xform libobj-or-source
17252func_xform ()
17253{
17254 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17255}
17256
17257# func_arith arithmetic-term...
17258func_arith ()
17259{
17260 func_arith_result=`expr "$@"`
17261}
17262
17263# func_len string
17264# STRING may not start with a hyphen.
17265func_len ()
17266{
17267 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17268}
17269
17270_LT_EOF
17271esac
17272
17273case $lt_shell_append in
17274 yes)
17275 cat << \_LT_EOF >> "$cfgfile"
17276
17277# func_append var value
17278# Append VALUE to the end of shell variable VAR.
17279func_append ()
17280{
17281 eval "$1+=\$2"
17282}
17283_LT_EOF
17284 ;;
17285 *)
17286 cat << \_LT_EOF >> "$cfgfile"
17287
17288# func_append var value
17289# Append VALUE to the end of shell variable VAR.
17290func_append ()
17291{
17292 eval "$1=\$$1\$2"
17293}
17294
17295_LT_EOF
17296 ;;
17297 esac
17298
17299
17300 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17301 || (rm -f "$cfgfile"; exit 1)
17302
17303 mv -f "$cfgfile" "$ofile" ||
17304 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17305 chmod +x "$ofile"
17306
17307
17308 cat <<_LT_EOF >> "$ofile"
17309
17310# ### BEGIN LIBTOOL TAG CONFIG: D
17311
17312# The linker used to build libraries.
17313LD=$lt_LD_D
17314
17315# How to create reloadable object files.
17316reload_flag=$lt_reload_flag_D
17317reload_cmds=$lt_reload_cmds_D
17318
17319# Commands used to build an old-style archive.
17320old_archive_cmds=$lt_old_archive_cmds_D
17321
17322# A language specific compiler.
17323CC=$lt_compiler_D
17324
17325# Is the compiler the GNU compiler?
17326with_gcc=$GCC_D
17327
17328# Compiler flag to turn off builtin functions.
17329no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17330
17331# How to pass a linker flag through the compiler.
17332wl=$lt_lt_prog_compiler_wl_D
17333
17334# Additional compiler flags for building library objects.
17335pic_flag=$lt_lt_prog_compiler_pic_D
17336
17337# Compiler flag to prevent dynamic linking.
17338link_static_flag=$lt_lt_prog_compiler_static_D
17339
17340# Does compiler simultaneously support -c and -o options?
17341compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17342
17343# Whether or not to add -lc for building shared libraries.
17344build_libtool_need_lc=$archive_cmds_need_lc_D
17345
17346# Whether or not to disallow shared libs when runtime libs are static.
17347allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17348
17349# Compiler flag to allow reflexive dlopens.
17350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17351
17352# Compiler flag to generate shared objects directly from archives.
17353whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17354
17355# Whether the compiler copes with passing no objects directly.
17356compiler_needs_object=$lt_compiler_needs_object_D
17357
17358# Create an old-style archive from a shared archive.
17359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17360
17361# Create a temporary old-style archive to link instead of a shared archive.
17362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17363
17364# Commands used to build a shared archive.
17365archive_cmds=$lt_archive_cmds_D
17366archive_expsym_cmds=$lt_archive_expsym_cmds_D
17367
17368# Commands used to build a loadable module if different from building
17369# a shared archive.
17370module_cmds=$lt_module_cmds_D
17371module_expsym_cmds=$lt_module_expsym_cmds_D
17372
17373# Whether we are building with GNU ld or not.
17374with_gnu_ld=$lt_with_gnu_ld_D
17375
17376# Flag that allows shared libraries with undefined symbols to be built.
17377allow_undefined_flag=$lt_allow_undefined_flag_D
17378
17379# Flag that enforces no undefined symbols.
17380no_undefined_flag=$lt_no_undefined_flag_D
17381
17382# Flag to hardcode \$libdir into a binary during linking.
17383# This must work even if \$libdir does not exist
17384hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17385
17386# If ld is used when linking, flag to hardcode \$libdir into a binary
17387# during linking. This must work even if \$libdir does not exist.
17388hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17389
17390# Whether we need a single "-rpath" flag with a separated argument.
17391hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17392
17393# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17394# DIR into the resulting binary.
17395hardcode_direct=$hardcode_direct_D
17396
17397# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17398# DIR into the resulting binary and the resulting library dependency is
17399# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17400# library is relocated.
17401hardcode_direct_absolute=$hardcode_direct_absolute_D
17402
17403# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17404# into the resulting binary.
17405hardcode_minus_L=$hardcode_minus_L_D
17406
17407# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17408# into the resulting binary.
17409hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17410
17411# Set to "yes" if building a shared library automatically hardcodes DIR
17412# into the library and all subsequent libraries and executables linked
17413# against it.
17414hardcode_automatic=$hardcode_automatic_D
17415
17416# Set to yes if linker adds runtime paths of dependent libraries
17417# to runtime path list.
17418inherit_rpath=$inherit_rpath_D
17419
17420# Whether libtool must link a program against all its dependency libraries.
17421link_all_deplibs=$link_all_deplibs_D
17422
17423# Fix the shell variable \$srcfile for the compiler.
17424fix_srcfile_path=$lt_fix_srcfile_path_D
17425
17426# Set to "yes" if exported symbols are required.
17427always_export_symbols=$always_export_symbols_D
17428
17429# The commands to list exported symbols.
17430export_symbols_cmds=$lt_export_symbols_cmds_D
17431
17432# Symbols that should not be listed in the preloaded symbols.
17433exclude_expsyms=$lt_exclude_expsyms_D
17434
17435# Symbols that must always be exported.
17436include_expsyms=$lt_include_expsyms_D
17437
17438# Commands necessary for linking programs (against libraries) with templates.
17439prelink_cmds=$lt_prelink_cmds_D
17440
17441# Specify filename containing input files.
17442file_list_spec=$lt_file_list_spec_D
17443
17444# How to hardcode a shared library path into an executable.
17445hardcode_action=$hardcode_action_D
17446
17447# ### END LIBTOOL TAG CONFIG: D
17448_LT_EOF
17449
17450 ;;
17451 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
ac67752d
IB
17452 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17453s!`test -f '$<' || echo '$(srcdir)/'`!!
b4c522fa 17454_EOF
ac67752d
IB
17455 sed -f vpsed$$ $ac_file > tmp$$
17456 mv tmp$$ $ac_file
17457 rm vpsed$$
17458 echo 'MULTISUBDIR =' >> $ac_file
17459 ml_norecursion=yes
17460 . ${multi_basedir}/config-ml.in
17461 { ml_norecursion=; unset ml_norecursion;}
17462 ;;
17463 "src/Makefile":F) cat > vpsed$$ << \_EOF
17464s!`test -f '$<' || echo '$(srcdir)/'`!!
17465_EOF
17466 sed -f vpsed$$ $ac_file > tmp$$
17467 mv tmp$$ $ac_file
17468 rm vpsed$$
17469 echo 'MULTISUBDIR =' >> $ac_file
17470 ml_norecursion=yes
17471 . ${multi_basedir}/config-ml.in
17472 { ml_norecursion=; unset ml_norecursion;}
17473 ;;
17474 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17475s!`test -f '$<' || echo '$(srcdir)/'`!!
17476_EOF
17477 sed -f vpsed$$ $ac_file > tmp$$
17478 mv tmp$$ $ac_file
17479 rm vpsed$$
17480 echo 'MULTISUBDIR =' >> $ac_file
17481 ml_norecursion=yes
17482 . ${multi_basedir}/config-ml.in
17483 { ml_norecursion=; unset ml_norecursion;}
b4c522fa
IB
17484 ;;
17485
17486 esac
17487done # for ac_tag
17488
17489
17490as_fn_exit 0
17491_ACEOF
17492ac_clean_files=$ac_clean_files_save
17493
17494test $ac_write_fail = 0 ||
22e05272 17495 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b4c522fa
IB
17496
17497
17498# configure is writing to config.log, and then calls config.status.
17499# config.status does its own redirection, appending to config.log.
17500# Unfortunately, on DOS this fails, as config.log is still kept open
17501# by configure, so config.status won't be able to write to it; its
17502# output is simply discarded. So we exec the FD to /dev/null,
17503# effectively closing config.log, so it can be properly (re)opened and
17504# appended to by config.status. When coming back to configure, we
17505# need to make the FD available again.
17506if test "$no_create" != yes; then
17507 ac_cs_success=:
17508 ac_config_status_args=
17509 test "$silent" = yes &&
17510 ac_config_status_args="$ac_config_status_args --quiet"
17511 exec 5>/dev/null
17512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17513 exec 5>>config.log
17514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17515 # would make configure fail if this is the last instruction.
22e05272 17516 $ac_cs_success || as_fn_exit 1
b4c522fa
IB
17517fi
17518if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17520$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17521fi
17522