]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/configure
* fr.po: Update.
[thirdparty/gcc.git] / libphobos / configure
CommitLineData
03385ed3 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f00f02a3 3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
e06fcd5a 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
03385ed3 7#
03385ed3 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.
f00f02a3 90as_myself=
03385ed3 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
f00f02a3 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;}
03385ed3 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
f00f02a3 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
03385ed3 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 :
f00f02a3 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
03385ed3 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"
f00f02a3 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
03385ed3 364
365
366} # as_fn_mkdir_p
f00f02a3 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
03385ed3 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
f00f02a3 411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
03385ed3 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
f00f02a3 415# script with STATUS, using 1 if that was 0.
03385ed3 416as_fn_error ()
417{
f00f02a3 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
03385ed3 422 fi
f00f02a3 423 $as_echo "$as_me: error: $2" >&2
03385ed3 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
f00f02a3 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
03385ed3 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.
f00f02a3 534 # In both cases, we have to default to `cp -pR'.
03385ed3 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 536 as_ln_s='cp -pR'
03385ed3 537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
f00f02a3 540 as_ln_s='cp -pR'
03385ed3 541 fi
542else
f00f02a3 543 as_ln_s='cp -pR'
03385ed3 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
f00f02a3 555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
03385ed3 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
f00f02a3 567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
03385ed3 569
570# Name of the host.
f00f02a3 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
03385ed3 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
345422ff 637libtool_VERSION
03385ed3 638SPEC_PHOBOS_DEPS
639gdc_include_dir
5114391d 640libphobos_toolexeclibdir
641libphobos_toolexecdir
03385ed3 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
e06fcd5a 653DRUNTIME_OS_MINFO_BRACKETING_FALSE
654DRUNTIME_OS_MINFO_BRACKETING_TRUE
03385ed3 655DCFG_MINFO_BRACKETING
656DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
657DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
658DCFG_ARM_EABI_UNWINDER
659DCFG_THREAD_MODEL
660DRUNTIME_OS_SOLARIS_FALSE
661DRUNTIME_OS_SOLARIS_TRUE
662DRUNTIME_OS_MINGW_FALSE
663DRUNTIME_OS_MINGW_TRUE
664DRUNTIME_OS_LINUX_FALSE
665DRUNTIME_OS_LINUX_TRUE
666DRUNTIME_OS_OPENBSD_FALSE
667DRUNTIME_OS_OPENBSD_TRUE
668DRUNTIME_OS_NETBSD_FALSE
669DRUNTIME_OS_NETBSD_TRUE
670DRUNTIME_OS_FREEBSD_FALSE
671DRUNTIME_OS_FREEBSD_TRUE
672DRUNTIME_OS_DRAGONFLYBSD_FALSE
673DRUNTIME_OS_DRAGONFLYBSD_TRUE
674DRUNTIME_OS_DARWIN_FALSE
675DRUNTIME_OS_DARWIN_TRUE
676DRUNTIME_OS_ANDROID_FALSE
677DRUNTIME_OS_ANDROID_TRUE
678DRUNTIME_OS_AIX_FALSE
679DRUNTIME_OS_AIX_TRUE
680DRUNTIME_OS_UNIX_FALSE
681DRUNTIME_OS_UNIX_TRUE
682DRUNTIME_GC_ENABLE_FALSE
683DRUNTIME_GC_ENABLE_TRUE
684libphobos_srcdir
685libphobos_builddir
686get_gcc_base_ver
687phobos_compiler_shared_flag
688phobos_compiler_pic_flag
689ENABLE_STATIC_FALSE
690ENABLE_STATIC_TRUE
691ENABLE_SHARED_FALSE
692ENABLE_SHARED_TRUE
693CPP
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
699OBJDUMP
700LN_S
701NM
702ac_ct_DUMPBIN
703DUMPBIN
704LD
705FGREP
706EGREP
707GREP
708SED
709LIBTOOL
710CFLAGS_FOR_BUILD
711CC_FOR_BUILD
712AR
713RANLIB
714MAINT
715MAINTAINER_MODE_FALSE
716MAINTAINER_MODE_TRUE
717GDCFLAGS
718GDC
719CCASFLAGS
720CCAS
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
f00f02a3 728AM_BACKSLASH
729AM_DEFAULT_VERBOSITY
730AM_DEFAULT_V
731AM_V
03385ed3 732am__untar
733am__tar
734AMTAR
735am__leading_dot
736SET_MAKE
737AWK
738mkdir_p
739MKDIR_P
740INSTALL_STRIP_PROGRAM
741STRIP
742install_sh
743MAKEINFO
744AUTOHEADER
745AUTOMAKE
746AUTOCONF
747ACLOCAL
748VERSION
749PACKAGE
750CYGPATH_W
751am__isrc
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755target_os
756target_vendor
757target_cpu
758target
759host_os
760host_vendor
761host_cpu
762host
763build_os
764build_vendor
765build_cpu
766build
767multi_basedir
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
e06fcd5a 806ac_subst_files='DRTSTUFF_SPEC'
03385ed3 807ac_user_opts='
808enable_option_checking
809enable_multilib
f00f02a3 810enable_silent_rules
03385ed3 811enable_maintainer_mode
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_gnu_ld
817enable_libtool_lock
818with_gcc_major_version_only
819enable_werror
820enable_druntime_gc
821enable_unix
822enable_thread_lib
823with_libatomic
824with_libbacktrace
825with_target_system_zlib
826with_cross_host
5114391d 827enable_version_specific_runtime_libs
03385ed3 828'
829 ac_precious_vars='build_alias
830host_alias
831target_alias
832CPP
833CPPFLAGS'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
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
f00f02a3 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
03385ed3 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 &&
f00f02a3 943 as_fn_error $? "invalid feature name: $ac_useropt"
03385ed3 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 &&
f00f02a3 969 as_fn_error $? "invalid feature name: $ac_useropt"
03385ed3 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
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1173 as_fn_error $? "invalid package name: $ac_useropt"
03385ed3 1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1189 as_fn_error $? "invalid package name: $ac_useropt"
03385ed3 1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
f00f02a3 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
03385ed3 1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
03385ed3 1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
03385ed3 1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1246 as_fn_error $? "missing argument to $ac_option"
03385ed3 1247fi
1248
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
f00f02a3 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
03385ed3 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255fi
1256
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
59b584a4 1261 libdir localedir mandir
03385ed3 1262do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
f00f02a3 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
03385ed3 1276done
1277
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
03385ed3 1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1303 as_fn_error $? "working directory cannot be determined"
03385ed3 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1305 as_fn_error $? "pwd does not report name of working directory"
03385ed3 1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339else
1340 ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
03385ed3 1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
f00f02a3 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
03385ed3 1349 pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
f00f02a3 1388 -q, --quiet, --silent do not print \`checking ...' messages
03385ed3 1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427_ACEOF
1428
1429 cat <<\_ACEOF
1430
1431Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 --target=TARGET configure for building compilers for TARGET [HOST]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of package-unused version-unused:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-multilib build many library versions (default)
f00f02a3 1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-maintainer-mode
1457 enable make rules and dependencies not useful (and
1458 sometimes confusing) to the casual installer
03385ed3 1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-werror turns on -Werror [default=no]
1465 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1466 --enable-unix enables Unix runtime (default: yes, for Unix
1467 targets)
1468 --enable-thread-lib=<arg>
1469 specify linker option for the system thread library
1470 (default: autodetect)
5114391d 1471 --enable-version-specific-runtime-libs
1472 Specify that runtime libraries should be installed
1473 in a compiler-specific directory
03385ed3 1474
1475Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-gcc-major-version-only
1482 use only GCC major number in filesystem paths
1483 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1484 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1485 auto)
1486 --with-target-system-zlib
1487 use installed libz (default: no)
1488 --with-cross-host=HOST configuring with a cross compiler
1489
1490Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
03385ed3 1497 you have headers in a nonstandard directory <include dir>
1498 CCAS assembler compiler command (defaults to CC)
1499 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1500 GDC D compiler command
1501 GDCFLAGS D compiler flags
1502 CPP C preprocessor
1503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
1507Report bugs to the package provider.
1508_ACEOF
1509ac_status=$?
1510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
1535
1536case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549esac
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565fi
1566
1567test -n "$ac_init_help" && exit $ac_status
1568if $ac_init_version; then
1569 cat <<\_ACEOF
1570package-unused configure version-unused
f00f02a3 1571generated by GNU Autoconf 2.69
03385ed3 1572
e06fcd5a 1573Copyright (C) 2012 Free Software Foundation, Inc.
03385ed3 1574This configure script is free software; the Free Software Foundation
1575gives unlimited permission to copy, distribute and modify it.
1576_ACEOF
1577 exit
1578fi
1579
1580## ------------------------ ##
1581## Autoconf initialization. ##
1582## ------------------------ ##
1583
1584# ac_fn_c_try_compile LINENO
1585# --------------------------
1586# Try to compile conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_compile ()
1588{
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611else
1612 $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616fi
f00f02a3 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
03385ed3 1619
1620} # ac_fn_c_try_compile
1621
1622# ac_fn_d_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_d_try_compile ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_d_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649else
1650 $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654fi
f00f02a3 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
03385ed3 1657
1658} # ac_fn_d_try_compile
1659
1660# ac_fn_c_try_link LINENO
1661# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
f00f02a3 1687 test -x conftest$ac_exeext
03385ed3 1688 }; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
03385ed3 1703
1704} # ac_fn_c_try_link
1705
1706# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707# -------------------------------------------------------
1708# Tests whether HEADER exists and can be compiled using the include files in
1709# INCLUDES, setting the cache variable VAR accordingly.
1710ac_fn_c_check_header_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
f00f02a3 1715if eval \${$3+:} false; then :
03385ed3 1716 $as_echo_n "(cached) " >&6
1717else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725else
1726 eval "$3=no"
1727fi
1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729fi
1730eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
f00f02a3 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
03385ed3 1734
1735} # ac_fn_c_check_header_compile
1736
1737# ac_fn_c_try_cpp LINENO
1738# ----------------------
1739# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_cpp ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f00f02a3 1758 test $ac_status = 0; } > conftest.i && {
03385ed3 1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763else
1764 $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768fi
f00f02a3 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
03385ed3 1771
1772} # ac_fn_c_try_cpp
1773
1774# ac_fn_c_try_run LINENO
1775# ----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777# that executables *can* be run.
1778ac_fn_c_try_run ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=$ac_status
1809fi
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
03385ed3 1813
1814} # ac_fn_c_try_run
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
f00f02a3 1824if eval \${$3+:} false; then :
03385ed3 1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831#define $2 innocuous_$2
1832
1833/* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
1843
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
1862{
1863return $2 ();
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
f00f02a3 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
03385ed3 1880
1881} # ac_fn_c_check_func
1882
1883# ac_fn_d_try_link LINENO
1884# -----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded.
1886ac_fn_d_try_link ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_d_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
f00f02a3 1910 test -x conftest$ac_exeext
03385ed3 1911 }; then :
1912 ac_retval=0
1913else
1914 $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918fi
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
03385ed3 1926
1927} # ac_fn_d_try_link
1928
1929# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1930# -------------------------------------------------------
1931# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1932# the include files in INCLUDES and setting the cache variable VAR
1933# accordingly.
1934ac_fn_c_check_header_mongrel ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f00f02a3 1937 if eval \${$3+:} false; then :
03385ed3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
f00f02a3 1940if eval \${$3+:} false; then :
03385ed3 1941 $as_echo_n "(cached) " >&6
1942fi
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946else
1947 # Is the header compilable?
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1949$as_echo_n "checking $2 usability... " >&6; }
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952$4
1953#include <$2>
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_header_compiler=yes
1957else
1958 ac_header_compiler=no
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1962$as_echo "$ac_header_compiler" >&6; }
1963
1964# Is the header present?
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1966$as_echo_n "checking $2 presence... " >&6; }
1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969#include <$2>
1970_ACEOF
1971if ac_fn_c_try_cpp "$LINENO"; then :
1972 ac_header_preproc=yes
1973else
1974 ac_header_preproc=no
1975fi
f00f02a3 1976rm -f conftest.err conftest.i conftest.$ac_ext
03385ed3 1977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1978$as_echo "$ac_header_preproc" >&6; }
1979
1980# So? What about this header?
1981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 yes:no: )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1984$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;;
1988 no:yes:* )
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1990$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1992$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1994$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1996$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 ;;
2000esac
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
f00f02a3 2003if eval \${$3+:} false; then :
03385ed3 2004 $as_echo_n "(cached) " >&6
2005else
2006 eval "$3=\$ac_header_compiler"
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011fi
f00f02a3 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
03385ed3 2013
2014} # ac_fn_c_check_header_mongrel
2015cat >config.log <<_ACEOF
2016This file contains any messages produced by compilers while
2017running configure, to aid debugging if configure makes a mistake.
2018
2019It was created by package-unused $as_me version-unused, which was
f00f02a3 2020generated by GNU Autoconf 2.69. Invocation command line was
03385ed3 2021
2022 $ $0 $@
2023
2024_ACEOF
2025exec 5>>config.log
2026{
2027cat <<_ASUNAME
2028## --------- ##
2029## Platform. ##
2030## --------- ##
2031
2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040
2041/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2042/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2045/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2046/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2047/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048
2049_ASUNAME
2050
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 $as_echo "PATH: $as_dir"
2057 done
2058IFS=$as_save_IFS
2059
2060} >&5
2061
2062cat >&5 <<_ACEOF
2063
2064
2065## ----------- ##
2066## Core tests. ##
2067## ----------- ##
2068
2069_ACEOF
2070
2071
2072# Keep a trace of the command line.
2073# Strip out --no-create and --no-recursion so they do not pile up.
2074# Strip out --silent because we don't want to record it for future runs.
2075# Also quote any args containing shell meta-characters.
2076# Make two passes to allow for proper duplicate-argument suppression.
2077ac_configure_args=
2078ac_configure_args0=
2079ac_configure_args1=
2080ac_must_keep_next=false
2081for ac_pass in 1 2
2082do
2083 for ac_arg
2084 do
2085 case $ac_arg in
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2089 continue ;;
2090 *\'*)
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092 esac
2093 case $ac_pass in
2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 2)
2096 as_fn_append ac_configure_args1 " '$ac_arg'"
2097 if test $ac_must_keep_next = true; then
2098 ac_must_keep_next=false # Got value, back to normal.
2099 else
2100 case $ac_arg in
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107 esac
2108 ;;
2109 -* ) ac_must_keep_next=true ;;
2110 esac
2111 fi
2112 as_fn_append ac_configure_args " '$ac_arg'"
2113 ;;
2114 esac
2115 done
2116done
2117{ ac_configure_args0=; unset ac_configure_args0;}
2118{ ac_configure_args1=; unset ac_configure_args1;}
2119
2120# When interrupted or exit'd, cleanup temporary files, and complete
2121# config.log. We remove comments because anyway the quotes in there
2122# would cause problems or look ugly.
2123# WARNING: Use '\'' to represent an apostrophe within the trap.
2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125trap 'exit_status=$?
2126 # Save into config.log some information that might help in debugging.
2127 {
2128 echo
2129
f00f02a3 2130 $as_echo "## ---------------- ##
03385ed3 2131## Cache variables. ##
f00f02a3 2132## ---------------- ##"
03385ed3 2133 echo
2134 # The following way of writing the cache mishandles newlines in values,
2135(
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in #(
2139 *${as_nl}*)
2140 case $ac_var in #(
2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 esac
2144 case $ac_var in #(
2145 _ | IFS | as_nl) ;; #(
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147 *) { eval $ac_var=; unset $ac_var;} ;;
2148 esac ;;
2149 esac
2150 done
2151 (set) 2>&1 |
2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153 *${as_nl}ac_space=\ *)
2154 sed -n \
2155 "s/'\''/'\''\\\\'\'''\''/g;
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 ;; #(
2158 *)
2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160 ;;
2161 esac |
2162 sort
2163)
2164 echo
2165
f00f02a3 2166 $as_echo "## ----------------- ##
03385ed3 2167## Output variables. ##
f00f02a3 2168## ----------------- ##"
03385ed3 2169 echo
2170 for ac_var in $ac_subst_vars
2171 do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175 esac
2176 $as_echo "$ac_var='\''$ac_val'\''"
2177 done | sort
2178 echo
2179
2180 if test -n "$ac_subst_files"; then
f00f02a3 2181 $as_echo "## ------------------- ##
03385ed3 2182## File substitutions. ##
f00f02a3 2183## ------------------- ##"
03385ed3 2184 echo
2185 for ac_var in $ac_subst_files
2186 do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 $as_echo "$ac_var='\''$ac_val'\''"
2192 done | sort
2193 echo
2194 fi
2195
2196 if test -s confdefs.h; then
f00f02a3 2197 $as_echo "## ----------- ##
03385ed3 2198## confdefs.h. ##
f00f02a3 2199## ----------- ##"
03385ed3 2200 echo
2201 cat confdefs.h
2202 echo
2203 fi
2204 test "$ac_signal" != 0 &&
2205 $as_echo "$as_me: caught signal $ac_signal"
2206 $as_echo "$as_me: exit $exit_status"
2207 } >&5
2208 rm -f core *.core core.conftest.* &&
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210 exit $exit_status
2211' 0
2212for ac_signal in 1 2 13 15; do
2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214done
2215ac_signal=0
2216
2217# confdefs.h avoids OS command line length limits that DEFS can exceed.
2218rm -f -r conftest* confdefs.h
2219
2220$as_echo "/* confdefs.h */" > confdefs.h
2221
2222# Predefined preprocessor variables.
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_NAME "$PACKAGE_NAME"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_VERSION "$PACKAGE_VERSION"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_STRING "$PACKAGE_STRING"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242_ACEOF
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_URL "$PACKAGE_URL"
2246_ACEOF
2247
2248
2249# Let the site file select an alternate cache file if it wants to.
2250# Prefer an explicitly selected file to automatically selected ones.
2251ac_site_file1=NONE
2252ac_site_file2=NONE
2253if test -n "$CONFIG_SITE"; then
f00f02a3 2254 # We do not want a PATH search for config.site.
2255 case $CONFIG_SITE in #((
2256 -*) ac_site_file1=./$CONFIG_SITE;;
2257 */*) ac_site_file1=$CONFIG_SITE;;
2258 *) ac_site_file1=./$CONFIG_SITE;;
2259 esac
03385ed3 2260elif test "x$prefix" != xNONE; then
2261 ac_site_file1=$prefix/share/config.site
2262 ac_site_file2=$prefix/etc/config.site
2263else
2264 ac_site_file1=$ac_default_prefix/share/config.site
2265 ac_site_file2=$ac_default_prefix/etc/config.site
2266fi
2267for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268do
2269 test "x$ac_site_file" = xNONE && continue
f00f02a3 2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
03385ed3 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2274 . "$ac_site_file" \
2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277as_fn_error $? "failed to load site script $ac_site_file
2278See \`config.log' for more details" "$LINENO" 5; }
03385ed3 2279 fi
2280done
2281
2282if test -r "$cache_file"; then
f00f02a3 2283 # Some versions of bash will fail to source /dev/null (special files
2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
03385ed3 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287$as_echo "$as_me: loading cache $cache_file" >&6;}
2288 case $cache_file in
2289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290 *) . "./$cache_file";;
2291 esac
2292 fi
2293else
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295$as_echo "$as_me: creating cache $cache_file" >&6;}
2296 >$cache_file
2297fi
2298
2299# Check that the precious variables saved in the cache have kept the same
2300# value.
2301ac_cache_corrupted=false
2302for ac_var in $ac_precious_vars; do
2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2304 eval ac_new_set=\$ac_env_${ac_var}_set
2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2306 eval ac_new_val=\$ac_env_${ac_var}_value
2307 case $ac_old_set,$ac_new_set in
2308 set,)
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2310$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2312 ,set)
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2314$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2315 ac_cache_corrupted=: ;;
2316 ,);;
2317 *)
2318 if test "x$ac_old_val" != "x$ac_new_val"; then
2319 # differences in whitespace do not lead to failure.
2320 ac_old_val_w=`echo x $ac_old_val`
2321 ac_new_val_w=`echo x $ac_new_val`
2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2324$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2325 ac_cache_corrupted=:
2326 else
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2328$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2329 eval $ac_var=\$ac_old_val
2330 fi
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2332$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2334$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2335 fi;;
2336 esac
2337 # Pass precious variables to config.status.
2338 if test "$ac_new_set" = set; then
2339 case $ac_new_val in
2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 *) ac_arg=$ac_var=$ac_new_val ;;
2342 esac
2343 case " $ac_configure_args " in
2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2346 esac
2347 fi
2348done
2349if $ac_cache_corrupted; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2353$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
03385ed3 2355fi
2356## -------------------- ##
2357## Main body of script. ##
2358## -------------------- ##
2359
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367
2368
2369
2370
2371ac_config_headers="$ac_config_headers config.h"
2372
2373
2374# Default to --enable-multilib
2375# Check whether --enable-multilib was given.
2376if test "${enable_multilib+set}" = set; then :
2377 enableval=$enable_multilib; case "$enableval" in
2378 yes) multilib=yes ;;
2379 no) multilib=no ;;
f00f02a3 2380 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
03385ed3 2381 esac
2382else
2383 multilib=yes
2384fi
2385
2386
2387# We may get other options which we leave undocumented:
2388# --with-target-subdir, --with-multisrctop, --with-multisubdir
2389# See config-ml.in if you want the gory details.
2390
2391if test "$srcdir" = "."; then
2392 if test "$with_target_subdir" != "."; then
2393 multi_basedir="$srcdir/$with_multisrctop../.."
2394 else
2395 multi_basedir="$srcdir/$with_multisrctop.."
2396 fi
2397else
2398 multi_basedir="$srcdir/.."
2399fi
2400
2401
2402# Even if the default multilib is not a cross compilation,
2403# it may be that some of the other multilibs are.
2404if test $cross_compiling = no && test $multilib = yes \
2405 && test "x${with_multisubdir}" != x ; then
2406 cross_compiling=maybe
2407fi
2408
2409ac_config_commands="$ac_config_commands default-1"
2410
2411ac_aux_dir=
2412for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
f00f02a3 2413 if test -f "$ac_dir/install-sh"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/install-sh -c"
2416 break
2417 elif test -f "$ac_dir/install.sh"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/install.sh -c"
2420 break
2421 elif test -f "$ac_dir/shtool"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/shtool install -c"
2424 break
2425 fi
03385ed3 2426done
2427if test -z "$ac_aux_dir"; then
f00f02a3 2428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
03385ed3 2429fi
2430
2431# These three variables are undocumented and unsupported,
2432# and are intended to be withdrawn in a future Autoconf release.
2433# They can cause serious problems if a builder's source tree is in a directory
2434# whose full name contains unusual characters.
2435ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2436ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2437ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2438
2439
2440# Make sure we can run config.sub.
2441$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
03385ed3 2443
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2445$as_echo_n "checking build system type... " >&6; }
f00f02a3 2446if ${ac_cv_build+:} false; then :
03385ed3 2447 $as_echo_n "(cached) " >&6
2448else
2449 ac_build_alias=$build_alias
2450test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452test "x$ac_build_alias" = x &&
f00f02a3 2453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
03385ed3 2454ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
03385ed3 2456
2457fi
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2459$as_echo "$ac_cv_build" >&6; }
2460case $ac_cv_build in
2461*-*-*) ;;
f00f02a3 2462*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
03385ed3 2463esac
2464build=$ac_cv_build
2465ac_save_IFS=$IFS; IFS='-'
2466set x $ac_cv_build
2467shift
2468build_cpu=$1
2469build_vendor=$2
2470shift; shift
2471# Remember, the first character of IFS is used to create $*,
2472# except with old shells:
2473build_os=$*
2474IFS=$ac_save_IFS
2475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2479$as_echo_n "checking host system type... " >&6; }
f00f02a3 2480if ${ac_cv_host+:} false; then :
03385ed3 2481 $as_echo_n "(cached) " >&6
2482else
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2485else
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
03385ed3 2488fi
2489
2490fi
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2492$as_echo "$ac_cv_host" >&6; }
2493case $ac_cv_host in
2494*-*-*) ;;
f00f02a3 2495*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
03385ed3 2496esac
2497host=$ac_cv_host
2498ac_save_IFS=$IFS; IFS='-'
2499set x $ac_cv_host
2500shift
2501host_cpu=$1
2502host_vendor=$2
2503shift; shift
2504# Remember, the first character of IFS is used to create $*,
2505# except with old shells:
2506host_os=$*
2507IFS=$ac_save_IFS
2508case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2509
2510
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2512$as_echo_n "checking target system type... " >&6; }
f00f02a3 2513if ${ac_cv_target+:} false; then :
03385ed3 2514 $as_echo_n "(cached) " >&6
2515else
2516 if test "x$target_alias" = x; then
2517 ac_cv_target=$ac_cv_host
2518else
2519 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
f00f02a3 2520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
03385ed3 2521fi
2522
2523fi
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2525$as_echo "$ac_cv_target" >&6; }
2526case $ac_cv_target in
2527*-*-*) ;;
f00f02a3 2528*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
03385ed3 2529esac
2530target=$ac_cv_target
2531ac_save_IFS=$IFS; IFS='-'
2532set x $ac_cv_target
2533shift
2534target_cpu=$1
2535target_vendor=$2
2536shift; shift
2537# Remember, the first character of IFS is used to create $*,
2538# except with old shells:
2539target_os=$*
2540IFS=$ac_save_IFS
2541case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2542
2543
2544# The aliases save the names the user supplied, while $host etc.
2545# will get canonicalized.
2546test -n "$target_alias" &&
2547 test "$program_prefix$program_suffix$program_transform_name" = \
2548 NONENONEs,x,x, &&
2549 program_prefix=${target_alias}-
2550
2551
2552target_alias=${target_alias-$target}
2553
2554
2555# 1.11.1: Require that version of automake.
2556# foreign: Don't require README, INSTALL, NEWS, etc.
2557# no-define: Don't define PACKAGE and VERSION.
2558# no-dependencies: Don't generate automatic dependencies.
2559# (because it breaks when using bootstrap-lean, since some of the
2560# headers are gone at "make install" time).
2561# -Wall: Issue all automake warnings.
2562# -Wno-portability: Don't warn about constructs supported by GNU make.
2563# (because GCC requires GNU make anyhow).
f00f02a3 2564# -Wno-override: Overrides used in testsuite.
2565am__api_version='1.15'
03385ed3 2566
2567# Find a good install program. We prefer a C program (faster),
2568# so one script is as good as another. But avoid the broken or
2569# incompatible versions:
2570# SysV /etc/install, /usr/sbin/install
2571# SunOS /usr/etc/install
2572# IRIX /sbin/install
2573# AIX /bin/install
2574# AmigaOS /C/install, which installs bootblocks on floppy discs
2575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2578# OS/2's system install, which has a completely different semantic
2579# ./install, which can be erroneously created by make from ./install.sh.
2580# Reject install programs that cannot install multiple files.
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2582$as_echo_n "checking for a BSD-compatible install... " >&6; }
2583if test -z "$INSTALL"; then
f00f02a3 2584if ${ac_cv_path_install+:} false; then :
03385ed3 2585 $as_echo_n "(cached) " >&6
2586else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 # Account for people who put trailing slashes in PATH elements.
2593case $as_dir/ in #((
2594 ./ | .// | /[cC]/* | \
2595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2596 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 /usr/ucb/* ) ;;
2598 *)
2599 # OSF1 and SCO ODT 3.0 have their own names for install.
2600 # Don't use installbsd from OSF since it installs stuff as root
2601 # by default.
2602 for ac_prog in ginstall scoinst install; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2604 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
03385ed3 2605 if test $ac_prog = install &&
2606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # AIX install. It has an incompatible calling convention.
2608 :
2609 elif test $ac_prog = install &&
2610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611 # program-specific install script used by HP pwplus--don't use.
2612 :
2613 else
2614 rm -rf conftest.one conftest.two conftest.dir
2615 echo one > conftest.one
2616 echo two > conftest.two
2617 mkdir conftest.dir
2618 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2619 test -s conftest.one && test -s conftest.two &&
2620 test -s conftest.dir/conftest.one &&
2621 test -s conftest.dir/conftest.two
2622 then
2623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2624 break 3
2625 fi
2626 fi
2627 fi
2628 done
2629 done
2630 ;;
2631esac
2632
2633 done
2634IFS=$as_save_IFS
2635
2636rm -rf conftest.one conftest.two conftest.dir
2637
2638fi
2639 if test "${ac_cv_path_install+set}" = set; then
2640 INSTALL=$ac_cv_path_install
2641 else
2642 # As a last resort, use the slow shell script. Don't cache a
2643 # value for INSTALL within a source directory, because that will
2644 # break other packages using the cache if that directory is
2645 # removed, or if the value is a relative name.
2646 INSTALL=$ac_install_sh
2647 fi
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2650$as_echo "$INSTALL" >&6; }
2651
2652# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2653# It thinks the first close brace ends the variable substitution.
2654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2655
2656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2657
2658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2661$as_echo_n "checking whether build environment is sane... " >&6; }
03385ed3 2662# Reject unsafe characters in $srcdir or the absolute working directory
2663# name. Accept space and tab only in the latter.
2664am_lf='
2665'
2666case `pwd` in
2667 *[\\\"\#\$\&\'\`$am_lf]*)
f00f02a3 2668 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
03385ed3 2669esac
2670case $srcdir in
2671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
f00f02a3 2672 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
03385ed3 2673esac
2674
f00f02a3 2675# Do 'set' in a subshell so we don't clobber the current shell's
03385ed3 2676# arguments. Must try -L first in case configure is actually a
2677# symlink; some systems play weird games with the mod time of symlinks
2678# (eg FreeBSD returns the mod time of the symlink's containing
2679# directory).
2680if (
f00f02a3 2681 am_has_slept=no
2682 for am_try in 1 2; do
2683 echo "timestamp, slept: $am_has_slept" > conftest.file
2684 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2685 if test "$*" = "X"; then
2686 # -L didn't work.
2687 set X `ls -t "$srcdir/configure" conftest.file`
2688 fi
2689 if test "$*" != "X $srcdir/configure conftest.file" \
2690 && test "$*" != "X conftest.file $srcdir/configure"; then
2691
2692 # If neither matched, then we have a broken ls. This can happen
2693 # if, for instance, CONFIG_SHELL is bash and it inherits a
2694 # broken ls alias from the environment. This has actually
2695 # happened. Such a system could not be considered "sane".
2696 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2697 alias in your environment" "$LINENO" 5
2698 fi
2699 if test "$2" = conftest.file || test $am_try -eq 2; then
2700 break
2701 fi
2702 # Just in case.
2703 sleep 1
2704 am_has_slept=yes
2705 done
03385ed3 2706 test "$2" = conftest.file
2707 )
2708then
2709 # Ok.
2710 :
2711else
f00f02a3 2712 as_fn_error $? "newly created file is older than distributed files!
03385ed3 2713Check your system clock" "$LINENO" 5
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716$as_echo "yes" >&6; }
f00f02a3 2717# If we didn't sleep, we still need to ensure time stamps of config.status and
2718# generated files are strictly newer.
2719am_sleep_pid=
2720if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2721 ( sleep 1 ) &
2722 am_sleep_pid=$!
2723fi
2724
2725rm -f conftest.file
2726
03385ed3 2727test "$program_prefix" != NONE &&
2728 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2729# Use a double $ so make ignores it.
2730test "$program_suffix" != NONE &&
2731 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2732# Double any \ or $.
2733# By default was `s,x,x', remove it if useless.
2734ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2735program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2736
f00f02a3 2737# Expand $ac_aux_dir to an absolute path.
2738am_aux_dir=`cd "$ac_aux_dir" && pwd`
03385ed3 2739
2740if test x"${MISSING+set}" != xset; then
2741 case $am_aux_dir in
2742 *\ * | *\ *)
2743 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2744 *)
2745 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2746 esac
2747fi
2748# Use eval to expand $SHELL
f00f02a3 2749if eval "$MISSING --is-lightweight"; then
2750 am_missing_run="$MISSING "
03385ed3 2751else
2752 am_missing_run=
f00f02a3 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2754$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
03385ed3 2755fi
2756
f00f02a3 2757if test x"${install_sh+set}" != xset; then
03385ed3 2758 case $am_aux_dir in
2759 *\ * | *\ *)
2760 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2761 *)
2762 install_sh="\${SHELL} $am_aux_dir/install-sh"
2763 esac
2764fi
2765
f00f02a3 2766# Installed binaries are usually stripped using 'strip' when the user
2767# run "make install-strip". However 'strip' might not be the right
03385ed3 2768# tool to use in cross-compilation environments, therefore Automake
f00f02a3 2769# will honor the 'STRIP' environment variable to overrule this program.
03385ed3 2770if test "$cross_compiling" != no; then
2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2773set dummy ${ac_tool_prefix}strip; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2776if ${ac_cv_prog_STRIP+:} false; then :
03385ed3 2777 $as_echo_n "(cached) " >&6
2778else
2779 if test -n "$STRIP"; then
2780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 2789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794 done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799STRIP=$ac_cv_prog_STRIP
2800if test -n "$STRIP"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2802$as_echo "$STRIP" >&6; }
2803else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809fi
2810if test -z "$ac_cv_prog_STRIP"; then
2811 ac_ct_STRIP=$STRIP
2812 # Extract the first word of "strip", so it can be a program name with args.
2813set dummy strip; ac_word=$2
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2816if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
03385ed3 2817 $as_echo_n "(cached) " >&6
2818else
2819 if test -n "$ac_ct_STRIP"; then
2820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 2829 ac_cv_prog_ac_ct_STRIP="strip"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834 done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2840if test -n "$ac_ct_STRIP"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2842$as_echo "$ac_ct_STRIP" >&6; }
2843else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845$as_echo "no" >&6; }
2846fi
2847
2848 if test "x$ac_ct_STRIP" = x; then
2849 STRIP=":"
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852yes:)
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855ac_tool_warned=yes ;;
2856esac
2857 STRIP=$ac_ct_STRIP
2858 fi
2859else
2860 STRIP="$ac_cv_prog_STRIP"
2861fi
2862
2863fi
2864INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2867$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2868if test -z "$MKDIR_P"; then
f00f02a3 2869 if ${ac_cv_path_mkdir+:} false; then :
03385ed3 2870 $as_echo_n "(cached) " >&6
2871else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_prog in mkdir gmkdir; do
2878 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2879 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
03385ed3 2880 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2881 'mkdir (GNU coreutils) '* | \
2882 'mkdir (coreutils) '* | \
2883 'mkdir (fileutils) '4.1*)
2884 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2885 break 3;;
2886 esac
2887 done
2888 done
2889 done
2890IFS=$as_save_IFS
2891
2892fi
2893
f00f02a3 2894 test -d ./--version && rmdir ./--version
03385ed3 2895 if test "${ac_cv_path_mkdir+set}" = set; then
2896 MKDIR_P="$ac_cv_path_mkdir -p"
2897 else
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for MKDIR_P within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
03385ed3 2902 MKDIR_P="$ac_install_sh -d"
2903 fi
2904fi
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2906$as_echo "$MKDIR_P" >&6; }
2907
03385ed3 2908for ac_prog in gawk mawk nawk awk
2909do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2914if ${ac_cv_prog_AWK+:} false; then :
03385ed3 2915 $as_echo_n "(cached) " >&6
2916else
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 2927 ac_cv_prog_AWK="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
2932 done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937AWK=$ac_cv_prog_AWK
2938if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940$as_echo "$AWK" >&6; }
2941else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946
2947 test -n "$AWK" && break
2948done
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2951$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2952set x ${MAKE-make}
2953ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 2954if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
03385ed3 2955 $as_echo_n "(cached) " >&6
2956else
2957 cat >conftest.make <<\_ACEOF
2958SHELL = /bin/sh
2959all:
2960 @echo '@@@%%%=$(MAKE)=@@@%%%'
2961_ACEOF
f00f02a3 2962# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
03385ed3 2963case `${MAKE-make} -f conftest.make 2>/dev/null` in
2964 *@@@%%%=?*=@@@%%%*)
2965 eval ac_cv_prog_make_${ac_make}_set=yes;;
2966 *)
2967 eval ac_cv_prog_make_${ac_make}_set=no;;
2968esac
2969rm -f conftest.make
2970fi
2971if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973$as_echo "yes" >&6; }
2974 SET_MAKE=
2975else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978 SET_MAKE="MAKE=${MAKE-make}"
2979fi
2980
2981rm -rf .tst 2>/dev/null
2982mkdir .tst 2>/dev/null
2983if test -d .tst; then
2984 am__leading_dot=.
2985else
2986 am__leading_dot=_
2987fi
2988rmdir .tst 2>/dev/null
2989
f00f02a3 2990# Check whether --enable-silent-rules was given.
2991if test "${enable_silent_rules+set}" = set; then :
2992 enableval=$enable_silent_rules;
2993fi
2994
2995case $enable_silent_rules in # (((
2996 yes) AM_DEFAULT_VERBOSITY=0;;
2997 no) AM_DEFAULT_VERBOSITY=1;;
2998 *) AM_DEFAULT_VERBOSITY=1;;
2999esac
3000am_make=${MAKE-make}
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3002$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3003if ${am_cv_make_support_nested_variables+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005else
3006 if $as_echo 'TRUE=$(BAR$(V))
3007BAR0=false
3008BAR1=true
3009V=1
3010am__doit:
3011 @$(TRUE)
3012.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3013 am_cv_make_support_nested_variables=yes
3014else
3015 am_cv_make_support_nested_variables=no
3016fi
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3019$as_echo "$am_cv_make_support_nested_variables" >&6; }
3020if test $am_cv_make_support_nested_variables = yes; then
3021 AM_V='$(V)'
3022 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3023else
3024 AM_V=$AM_DEFAULT_VERBOSITY
3025 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3026fi
3027AM_BACKSLASH='\'
3028
03385ed3 3029if test "`cd $srcdir && pwd`" != "`pwd`"; then
3030 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3031 # is not polluted with repeated "-I."
3032 am__isrc=' -I$(srcdir)'
3033 # test to see if srcdir already configured
3034 if test -f $srcdir/config.status; then
f00f02a3 3035 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
03385ed3 3036 fi
3037fi
3038
3039# test whether we have cygpath
3040if test -z "$CYGPATH_W"; then
3041 if (cygpath --version) >/dev/null 2>/dev/null; then
3042 CYGPATH_W='cygpath -w'
3043 else
3044 CYGPATH_W=echo
3045 fi
3046fi
3047
3048
3049# Define the identity of the package.
3050 PACKAGE='libphobos'
3051 VERSION='version-unused'
3052
3053
3054# Some tools Automake needs.
3055
3056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057
3058
3059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060
3061
3062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063
3064
3065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066
3067
3068MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3069
f00f02a3 3070# For better backward compatibility. To be removed once Automake 1.9.x
3071# dies out for good. For more background, see:
3072# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3074mkdir_p='$(MKDIR_P)'
3075
3076# We need awk for the "check" target (and possibly the TAP driver). The
3077# system "awk" is bad on some platforms.
03385ed3 3078# Always define AMTAR for backward compatibility. Yes, it's still used
3079# in the wild :-( We should find a proper way to deprecate it ...
3080AMTAR='$${TAR-tar}'
3081
f00f02a3 3082
3083# We'll loop over all known methods to create a tar archive until one works.
3084_am_tools='gnutar pax cpio none'
3085
03385ed3 3086am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3087
3088
3089
3090
3091
3092
f00f02a3 3093# POSIX will say in a future version that running "rm -f" with no argument
3094# is OK; and we want to be able to make that assumption in our Makefile
3095# recipes. So use an aggressive probe to check that the usage we want is
3096# actually supported "in the wild" to an acceptable degree.
3097# See automake bug#10828.
3098# To make any issue more visible, cause the running configure to be aborted
3099# by default if the 'rm' program in use doesn't match our expectations; the
3100# user can still override this though.
3101if rm -f && rm -fr && rm -rf; then : OK; else
3102 cat >&2 <<'END'
3103Oops!
3104
3105Your 'rm' program seems unable to run without file operands specified
3106on the command line, even when the '-f' option is present. This is contrary
3107to the behaviour of most rm programs out there, and not conforming with
3108the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3109
3110Please tell bug-automake@gnu.org about your system, including the value
3111of your $PATH and any error possibly output before this message. This
3112can help us improve future automake versions.
3113
3114END
3115 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3116 echo 'Configuration will proceed anyway, since you have set the' >&2
3117 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3118 echo >&2
3119 else
3120 cat >&2 <<'END'
3121Aborting the configuration process, to ensure you take notice of the issue.
3122
3123You can download and install GNU coreutils to get an 'rm' implementation
3124that behaves properly: <http://www.gnu.org/software/coreutils/>.
3125
3126If you want to complete the configuration process using your problematic
3127'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3128to "yes", and re-run configure.
3129
3130END
3131 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3132 fi
3133fi
3134
3135
03385ed3 3136
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3148if ${ac_cv_prog_CC+:} false; then :
03385ed3 3149 $as_echo_n "(cached) " >&6
3150else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 3161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165done
3166 done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171CC=$ac_cv_prog_CC
3172if test -n "$CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174$as_echo "$CC" >&6; }
3175else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180
3181fi
3182if test -z "$ac_cv_prog_CC"; then
3183 ac_ct_CC=$CC
3184 # Extract the first word of "gcc", so it can be a program name with args.
3185set dummy gcc; ac_word=$2
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3188if ${ac_cv_prog_ac_ct_CC+:} false; then :
03385ed3 3189 $as_echo_n "(cached) " >&6
3190else
3191 if test -n "$ac_ct_CC"; then
3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193else
3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195for as_dir in $PATH
3196do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 3201 ac_cv_prog_ac_ct_CC="gcc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3204 fi
3205done
3206 done
3207IFS=$as_save_IFS
3208
3209fi
3210fi
3211ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212if test -n "$ac_ct_CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214$as_echo "$ac_ct_CC" >&6; }
3215else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218fi
3219
3220 if test "x$ac_ct_CC" = x; then
3221 CC=""
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224yes:)
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227ac_tool_warned=yes ;;
3228esac
3229 CC=$ac_ct_CC
3230 fi
3231else
3232 CC="$ac_cv_prog_CC"
3233fi
3234
3235if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}cc; ac_word=$2
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3241if ${ac_cv_prog_CC+:} false; then :
03385ed3 3242 $as_echo_n "(cached) " >&6
3243else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 3254 ac_cv_prog_CC="${ac_tool_prefix}cc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258done
3259 done
3260IFS=$as_save_IFS
3261
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267$as_echo "$CC" >&6; }
3268else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271fi
3272
3273
3274 fi
3275fi
3276if test -z "$CC"; then
3277 # Extract the first word of "cc", so it can be a program name with args.
3278set dummy cc; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3281if ${ac_cv_prog_CC+:} false; then :
03385ed3 3282 $as_echo_n "(cached) " >&6
3283else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286else
3287 ac_prog_rejected=no
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 3295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296 ac_prog_rejected=yes
3297 continue
3298 fi
3299 ac_cv_prog_CC="cc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303done
3304 done
3305IFS=$as_save_IFS
3306
3307if test $ac_prog_rejected = yes; then
3308 # We found a bogon in the path, so make sure we never use it.
3309 set dummy $ac_cv_prog_CC
3310 shift
3311 if test $# != 0; then
3312 # We chose a different compiler from the bogus one.
3313 # However, it has the same basename, so the bogon will be chosen
3314 # first if we set CC to just the basename; use the full file name.
3315 shift
3316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317 fi
3318fi
3319fi
3320fi
3321CC=$ac_cv_prog_CC
3322if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324$as_echo "$CC" >&6; }
3325else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327$as_echo "no" >&6; }
3328fi
3329
3330
3331fi
3332if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 for ac_prog in cl.exe
3335 do
3336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3340if ${ac_cv_prog_CC+:} false; then :
03385ed3 3341 $as_echo_n "(cached) " >&6
3342else
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 3353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357done
3358 done
3359IFS=$as_save_IFS
3360
3361fi
3362fi
3363CC=$ac_cv_prog_CC
3364if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366$as_echo "$CC" >&6; }
3367else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369$as_echo "no" >&6; }
3370fi
3371
3372
3373 test -n "$CC" && break
3374 done
3375fi
3376if test -z "$CC"; then
3377 ac_ct_CC=$CC
3378 for ac_prog in cl.exe
3379do
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3384if ${ac_cv_prog_ac_ct_CC+:} false; then :
03385ed3 3385 $as_echo_n "(cached) " >&6
3386else
3387 if test -n "$ac_ct_CC"; then
3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 3397 ac_cv_prog_ac_ct_CC="$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401done
3402 done
3403IFS=$as_save_IFS
3404
3405fi
3406fi
3407ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408if test -n "$ac_ct_CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410$as_echo "$ac_ct_CC" >&6; }
3411else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
3414fi
3415
3416
3417 test -n "$ac_ct_CC" && break
3418done
3419
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424yes:)
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427ac_tool_warned=yes ;;
3428esac
3429 CC=$ac_ct_CC
3430 fi
3431fi
3432
3433fi
3434
3435
3436test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3438as_fn_error $? "no acceptable C compiler found in \$PATH
3439See \`config.log' for more details" "$LINENO" 5; }
03385ed3 3440
3441# Provide some information about the compiler.
3442$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443set X $ac_compile
3444ac_compiler=$2
3445for ac_option in --version -v -V -qversion; do
3446 { { ac_try="$ac_compiler $ac_option >&5"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454 ac_status=$?
3455 if test -s conftest.err; then
3456 sed '10a\
3457... rest of stderr output deleted ...
3458 10q' conftest.err >conftest.er1
3459 cat conftest.er1 >&5
03385ed3 3460 fi
f00f02a3 3461 rm -f conftest.er1 conftest.err
03385ed3 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3464done
3465
3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h. */
3468
3469int
3470main ()
3471{
3472
3473 ;
3474 return 0;
3475}
3476_ACEOF
3477ac_clean_files_save=$ac_clean_files
f00f02a3 3478ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
03385ed3 3479# Try to create an executable without -o first, disregard a.out.
3480# It will help us diagnose broken compilers, and finding out an intuition
3481# of exeext.
f00f02a3 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483$as_echo_n "checking whether the C compiler works... " >&6; }
03385ed3 3484ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485
3486# The possible output files:
3487ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3488
3489ac_rmfiles=
3490for ac_file in $ac_files
3491do
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495 esac
3496done
3497rm -f $ac_rmfiles
3498
3499if { { ac_try="$ac_link_default"
3500case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503esac
3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505$as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link_default") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512# in a Makefile. We should not override ac_cv_exeext if it was cached,
3513# so that the user can short-circuit this test for compilers unknown to
3514# Autoconf.
3515for ac_file in $ac_files ''
3516do
3517 test -f "$ac_file" || continue
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3520 ;;
3521 [ab].out )
3522 # We found the default executable, but exeext='' is most
3523 # certainly right.
3524 break;;
3525 *.* )
3526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527 then :; else
3528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529 fi
3530 # We set ac_cv_exeext here because the later test for it is not
3531 # safe: cross compilers may not add the suffix if given an `-o'
3532 # argument, so we may need to know it at that point already.
3533 # Even if this section looks crufty: it has the advantage of
3534 # actually working.
3535 break;;
3536 * )
3537 break;;
3538 esac
3539done
3540test "$ac_cv_exeext" = no && ac_cv_exeext=
3541
3542else
3543 ac_file=''
3544fi
03385ed3 3545if test -z "$ac_file"; then :
f00f02a3 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547$as_echo "no" >&6; }
3548$as_echo "$as_me: failed program was:" >&5
03385ed3 3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3553as_fn_error 77 "C compiler cannot create executables
3554See \`config.log' for more details" "$LINENO" 5; }
3555else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557$as_echo "yes" >&6; }
03385ed3 3558fi
f00f02a3 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3560$as_echo_n "checking for C compiler default output file name... " >&6; }
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3562$as_echo "$ac_file" >&6; }
03385ed3 3563ac_exeext=$ac_cv_exeext
3564
f00f02a3 3565rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
03385ed3 3566ac_clean_files=$ac_clean_files_save
03385ed3 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568$as_echo_n "checking for suffix of executables... " >&6; }
3569if { { ac_try="$ac_link"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3582# work properly (i.e., refer to `conftest.exe'), while it won't with
3583# `rm'.
3584for ac_file in conftest.exe conftest conftest.*; do
3585 test -f "$ac_file" || continue
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 break;;
3590 * ) break;;
3591 esac
3592done
3593else
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3596as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3597See \`config.log' for more details" "$LINENO" 5; }
03385ed3 3598fi
f00f02a3 3599rm -f conftest conftest$ac_cv_exeext
03385ed3 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601$as_echo "$ac_cv_exeext" >&6; }
3602
3603rm -f conftest.$ac_ext
3604EXEEXT=$ac_cv_exeext
3605ac_exeext=$EXEEXT
f00f02a3 3606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h. */
3608#include <stdio.h>
3609int
3610main ()
3611{
3612FILE *f = fopen ("conftest.out", "w");
3613 return ferror (f) || fclose (f) != 0;
3614
3615 ;
3616 return 0;
3617}
3618_ACEOF
3619ac_clean_files="$ac_clean_files conftest.out"
3620# Check that the compiler produces executables we can run. If not, either
3621# the compiler is broken, or we cross compile.
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623$as_echo_n "checking whether we are cross compiling... " >&6; }
3624if test "$cross_compiling" != yes; then
3625 { { ac_try="$ac_link"
3626case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631$as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_link") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }
3636 if { ac_try='./conftest$ac_cv_exeext'
3637 { { case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642$as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_try") 2>&5
3644 ac_status=$?
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }; }; then
3647 cross_compiling=no
3648 else
3649 if test "$cross_compiling" = maybe; then
3650 cross_compiling=yes
3651 else
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654as_fn_error $? "cannot run C compiled programs.
3655If you meant to cross compile, use \`--host'.
3656See \`config.log' for more details" "$LINENO" 5; }
3657 fi
3658 fi
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3661$as_echo "$cross_compiling" >&6; }
3662
3663rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3664ac_clean_files=$ac_clean_files_save
03385ed3 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3666$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 3667if ${ac_cv_objext+:} false; then :
03385ed3 3668 $as_echo_n "(cached) " >&6
3669else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h. */
3672
3673int
3674main ()
3675{
3676
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681rm -f conftest.o conftest.obj
3682if { { ac_try="$ac_compile"
3683case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688$as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compile") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 for ac_file in conftest.o conftest.obj conftest.*; do
3694 test -f "$ac_file" || continue;
3695 case $ac_file in
3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3698 break;;
3699 esac
3700done
3701else
3702 $as_echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3707as_fn_error $? "cannot compute suffix of object files: cannot compile
3708See \`config.log' for more details" "$LINENO" 5; }
03385ed3 3709fi
3710rm -f conftest.$ac_cv_objext conftest.$ac_ext
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3713$as_echo "$ac_cv_objext" >&6; }
3714OBJEXT=$ac_cv_objext
3715ac_objext=$OBJEXT
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3717$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 3718if ${ac_cv_c_compiler_gnu+:} false; then :
03385ed3 3719 $as_echo_n "(cached) " >&6
3720else
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h. */
3723
3724int
3725main ()
3726{
3727#ifndef __GNUC__
3728 choke me
3729#endif
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_compiler_gnu=yes
3737else
3738 ac_compiler_gnu=no
3739fi
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3745$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746if test $ac_compiler_gnu = yes; then
3747 GCC=yes
3748else
3749 GCC=
3750fi
3751ac_test_CFLAGS=${CFLAGS+set}
3752ac_save_CFLAGS=$CFLAGS
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3754$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 3755if ${ac_cv_prog_cc_g+:} false; then :
03385ed3 3756 $as_echo_n "(cached) " >&6
3757else
3758 ac_save_c_werror_flag=$ac_c_werror_flag
3759 ac_c_werror_flag=yes
3760 ac_cv_prog_cc_g=no
3761 CFLAGS="-g"
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h. */
3764
3765int
3766main ()
3767{
3768
3769 ;
3770 return 0;
3771}
3772_ACEOF
3773if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_prog_cc_g=yes
3775else
3776 CFLAGS=""
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h. */
3779
3780int
3781main ()
3782{
3783
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788if ac_fn_c_try_compile "$LINENO"; then :
3789
3790else
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3792 CFLAGS="-g"
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h. */
3795
3796int
3797main ()
3798{
3799
3800 ;
3801 return 0;
3802}
3803_ACEOF
3804if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_g=yes
3806fi
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808fi
3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810fi
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_c_werror_flag=$ac_save_c_werror_flag
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3815$as_echo "$ac_cv_prog_cc_g" >&6; }
3816if test "$ac_test_CFLAGS" = set; then
3817 CFLAGS=$ac_save_CFLAGS
3818elif test $ac_cv_prog_cc_g = yes; then
3819 if test "$GCC" = yes; then
3820 CFLAGS="-g -O2"
3821 else
3822 CFLAGS="-g"
3823 fi
3824else
3825 if test "$GCC" = yes; then
3826 CFLAGS="-O2"
3827 else
3828 CFLAGS=
3829 fi
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3832$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 3833if ${ac_cv_prog_cc_c89+:} false; then :
03385ed3 3834 $as_echo_n "(cached) " >&6
3835else
3836 ac_cv_prog_cc_c89=no
3837ac_save_CC=$CC
3838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h. */
3840#include <stdarg.h>
3841#include <stdio.h>
f00f02a3 3842struct stat;
03385ed3 3843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3844struct buf { int x; };
3845FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846static char *e (p, i)
3847 char **p;
3848 int i;
3849{
3850 return p[i];
3851}
3852static char *f (char * (*g) (char **, int), char **p, ...)
3853{
3854 char *s;
3855 va_list v;
3856 va_start (v,p);
3857 s = g (p, va_arg (v,int));
3858 va_end (v);
3859 return s;
3860}
3861
3862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3863 function prototypes and stuff, but not '\xHH' hex character constants.
3864 These don't provoke an error unfortunately, instead are silently treated
3865 as 'x'. The following induces an error, until -std is added to get
3866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3867 array size at least. It's necessary to write '\x00'==0 to get something
3868 that's true only with -std. */
3869int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870
3871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872 inside strings and character constants. */
3873#define FOO(x) 'x'
3874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875
3876int test (int i, double x);
3877struct s1 {int (*f) (int a);};
3878struct s2 {int (*f) (double a);};
3879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880int argc;
3881char **argv;
3882int
3883main ()
3884{
3885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892do
3893 CC="$ac_save_CC $ac_arg"
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_c89=$ac_arg
3896fi
3897rm -f core conftest.err conftest.$ac_objext
3898 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899done
3900rm -f conftest.$ac_ext
3901CC=$ac_save_CC
3902
3903fi
3904# AC_CACHE_VAL
3905case "x$ac_cv_prog_cc_c89" in
3906 x)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908$as_echo "none needed" >&6; } ;;
3909 xno)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911$as_echo "unsupported" >&6; } ;;
3912 *)
3913 CC="$CC $ac_cv_prog_cc_c89"
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3915$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916esac
3917if test "x$ac_cv_prog_cc_c89" != xno; then :
3918
3919fi
3920
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
f00f02a3 3927ac_ext=c
3928ac_cpp='$CPP $CPPFLAGS'
3929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3933$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3934if ${am_cv_prog_cc_c_o+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936else
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h. */
3939
3940int
3941main ()
3942{
3943
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948 # Make sure it works both with $CC and with simple cc.
3949 # Following AC_PROG_CC_C_O, we do the test twice because some
3950 # compilers refuse to overwrite an existing .o file with -o,
3951 # though they will create one.
3952 am_cv_prog_cc_c_o=yes
3953 for am_i in 1 2; do
3954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } \
3959 && test -f conftest2.$ac_objext; then
3960 : OK
3961 else
3962 am_cv_prog_cc_c_o=no
3963 break
3964 fi
3965 done
3966 rm -f core conftest*
3967 unset am_i
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3970$as_echo "$am_cv_prog_cc_c_o" >&6; }
3971if test "$am_cv_prog_cc_c_o" != yes; then
3972 # Losing compiler, so override with the script.
3973 # FIXME: It is wrong to rewrite CC.
3974 # But if we don't then we get into trouble of one sort or another.
3975 # A longer-term fix would be to have automake use am__CC in this case,
3976 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3977 CC="$am_aux_dir/compile $CC"
3978fi
3979ac_ext=c
3980ac_cpp='$CPP $CPPFLAGS'
3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
3985
03385ed3 3986# By default we simply use the C compiler to build assembly code.
3987
3988test "${CCAS+set}" = set || CCAS=$CC
3989test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3990
3991
3992
3993ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}gcc; ac_word=$2
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4003if ${ac_cv_prog_CC+:} false; then :
03385ed3 4004 $as_echo_n "(cached) " >&6
4005else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4016 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
4021 done
4022IFS=$as_save_IFS
4023
4024fi
4025fi
4026CC=$ac_cv_prog_CC
4027if test -n "$CC"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029$as_echo "$CC" >&6; }
4030else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032$as_echo "no" >&6; }
4033fi
4034
4035
4036fi
4037if test -z "$ac_cv_prog_CC"; then
4038 ac_ct_CC=$CC
4039 # Extract the first word of "gcc", so it can be a program name with args.
4040set dummy gcc; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4043if ${ac_cv_prog_ac_ct_CC+:} false; then :
03385ed3 4044 $as_echo_n "(cached) " >&6
4045else
4046 if test -n "$ac_ct_CC"; then
4047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4056 ac_cv_prog_ac_ct_CC="gcc"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061 done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066ac_ct_CC=$ac_cv_prog_ac_ct_CC
4067if test -n "$ac_ct_CC"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4069$as_echo "$ac_ct_CC" >&6; }
4070else
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075 if test "x$ac_ct_CC" = x; then
4076 CC=""
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079yes:)
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4082ac_tool_warned=yes ;;
4083esac
4084 CC=$ac_ct_CC
4085 fi
4086else
4087 CC="$ac_cv_prog_CC"
4088fi
4089
4090if test -z "$CC"; then
4091 if test -n "$ac_tool_prefix"; then
4092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4093set dummy ${ac_tool_prefix}cc; ac_word=$2
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4096if ${ac_cv_prog_CC+:} false; then :
03385ed3 4097 $as_echo_n "(cached) " >&6
4098else
4099 if test -n "$CC"; then
4100 ac_cv_prog_CC="$CC" # Let the user override the test.
4101else
4102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103for as_dir in $PATH
4104do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4109 ac_cv_prog_CC="${ac_tool_prefix}cc"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113done
4114 done
4115IFS=$as_save_IFS
4116
4117fi
4118fi
4119CC=$ac_cv_prog_CC
4120if test -n "$CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122$as_echo "$CC" >&6; }
4123else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
4126fi
4127
4128
4129 fi
4130fi
4131if test -z "$CC"; then
4132 # Extract the first word of "cc", so it can be a program name with args.
4133set dummy cc; ac_word=$2
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4136if ${ac_cv_prog_CC+:} false; then :
03385ed3 4137 $as_echo_n "(cached) " >&6
4138else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141else
4142 ac_prog_rejected=no
4143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144for as_dir in $PATH
4145do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4150 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4151 ac_prog_rejected=yes
4152 continue
4153 fi
4154 ac_cv_prog_CC="cc"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158done
4159 done
4160IFS=$as_save_IFS
4161
4162if test $ac_prog_rejected = yes; then
4163 # We found a bogon in the path, so make sure we never use it.
4164 set dummy $ac_cv_prog_CC
4165 shift
4166 if test $# != 0; then
4167 # We chose a different compiler from the bogus one.
4168 # However, it has the same basename, so the bogon will be chosen
4169 # first if we set CC to just the basename; use the full file name.
4170 shift
4171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4172 fi
4173fi
4174fi
4175fi
4176CC=$ac_cv_prog_CC
4177if test -n "$CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179$as_echo "$CC" >&6; }
4180else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185
4186fi
4187if test -z "$CC"; then
4188 if test -n "$ac_tool_prefix"; then
4189 for ac_prog in cl.exe
4190 do
4191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4195if ${ac_cv_prog_CC+:} false; then :
03385ed3 4196 $as_echo_n "(cached) " >&6
4197else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212done
4213 done
4214IFS=$as_save_IFS
4215
4216fi
4217fi
4218CC=$ac_cv_prog_CC
4219if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221$as_echo "$CC" >&6; }
4222else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224$as_echo "no" >&6; }
4225fi
4226
4227
4228 test -n "$CC" && break
4229 done
4230fi
4231if test -z "$CC"; then
4232 ac_ct_CC=$CC
4233 for ac_prog in cl.exe
4234do
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236set dummy $ac_prog; ac_word=$2
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4239if ${ac_cv_prog_ac_ct_CC+:} false; then :
03385ed3 4240 $as_echo_n "(cached) " >&6
4241else
4242 if test -n "$ac_ct_CC"; then
4243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4244else
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4252 ac_cv_prog_ac_ct_CC="$ac_prog"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256done
4257 done
4258IFS=$as_save_IFS
4259
4260fi
4261fi
4262ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263if test -n "$ac_ct_CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265$as_echo "$ac_ct_CC" >&6; }
4266else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268$as_echo "no" >&6; }
4269fi
4270
4271
4272 test -n "$ac_ct_CC" && break
4273done
4274
4275 if test "x$ac_ct_CC" = x; then
4276 CC=""
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279yes:)
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282ac_tool_warned=yes ;;
4283esac
4284 CC=$ac_ct_CC
4285 fi
4286fi
4287
4288fi
4289
4290
4291test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4293as_fn_error $? "no acceptable C compiler found in \$PATH
4294See \`config.log' for more details" "$LINENO" 5; }
03385ed3 4295
4296# Provide some information about the compiler.
4297$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4298set X $ac_compile
4299ac_compiler=$2
4300for ac_option in --version -v -V -qversion; do
4301 { { ac_try="$ac_compiler $ac_option >&5"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307$as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4309 ac_status=$?
4310 if test -s conftest.err; then
4311 sed '10a\
4312... rest of stderr output deleted ...
4313 10q' conftest.err >conftest.er1
4314 cat conftest.er1 >&5
03385ed3 4315 fi
f00f02a3 4316 rm -f conftest.er1 conftest.err
03385ed3 4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }
4319done
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4322$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 4323if ${ac_cv_c_compiler_gnu+:} false; then :
03385ed3 4324 $as_echo_n "(cached) " >&6
4325else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */
4328
4329int
4330main ()
4331{
4332#ifndef __GNUC__
4333 choke me
4334#endif
4335
4336 ;
4337 return 0;
4338}
4339_ACEOF
4340if ac_fn_c_try_compile "$LINENO"; then :
4341 ac_compiler_gnu=yes
4342else
4343 ac_compiler_gnu=no
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346ac_cv_c_compiler_gnu=$ac_compiler_gnu
4347
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4350$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4351if test $ac_compiler_gnu = yes; then
4352 GCC=yes
4353else
4354 GCC=
4355fi
4356ac_test_CFLAGS=${CFLAGS+set}
4357ac_save_CFLAGS=$CFLAGS
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4359$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 4360if ${ac_cv_prog_cc_g+:} false; then :
03385ed3 4361 $as_echo_n "(cached) " >&6
4362else
4363 ac_save_c_werror_flag=$ac_c_werror_flag
4364 ac_c_werror_flag=yes
4365 ac_cv_prog_cc_g=no
4366 CFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h. */
4369
4370int
4371main ()
4372{
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_g=yes
4380else
4381 CFLAGS=""
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h. */
4384
4385int
4386main ()
4387{
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393if ac_fn_c_try_compile "$LINENO"; then :
4394
4395else
4396 ac_c_werror_flag=$ac_save_c_werror_flag
4397 CFLAGS="-g"
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h. */
4400
4401int
4402main ()
4403{
4404
4405 ;
4406 return 0;
4407}
4408_ACEOF
4409if ac_fn_c_try_compile "$LINENO"; then :
4410 ac_cv_prog_cc_g=yes
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413fi
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 ac_c_werror_flag=$ac_save_c_werror_flag
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4420$as_echo "$ac_cv_prog_cc_g" >&6; }
4421if test "$ac_test_CFLAGS" = set; then
4422 CFLAGS=$ac_save_CFLAGS
4423elif test $ac_cv_prog_cc_g = yes; then
4424 if test "$GCC" = yes; then
4425 CFLAGS="-g -O2"
4426 else
4427 CFLAGS="-g"
4428 fi
4429else
4430 if test "$GCC" = yes; then
4431 CFLAGS="-O2"
4432 else
4433 CFLAGS=
4434 fi
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4437$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 4438if ${ac_cv_prog_cc_c89+:} false; then :
03385ed3 4439 $as_echo_n "(cached) " >&6
4440else
4441 ac_cv_prog_cc_c89=no
4442ac_save_CC=$CC
4443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445#include <stdarg.h>
4446#include <stdio.h>
f00f02a3 4447struct stat;
03385ed3 4448/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4449struct buf { int x; };
4450FILE * (*rcsopen) (struct buf *, struct stat *, int);
4451static char *e (p, i)
4452 char **p;
4453 int i;
4454{
4455 return p[i];
4456}
4457static char *f (char * (*g) (char **, int), char **p, ...)
4458{
4459 char *s;
4460 va_list v;
4461 va_start (v,p);
4462 s = g (p, va_arg (v,int));
4463 va_end (v);
4464 return s;
4465}
4466
4467/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4468 function prototypes and stuff, but not '\xHH' hex character constants.
4469 These don't provoke an error unfortunately, instead are silently treated
4470 as 'x'. The following induces an error, until -std is added to get
4471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4472 array size at least. It's necessary to write '\x00'==0 to get something
4473 that's true only with -std. */
4474int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4475
4476/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4477 inside strings and character constants. */
4478#define FOO(x) 'x'
4479int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4480
4481int test (int i, double x);
4482struct s1 {int (*f) (int a);};
4483struct s2 {int (*f) (double a);};
4484int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4485int argc;
4486char **argv;
4487int
4488main ()
4489{
4490return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4496 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4497do
4498 CC="$ac_save_CC $ac_arg"
4499 if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_cv_prog_cc_c89=$ac_arg
4501fi
4502rm -f core conftest.err conftest.$ac_objext
4503 test "x$ac_cv_prog_cc_c89" != "xno" && break
4504done
4505rm -f conftest.$ac_ext
4506CC=$ac_save_CC
4507
4508fi
4509# AC_CACHE_VAL
4510case "x$ac_cv_prog_cc_c89" in
4511 x)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513$as_echo "none needed" >&6; } ;;
4514 xno)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4516$as_echo "unsupported" >&6; } ;;
4517 *)
4518 CC="$CC $ac_cv_prog_cc_c89"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4520$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4521esac
4522if test "x$ac_cv_prog_cc_c89" != xno; then :
4523
4524fi
4525
4526ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
f00f02a3 4532ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4538$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4539if ${am_cv_prog_cc_c_o+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h. */
4544
4545int
4546main ()
4547{
4548
4549 ;
4550 return 0;
4551}
4552_ACEOF
4553 # Make sure it works both with $CC and with simple cc.
4554 # Following AC_PROG_CC_C_O, we do the test twice because some
4555 # compilers refuse to overwrite an existing .o file with -o,
4556 # though they will create one.
4557 am_cv_prog_cc_c_o=yes
4558 for am_i in 1 2; do
4559 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4560 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } \
4564 && test -f conftest2.$ac_objext; then
4565 : OK
4566 else
4567 am_cv_prog_cc_c_o=no
4568 break
4569 fi
4570 done
4571 rm -f core conftest*
4572 unset am_i
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4575$as_echo "$am_cv_prog_cc_c_o" >&6; }
4576if test "$am_cv_prog_cc_c_o" != yes; then
4577 # Losing compiler, so override with the script.
4578 # FIXME: It is wrong to rewrite CC.
4579 # But if we don't then we get into trouble of one sort or another.
4580 # A longer-term fix would be to have automake use am__CC in this case,
4581 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4582 CC="$am_aux_dir/compile $CC"
4583fi
4584ac_ext=c
4585ac_cpp='$CPP $CPPFLAGS'
4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590
03385ed3 4591ac_ext=d
4592ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4593ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594ac_compiler_gnu=yes
4595if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4597set dummy ${ac_tool_prefix}gdc; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4600if ${ac_cv_prog_GDC+:} false; then :
03385ed3 4601 $as_echo_n "(cached) " >&6
4602else
4603 if test -n "$GDC"; then
4604 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4605else
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4613 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617done
4618 done
4619IFS=$as_save_IFS
4620
4621fi
4622fi
4623GDC=$ac_cv_prog_GDC
4624if test -n "$GDC"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4626$as_echo "$GDC" >&6; }
4627else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
4630fi
4631
4632
4633fi
4634if test -z "$ac_cv_prog_GDC"; then
4635 ac_ct_GDC=$GDC
4636 # Extract the first word of "gdc", so it can be a program name with args.
4637set dummy gdc; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4640if ${ac_cv_prog_ac_ct_GDC+:} false; then :
03385ed3 4641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$ac_ct_GDC"; then
4644 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4653 ac_cv_prog_ac_ct_GDC="gdc"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658 done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4664if test -n "$ac_ct_GDC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4666$as_echo "$ac_ct_GDC" >&6; }
4667else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672 if test "x$ac_ct_GDC" = x; then
4673 GDC=""
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676yes:)
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679ac_tool_warned=yes ;;
4680esac
4681 GDC=$ac_ct_GDC
4682 fi
4683else
4684 GDC="$ac_cv_prog_GDC"
4685fi
4686
4687if test -z "$GDC"; then
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4690set dummy ${ac_tool_prefix}gdc; ac_word=$2
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4693if ${ac_cv_prog_GDC+:} false; then :
03385ed3 4694 $as_echo_n "(cached) " >&6
4695else
4696 if test -n "$GDC"; then
4697 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4698else
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4706 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711 done
4712IFS=$as_save_IFS
4713
4714fi
4715fi
4716GDC=$ac_cv_prog_GDC
4717if test -n "$GDC"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4719$as_echo "$GDC" >&6; }
4720else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722$as_echo "no" >&6; }
4723fi
4724
4725
4726 fi
4727fi
4728if test -z "$GDC"; then
4729 # Extract the first word of "gdc", so it can be a program name with args.
4730set dummy gdc; ac_word=$2
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4733if ${ac_cv_prog_GDC+:} false; then :
03385ed3 4734 $as_echo_n "(cached) " >&6
4735else
4736 if test -n "$GDC"; then
4737 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4738else
4739 ac_prog_rejected=no
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4747 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4748 ac_prog_rejected=yes
4749 continue
4750 fi
4751 ac_cv_prog_GDC="gdc"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756 done
4757IFS=$as_save_IFS
4758
4759if test $ac_prog_rejected = yes; then
4760 # We found a bogon in the path, so make sure we never use it.
4761 set dummy $ac_cv_prog_GDC
4762 shift
4763 if test $# != 0; then
4764 # We chose a different compiler from the bogus one.
4765 # However, it has the same basename, so the bogon will be chosen
4766 # first if we set GDC to just the basename; use the full file name.
4767 shift
4768 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4769 fi
4770fi
4771fi
4772fi
4773GDC=$ac_cv_prog_GDC
4774if test -n "$GDC"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4776$as_echo "$GDC" >&6; }
4777else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781
4782
4783fi
4784
4785
4786# Provide some information about the compiler.
4787$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4788set X $ac_compile
4789ac_compiler=$2
4790{ { ac_try="$ac_compiler --version >&5"
4791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_compiler --version >&5") 2>conftest.err
4798 ac_status=$?
4799 if test -s conftest.err; then
4800 sed '10a\
4801... rest of stderr output deleted ...
4802 10q' conftest.err >conftest.er1
4803 cat conftest.er1 >&5
03385ed3 4804 fi
f00f02a3 4805 rm -f conftest.er1 conftest.err
03385ed3 4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }
4808ac_ext=c
4809ac_cpp='$CPP $CPPFLAGS'
4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4816$as_echo_n "checking for absolute libphobos source path... " >&6; }
f00f02a3 4817if ${phobos_cv_abs_srcdir+:} false; then :
03385ed3 4818 $as_echo_n "(cached) " >&6
4819else
4820 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4823$as_echo "$phobos_cv_abs_srcdir" >&6; }
4824 if test -d "$phobos_cv_abs_srcdir"; then :
4825
4826else
f00f02a3 4827 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
03385ed3 4828fi
4829
4830
4831
4832
4833 gdc_save_DFLAGS=$GDCFLAGS
4834 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4835
4836 ac_ext=d
4837ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4838ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=yes
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4842$as_echo_n "checking If $GDC can compile D sources... " >&6; }
4843 cat > conftest.$ac_ext <<_ACEOF
4844module mod;
4845
4846
4847extern(C) int main() {
4848 return 0;
4849}
4850_ACEOF
4851if ac_fn_d_try_compile "$LINENO"; then :
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853$as_echo "yes" >&6; }
4854else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
f00f02a3 4857 as_fn_error $? "can't compile D sources!" "$LINENO" 5
03385ed3 4858fi
4859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865
4866
4867 GDCFLAGS=$gdc_save_DFLAGS
4868
4869
4870
4871
4872
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4875$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4876 # Check whether --enable-maintainer-mode was given.
4877if test "${enable_maintainer_mode+set}" = set; then :
4878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4879else
4880 USE_MAINTAINER_MODE=no
4881fi
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4884$as_echo "$USE_MAINTAINER_MODE" >&6; }
4885 if test $USE_MAINTAINER_MODE = yes; then
4886 MAINTAINER_MODE_TRUE=
4887 MAINTAINER_MODE_FALSE='#'
4888else
4889 MAINTAINER_MODE_TRUE='#'
4890 MAINTAINER_MODE_FALSE=
4891fi
4892
4893 MAINT=$MAINTAINER_MODE_TRUE
4894
4895
4896if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4901if ${ac_cv_prog_RANLIB+:} false; then :
03385ed3 4902 $as_echo_n "(cached) " >&6
4903else
4904 if test -n "$RANLIB"; then
4905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4906else
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4917 fi
4918done
4919 done
4920IFS=$as_save_IFS
4921
4922fi
4923fi
4924RANLIB=$ac_cv_prog_RANLIB
4925if test -n "$RANLIB"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4927$as_echo "$RANLIB" >&6; }
4928else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932
4933
4934fi
4935if test -z "$ac_cv_prog_RANLIB"; then
4936 ac_ct_RANLIB=$RANLIB
4937 # Extract the first word of "ranlib", so it can be a program name with args.
4938set dummy ranlib; ac_word=$2
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4941if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
03385ed3 4942 $as_echo_n "(cached) " >&6
4943else
4944 if test -n "$ac_ct_RANLIB"; then
4945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4946else
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 4954 ac_cv_prog_ac_ct_RANLIB="ranlib"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4957 fi
4958done
4959 done
4960IFS=$as_save_IFS
4961
4962fi
4963fi
4964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4965if test -n "$ac_ct_RANLIB"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4967$as_echo "$ac_ct_RANLIB" >&6; }
4968else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972
4973 if test "x$ac_ct_RANLIB" = x; then
4974 RANLIB=":"
4975 else
4976 case $cross_compiling:$ac_tool_warned in
4977yes:)
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980ac_tool_warned=yes ;;
4981esac
4982 RANLIB=$ac_ct_RANLIB
4983 fi
4984else
4985 RANLIB="$ac_cv_prog_RANLIB"
4986fi
4987
4988
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4990$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4991set x ${MAKE-make}
4992ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 4993if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
03385ed3 4994 $as_echo_n "(cached) " >&6
4995else
4996 cat >conftest.make <<\_ACEOF
4997SHELL = /bin/sh
4998all:
4999 @echo '@@@%%%=$(MAKE)=@@@%%%'
5000_ACEOF
f00f02a3 5001# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
03385ed3 5002case `${MAKE-make} -f conftest.make 2>/dev/null` in
5003 *@@@%%%=?*=@@@%%%*)
5004 eval ac_cv_prog_make_${ac_make}_set=yes;;
5005 *)
5006 eval ac_cv_prog_make_${ac_make}_set=no;;
5007esac
5008rm -f conftest.make
5009fi
5010if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012$as_echo "yes" >&6; }
5013 SET_MAKE=
5014else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017 SET_MAKE="MAKE=${MAKE-make}"
5018fi
5019
5020
5021# This should be inherited in the recursive make, but ensure it is defined.
5022test "$AR" || AR=ar
5023
5024
5025CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5026
5027
5028
5029# Enable libtool
5030case `pwd` in
5031 *\ * | *\ *)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5033$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5034esac
5035
5036
5037
5038macro_version='2.2.7a'
5039macro_revision='1.3134'
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053ltmain="$ac_aux_dir/ltmain.sh"
5054
5055# Backslashify metacharacters that are still active within
5056# double-quoted strings.
5057sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5058
5059# Same as above, but do not quote variable references.
5060double_quote_subst='s/\(["`\\]\)/\\\1/g'
5061
5062# Sed substitution to delay expansion of an escaped shell variable in a
5063# double_quote_subst'ed string.
5064delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5065
5066# Sed substitution to delay expansion of an escaped single quote.
5067delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5068
5069# Sed substitution to avoid accidental globbing in evaled expressions
5070no_glob_subst='s/\*/\\\*/g'
5071
5072ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5073ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5074ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5075
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5077$as_echo_n "checking how to print strings... " >&6; }
5078# Test print first, because it will be a builtin if present.
5079if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5081 ECHO='print -r --'
5082elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5083 ECHO='printf %s\n'
5084else
5085 # Use this function as a fallback that always works.
5086 func_fallback_echo ()
5087 {
5088 eval 'cat <<_LTECHO_EOF
5089$1
5090_LTECHO_EOF'
5091 }
5092 ECHO='func_fallback_echo'
5093fi
5094
5095# func_echo_all arg...
5096# Invoke $ECHO with all args, space-separated.
5097func_echo_all ()
5098{
5099 $ECHO ""
5100}
5101
5102case "$ECHO" in
5103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5104$as_echo "printf" >&6; } ;;
5105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5106$as_echo "print -r" >&6; } ;;
5107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5108$as_echo "cat" >&6; } ;;
5109esac
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5125$as_echo_n "checking for a sed that does not truncate output... " >&6; }
f00f02a3 5126if ${ac_cv_path_SED+:} false; then :
03385ed3 5127 $as_echo_n "(cached) " >&6
5128else
5129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5130 for ac_i in 1 2 3 4 5 6 7; do
5131 ac_script="$ac_script$as_nl$ac_script"
5132 done
5133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5134 { ac_script=; unset ac_script;}
5135 if test -z "$SED"; then
5136 ac_path_SED_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in sed gsed; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 5146 as_fn_executable_p "$ac_path_SED" || continue
03385ed3 5147# Check for GNU ac_path_SED and select it if it is found.
5148 # Check for GNU $ac_path_SED
5149case `"$ac_path_SED" --version 2>&1` in
5150*GNU*)
5151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5152*)
5153 ac_count=0
5154 $as_echo_n 0123456789 >"conftest.in"
5155 while :
5156 do
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo '' >> "conftest.nl"
5161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_SED_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_SED="$ac_path_SED"
5167 ac_path_SED_max=$ac_count
5168 fi
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173esac
5174
5175 $ac_path_SED_found && break 3
5176 done
5177 done
5178 done
5179IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_SED"; then
f00f02a3 5181 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
03385ed3 5182 fi
5183else
5184 ac_cv_path_SED=$SED
5185fi
5186
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5189$as_echo "$ac_cv_path_SED" >&6; }
5190 SED="$ac_cv_path_SED"
5191 rm -f conftest.sed
5192
5193test -z "$SED" && SED=sed
5194Xsed="$SED -e 1s/^X//"
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5207$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
f00f02a3 5208if ${ac_cv_path_GREP+:} false; then :
03385ed3 5209 $as_echo_n "(cached) " >&6
5210else
5211 if test -z "$GREP"; then
5212 ac_path_GREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in grep ggrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 5222 as_fn_executable_p "$ac_path_GREP" || continue
03385ed3 5223# Check for GNU ac_path_GREP and select it if it is found.
5224 # Check for GNU $ac_path_GREP
5225case `"$ac_path_GREP" --version 2>&1` in
5226*GNU*)
5227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5228*)
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo 'GREP' >> "conftest.nl"
5237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_GREP="$ac_path_GREP"
5243 ac_path_GREP_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249esac
5250
5251 $ac_path_GREP_found && break 3
5252 done
5253 done
5254 done
5255IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_GREP"; then
f00f02a3 5257 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
03385ed3 5258 fi
5259else
5260 ac_cv_path_GREP=$GREP
5261fi
5262
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5265$as_echo "$ac_cv_path_GREP" >&6; }
5266 GREP="$ac_cv_path_GREP"
5267
5268
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5270$as_echo_n "checking for egrep... " >&6; }
f00f02a3 5271if ${ac_cv_path_EGREP+:} false; then :
03385ed3 5272 $as_echo_n "(cached) " >&6
5273else
5274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5275 then ac_cv_path_EGREP="$GREP -E"
5276 else
5277 if test -z "$EGREP"; then
5278 ac_path_EGREP_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_prog in egrep; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 5288 as_fn_executable_p "$ac_path_EGREP" || continue
03385ed3 5289# Check for GNU ac_path_EGREP and select it if it is found.
5290 # Check for GNU $ac_path_EGREP
5291case `"$ac_path_EGREP" --version 2>&1` in
5292*GNU*)
5293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5294*)
5295 ac_count=0
5296 $as_echo_n 0123456789 >"conftest.in"
5297 while :
5298 do
5299 cat "conftest.in" "conftest.in" >"conftest.tmp"
5300 mv "conftest.tmp" "conftest.in"
5301 cp "conftest.in" "conftest.nl"
5302 $as_echo 'EGREP' >> "conftest.nl"
5303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305 as_fn_arith $ac_count + 1 && ac_count=$as_val
5306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5307 # Best one so far, save it but keep looking for a better one
5308 ac_cv_path_EGREP="$ac_path_EGREP"
5309 ac_path_EGREP_max=$ac_count
5310 fi
5311 # 10*(2^10) chars as input seems more than enough
5312 test $ac_count -gt 10 && break
5313 done
5314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315esac
5316
5317 $ac_path_EGREP_found && break 3
5318 done
5319 done
5320 done
5321IFS=$as_save_IFS
5322 if test -z "$ac_cv_path_EGREP"; then
f00f02a3 5323 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
03385ed3 5324 fi
5325else
5326 ac_cv_path_EGREP=$EGREP
5327fi
5328
5329 fi
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5332$as_echo "$ac_cv_path_EGREP" >&6; }
5333 EGREP="$ac_cv_path_EGREP"
5334
5335
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5337$as_echo_n "checking for fgrep... " >&6; }
f00f02a3 5338if ${ac_cv_path_FGREP+:} false; then :
03385ed3 5339 $as_echo_n "(cached) " >&6
5340else
5341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5342 then ac_cv_path_FGREP="$GREP -F"
5343 else
5344 if test -z "$FGREP"; then
5345 ac_path_FGREP_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in fgrep; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 5355 as_fn_executable_p "$ac_path_FGREP" || continue
03385ed3 5356# Check for GNU ac_path_FGREP and select it if it is found.
5357 # Check for GNU $ac_path_FGREP
5358case `"$ac_path_FGREP" --version 2>&1` in
5359*GNU*)
5360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5361*)
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo 'FGREP' >> "conftest.nl"
5370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_FGREP="$ac_path_FGREP"
5376 ac_path_FGREP_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382esac
5383
5384 $ac_path_FGREP_found && break 3
5385 done
5386 done
5387 done
5388IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_FGREP"; then
f00f02a3 5390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
03385ed3 5391 fi
5392else
5393 ac_cv_path_FGREP=$FGREP
5394fi
5395
5396 fi
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5399$as_echo "$ac_cv_path_FGREP" >&6; }
5400 FGREP="$ac_cv_path_FGREP"
5401
5402
5403test -z "$GREP" && GREP=grep
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423# Check whether --with-gnu-ld was given.
5424if test "${with_gnu_ld+set}" = set; then :
5425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5426else
5427 with_gnu_ld=no
5428fi
5429
5430ac_prog=ld
5431if test "$GCC" = yes; then
5432 # Check if gcc -print-prog-name=ld gives a path.
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5434$as_echo_n "checking for ld used by $CC... " >&6; }
5435 case $host in
5436 *-*-mingw*)
5437 # gcc leaves a trailing carriage return which upsets mingw
5438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5439 *)
5440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5441 esac
5442 case $ac_prog in
5443 # Accept absolute paths.
5444 [\\/]* | ?:[\\/]*)
5445 re_direlt='/[^/][^/]*/\.\./'
5446 # Canonicalize the pathname of ld
5447 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5448 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5449 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5450 done
5451 test -z "$LD" && LD="$ac_prog"
5452 ;;
5453 "")
5454 # If it fails, then pretend we aren't using GCC.
5455 ac_prog=ld
5456 ;;
5457 *)
5458 # If it is relative, then search for the first ld in PATH.
5459 with_gnu_ld=unknown
5460 ;;
5461 esac
5462elif test "$with_gnu_ld" = yes; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5464$as_echo_n "checking for GNU ld... " >&6; }
5465else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5467$as_echo_n "checking for non-GNU ld... " >&6; }
5468fi
f00f02a3 5469if ${lt_cv_path_LD+:} false; then :
03385ed3 5470 $as_echo_n "(cached) " >&6
5471else
5472 if test -z "$LD"; then
5473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH; do
5475 IFS="$lt_save_ifs"
5476 test -z "$ac_dir" && ac_dir=.
5477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5478 lt_cv_path_LD="$ac_dir/$ac_prog"
5479 # Check to see if the program is GNU ld. I'd rather use --version,
5480 # but apparently some variants of GNU ld only accept -v.
5481 # Break only if it was the GNU/non-GNU ld that we prefer.
5482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5483 *GNU* | *'with BFD'*)
5484 test "$with_gnu_ld" != no && break
5485 ;;
5486 *)
5487 test "$with_gnu_ld" != yes && break
5488 ;;
5489 esac
5490 fi
5491 done
5492 IFS="$lt_save_ifs"
5493else
5494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5495fi
5496fi
5497
5498LD="$lt_cv_path_LD"
5499if test -n "$LD"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5501$as_echo "$LD" >&6; }
5502else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505fi
f00f02a3 5506test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
03385ed3 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5508$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
f00f02a3 5509if ${lt_cv_prog_gnu_ld+:} false; then :
03385ed3 5510 $as_echo_n "(cached) " >&6
5511else
5512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5513case `$LD -v 2>&1 </dev/null` in
5514*GNU* | *'with BFD'*)
5515 lt_cv_prog_gnu_ld=yes
5516 ;;
5517*)
5518 lt_cv_prog_gnu_ld=no
5519 ;;
5520esac
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5523$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5524with_gnu_ld=$lt_cv_prog_gnu_ld
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5535$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
f00f02a3 5536if ${lt_cv_path_NM+:} false; then :
03385ed3 5537 $as_echo_n "(cached) " >&6
5538else
5539 if test -n "$NM"; then
5540 # Let the user override the test.
5541 lt_cv_path_NM="$NM"
5542else
5543 lt_nm_to_check="${ac_tool_prefix}nm"
5544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5545 lt_nm_to_check="$lt_nm_to_check nm"
5546 fi
5547 for lt_tmp_nm in $lt_nm_to_check; do
5548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5550 IFS="$lt_save_ifs"
5551 test -z "$ac_dir" && ac_dir=.
5552 tmp_nm="$ac_dir/$lt_tmp_nm"
5553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5554 # Check to see if the nm accepts a BSD-compat flag.
5555 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5556 # nm: unknown option "B" ignored
5557 # Tru64's nm complains that /dev/null is an invalid object file
5558 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5559 */dev/null* | *'Invalid file or object type'*)
5560 lt_cv_path_NM="$tmp_nm -B"
5561 break
5562 ;;
5563 *)
5564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5565 */dev/null*)
5566 lt_cv_path_NM="$tmp_nm -p"
5567 break
5568 ;;
5569 *)
5570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5571 continue # so that we can try to find one that supports BSD flags
5572 ;;
5573 esac
5574 ;;
5575 esac
5576 fi
5577 done
5578 IFS="$lt_save_ifs"
5579 done
5580 : ${lt_cv_path_NM=no}
5581fi
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5584$as_echo "$lt_cv_path_NM" >&6; }
5585if test "$lt_cv_path_NM" != "no"; then
5586 NM="$lt_cv_path_NM"
5587else
5588 # Didn't find any BSD compatible name lister, look for dumpbin.
5589 if test -n "$DUMPBIN"; then :
5590 # Let the user override the test.
5591 else
5592 if test -n "$ac_tool_prefix"; then
5593 for ac_prog in dumpbin "link -dump"
5594 do
5595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5599if ${ac_cv_prog_DUMPBIN+:} false; then :
03385ed3 5600 $as_echo_n "(cached) " >&6
5601else
5602 if test -n "$DUMPBIN"; then
5603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 5612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616done
5617 done
5618IFS=$as_save_IFS
5619
5620fi
5621fi
5622DUMPBIN=$ac_cv_prog_DUMPBIN
5623if test -n "$DUMPBIN"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5625$as_echo "$DUMPBIN" >&6; }
5626else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }
5629fi
5630
5631
5632 test -n "$DUMPBIN" && break
5633 done
5634fi
5635if test -z "$DUMPBIN"; then
5636 ac_ct_DUMPBIN=$DUMPBIN
5637 for ac_prog in dumpbin "link -dump"
5638do
5639 # Extract the first word of "$ac_prog", so it can be a program name with args.
5640set dummy $ac_prog; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5643if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
03385ed3 5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$ac_ct_DUMPBIN"; then
5647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 5656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5667if test -n "$ac_ct_DUMPBIN"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5669$as_echo "$ac_ct_DUMPBIN" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675
5676 test -n "$ac_ct_DUMPBIN" && break
5677done
5678
5679 if test "x$ac_ct_DUMPBIN" = x; then
5680 DUMPBIN=":"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683yes:)
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686ac_tool_warned=yes ;;
5687esac
5688 DUMPBIN=$ac_ct_DUMPBIN
5689 fi
5690fi
5691
5692 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5693 *COFF*)
5694 DUMPBIN="$DUMPBIN -symbols"
5695 ;;
5696 *)
5697 DUMPBIN=:
5698 ;;
5699 esac
5700 fi
5701
5702 if test "$DUMPBIN" != ":"; then
5703 NM="$DUMPBIN"
5704 fi
5705fi
5706test -z "$NM" && NM=nm
5707
5708
5709
5710
5711
5712
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5714$as_echo_n "checking the name lister ($NM) interface... " >&6; }
f00f02a3 5715if ${lt_cv_nm_interface+:} false; then :
03385ed3 5716 $as_echo_n "(cached) " >&6
5717else
5718 lt_cv_nm_interface="BSD nm"
5719 echo "int some_variable = 0;" > conftest.$ac_ext
5720 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5721 (eval "$ac_compile" 2>conftest.err)
5722 cat conftest.err >&5
5723 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5724 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5725 cat conftest.err >&5
5726 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5727 cat conftest.out >&5
5728 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5729 lt_cv_nm_interface="MS dumpbin"
5730 fi
5731 rm -f conftest*
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5734$as_echo "$lt_cv_nm_interface" >&6; }
5735
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5737$as_echo_n "checking whether ln -s works... " >&6; }
5738LN_S=$as_ln_s
5739if test "$LN_S" = "ln -s"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741$as_echo "yes" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5744$as_echo "no, using $LN_S" >&6; }
5745fi
5746
5747# find the maximum length of command line arguments
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5749$as_echo_n "checking the maximum length of command line arguments... " >&6; }
f00f02a3 5750if ${lt_cv_sys_max_cmd_len+:} false; then :
03385ed3 5751 $as_echo_n "(cached) " >&6
5752else
5753 i=0
5754 teststring="ABCD"
5755
5756 case $build_os in
5757 msdosdjgpp*)
5758 # On DJGPP, this test can blow up pretty badly due to problems in libc
5759 # (any single argument exceeding 2000 bytes causes a buffer overrun
5760 # during glob expansion). Even if it were fixed, the result of this
5761 # check would be larger than it should be.
5762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5763 ;;
5764
5765 gnu*)
5766 # Under GNU Hurd, this test is not required because there is
5767 # no limit to the length of command line arguments.
5768 # Libtool will interpret -1 as no limit whatsoever
5769 lt_cv_sys_max_cmd_len=-1;
5770 ;;
5771
5772 cygwin* | mingw* | cegcc*)
5773 # On Win9x/ME, this test blows up -- it succeeds, but takes
5774 # about 5 minutes as the teststring grows exponentially.
5775 # Worse, since 9x/ME are not pre-emptively multitasking,
5776 # you end up with a "frozen" computer, even though with patience
5777 # the test eventually succeeds (with a max line length of 256k).
5778 # Instead, let's just punt: use the minimum linelength reported by
5779 # all of the supported platforms: 8192 (on NT/2K/XP).
5780 lt_cv_sys_max_cmd_len=8192;
5781 ;;
5782
5783 mint*)
5784 # On MiNT this can take a long time and run out of memory.
5785 lt_cv_sys_max_cmd_len=8192;
5786 ;;
5787
5788 amigaos*)
5789 # On AmigaOS with pdksh, this test takes hours, literally.
5790 # So we just punt and use a minimum line length of 8192.
5791 lt_cv_sys_max_cmd_len=8192;
5792 ;;
5793
5794 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5795 # This has been around since 386BSD, at least. Likely further.
5796 if test -x /sbin/sysctl; then
5797 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5798 elif test -x /usr/sbin/sysctl; then
5799 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5800 else
5801 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5802 fi
5803 # And add a safety zone
5804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5806 ;;
5807
5808 interix*)
5809 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5810 lt_cv_sys_max_cmd_len=196608
5811 ;;
5812
5813 osf*)
5814 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5815 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5816 # nice to cause kernel panics so lets avoid the loop below.
5817 # First set a reasonable default.
5818 lt_cv_sys_max_cmd_len=16384
5819 #
5820 if test -x /sbin/sysconfig; then
5821 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5822 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5823 esac
5824 fi
5825 ;;
5826 sco3.2v5*)
5827 lt_cv_sys_max_cmd_len=102400
5828 ;;
5829 sysv5* | sco5v6* | sysv4.2uw2*)
5830 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5831 if test -n "$kargmax"; then
5832 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5833 else
5834 lt_cv_sys_max_cmd_len=32768
5835 fi
5836 ;;
5837 *)
5838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5839 if test -n "$lt_cv_sys_max_cmd_len"; then
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5842 else
5843 # Make teststring a little bigger before we do anything with it.
5844 # a 1K string should be a reasonable start.
5845 for i in 1 2 3 4 5 6 7 8 ; do
5846 teststring=$teststring$teststring
5847 done
5848 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5849 # If test is not a shell built-in, we'll probably end up computing a
5850 # maximum length that is only half of the actual maximum length, but
5851 # we can't tell.
5852 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5853 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5854 test $i != 17 # 1/2 MB should be enough
5855 do
5856 i=`expr $i + 1`
5857 teststring=$teststring$teststring
5858 done
5859 # Only check the string length outside the loop.
5860 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5861 teststring=
5862 # Add a significant safety factor because C++ compilers can tack on
5863 # massive amounts of additional arguments before passing them to the
5864 # linker. It appears as though 1/2 is a usable value.
5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5866 fi
5867 ;;
5868 esac
5869
5870fi
5871
5872if test -n $lt_cv_sys_max_cmd_len ; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5874$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5875else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5877$as_echo "none" >&6; }
5878fi
5879max_cmd_len=$lt_cv_sys_max_cmd_len
5880
5881
5882
5883
5884
5885
5886: ${CP="cp -f"}
5887: ${MV="mv -f"}
5888: ${RM="rm -f"}
5889
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5891$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5892# Try some XSI features
5893xsi_shell=no
5894( _lt_dummy="a/b/c"
5895 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5896 = c,a/b,, \
5897 && eval 'test $(( 1 + 1 )) -eq 2 \
5898 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5899 && xsi_shell=yes
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5901$as_echo "$xsi_shell" >&6; }
5902
5903
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5905$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5906lt_shell_append=no
5907( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5908 >/dev/null 2>&1 \
5909 && lt_shell_append=yes
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5911$as_echo "$lt_shell_append" >&6; }
5912
5913
5914if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5915 lt_unset=unset
5916else
5917 lt_unset=false
5918fi
5919
5920
5921
5922
5923
5924# test EBCDIC or ASCII
5925case `echo X|tr X '\101'` in
5926 A) # ASCII based system
5927 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5928 lt_SP2NL='tr \040 \012'
5929 lt_NL2SP='tr \015\012 \040\040'
5930 ;;
5931 *) # EBCDIC based system
5932 lt_SP2NL='tr \100 \n'
5933 lt_NL2SP='tr \r\n \100\100'
5934 ;;
5935esac
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5946$as_echo_n "checking for $LD option to reload object files... " >&6; }
f00f02a3 5947if ${lt_cv_ld_reload_flag+:} false; then :
03385ed3 5948 $as_echo_n "(cached) " >&6
5949else
5950 lt_cv_ld_reload_flag='-r'
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5953$as_echo "$lt_cv_ld_reload_flag" >&6; }
5954reload_flag=$lt_cv_ld_reload_flag
5955case $reload_flag in
5956"" | " "*) ;;
5957*) reload_flag=" $reload_flag" ;;
5958esac
5959reload_cmds='$LD$reload_flag -o $output$reload_objs'
5960case $host_os in
5961 darwin*)
5962 if test "$GCC" = yes; then
5963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5964 else
5965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5966 fi
5967 ;;
5968esac
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5980set dummy ${ac_tool_prefix}objdump; ac_word=$2
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5983if ${ac_cv_prog_OBJDUMP+:} false; then :
03385ed3 5984 $as_echo_n "(cached) " >&6
5985else
5986 if test -n "$OBJDUMP"; then
5987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 5996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000done
6001 done
6002IFS=$as_save_IFS
6003
6004fi
6005fi
6006OBJDUMP=$ac_cv_prog_OBJDUMP
6007if test -n "$OBJDUMP"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6009$as_echo "$OBJDUMP" >&6; }
6010else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }
6013fi
6014
6015
6016fi
6017if test -z "$ac_cv_prog_OBJDUMP"; then
6018 ac_ct_OBJDUMP=$OBJDUMP
6019 # Extract the first word of "objdump", so it can be a program name with args.
6020set dummy objdump; ac_word=$2
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6023if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
03385ed3 6024 $as_echo_n "(cached) " >&6
6025else
6026 if test -n "$ac_ct_OBJDUMP"; then
6027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6028else
6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030for as_dir in $PATH
6031do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6036 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040done
6041 done
6042IFS=$as_save_IFS
6043
6044fi
6045fi
6046ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6047if test -n "$ac_ct_OBJDUMP"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6049$as_echo "$ac_ct_OBJDUMP" >&6; }
6050else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052$as_echo "no" >&6; }
6053fi
6054
6055 if test "x$ac_ct_OBJDUMP" = x; then
6056 OBJDUMP="false"
6057 else
6058 case $cross_compiling:$ac_tool_warned in
6059yes:)
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6062ac_tool_warned=yes ;;
6063esac
6064 OBJDUMP=$ac_ct_OBJDUMP
6065 fi
6066else
6067 OBJDUMP="$ac_cv_prog_OBJDUMP"
6068fi
6069
6070test -z "$OBJDUMP" && OBJDUMP=objdump
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6081$as_echo_n "checking how to recognize dependent libraries... " >&6; }
f00f02a3 6082if ${lt_cv_deplibs_check_method+:} false; then :
03385ed3 6083 $as_echo_n "(cached) " >&6
6084else
6085 lt_cv_file_magic_cmd='$MAGIC_CMD'
6086lt_cv_file_magic_test_file=
6087lt_cv_deplibs_check_method='unknown'
6088# Need to set the preceding variable on all platforms that support
6089# interlibrary dependencies.
6090# 'none' -- dependencies not supported.
6091# `unknown' -- same as none, but documents that we really don't know.
6092# 'pass_all' -- all dependencies passed with no checks.
6093# 'test_compile' -- check by making test program.
6094# 'file_magic [[regex]]' -- check by looking for files in library path
6095# which responds to the $file_magic_cmd with a given extended regex.
6096# If you have `file' or equivalent on your system and you're not sure
6097# whether `pass_all' will *always* work, you probably want this one.
6098
6099case $host_os in
6100aix[4-9]*)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103
6104beos*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108bsdi[45]*)
6109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6110 lt_cv_file_magic_cmd='/usr/bin/file -L'
6111 lt_cv_file_magic_test_file=/shlib/libc.so
6112 ;;
6113
6114cygwin*)
6115 # func_win32_libid is a shell function defined in ltmain.sh
6116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6117 lt_cv_file_magic_cmd='func_win32_libid'
6118 ;;
6119
6120mingw* | pw32*)
6121 # Base MSYS/MinGW do not provide the 'file' command needed by
6122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6123 # unless we find 'file', for example because we are cross-compiling.
6124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6127 lt_cv_file_magic_cmd='func_win32_libid'
6128 else
6129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6130 lt_cv_file_magic_cmd='$OBJDUMP -f'
6131 fi
6132 ;;
6133
6134cegcc*)
6135 # use the weaker test based on 'objdump'. See mingw*.
6136 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6137 lt_cv_file_magic_cmd='$OBJDUMP -f'
6138 ;;
6139
6140darwin* | rhapsody*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144freebsd* | dragonfly*)
6145 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6146 case $host_cpu in
6147 i*86 )
6148 # Not sure whether the presence of OpenBSD here was a mistake.
6149 # Let's accept both of them until this is cleared up.
6150 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6151 lt_cv_file_magic_cmd=/usr/bin/file
6152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6153 ;;
6154 esac
6155 else
6156 lt_cv_deplibs_check_method=pass_all
6157 fi
6158 ;;
6159
6160gnu*)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164haiku*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168hpux10.20* | hpux11*)
6169 lt_cv_file_magic_cmd=/usr/bin/file
6170 case $host_cpu in
6171 ia64*)
6172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6174 ;;
6175 hppa*64*)
6176 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]'
6177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6178 ;;
6179 *)
6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6182 ;;
6183 esac
6184 ;;
6185
6186interix[3-9]*)
6187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6189 ;;
6190
6191irix5* | irix6* | nonstopux*)
6192 case $LD in
6193 *-32|*"-32 ") libmagic=32-bit;;
6194 *-n32|*"-n32 ") libmagic=N32;;
6195 *-64|*"-64 ") libmagic=64-bit;;
6196 *) libmagic=never-match;;
6197 esac
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200
6201# This must be Linux ELF.
6202linux* | k*bsd*-gnu | kopensolaris*-gnu)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206netbsd*)
6207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6209 else
6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6211 fi
6212 ;;
6213
6214newos6*)
6215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6216 lt_cv_file_magic_cmd=/usr/bin/file
6217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6218 ;;
6219
6220*nto* | *qnx*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224openbsd*)
6225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6227 else
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6229 fi
6230 ;;
6231
6232osf3* | osf4* | osf5*)
6233 lt_cv_deplibs_check_method=pass_all
6234 ;;
6235
6236rdos*)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239
6240solaris*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247
6248sysv4 | sysv4.3*)
6249 case $host_vendor in
6250 motorola)
6251 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]'
6252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6253 ;;
6254 ncr)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257 sequent)
6258 lt_cv_file_magic_cmd='/bin/file'
6259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6260 ;;
6261 sni)
6262 lt_cv_file_magic_cmd='/bin/file'
6263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6264 lt_cv_file_magic_test_file=/lib/libc.so
6265 ;;
6266 siemens)
6267 lt_cv_deplibs_check_method=pass_all
6268 ;;
6269 pc)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272 esac
6273 ;;
6274
6275tpf*)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6278esac
6279
6280fi
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6282$as_echo "$lt_cv_deplibs_check_method" >&6; }
6283file_magic_cmd=$lt_cv_file_magic_cmd
6284deplibs_check_method=$lt_cv_deplibs_check_method
6285test -z "$deplibs_check_method" && deplibs_check_method=unknown
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6300set dummy ${ac_tool_prefix}ar; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6303if ${ac_cv_prog_AR+:} false; then :
03385ed3 6304 $as_echo_n "(cached) " >&6
6305else
6306 if test -n "$AR"; then
6307 ac_cv_prog_AR="$AR" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6316 ac_cv_prog_AR="${ac_tool_prefix}ar"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321 done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326AR=$ac_cv_prog_AR
6327if test -n "$AR"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6329$as_echo "$AR" >&6; }
6330else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335
6336fi
6337if test -z "$ac_cv_prog_AR"; then
6338 ac_ct_AR=$AR
6339 # Extract the first word of "ar", so it can be a program name with args.
6340set dummy ar; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6343if ${ac_cv_prog_ac_ct_AR+:} false; then :
03385ed3 6344 $as_echo_n "(cached) " >&6
6345else
6346 if test -n "$ac_ct_AR"; then
6347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6356 ac_cv_prog_ac_ct_AR="ar"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361 done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_AR=$ac_cv_prog_ac_ct_AR
6367if test -n "$ac_ct_AR"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6369$as_echo "$ac_ct_AR" >&6; }
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375 if test "x$ac_ct_AR" = x; then
6376 AR="false"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379yes:)
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382ac_tool_warned=yes ;;
6383esac
6384 AR=$ac_ct_AR
6385 fi
6386else
6387 AR="$ac_cv_prog_AR"
6388fi
6389
6390test -z "$AR" && AR=ar
6391test -z "$AR_FLAGS" && AR_FLAGS=cru
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6405set dummy ${ac_tool_prefix}strip; ac_word=$2
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6408if ${ac_cv_prog_STRIP+:} false; then :
03385ed3 6409 $as_echo_n "(cached) " >&6
6410else
6411 if test -n "$STRIP"; then
6412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425done
6426 done
6427IFS=$as_save_IFS
6428
6429fi
6430fi
6431STRIP=$ac_cv_prog_STRIP
6432if test -n "$STRIP"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6434$as_echo "$STRIP" >&6; }
6435else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437$as_echo "no" >&6; }
6438fi
6439
6440
6441fi
6442if test -z "$ac_cv_prog_STRIP"; then
6443 ac_ct_STRIP=$STRIP
6444 # Extract the first word of "strip", so it can be a program name with args.
6445set dummy strip; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6448if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
03385ed3 6449 $as_echo_n "(cached) " >&6
6450else
6451 if test -n "$ac_ct_STRIP"; then
6452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6461 ac_cv_prog_ac_ct_STRIP="strip"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466 done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6472if test -n "$ac_ct_STRIP"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6474$as_echo "$ac_ct_STRIP" >&6; }
6475else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480 if test "x$ac_ct_STRIP" = x; then
6481 STRIP=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484yes:)
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487ac_tool_warned=yes ;;
6488esac
6489 STRIP=$ac_ct_STRIP
6490 fi
6491else
6492 STRIP="$ac_cv_prog_STRIP"
6493fi
6494
6495test -z "$STRIP" && STRIP=:
6496
6497
6498
6499
6500
6501
6502if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6504set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6507if ${ac_cv_prog_RANLIB+:} false; then :
03385ed3 6508 $as_echo_n "(cached) " >&6
6509else
6510 if test -n "$RANLIB"; then
6511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524done
6525 done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530RANLIB=$ac_cv_prog_RANLIB
6531if test -n "$RANLIB"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6533$as_echo "$RANLIB" >&6; }
6534else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539
6540fi
6541if test -z "$ac_cv_prog_RANLIB"; then
6542 ac_ct_RANLIB=$RANLIB
6543 # Extract the first word of "ranlib", so it can be a program name with args.
6544set dummy ranlib; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6547if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
03385ed3 6548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$ac_ct_RANLIB"; then
6551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 6560 ac_cv_prog_ac_ct_RANLIB="ranlib"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564done
6565 done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6571if test -n "$ac_ct_RANLIB"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6573$as_echo "$ac_ct_RANLIB" >&6; }
6574else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579 if test "x$ac_ct_RANLIB" = x; then
6580 RANLIB=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583yes:)
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586ac_tool_warned=yes ;;
6587esac
6588 RANLIB=$ac_ct_RANLIB
6589 fi
6590else
6591 RANLIB="$ac_cv_prog_RANLIB"
6592fi
6593
6594test -z "$RANLIB" && RANLIB=:
6595
6596
6597
6598
6599
6600
6601# Determine commands to create old-style static archives.
6602old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6603old_postinstall_cmds='chmod 644 $oldlib'
6604old_postuninstall_cmds=
6605
6606if test -n "$RANLIB"; then
6607 case $host_os in
6608 openbsd*)
6609 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6610 ;;
6611 *)
6612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6613 ;;
6614 esac
6615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6616fi
6617
6618case $host_os in
6619 darwin*)
6620 lock_old_archive_extraction=yes ;;
6621 *)
6622 lock_old_archive_extraction=no ;;
6623esac
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663# If no C compiler was specified, use CC.
6664LTCC=${LTCC-"$CC"}
6665
6666# If no C compiler flags were specified, use CFLAGS.
6667LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6668
6669# Allow CC to be a program name with arguments.
6670compiler=$CC
6671
6672
6673# Check for command to grab the raw symbol name followed by C symbol from nm.
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6675$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
f00f02a3 6676if ${lt_cv_sys_global_symbol_pipe+:} false; then :
03385ed3 6677 $as_echo_n "(cached) " >&6
6678else
6679
6680# These are sane defaults that work on at least a few old systems.
6681# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6682
6683# Character class describing NM global symbol codes.
6684symcode='[BCDEGRST]'
6685
6686# Regexp to match symbols that can be accessed directly from C.
6687sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6688
6689# Define system-specific variables.
6690case $host_os in
6691aix*)
6692 symcode='[BCDT]'
6693 ;;
6694cygwin* | mingw* | pw32* | cegcc*)
6695 symcode='[ABCDGISTW]'
6696 ;;
6697hpux*)
6698 if test "$host_cpu" = ia64; then
6699 symcode='[ABCDEGRST]'
6700 fi
6701 ;;
6702irix* | nonstopux*)
6703 symcode='[BCDEGRST]'
6704 ;;
6705osf*)
6706 symcode='[BCDEGQRST]'
6707 ;;
6708solaris*)
6709 symcode='[BDRT]'
6710 ;;
6711sco3.2v5*)
6712 symcode='[DT]'
6713 ;;
6714sysv4.2uw2*)
6715 symcode='[DT]'
6716 ;;
6717sysv5* | sco5v6* | unixware* | OpenUNIX*)
6718 symcode='[ABDT]'
6719 ;;
6720sysv4)
6721 symcode='[DFNSTU]'
6722 ;;
6723esac
6724
6725# If we're using GNU nm, then use its standard symbol codes.
6726case `$NM -V 2>&1` in
6727*GNU* | *'with BFD'*)
6728 symcode='[ABCDGIRSTW]' ;;
6729esac
6730
6731# Transform an extracted symbol line into a proper C declaration.
6732# Some systems (esp. on ia64) link data and code symbols differently,
6733# so use this general approach.
6734lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6735
6736# Transform an extracted symbol line into symbol name and symbol address
6737lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6738lt_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'"
6739
6740# Handle CRLF in mingw tool chain
6741opt_cr=
6742case $build_os in
6743mingw*)
6744 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6745 ;;
6746esac
6747
6748# Try without a prefix underscore, then with it.
6749for ac_symprfx in "" "_"; do
6750
6751 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6752 symxfrm="\\1 $ac_symprfx\\2 \\2"
6753
6754 # Write the raw and C identifiers.
6755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6756 # Fake it for dumpbin and say T for any non-static function
6757 # and D for any global variable.
6758 # Also find C++ and __fastcall symbols from MSVC++,
6759 # which start with @ or ?.
6760 lt_cv_sys_global_symbol_pipe="$AWK '"\
6761" {last_section=section; section=\$ 3};"\
6762" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6763" \$ 0!~/External *\|/{next};"\
6764" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6765" {if(hide[section]) next};"\
6766" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6767" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6768" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6769" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6770" ' prfx=^$ac_symprfx"
6771 else
6772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6773 fi
6774
6775 # Check to see that the pipe works correctly.
6776 pipe_works=no
6777
6778 rm -f conftest*
6779 cat > conftest.$ac_ext <<_LT_EOF
6780#ifdef __cplusplus
6781extern "C" {
6782#endif
6783char nm_test_var;
6784void nm_test_func(void);
6785void nm_test_func(void){}
6786#ifdef __cplusplus
6787}
6788#endif
6789int main(){nm_test_var='a';nm_test_func();return(0);}
6790_LT_EOF
6791
6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793 (eval $ac_compile) 2>&5
6794 ac_status=$?
6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }; then
6797 # Now try to grab the symbols.
6798 nlist=conftest.nm
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6800 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6801 ac_status=$?
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; } && test -s "$nlist"; then
6804 # Try sorting and uniquifying the output.
6805 if sort "$nlist" | uniq > "$nlist"T; then
6806 mv -f "$nlist"T "$nlist"
6807 else
6808 rm -f "$nlist"T
6809 fi
6810
6811 # Make sure that we snagged all the symbols we need.
6812 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6813 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6814 cat <<_LT_EOF > conftest.$ac_ext
6815#ifdef __cplusplus
6816extern "C" {
6817#endif
6818
6819_LT_EOF
6820 # Now generate the symbol file.
6821 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6822
6823 cat <<_LT_EOF >> conftest.$ac_ext
6824
6825/* The mapping between symbol names and symbols. */
6826const struct {
6827 const char *name;
6828 void *address;
6829}
6830lt__PROGRAM__LTX_preloaded_symbols[] =
6831{
6832 { "@PROGRAM@", (void *) 0 },
6833_LT_EOF
6834 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6835 cat <<\_LT_EOF >> conftest.$ac_ext
6836 {0, (void *) 0}
6837};
6838
6839/* This works around a problem in FreeBSD linker */
6840#ifdef FREEBSD_WORKAROUND
6841static const void *lt_preloaded_setup() {
6842 return lt__PROGRAM__LTX_preloaded_symbols;
6843}
6844#endif
6845
6846#ifdef __cplusplus
6847}
6848#endif
6849_LT_EOF
6850 # Now try linking the two files.
6851 mv conftest.$ac_objext conftstm.$ac_objext
6852 lt_save_LIBS="$LIBS"
6853 lt_save_CFLAGS="$CFLAGS"
6854 LIBS="conftstm.$ac_objext"
6855 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6857 (eval $ac_link) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6861 pipe_works=yes
6862 fi
6863 LIBS="$lt_save_LIBS"
6864 CFLAGS="$lt_save_CFLAGS"
6865 else
6866 echo "cannot find nm_test_func in $nlist" >&5
6867 fi
6868 else
6869 echo "cannot find nm_test_var in $nlist" >&5
6870 fi
6871 else
6872 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6873 fi
6874 else
6875 echo "$progname: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6877 fi
6878 rm -rf conftest* conftst*
6879
6880 # Do not use the global_symbol_pipe unless it works.
6881 if test "$pipe_works" = yes; then
6882 break
6883 else
6884 lt_cv_sys_global_symbol_pipe=
6885 fi
6886done
6887
6888fi
6889
6890if test -z "$lt_cv_sys_global_symbol_pipe"; then
6891 lt_cv_sys_global_symbol_to_cdecl=
6892fi
6893if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6895$as_echo "failed" >&6; }
6896else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6898$as_echo "ok" >&6; }
6899fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923# Check whether --enable-libtool-lock was given.
6924if test "${enable_libtool_lock+set}" = set; then :
6925 enableval=$enable_libtool_lock;
6926fi
6927
6928test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6929
6930# Some flags need to be propagated to the compiler or linker for good
6931# libtool support.
6932case $host in
6933ia64-*-hpux*)
6934 # Find out which ABI we are using.
6935 echo 'int i;' > conftest.$ac_ext
6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940 test $ac_status = 0; }; then
6941 case `/usr/bin/file conftest.$ac_objext` in
6942 *ELF-32*)
6943 HPUX_IA64_MODE="32"
6944 ;;
6945 *ELF-64*)
6946 HPUX_IA64_MODE="64"
6947 ;;
6948 esac
6949 fi
6950 rm -rf conftest*
6951 ;;
6952*-*-irix6*)
6953 # Find out which ABI we are using.
6954 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956 (eval $ac_compile) 2>&5
6957 ac_status=$?
6958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959 test $ac_status = 0; }; then
6960 if test "$lt_cv_prog_gnu_ld" = yes; then
6961 case `/usr/bin/file conftest.$ac_objext` in
6962 *32-bit*)
6963 LD="${LD-ld} -melf32bsmip"
6964 ;;
6965 *N32*)
6966 LD="${LD-ld} -melf32bmipn32"
6967 ;;
6968 *64-bit*)
6969 LD="${LD-ld} -melf64bmip"
6970 ;;
6971 esac
6972 else
6973 case `/usr/bin/file conftest.$ac_objext` in
6974 *32-bit*)
6975 LD="${LD-ld} -32"
6976 ;;
6977 *N32*)
6978 LD="${LD-ld} -n32"
6979 ;;
6980 *64-bit*)
6981 LD="${LD-ld} -64"
6982 ;;
6983 esac
6984 fi
6985 fi
6986 rm -rf conftest*
6987 ;;
6988
6989x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6990s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6991 # Find out which ABI we are using.
6992 echo 'int i;' > conftest.$ac_ext
6993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6994 (eval $ac_compile) 2>&5
6995 ac_status=$?
6996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6997 test $ac_status = 0; }; then
6998 case `/usr/bin/file conftest.o` in
6999 *32-bit*)
7000 case $host in
7001 x86_64-*kfreebsd*-gnu)
7002 LD="${LD-ld} -m elf_i386_fbsd"
7003 ;;
7004 x86_64-*linux*)
7005 case `/usr/bin/file conftest.o` in
7006 *x86-64*)
7007 LD="${LD-ld} -m elf32_x86_64"
7008 ;;
7009 *)
7010 LD="${LD-ld} -m elf_i386"
7011 ;;
7012 esac
7013 ;;
7014 powerpc64le-*linux*)
7015 LD="${LD-ld} -m elf32lppclinux"
7016 ;;
7017 powerpc64-*linux*)
7018 LD="${LD-ld} -m elf32ppclinux"
7019 ;;
7020 s390x-*linux*)
7021 LD="${LD-ld} -m elf_s390"
7022 ;;
7023 sparc64-*linux*)
7024 LD="${LD-ld} -m elf32_sparc"
7025 ;;
7026 esac
7027 ;;
7028 *64-bit*)
7029 case $host in
7030 x86_64-*kfreebsd*-gnu)
7031 LD="${LD-ld} -m elf_x86_64_fbsd"
7032 ;;
7033 x86_64-*linux*)
7034 LD="${LD-ld} -m elf_x86_64"
7035 ;;
7036 powerpcle-*linux*)
7037 LD="${LD-ld} -m elf64lppc"
7038 ;;
7039 powerpc-*linux*)
7040 LD="${LD-ld} -m elf64ppc"
7041 ;;
7042 s390*-*linux*|s390*-*tpf*)
7043 LD="${LD-ld} -m elf64_s390"
7044 ;;
7045 sparc*-*linux*)
7046 LD="${LD-ld} -m elf64_sparc"
7047 ;;
7048 esac
7049 ;;
7050 esac
7051 fi
7052 rm -rf conftest*
7053 ;;
7054
7055*-*-sco3.2v5*)
7056 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7057 SAVE_CFLAGS="$CFLAGS"
7058 CFLAGS="$CFLAGS -belf"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7060$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
f00f02a3 7061if ${lt_cv_cc_needs_belf+:} false; then :
03385ed3 7062 $as_echo_n "(cached) " >&6
7063else
7064 ac_ext=c
7065ac_cpp='$CPP $CPPFLAGS'
7066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_c_compiler_gnu
7069
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h. */
7072
7073int
7074main ()
7075{
7076
7077 ;
7078 return 0;
7079}
7080_ACEOF
7081if ac_fn_c_try_link "$LINENO"; then :
7082 lt_cv_cc_needs_belf=yes
7083else
7084 lt_cv_cc_needs_belf=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7088 ac_ext=c
7089ac_cpp='$CPP $CPPFLAGS'
7090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7096$as_echo "$lt_cv_cc_needs_belf" >&6; }
7097 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7098 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7099 CFLAGS="$SAVE_CFLAGS"
7100 fi
7101 ;;
7102sparc*-*solaris*)
7103 # Find out which ABI we are using.
7104 echo 'int i;' > conftest.$ac_ext
7105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7106 (eval $ac_compile) 2>&5
7107 ac_status=$?
7108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109 test $ac_status = 0; }; then
7110 case `/usr/bin/file conftest.o` in
7111 *64-bit*)
7112 case $lt_cv_prog_gnu_ld in
7113 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7114 *)
7115 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7116 LD="${LD-ld} -64"
7117 fi
7118 ;;
7119 esac
7120 ;;
7121 esac
7122 fi
7123 rm -rf conftest*
7124 ;;
7125esac
7126
7127need_locks="$enable_libtool_lock"
7128
7129
7130 case $host_os in
7131 rhapsody* | darwin*)
7132 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7137if ${ac_cv_prog_DSYMUTIL+:} false; then :
03385ed3 7138 $as_echo_n "(cached) " >&6
7139else
7140 if test -n "$DSYMUTIL"; then
7141 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7150 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155 done
7156IFS=$as_save_IFS
7157
7158fi
7159fi
7160DSYMUTIL=$ac_cv_prog_DSYMUTIL
7161if test -n "$DSYMUTIL"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7163$as_echo "$DSYMUTIL" >&6; }
7164else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166$as_echo "no" >&6; }
7167fi
7168
7169
7170fi
7171if test -z "$ac_cv_prog_DSYMUTIL"; then
7172 ac_ct_DSYMUTIL=$DSYMUTIL
7173 # Extract the first word of "dsymutil", so it can be a program name with args.
7174set dummy dsymutil; ac_word=$2
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7177if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
03385ed3 7178 $as_echo_n "(cached) " >&6
7179else
7180 if test -n "$ac_ct_DSYMUTIL"; then
7181 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7190 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194done
7195 done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7201if test -n "$ac_ct_DSYMUTIL"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7203$as_echo "$ac_ct_DSYMUTIL" >&6; }
7204else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206$as_echo "no" >&6; }
7207fi
7208
7209 if test "x$ac_ct_DSYMUTIL" = x; then
7210 DSYMUTIL=":"
7211 else
7212 case $cross_compiling:$ac_tool_warned in
7213yes:)
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216ac_tool_warned=yes ;;
7217esac
7218 DSYMUTIL=$ac_ct_DSYMUTIL
7219 fi
7220else
7221 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7222fi
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7229if ${ac_cv_prog_NMEDIT+:} false; then :
03385ed3 7230 $as_echo_n "(cached) " >&6
7231else
7232 if test -n "$NMEDIT"; then
7233 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7242 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247 done
7248IFS=$as_save_IFS
7249
7250fi
7251fi
7252NMEDIT=$ac_cv_prog_NMEDIT
7253if test -n "$NMEDIT"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7255$as_echo "$NMEDIT" >&6; }
7256else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258$as_echo "no" >&6; }
7259fi
7260
7261
7262fi
7263if test -z "$ac_cv_prog_NMEDIT"; then
7264 ac_ct_NMEDIT=$NMEDIT
7265 # Extract the first word of "nmedit", so it can be a program name with args.
7266set dummy nmedit; ac_word=$2
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7269if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
03385ed3 7270 $as_echo_n "(cached) " >&6
7271else
7272 if test -n "$ac_ct_NMEDIT"; then
7273 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7282 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286done
7287 done
7288IFS=$as_save_IFS
7289
7290fi
7291fi
7292ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7293if test -n "$ac_ct_NMEDIT"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7295$as_echo "$ac_ct_NMEDIT" >&6; }
7296else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
7299fi
7300
7301 if test "x$ac_ct_NMEDIT" = x; then
7302 NMEDIT=":"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305yes:)
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308ac_tool_warned=yes ;;
7309esac
7310 NMEDIT=$ac_ct_NMEDIT
7311 fi
7312else
7313 NMEDIT="$ac_cv_prog_NMEDIT"
7314fi
7315
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7318set dummy ${ac_tool_prefix}lipo; ac_word=$2
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7321if ${ac_cv_prog_LIPO+:} false; then :
03385ed3 7322 $as_echo_n "(cached) " >&6
7323else
7324 if test -n "$LIPO"; then
7325 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7334 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338done
7339 done
7340IFS=$as_save_IFS
7341
7342fi
7343fi
7344LIPO=$ac_cv_prog_LIPO
7345if test -n "$LIPO"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7347$as_echo "$LIPO" >&6; }
7348else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353
7354fi
7355if test -z "$ac_cv_prog_LIPO"; then
7356 ac_ct_LIPO=$LIPO
7357 # Extract the first word of "lipo", so it can be a program name with args.
7358set dummy lipo; ac_word=$2
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7361if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
03385ed3 7362 $as_echo_n "(cached) " >&6
7363else
7364 if test -n "$ac_ct_LIPO"; then
7365 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7374 ac_cv_prog_ac_ct_LIPO="lipo"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379 done
7380IFS=$as_save_IFS
7381
7382fi
7383fi
7384ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7385if test -n "$ac_ct_LIPO"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7387$as_echo "$ac_ct_LIPO" >&6; }
7388else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390$as_echo "no" >&6; }
7391fi
7392
7393 if test "x$ac_ct_LIPO" = x; then
7394 LIPO=":"
7395 else
7396 case $cross_compiling:$ac_tool_warned in
7397yes:)
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400ac_tool_warned=yes ;;
7401esac
7402 LIPO=$ac_ct_LIPO
7403 fi
7404else
7405 LIPO="$ac_cv_prog_LIPO"
7406fi
7407
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7410set dummy ${ac_tool_prefix}otool; ac_word=$2
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7413if ${ac_cv_prog_OTOOL+:} false; then :
03385ed3 7414 $as_echo_n "(cached) " >&6
7415else
7416 if test -n "$OTOOL"; then
7417 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7426 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430done
7431 done
7432IFS=$as_save_IFS
7433
7434fi
7435fi
7436OTOOL=$ac_cv_prog_OTOOL
7437if test -n "$OTOOL"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7439$as_echo "$OTOOL" >&6; }
7440else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444
7445
7446fi
7447if test -z "$ac_cv_prog_OTOOL"; then
7448 ac_ct_OTOOL=$OTOOL
7449 # Extract the first word of "otool", so it can be a program name with args.
7450set dummy otool; ac_word=$2
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7453if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
03385ed3 7454 $as_echo_n "(cached) " >&6
7455else
7456 if test -n "$ac_ct_OTOOL"; then
7457 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7466 ac_cv_prog_ac_ct_OTOOL="otool"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470done
7471 done
7472IFS=$as_save_IFS
7473
7474fi
7475fi
7476ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7477if test -n "$ac_ct_OTOOL"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7479$as_echo "$ac_ct_OTOOL" >&6; }
7480else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482$as_echo "no" >&6; }
7483fi
7484
7485 if test "x$ac_ct_OTOOL" = x; then
7486 OTOOL=":"
7487 else
7488 case $cross_compiling:$ac_tool_warned in
7489yes:)
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492ac_tool_warned=yes ;;
7493esac
7494 OTOOL=$ac_ct_OTOOL
7495 fi
7496else
7497 OTOOL="$ac_cv_prog_OTOOL"
7498fi
7499
7500 if test -n "$ac_tool_prefix"; then
7501 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7502set dummy ${ac_tool_prefix}otool64; ac_word=$2
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7505if ${ac_cv_prog_OTOOL64+:} false; then :
03385ed3 7506 $as_echo_n "(cached) " >&6
7507else
7508 if test -n "$OTOOL64"; then
7509 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7510else
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7518 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523 done
7524IFS=$as_save_IFS
7525
7526fi
7527fi
7528OTOOL64=$ac_cv_prog_OTOOL64
7529if test -n "$OTOOL64"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7531$as_echo "$OTOOL64" >&6; }
7532else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534$as_echo "no" >&6; }
7535fi
7536
7537
7538fi
7539if test -z "$ac_cv_prog_OTOOL64"; then
7540 ac_ct_OTOOL64=$OTOOL64
7541 # Extract the first word of "otool64", so it can be a program name with args.
7542set dummy otool64; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7545if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
03385ed3 7546 $as_echo_n "(cached) " >&6
7547else
7548 if test -n "$ac_ct_OTOOL64"; then
7549 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 7558 ac_cv_prog_ac_ct_OTOOL64="otool64"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563 done
7564IFS=$as_save_IFS
7565
7566fi
7567fi
7568ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7569if test -n "$ac_ct_OTOOL64"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7571$as_echo "$ac_ct_OTOOL64" >&6; }
7572else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
7576
7577 if test "x$ac_ct_OTOOL64" = x; then
7578 OTOOL64=":"
7579 else
7580 case $cross_compiling:$ac_tool_warned in
7581yes:)
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584ac_tool_warned=yes ;;
7585esac
7586 OTOOL64=$ac_ct_OTOOL64
7587 fi
7588else
7589 OTOOL64="$ac_cv_prog_OTOOL64"
7590fi
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7619$as_echo_n "checking for -single_module linker flag... " >&6; }
f00f02a3 7620if ${lt_cv_apple_cc_single_mod+:} false; then :
03385ed3 7621 $as_echo_n "(cached) " >&6
7622else
7623 lt_cv_apple_cc_single_mod=no
7624 if test -z "${LT_MULTI_MODULE}"; then
7625 # By default we will add the -single_module flag. You can override
7626 # by either setting the environment variable LT_MULTI_MODULE
7627 # non-empty at configure time, or by adding -multi_module to the
7628 # link flags.
7629 rm -rf libconftest.dylib*
7630 echo "int foo(void){return 1;}" > conftest.c
7631 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7632-dynamiclib -Wl,-single_module conftest.c" >&5
7633 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7634 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7635 _lt_result=$?
7636 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7637 lt_cv_apple_cc_single_mod=yes
7638 else
7639 cat conftest.err >&5
7640 fi
7641 rm -rf libconftest.dylib*
7642 rm -f conftest.*
7643 fi
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7646$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7648$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
f00f02a3 7649if ${lt_cv_ld_exported_symbols_list+:} false; then :
03385ed3 7650 $as_echo_n "(cached) " >&6
7651else
7652 lt_cv_ld_exported_symbols_list=no
7653 save_LDFLAGS=$LDFLAGS
7654 echo "_main" > conftest.sym
7655 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h. */
7658
7659int
7660main ()
7661{
7662
7663 ;
7664 return 0;
7665}
7666_ACEOF
7667if ac_fn_c_try_link "$LINENO"; then :
7668 lt_cv_ld_exported_symbols_list=yes
7669else
7670 lt_cv_ld_exported_symbols_list=no
7671fi
7672rm -f core conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 LDFLAGS="$save_LDFLAGS"
7675
7676fi
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7678$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7680$as_echo_n "checking for -force_load linker flag... " >&6; }
f00f02a3 7681if ${lt_cv_ld_force_load+:} false; then :
03385ed3 7682 $as_echo_n "(cached) " >&6
7683else
7684 lt_cv_ld_force_load=no
7685 cat > conftest.c << _LT_EOF
7686int forced_loaded() { return 2;}
7687_LT_EOF
7688 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7689 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7690 echo "$AR cru libconftest.a conftest.o" >&5
7691 $AR cru libconftest.a conftest.o 2>&5
7692 cat > conftest.c << _LT_EOF
7693int main() { return 0;}
7694_LT_EOF
7695 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7696 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7697 _lt_result=$?
7698 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7699 lt_cv_ld_force_load=yes
7700 else
7701 cat conftest.err >&5
7702 fi
7703 rm -f conftest.err libconftest.a conftest conftest.c
7704 rm -rf conftest.dSYM
7705
7706fi
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7708$as_echo "$lt_cv_ld_force_load" >&6; }
7709 case $host_os in
7710 rhapsody* | darwin1.[012])
7711 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7712 darwin1.*)
7713 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7714 darwin*) # darwin 5.x on
7715 # if running on 10.5 or later, the deployment target defaults
7716 # to the OS version, if on x86, and 10.4, the deployment
7717 # target defaults to 10.4. Don't you love it?
7718 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7719 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7720 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7721 10.[012][,.]*)
7722 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7723 10.*)
7724 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7725 esac
7726 ;;
7727 esac
7728 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7729 _lt_dar_single_mod='$single_module'
7730 fi
7731 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7732 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7733 else
7734 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7735 fi
7736 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7737 _lt_dsymutil='~$DSYMUTIL $lib || :'
7738 else
7739 _lt_dsymutil=
7740 fi
7741 ;;
7742 esac
7743
7744ac_ext=c
7745ac_cpp='$CPP $CPPFLAGS'
7746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7750$as_echo_n "checking how to run the C preprocessor... " >&6; }
7751# On Suns, sometimes $CPP names a directory.
7752if test -n "$CPP" && test -d "$CPP"; then
7753 CPP=
7754fi
7755if test -z "$CPP"; then
f00f02a3 7756 if ${ac_cv_prog_CPP+:} false; then :
03385ed3 7757 $as_echo_n "(cached) " >&6
7758else
7759 # Double quotes because CPP needs to be expanded
7760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7761 do
7762 ac_preproc_ok=false
7763for ac_c_preproc_warn_flag in '' yes
7764do
7765 # Use a header file that comes with gcc, so configuring glibc
7766 # with a fresh cross-compiler works.
7767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7768 # <limits.h> exists even on freestanding compilers.
7769 # On the NeXT, cc -E runs the code through the compiler's parser,
7770 # not just through cpp. "Syntax error" is here to catch this case.
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h. */
7773#ifdef __STDC__
7774# include <limits.h>
7775#else
7776# include <assert.h>
7777#endif
7778 Syntax error
7779_ACEOF
7780if ac_fn_c_try_cpp "$LINENO"; then :
7781
7782else
7783 # Broken: fails on valid input.
7784continue
7785fi
f00f02a3 7786rm -f conftest.err conftest.i conftest.$ac_ext
03385ed3 7787
7788 # OK, works on sane cases. Now check whether nonexistent headers
7789 # can be detected and how.
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h. */
7792#include <ac_nonexistent.h>
7793_ACEOF
7794if ac_fn_c_try_cpp "$LINENO"; then :
7795 # Broken: success on invalid input.
7796continue
7797else
7798 # Passes both tests.
7799ac_preproc_ok=:
7800break
7801fi
f00f02a3 7802rm -f conftest.err conftest.i conftest.$ac_ext
03385ed3 7803
7804done
7805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 7806rm -f conftest.i conftest.err conftest.$ac_ext
03385ed3 7807if $ac_preproc_ok; then :
7808 break
7809fi
7810
7811 done
7812 ac_cv_prog_CPP=$CPP
7813
7814fi
7815 CPP=$ac_cv_prog_CPP
7816else
7817 ac_cv_prog_CPP=$CPP
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7820$as_echo "$CPP" >&6; }
7821ac_preproc_ok=false
7822for ac_c_preproc_warn_flag in '' yes
7823do
7824 # Use a header file that comes with gcc, so configuring glibc
7825 # with a fresh cross-compiler works.
7826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7827 # <limits.h> exists even on freestanding compilers.
7828 # On the NeXT, cc -E runs the code through the compiler's parser,
7829 # not just through cpp. "Syntax error" is here to catch this case.
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h. */
7832#ifdef __STDC__
7833# include <limits.h>
7834#else
7835# include <assert.h>
7836#endif
7837 Syntax error
7838_ACEOF
7839if ac_fn_c_try_cpp "$LINENO"; then :
7840
7841else
7842 # Broken: fails on valid input.
7843continue
7844fi
f00f02a3 7845rm -f conftest.err conftest.i conftest.$ac_ext
03385ed3 7846
7847 # OK, works on sane cases. Now check whether nonexistent headers
7848 # can be detected and how.
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h. */
7851#include <ac_nonexistent.h>
7852_ACEOF
7853if ac_fn_c_try_cpp "$LINENO"; then :
7854 # Broken: success on invalid input.
7855continue
7856else
7857 # Passes both tests.
7858ac_preproc_ok=:
7859break
7860fi
f00f02a3 7861rm -f conftest.err conftest.i conftest.$ac_ext
03385ed3 7862
7863done
7864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 7865rm -f conftest.i conftest.err conftest.$ac_ext
03385ed3 7866if $ac_preproc_ok; then :
7867
7868else
7869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 7871as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7872See \`config.log' for more details" "$LINENO" 5; }
03385ed3 7873fi
7874
7875ac_ext=c
7876ac_cpp='$CPP $CPPFLAGS'
7877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880
7881
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7883$as_echo_n "checking for ANSI C header files... " >&6; }
f00f02a3 7884if ${ac_cv_header_stdc+:} false; then :
03385ed3 7885 $as_echo_n "(cached) " >&6
7886else
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h. */
7889#include <stdlib.h>
7890#include <stdarg.h>
7891#include <string.h>
7892#include <float.h>
7893
7894int
7895main ()
7896{
7897
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903 ac_cv_header_stdc=yes
7904else
7905 ac_cv_header_stdc=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
7909if test $ac_cv_header_stdc = yes; then
7910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h. */
7913#include <string.h>
7914
7915_ACEOF
7916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917 $EGREP "memchr" >/dev/null 2>&1; then :
7918
7919else
7920 ac_cv_header_stdc=no
7921fi
7922rm -f conftest*
7923
7924fi
7925
7926if test $ac_cv_header_stdc = yes; then
7927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h. */
7930#include <stdlib.h>
7931
7932_ACEOF
7933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7934 $EGREP "free" >/dev/null 2>&1; then :
7935
7936else
7937 ac_cv_header_stdc=no
7938fi
7939rm -f conftest*
7940
7941fi
7942
7943if test $ac_cv_header_stdc = yes; then
7944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7945 if test "$cross_compiling" = yes; then :
7946 :
7947else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950#include <ctype.h>
7951#include <stdlib.h>
7952#if ((' ' & 0x0FF) == 0x020)
7953# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7954# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7955#else
7956# define ISLOWER(c) \
7957 (('a' <= (c) && (c) <= 'i') \
7958 || ('j' <= (c) && (c) <= 'r') \
7959 || ('s' <= (c) && (c) <= 'z'))
7960# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7961#endif
7962
7963#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7964int
7965main ()
7966{
7967 int i;
7968 for (i = 0; i < 256; i++)
7969 if (XOR (islower (i), ISLOWER (i))
7970 || toupper (i) != TOUPPER (i))
7971 return 2;
7972 return 0;
7973}
7974_ACEOF
7975if ac_fn_c_try_run "$LINENO"; then :
7976
7977else
7978 ac_cv_header_stdc=no
7979fi
7980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7981 conftest.$ac_objext conftest.beam conftest.$ac_ext
7982fi
7983
7984fi
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7987$as_echo "$ac_cv_header_stdc" >&6; }
7988if test $ac_cv_header_stdc = yes; then
7989
7990$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7991
7992fi
7993
7994# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7995for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7996 inttypes.h stdint.h unistd.h
7997do :
7998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7999ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8000"
f00f02a3 8001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
03385ed3 8002 cat >>confdefs.h <<_ACEOF
8003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8004_ACEOF
8005
8006fi
8007
8008done
8009
8010
8011for ac_header in dlfcn.h
8012do :
8013 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8014"
f00f02a3 8015if test "x$ac_cv_header_dlfcn_h" = xyes; then :
03385ed3 8016 cat >>confdefs.h <<_ACEOF
8017#define HAVE_DLFCN_H 1
8018_ACEOF
8019
8020fi
8021
8022done
8023
8024
8025
8026
8027
8028# Set options
8029enable_dlopen=yes
8030
8031
8032
8033
8034 enable_win32_dll=no
8035
8036
8037 # Check whether --enable-shared was given.
8038if test "${enable_shared+set}" = set; then :
8039 enableval=$enable_shared; p=${PACKAGE-default}
8040 case $enableval in
8041 yes) enable_shared=yes ;;
8042 no) enable_shared=no ;;
8043 *)
8044 enable_shared=no
8045 # Look at the argument we got. We use all the common list separators.
8046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8047 for pkg in $enableval; do
8048 IFS="$lt_save_ifs"
8049 if test "X$pkg" = "X$p"; then
8050 enable_shared=yes
8051 fi
8052 done
8053 IFS="$lt_save_ifs"
8054 ;;
8055 esac
8056else
8057 enable_shared=yes
8058fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068 # Check whether --enable-static was given.
8069if test "${enable_static+set}" = set; then :
8070 enableval=$enable_static; p=${PACKAGE-default}
8071 case $enableval in
8072 yes) enable_static=yes ;;
8073 no) enable_static=no ;;
8074 *)
8075 enable_static=no
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for pkg in $enableval; do
8079 IFS="$lt_save_ifs"
8080 if test "X$pkg" = "X$p"; then
8081 enable_static=yes
8082 fi
8083 done
8084 IFS="$lt_save_ifs"
8085 ;;
8086 esac
8087else
8088 enable_static=yes
8089fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100# Check whether --with-pic was given.
8101if test "${with_pic+set}" = set; then :
8102 withval=$with_pic; pic_mode="$withval"
8103else
8104 pic_mode=default
8105fi
8106
8107
8108test -z "$pic_mode" && pic_mode=default
8109
8110
8111
8112
8113
8114
8115
8116 # Check whether --enable-fast-install was given.
8117if test "${enable_fast_install+set}" = set; then :
8118 enableval=$enable_fast_install; p=${PACKAGE-default}
8119 case $enableval in
8120 yes) enable_fast_install=yes ;;
8121 no) enable_fast_install=no ;;
8122 *)
8123 enable_fast_install=no
8124 # Look at the argument we got. We use all the common list separators.
8125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8126 for pkg in $enableval; do
8127 IFS="$lt_save_ifs"
8128 if test "X$pkg" = "X$p"; then
8129 enable_fast_install=yes
8130 fi
8131 done
8132 IFS="$lt_save_ifs"
8133 ;;
8134 esac
8135else
8136 enable_fast_install=yes
8137fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149# This can be used to rebuild libtool when needed
8150LIBTOOL_DEPS="$ltmain"
8151
8152# Always use our own libtool.
8153LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180test -z "$LN_S" && LN_S="ln -s"
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195if test -n "${ZSH_VERSION+set}" ; then
8196 setopt NO_GLOB_SUBST
8197fi
8198
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8200$as_echo_n "checking for objdir... " >&6; }
f00f02a3 8201if ${lt_cv_objdir+:} false; then :
03385ed3 8202 $as_echo_n "(cached) " >&6
8203else
8204 rm -f .libs 2>/dev/null
8205mkdir .libs 2>/dev/null
8206if test -d .libs; then
8207 lt_cv_objdir=.libs
8208else
8209 # MS-DOS does not allow filenames that begin with a dot.
8210 lt_cv_objdir=_libs
8211fi
8212rmdir .libs 2>/dev/null
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8215$as_echo "$lt_cv_objdir" >&6; }
8216objdir=$lt_cv_objdir
8217
8218
8219
8220
8221
8222cat >>confdefs.h <<_ACEOF
8223#define LT_OBJDIR "$lt_cv_objdir/"
8224_ACEOF
8225
8226
8227
8228
8229case $host_os in
8230aix3*)
8231 # AIX sometimes has problems with the GCC collect2 program. For some
8232 # reason, if we set the COLLECT_NAMES environment variable, the problems
8233 # vanish in a puff of smoke.
8234 if test "X${COLLECT_NAMES+set}" != Xset; then
8235 COLLECT_NAMES=
8236 export COLLECT_NAMES
8237 fi
8238 ;;
8239esac
8240
8241# Global variables:
8242ofile=libtool
8243can_build_shared=yes
8244
8245# All known linkers require a `.a' archive for static linking (except MSVC,
8246# which needs '.lib').
8247libext=a
8248
8249with_gnu_ld="$lt_cv_prog_gnu_ld"
8250
8251old_CC="$CC"
8252old_CFLAGS="$CFLAGS"
8253
8254# Set sane defaults for various variables
8255test -z "$CC" && CC=cc
8256test -z "$LTCC" && LTCC=$CC
8257test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8258test -z "$LD" && LD=ld
8259test -z "$ac_objext" && ac_objext=o
8260
8261for cc_temp in $compiler""; do
8262 case $cc_temp in
8263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8265 \-*) ;;
8266 *) break;;
8267 esac
8268done
8269cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8270
8271
8272# Only perform the check for file, if the check method requires it
8273test -z "$MAGIC_CMD" && MAGIC_CMD=file
8274case $deplibs_check_method in
8275file_magic*)
8276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8278$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
f00f02a3 8279if ${lt_cv_path_MAGIC_CMD+:} false; then :
03385ed3 8280 $as_echo_n "(cached) " >&6
8281else
8282 case $MAGIC_CMD in
8283[\\/*] | ?:[\\/]*)
8284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8285 ;;
8286*)
8287 lt_save_MAGIC_CMD="$MAGIC_CMD"
8288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8290 for ac_dir in $ac_dummy; do
8291 IFS="$lt_save_ifs"
8292 test -z "$ac_dir" && ac_dir=.
8293 if test -f $ac_dir/${ac_tool_prefix}file; then
8294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8295 if test -n "$file_magic_test_file"; then
8296 case $deplibs_check_method in
8297 "file_magic "*)
8298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8301 $EGREP "$file_magic_regex" > /dev/null; then
8302 :
8303 else
8304 cat <<_LT_EOF 1>&2
8305
8306*** Warning: the command libtool uses to detect shared libraries,
8307*** $file_magic_cmd, produces output that libtool cannot recognize.
8308*** The result is that libtool may fail to recognize shared libraries
8309*** as such. This will affect the creation of libtool libraries that
8310*** depend on shared libraries, but programs linked with such libtool
8311*** libraries will work regardless of this problem. Nevertheless, you
8312*** may want to report the problem to your system manager and/or to
8313*** bug-libtool@gnu.org
8314
8315_LT_EOF
8316 fi ;;
8317 esac
8318 fi
8319 break
8320 fi
8321 done
8322 IFS="$lt_save_ifs"
8323 MAGIC_CMD="$lt_save_MAGIC_CMD"
8324 ;;
8325esac
8326fi
8327
8328MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8329if test -n "$MAGIC_CMD"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8331$as_echo "$MAGIC_CMD" >&6; }
8332else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
8335fi
8336
8337
8338
8339
8340
8341if test -z "$lt_cv_path_MAGIC_CMD"; then
8342 if test -n "$ac_tool_prefix"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8344$as_echo_n "checking for file... " >&6; }
f00f02a3 8345if ${lt_cv_path_MAGIC_CMD+:} false; then :
03385ed3 8346 $as_echo_n "(cached) " >&6
8347else
8348 case $MAGIC_CMD in
8349[\\/*] | ?:[\\/]*)
8350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8351 ;;
8352*)
8353 lt_save_MAGIC_CMD="$MAGIC_CMD"
8354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8356 for ac_dir in $ac_dummy; do
8357 IFS="$lt_save_ifs"
8358 test -z "$ac_dir" && ac_dir=.
8359 if test -f $ac_dir/file; then
8360 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8361 if test -n "$file_magic_test_file"; then
8362 case $deplibs_check_method in
8363 "file_magic "*)
8364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8367 $EGREP "$file_magic_regex" > /dev/null; then
8368 :
8369 else
8370 cat <<_LT_EOF 1>&2
8371
8372*** Warning: the command libtool uses to detect shared libraries,
8373*** $file_magic_cmd, produces output that libtool cannot recognize.
8374*** The result is that libtool may fail to recognize shared libraries
8375*** as such. This will affect the creation of libtool libraries that
8376*** depend on shared libraries, but programs linked with such libtool
8377*** libraries will work regardless of this problem. Nevertheless, you
8378*** may want to report the problem to your system manager and/or to
8379*** bug-libtool@gnu.org
8380
8381_LT_EOF
8382 fi ;;
8383 esac
8384 fi
8385 break
8386 fi
8387 done
8388 IFS="$lt_save_ifs"
8389 MAGIC_CMD="$lt_save_MAGIC_CMD"
8390 ;;
8391esac
8392fi
8393
8394MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395if test -n "$MAGIC_CMD"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8397$as_echo "$MAGIC_CMD" >&6; }
8398else
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
8401fi
8402
8403
8404 else
8405 MAGIC_CMD=:
8406 fi
8407fi
8408
8409 fi
8410 ;;
8411esac
8412
8413# Use C for the default configuration in the libtool script
8414
8415lt_save_CC="$CC"
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
8423# Source file extension for C test sources.
8424ac_ext=c
8425
8426# Object file extension for compiled C test sources.
8427objext=o
8428objext=$objext
8429
8430# Code to be used in simple compile tests
8431lt_simple_compile_test_code="int some_variable = 0;"
8432
8433# Code to be used in simple link tests
8434lt_simple_link_test_code='int main(){return(0);}'
8435
8436
8437
8438
8439
8440
8441
8442# If no C compiler was specified, use CC.
8443LTCC=${LTCC-"$CC"}
8444
8445# If no C compiler flags were specified, use CFLAGS.
8446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8447
8448# Allow CC to be a program name with arguments.
8449compiler=$CC
8450
8451# Save the default compiler, since it gets overwritten when the other
8452# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8453compiler_DEFAULT=$CC
8454
8455# save warnings/boilerplate of simple test code
8456ac_outfile=conftest.$ac_objext
8457echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8458eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8459_lt_compiler_boilerplate=`cat conftest.err`
8460$RM conftest*
8461
8462ac_outfile=conftest.$ac_objext
8463echo "$lt_simple_link_test_code" >conftest.$ac_ext
8464eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8465_lt_linker_boilerplate=`cat conftest.err`
8466$RM -r conftest*
8467
8468
8469## CAVEAT EMPTOR:
8470## There is no encapsulation within the following macros, do not change
8471## the running order or otherwise move them around unless you know exactly
8472## what you are doing...
8473if test -n "$compiler"; then
8474
8475lt_prog_compiler_no_builtin_flag=
8476
8477if test "$GCC" = yes; then
8478 case $cc_basename in
8479 nvcc*)
8480 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8481 *)
8482 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8483 esac
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8486$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
f00f02a3 8487if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
03385ed3 8488 $as_echo_n "(cached) " >&6
8489else
8490 lt_cv_prog_compiler_rtti_exceptions=no
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 lt_compiler_flag="-fno-rtti -fno-exceptions"
8494 # Insert the option either (1) after the last *FLAGS variable, or
8495 # (2) before a word containing "conftest.", or (3) at the end.
8496 # Note that $ac_compile itself does not contain backslashes and begins
8497 # with a dollar sign (not a hyphen), so the echo should work correctly.
8498 # The option is referenced via a variable to avoid confusing sed.
8499 lt_compile=`echo "$ac_compile" | $SED \
8500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502 -e 's:$: $lt_compiler_flag:'`
8503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504 (eval "$lt_compile" 2>conftest.err)
8505 ac_status=$?
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 if (exit $ac_status) && test -s "$ac_outfile"; then
8509 # The compiler can only warn and ignore the option if not recognized
8510 # So say no if there are warnings other than the usual output.
8511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_rtti_exceptions=yes
8515 fi
8516 fi
8517 $RM conftest*
8518
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8521$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8522
8523if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8524 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8525else
8526 :
8527fi
8528
8529fi
8530
8531
8532
8533
8534
8535
8536 lt_prog_compiler_wl=
8537lt_prog_compiler_pic=
8538lt_prog_compiler_static=
8539
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8541$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8542
8543 if test "$GCC" = yes; then
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_static='-static'
8546
8547 case $host_os in
8548 aix*)
8549 # All AIX code is PIC.
8550 if test "$host_cpu" = ia64; then
8551 # AIX 5 now supports IA64 processor
8552 lt_prog_compiler_static='-Bstatic'
8553 fi
8554 lt_prog_compiler_pic='-fPIC'
8555 ;;
8556
8557 amigaos*)
8558 case $host_cpu in
8559 powerpc)
8560 # see comment about AmigaOS4 .so support
8561 lt_prog_compiler_pic='-fPIC'
8562 ;;
8563 m68k)
8564 # FIXME: we need at least 68020 code to build shared libraries, but
8565 # adding the `-m68020' flag to GCC prevents building anything better,
8566 # like `-m68040'.
8567 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8568 ;;
8569 esac
8570 ;;
8571
8572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8573 # PIC is the default for these OSes.
8574 ;;
8575
8576 mingw* | cygwin* | pw32* | os2* | cegcc*)
8577 # This hack is so that the source file can tell whether it is being
8578 # built for inclusion in a dll (and should export symbols for example).
8579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8580 # (--disable-auto-import) libraries
8581 lt_prog_compiler_pic='-DDLL_EXPORT'
8582 ;;
8583
8584 darwin* | rhapsody*)
8585 # PIC is the default on this platform
8586 # Common symbols not allowed in MH_DYLIB files
8587 lt_prog_compiler_pic='-fno-common'
8588 ;;
8589
8590 haiku*)
8591 # PIC is the default for Haiku.
8592 # The "-static" flag exists, but is broken.
8593 lt_prog_compiler_static=
8594 ;;
8595
8596 hpux*)
8597 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8598 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8599 # sets the default TLS model and affects inlining.
8600 case $host_cpu in
8601 hppa*64*)
8602 # +Z the default
8603 ;;
8604 *)
8605 lt_prog_compiler_pic='-fPIC'
8606 ;;
8607 esac
8608 ;;
8609
8610 interix[3-9]*)
8611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8612 # Instead, we relocate shared libraries at runtime.
8613 ;;
8614
8615 msdosdjgpp*)
8616 # Just because we use GCC doesn't mean we suddenly get shared libraries
8617 # on systems that don't support them.
8618 lt_prog_compiler_can_build_shared=no
8619 enable_shared=no
8620 ;;
8621
8622 *nto* | *qnx*)
8623 # QNX uses GNU C++, but need to define -shared option too, otherwise
8624 # it will coredump.
8625 lt_prog_compiler_pic='-fPIC -shared'
8626 ;;
8627
8628 sysv4*MP*)
8629 if test -d /usr/nec; then
8630 lt_prog_compiler_pic=-Kconform_pic
8631 fi
8632 ;;
8633
8634 *)
8635 lt_prog_compiler_pic='-fPIC'
8636 ;;
8637 esac
8638
8639 case $cc_basename in
8640 nvcc*) # Cuda Compiler Driver 2.2
8641 lt_prog_compiler_wl='-Xlinker '
8642 lt_prog_compiler_pic='-Xcompiler -fPIC'
8643 ;;
8644 esac
8645 else
8646 # PORTME Check for flag to pass linker flags through the system compiler.
8647 case $host_os in
8648 aix*)
8649 lt_prog_compiler_wl='-Wl,'
8650 if test "$host_cpu" = ia64; then
8651 # AIX 5 now supports IA64 processor
8652 lt_prog_compiler_static='-Bstatic'
8653 else
8654 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8655 fi
8656 ;;
8657
8658 mingw* | cygwin* | pw32* | os2* | cegcc*)
8659 # This hack is so that the source file can tell whether it is being
8660 # built for inclusion in a dll (and should export symbols for example).
8661 lt_prog_compiler_pic='-DDLL_EXPORT'
8662 ;;
8663
8664 hpux9* | hpux10* | hpux11*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667 # not for PA HP-UX.
8668 case $host_cpu in
8669 hppa*64*|ia64*)
8670 # +Z the default
8671 ;;
8672 *)
8673 lt_prog_compiler_pic='+Z'
8674 ;;
8675 esac
8676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677 lt_prog_compiler_static='${wl}-a ${wl}archive'
8678 ;;
8679
8680 irix5* | irix6* | nonstopux*)
8681 lt_prog_compiler_wl='-Wl,'
8682 # PIC (with -KPIC) is the default.
8683 lt_prog_compiler_static='-non_shared'
8684 ;;
8685
8686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8687 case $cc_basename in
8688 # old Intel for x86_64 which still supported -KPIC.
8689 ecc*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-static'
8693 ;;
8694 # icc used to be incompatible with GCC.
8695 # ICC 10 doesn't accept -KPIC any more.
8696 icc* | ifort*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-fPIC'
8699 lt_prog_compiler_static='-static'
8700 ;;
8701 # Lahey Fortran 8.1.
8702 lf95*)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='--shared'
8705 lt_prog_compiler_static='--static'
8706 ;;
8707 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8708 # Portland Group compilers (*not* the Pentium gcc compiler,
8709 # which looks to be a dead project)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-fpic'
8712 lt_prog_compiler_static='-Bstatic'
8713 ;;
8714 ccc*)
8715 lt_prog_compiler_wl='-Wl,'
8716 # All Alpha code is PIC.
8717 lt_prog_compiler_static='-non_shared'
8718 ;;
8719 xl* | bgxl* | bgf* | mpixl*)
8720 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-qpic'
8723 lt_prog_compiler_static='-qstaticlink'
8724 ;;
8725 *)
8726 case `$CC -V 2>&1 | sed 5q` in
8727 *Sun\ F* | *Sun*Fortran*)
8728 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl=''
8732 ;;
8733 *Sun\ C*)
8734 # Sun C 5.9
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_wl='-Wl,'
8738 ;;
8739 esac
8740 ;;
8741 esac
8742 ;;
8743
8744 newsos6)
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8747 ;;
8748
8749 *nto* | *qnx*)
8750 # QNX uses GNU C++, but need to define -shared option too, otherwise
8751 # it will coredump.
8752 lt_prog_compiler_pic='-fPIC -shared'
8753 ;;
8754
8755 osf3* | osf4* | osf5*)
8756 lt_prog_compiler_wl='-Wl,'
8757 # All OSF/1 code is PIC.
8758 lt_prog_compiler_static='-non_shared'
8759 ;;
8760
8761 rdos*)
8762 lt_prog_compiler_static='-non_shared'
8763 ;;
8764
8765 solaris*)
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-Bstatic'
8768 case $cc_basename in
8769 f77* | f90* | f95*)
8770 lt_prog_compiler_wl='-Qoption ld ';;
8771 *)
8772 lt_prog_compiler_wl='-Wl,';;
8773 esac
8774 ;;
8775
8776 sunos4*)
8777 lt_prog_compiler_wl='-Qoption ld '
8778 lt_prog_compiler_pic='-PIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 sysv4 | sysv4.2uw2* | sysv4.3*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8786 ;;
8787
8788 sysv4*MP*)
8789 if test -d /usr/nec ;then
8790 lt_prog_compiler_pic='-Kconform_pic'
8791 lt_prog_compiler_static='-Bstatic'
8792 fi
8793 ;;
8794
8795 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='-KPIC'
8798 lt_prog_compiler_static='-Bstatic'
8799 ;;
8800
8801 unicos*)
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_can_build_shared=no
8804 ;;
8805
8806 uts4*)
8807 lt_prog_compiler_pic='-pic'
8808 lt_prog_compiler_static='-Bstatic'
8809 ;;
8810
8811 *)
8812 lt_prog_compiler_can_build_shared=no
8813 ;;
8814 esac
8815 fi
8816
8817case $host_os in
8818 # For platforms which do not support PIC, -DPIC is meaningless:
8819 *djgpp*)
8820 lt_prog_compiler_pic=
8821 ;;
8822 *)
8823 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8824 ;;
8825esac
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8827$as_echo "$lt_prog_compiler_pic" >&6; }
8828
8829
8830
8831
8832
8833
8834#
8835# Check to make sure the PIC flag actually works.
8836#
8837if test -n "$lt_prog_compiler_pic"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
f00f02a3 8840if ${lt_cv_prog_compiler_pic_works+:} false; then :
03385ed3 8841 $as_echo_n "(cached) " >&6
8842else
8843 lt_cv_prog_compiler_pic_works=no
8844 ac_outfile=conftest.$ac_objext
8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 # The option is referenced via a variable to avoid confusing sed.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>conftest.err)
8858 ac_status=$?
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s "$ac_outfile"; then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings other than the usual output.
8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_pic_works=yes
8868 fi
8869 fi
8870 $RM conftest*
8871
8872fi
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8874$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8875
8876if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8877 case $lt_prog_compiler_pic in
8878 "" | " "*) ;;
8879 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8880 esac
8881else
8882 lt_prog_compiler_pic=
8883 lt_prog_compiler_can_build_shared=no
8884fi
8885
8886fi
8887
8888
8889
8890
8891
8892
8893#
8894# Check to make sure the static flag actually works.
8895#
8896wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8898$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 8899if ${lt_cv_prog_compiler_static_works+:} false; then :
03385ed3 8900 $as_echo_n "(cached) " >&6
8901else
8902 lt_cv_prog_compiler_static_works=no
8903 save_LDFLAGS="$LDFLAGS"
8904 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8905 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8907 # The linker can only warn and ignore the option if not recognized
8908 # So say no if there are warnings
8909 if test -s conftest.err; then
8910 # Append any errors to the config.log.
8911 cat conftest.err 1>&5
8912 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914 if diff conftest.exp conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler_static_works=yes
8916 fi
8917 else
8918 lt_cv_prog_compiler_static_works=yes
8919 fi
8920 fi
8921 $RM -r conftest*
8922 LDFLAGS="$save_LDFLAGS"
8923
8924fi
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8926$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8927
8928if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8929 :
8930else
8931 lt_prog_compiler_static=
8932fi
8933
8934
8935
8936
8937
8938
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8941$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 8942if ${lt_cv_prog_compiler_c_o+:} false; then :
03385ed3 8943 $as_echo_n "(cached) " >&6
8944else
8945 lt_cv_prog_compiler_c_o=no
8946 $RM -r conftest 2>/dev/null
8947 mkdir conftest
8948 cd conftest
8949 mkdir out
8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951
8952 lt_compiler_flag="-o out/conftest2.$ac_objext"
8953 # Insert the option either (1) after the last *FLAGS variable, or
8954 # (2) before a word containing "conftest.", or (3) at the end.
8955 # Note that $ac_compile itself does not contain backslashes and begins
8956 # with a dollar sign (not a hyphen), so the echo should work correctly.
8957 lt_compile=`echo "$ac_compile" | $SED \
8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960 -e 's:$: $lt_compiler_flag:'`
8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962 (eval "$lt_compile" 2>out/conftest.err)
8963 ac_status=$?
8964 cat out/conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8967 then
8968 # The compiler can only warn and ignore the option if not recognized
8969 # So say no if there are warnings
8970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8973 lt_cv_prog_compiler_c_o=yes
8974 fi
8975 fi
8976 chmod u+w . 2>&5
8977 $RM conftest*
8978 # SGI C++ compiler will create directory out/ii_files/ for
8979 # template instantiation
8980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8981 $RM out/* && rmdir out
8982 cd ..
8983 $RM -r conftest
8984 $RM conftest*
8985
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8988$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8989
8990
8991
8992
8993
8994
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8996$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 8997if ${lt_cv_prog_compiler_c_o+:} false; then :
03385ed3 8998 $as_echo_n "(cached) " >&6
8999else
9000 lt_cv_prog_compiler_c_o=no
9001 $RM -r conftest 2>/dev/null
9002 mkdir conftest
9003 cd conftest
9004 mkdir out
9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9006
9007 lt_compiler_flag="-o out/conftest2.$ac_objext"
9008 # Insert the option either (1) after the last *FLAGS variable, or
9009 # (2) before a word containing "conftest.", or (3) at the end.
9010 # Note that $ac_compile itself does not contain backslashes and begins
9011 # with a dollar sign (not a hyphen), so the echo should work correctly.
9012 lt_compile=`echo "$ac_compile" | $SED \
9013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9015 -e 's:$: $lt_compiler_flag:'`
9016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9017 (eval "$lt_compile" 2>out/conftest.err)
9018 ac_status=$?
9019 cat out/conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9022 then
9023 # The compiler can only warn and ignore the option if not recognized
9024 # So say no if there are warnings
9025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9028 lt_cv_prog_compiler_c_o=yes
9029 fi
9030 fi
9031 chmod u+w . 2>&5
9032 $RM conftest*
9033 # SGI C++ compiler will create directory out/ii_files/ for
9034 # template instantiation
9035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9036 $RM out/* && rmdir out
9037 cd ..
9038 $RM -r conftest
9039 $RM conftest*
9040
9041fi
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9043$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9044
9045
9046
9047
9048hard_links="nottested"
9049if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9050 # do not overwrite the value of need_locks provided by the user
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9052$as_echo_n "checking if we can lock with hard links... " >&6; }
9053 hard_links=yes
9054 $RM conftest*
9055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9056 touch conftest.a
9057 ln conftest.a conftest.b 2>&5 || hard_links=no
9058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9060$as_echo "$hard_links" >&6; }
9061 if test "$hard_links" = no; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9063$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9064 need_locks=warn
9065 fi
9066else
9067 need_locks=no
9068fi
9069
9070
9071
9072
9073
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9076$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9077
9078 runpath_var=
9079 allow_undefined_flag=
9080 always_export_symbols=no
9081 archive_cmds=
9082 archive_expsym_cmds=
9083 compiler_needs_object=no
9084 enable_shared_with_static_runtimes=no
9085 export_dynamic_flag_spec=
9086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9087 hardcode_automatic=no
9088 hardcode_direct=no
9089 hardcode_direct_absolute=no
9090 hardcode_libdir_flag_spec=
9091 hardcode_libdir_flag_spec_ld=
9092 hardcode_libdir_separator=
9093 hardcode_minus_L=no
9094 hardcode_shlibpath_var=unsupported
9095 inherit_rpath=no
9096 link_all_deplibs=unknown
9097 module_cmds=
9098 module_expsym_cmds=
9099 old_archive_from_new_cmds=
9100 old_archive_from_expsyms_cmds=
9101 thread_safe_flag_spec=
9102 whole_archive_flag_spec=
9103 # include_expsyms should be a list of space-separated symbols to be *always*
9104 # included in the symbol list
9105 include_expsyms=
9106 # exclude_expsyms can be an extended regexp of symbols to exclude
9107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9109 # as well as any symbol that contains `d'.
9110 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9112 # platforms (ab)use it in PIC code, but their linkers get confused if
9113 # the symbol is explicitly referenced. Since portable code cannot
9114 # rely on this symbol name, it's probably fine to never include it in
9115 # preloaded symbol tables.
9116 # Exclude shared library initialization/finalization symbols.
9117 extract_expsyms_cmds=
9118
9119 case $host_os in
9120 cygwin* | mingw* | pw32* | cegcc*)
9121 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9122 # When not using gcc, we currently assume that we are using
9123 # Microsoft Visual C++.
9124 if test "$GCC" != yes; then
9125 with_gnu_ld=no
9126 fi
9127 ;;
9128 interix*)
9129 # we just hope/assume this is gcc and not c89 (= MSVC++)
9130 with_gnu_ld=yes
9131 ;;
9132 openbsd*)
9133 with_gnu_ld=no
9134 ;;
9135 esac
9136
9137 ld_shlibs=yes
9138
9139 # On some targets, GNU ld is compatible enough with the native linker
9140 # that we're better off using the native interface for both.
9141 lt_use_gnu_ld_interface=no
9142 if test "$with_gnu_ld" = yes; then
9143 case $host_os in
9144 aix*)
9145 # The AIX port of GNU ld has always aspired to compatibility
9146 # with the native linker. However, as the warning in the GNU ld
9147 # block says, versions before 2.19.5* couldn't really create working
9148 # shared libraries, regardless of the interface used.
9149 case `$LD -v 2>&1` in
9150 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9151 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9152 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9153 *)
9154 lt_use_gnu_ld_interface=yes
9155 ;;
9156 esac
9157 ;;
9158 *)
9159 lt_use_gnu_ld_interface=yes
9160 ;;
9161 esac
9162 fi
9163
9164 if test "$lt_use_gnu_ld_interface" = yes; then
9165 # If archive_cmds runs LD, not CC, wlarc should be empty
9166 wlarc='${wl}'
9167
9168 # Set some defaults for GNU ld with shared library support. These
9169 # are reset later if shared libraries are not supported. Putting them
9170 # here allows them to be overridden if necessary.
9171 runpath_var=LD_RUN_PATH
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 export_dynamic_flag_spec='${wl}--export-dynamic'
9174 # ancient GNU ld didn't support --whole-archive et. al.
9175 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9176 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9177 else
9178 whole_archive_flag_spec=
9179 fi
9180 supports_anon_versioning=no
9181 case `$LD -v 2>&1` in
9182 *GNU\ gold*) supports_anon_versioning=yes ;;
9183 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9186 *\ 2.11.*) ;; # other 2.11 versions
9187 *) supports_anon_versioning=yes ;;
9188 esac
9189
9190 # See if GNU ld supports shared libraries.
9191 case $host_os in
9192 aix[3-9]*)
9193 # On AIX/PPC, the GNU linker is very broken
9194 if test "$host_cpu" != ia64; then
9195 ld_shlibs=no
9196 cat <<_LT_EOF 1>&2
9197
9198*** Warning: the GNU linker, at least up to release 2.19, is reported
9199*** to be unable to reliably create shared libraries on AIX.
9200*** Therefore, libtool is disabling shared libraries support. If you
9201*** really care for shared libraries, you may want to install binutils
9202*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9203*** You will then need to restart the configuration process.
9204
9205_LT_EOF
9206 fi
9207 ;;
9208
9209 amigaos*)
9210 case $host_cpu in
9211 powerpc)
9212 # see comment about AmigaOS4 .so support
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds=''
9215 ;;
9216 m68k)
9217 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)'
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_minus_L=yes
9220 ;;
9221 esac
9222 ;;
9223
9224 beos*)
9225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226 allow_undefined_flag=unsupported
9227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9228 # support --undefined. This deserves some investigation. FIXME
9229 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 else
9231 ld_shlibs=no
9232 fi
9233 ;;
9234
9235 cygwin* | mingw* | pw32* | cegcc*)
9236 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9237 # as there is no search path for DLLs.
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 export_dynamic_flag_spec='${wl}--export-all-symbols'
9240 allow_undefined_flag=unsupported
9241 always_export_symbols=no
9242 enable_shared_with_static_runtimes=yes
9243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9244
9245 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9247 # If the export-symbols file already is a .def file (1st line
9248 # is EXPORTS), use it as is; otherwise, prepend...
9249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9250 cp $export_symbols $output_objdir/$soname.def;
9251 else
9252 echo EXPORTS > $output_objdir/$soname.def;
9253 cat $export_symbols >> $output_objdir/$soname.def;
9254 fi~
9255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9256 else
9257 ld_shlibs=no
9258 fi
9259 ;;
9260
9261 haiku*)
9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 link_all_deplibs=yes
9264 ;;
9265
9266 interix[3-9]*)
9267 hardcode_direct=no
9268 hardcode_shlibpath_var=no
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270 export_dynamic_flag_spec='${wl}-E'
9271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9272 # Instead, shared libraries are loaded at an image base (0x10000000 by
9273 # default) and relocated if they conflict, which is a slow very memory
9274 # consuming and fragmenting process. To avoid this, we pick a random,
9275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9278 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'
9279 ;;
9280
9281 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9282 tmp_diet=no
9283 if test "$host_os" = linux-dietlibc; then
9284 case $cc_basename in
9285 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9286 esac
9287 fi
9288 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9289 && test "$tmp_diet" = no
9290 then
9291 tmp_addflag=' $pic_flag'
9292 tmp_sharedflag='-shared'
9293 case $cc_basename,$host_cpu in
9294 pgcc*) # Portland Group C compiler
9295 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9296 tmp_addflag=' $pic_flag'
9297 ;;
9298 pgf77* | pgf90* | pgf95* | pgfortran*)
9299 # Portland Group f77 and f90 compilers
9300 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'
9301 tmp_addflag=' $pic_flag -Mnomain' ;;
9302 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9303 tmp_addflag=' -i_dynamic' ;;
9304 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9305 tmp_addflag=' -i_dynamic -nofor_main' ;;
9306 ifc* | ifort*) # Intel Fortran compiler
9307 tmp_addflag=' -nofor_main' ;;
9308 lf95*) # Lahey Fortran 8.1
9309 whole_archive_flag_spec=
9310 tmp_sharedflag='--shared' ;;
9311 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9312 tmp_sharedflag='-qmkshrobj'
9313 tmp_addflag= ;;
9314 nvcc*) # Cuda Compiler Driver 2.2
9315 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'
9316 compiler_needs_object=yes
9317 ;;
9318 esac
9319 case `$CC -V 2>&1 | sed 5q` in
9320 *Sun\ C*) # Sun C 5.9
9321 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'
9322 compiler_needs_object=yes
9323 tmp_sharedflag='-G' ;;
9324 *Sun\ F*) # Sun Fortran 8.3
9325 tmp_sharedflag='-G' ;;
9326 esac
9327 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328
9329 if test "x$supports_anon_versioning" = xyes; then
9330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9332 echo "local: *; };" >> $output_objdir/$libname.ver~
9333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9334 fi
9335
9336 case $cc_basename in
9337 xlf* | bgf* | bgxlf* | mpixlf*)
9338 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9339 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9340 hardcode_libdir_flag_spec=
9341 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9342 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9343 if test "x$supports_anon_versioning" = xyes; then
9344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9346 echo "local: *; };" >> $output_objdir/$libname.ver~
9347 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9348 fi
9349 ;;
9350 esac
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355
9356 netbsd*)
9357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9359 wlarc=
9360 else
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 fi
9364 ;;
9365
9366 solaris*)
9367 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9368 ld_shlibs=no
9369 cat <<_LT_EOF 1>&2
9370
9371*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9372*** create shared libraries on Solaris systems. Therefore, libtool
9373*** is disabling shared libraries support. We urge you to upgrade GNU
9374*** binutils to release 2.9.1 or newer. Another option is to modify
9375*** your PATH or compiler configuration so that the native linker is
9376*** used, and then restart.
9377
9378_LT_EOF
9379 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386
9387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9388 case `$LD -v 2>&1` in
9389 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9390 ld_shlibs=no
9391 cat <<_LT_EOF 1>&2
9392
9393*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9394*** reliably create shared libraries on SCO systems. Therefore, libtool
9395*** is disabling shared libraries support. We urge you to upgrade GNU
9396*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9397*** your PATH or compiler configuration so that the native linker is
9398*** used, and then restart.
9399
9400_LT_EOF
9401 ;;
9402 *)
9403 # For security reasons, it is highly recommended that you always
9404 # use absolute paths for naming shared libraries, and exclude the
9405 # DT_RUNPATH tag from executables and libraries. But doing so
9406 # requires that you compile everything twice, which is a pain.
9407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9411 else
9412 ld_shlibs=no
9413 fi
9414 ;;
9415 esac
9416 ;;
9417
9418 sunos4*)
9419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9420 wlarc=
9421 hardcode_direct=yes
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 *)
9426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429 else
9430 ld_shlibs=no
9431 fi
9432 ;;
9433 esac
9434
9435 if test "$ld_shlibs" = no; then
9436 runpath_var=
9437 hardcode_libdir_flag_spec=
9438 export_dynamic_flag_spec=
9439 whole_archive_flag_spec=
9440 fi
9441 else
9442 # PORTME fill in a description of your system's linker (not GNU ld)
9443 case $host_os in
9444 aix3*)
9445 allow_undefined_flag=unsupported
9446 always_export_symbols=yes
9447 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'
9448 # Note: this linker hardcodes the directories in LIBPATH if there
9449 # are no directories specified by -L.
9450 hardcode_minus_L=yes
9451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9452 # Neither direct hardcoding nor static linking is supported with a
9453 # broken collect2.
9454 hardcode_direct=unsupported
9455 fi
9456 ;;
9457
9458 aix[4-9]*)
9459 if test "$host_cpu" = ia64; then
9460 # On IA64, the linker does run time linking by default, so we don't
9461 # have to do anything special.
9462 aix_use_runtimelinking=no
9463 exp_sym_flag='-Bexport'
9464 no_entry_flag=""
9465 else
9466 # If we're using GNU nm, then we don't want the "-C" option.
9467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9468 # Also, AIX nm treats weak defined symbols like other global
9469 # defined symbols, whereas GNU nm marks them as "W".
9470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9471 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'
9472 else
9473 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'
9474 fi
9475 aix_use_runtimelinking=no
9476
9477 # Test if we are trying to use run time linking or normal
9478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9479 # need to do runtime linking.
9480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9481 for ld_flag in $LDFLAGS; do
9482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9483 aix_use_runtimelinking=yes
9484 break
9485 fi
9486 done
9487 ;;
9488 esac
9489
9490 exp_sym_flag='-bexport'
9491 no_entry_flag='-bnoentry'
9492 fi
9493
9494 # When large executables or shared objects are built, AIX ld can
9495 # have problems creating the table of contents. If linking a library
9496 # or program results in "error TOC overflow" add -mminimal-toc to
9497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9499
9500 archive_cmds=''
9501 hardcode_direct=yes
9502 hardcode_direct_absolute=yes
9503 hardcode_libdir_separator=':'
9504 link_all_deplibs=yes
9505 file_list_spec='${wl}-f,'
9506
9507 if test "$GCC" = yes; then
9508 case $host_os in aix4.[012]|aix4.[012].*)
9509 # We only want to do this on AIX 4.2 and lower, the check
9510 # below for broken collect2 doesn't work under 4.3+
9511 collect2name=`${CC} -print-prog-name=collect2`
9512 if test -f "$collect2name" &&
9513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9514 then
9515 # We have reworked collect2
9516 :
9517 else
9518 # We have old collect2
9519 hardcode_direct=unsupported
9520 # It fails to find uninstalled libraries when the uninstalled
9521 # path is not listed in the libpath. Setting hardcode_minus_L
9522 # to unsupported forces relinking
9523 hardcode_minus_L=yes
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_libdir_separator=
9526 fi
9527 ;;
9528 esac
9529 shared_flag='-shared'
9530 if test "$aix_use_runtimelinking" = yes; then
9531 shared_flag="$shared_flag "'${wl}-G'
9532 fi
9533 else
9534 # not using gcc
9535 if test "$host_cpu" = ia64; then
9536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9537 # chokes on -Wl,-G. The following line is correct:
9538 shared_flag='-G'
9539 else
9540 if test "$aix_use_runtimelinking" = yes; then
9541 shared_flag='${wl}-G'
9542 else
9543 shared_flag='${wl}-bM:SRE'
9544 fi
9545 fi
9546 fi
9547
9548 export_dynamic_flag_spec='${wl}-bexpall'
9549 # It seems that -bexpall does not export symbols beginning with
9550 # underscore (_), so it is better to generate a list of symbols to export.
9551 always_export_symbols=yes
9552 if test "$aix_use_runtimelinking" = yes; then
9553 # Warning - without using the other runtime loading flags (-brtl),
9554 # -berok will link without error, but may produce a broken library.
9555 allow_undefined_flag='-berok'
9556 # Determine the default libpath from the value encoded in an
9557 # empty executable.
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h. */
9560
9561int
9562main ()
9563{
9564
9565 ;
9566 return 0;
9567}
9568_ACEOF
9569if ac_fn_c_try_link "$LINENO"; then :
9570
9571lt_aix_libpath_sed='
9572 /Import File Strings/,/^$/ {
9573 /^0/ {
9574 s/^0 *\(.*\)$/\1/
9575 p
9576 }
9577 }'
9578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579# Check for a 64-bit object if we didn't find anything.
9580if test -z "$aix_libpath"; then
9581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582fi
9583fi
9584rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9587
9588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9589 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"
9590 else
9591 if test "$host_cpu" = ia64; then
9592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9593 allow_undefined_flag="-z nodefs"
9594 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"
9595 else
9596 # Determine the default libpath from the value encoded in an
9597 # empty executable.
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h. */
9600
9601int
9602main ()
9603{
9604
9605 ;
9606 return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610
9611lt_aix_libpath_sed='
9612 /Import File Strings/,/^$/ {
9613 /^0/ {
9614 s/^0 *\(.*\)$/\1/
9615 p
9616 }
9617 }'
9618aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619# Check for a 64-bit object if we didn't find anything.
9620if test -z "$aix_libpath"; then
9621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622fi
9623fi
9624rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9627
9628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9629 # Warning - without using the other run time loading flags,
9630 # -berok will link without error, but may produce a broken library.
9631 no_undefined_flag=' ${wl}-bernotok'
9632 allow_undefined_flag=' ${wl}-berok'
9633 if test "$with_gnu_ld" = yes; then
9634 # We only use this code for GNU lds that support --whole-archive.
9635 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9636 else
9637 # Exported symbols can be pulled into shared objects from archives
9638 whole_archive_flag_spec='$convenience'
9639 fi
9640 archive_cmds_need_lc=yes
9641 # This is similar to how AIX traditionally builds its shared libraries.
9642 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'
9643 fi
9644 fi
9645 ;;
9646
9647 amigaos*)
9648 case $host_cpu in
9649 powerpc)
9650 # see comment about AmigaOS4 .so support
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 archive_expsym_cmds=''
9653 ;;
9654 m68k)
9655 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)'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9658 ;;
9659 esac
9660 ;;
9661
9662 bsdi[45]*)
9663 export_dynamic_flag_spec=-rdynamic
9664 ;;
9665
9666 cygwin* | mingw* | pw32* | cegcc*)
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 # hardcode_libdir_flag_spec is actually meaningless, as there is
9670 # no search path for DLLs.
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9674 libext=lib
9675 # Tell ltmain to make .dll files, not .so files.
9676 shrext_cmds=".dll"
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_from_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 fix_srcfile_path='`cygpath -w "$srcfile"`'
9684 enable_shared_with_static_runtimes=yes
9685 ;;
9686
9687 darwin* | rhapsody*)
9688
9689
9690 archive_cmds_need_lc=no
9691 hardcode_direct=no
9692 hardcode_automatic=yes
9693 hardcode_shlibpath_var=unsupported
9694 if test "$lt_cv_ld_force_load" = "yes"; then
9695 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\"`'
9696 else
9697 whole_archive_flag_spec=''
9698 fi
9699 link_all_deplibs=yes
9700 allow_undefined_flag="$_lt_dar_allow_undefined"
9701 case $cc_basename in
9702 ifort*) _lt_dar_can_shared=yes ;;
9703 *) _lt_dar_can_shared=$GCC ;;
9704 esac
9705 if test "$_lt_dar_can_shared" = "yes"; then
9706 output_verbose_link_cmd=func_echo_all
9707 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9708 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9709 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}"
9710 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}"
9711
9712 else
9713 ld_shlibs=no
9714 fi
9715
9716 ;;
9717
9718 dgux*)
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_libdir_flag_spec='-L$libdir'
9721 hardcode_shlibpath_var=no
9722 ;;
9723
9724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9725 # support. Future versions do this automatically, but an explicit c++rt0.o
9726 # does not break anything, and helps significantly (at the cost of a little
9727 # extra space).
9728 freebsd2.2*)
9729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9730 hardcode_libdir_flag_spec='-R$libdir'
9731 hardcode_direct=yes
9732 hardcode_shlibpath_var=no
9733 ;;
9734
9735 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9736 freebsd2.*)
9737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_direct=yes
9739 hardcode_minus_L=yes
9740 hardcode_shlibpath_var=no
9741 ;;
9742
9743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9744 freebsd* | dragonfly*)
9745 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9746 hardcode_libdir_flag_spec='-R$libdir'
9747 hardcode_direct=yes
9748 hardcode_shlibpath_var=no
9749 ;;
9750
9751 hpux9*)
9752 if test "$GCC" = yes; then
9753 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'
9754 else
9755 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'
9756 fi
9757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9758 hardcode_libdir_separator=:
9759 hardcode_direct=yes
9760
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9764 export_dynamic_flag_spec='${wl}-E'
9765 ;;
9766
9767 hpux10*)
9768 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770 else
9771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9772 fi
9773 if test "$with_gnu_ld" = no; then
9774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9775 hardcode_libdir_flag_spec_ld='+b $libdir'
9776 hardcode_libdir_separator=:
9777 hardcode_direct=yes
9778 hardcode_direct_absolute=yes
9779 export_dynamic_flag_spec='${wl}-E'
9780 # hardcode_minus_L: Not really in the search PATH,
9781 # but as the default location of the library.
9782 hardcode_minus_L=yes
9783 fi
9784 ;;
9785
9786 hpux11*)
9787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9788 case $host_cpu in
9789 hppa*64*)
9790 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 ia64*)
9793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9794 ;;
9795 *)
9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797 ;;
9798 esac
9799 else
9800 case $host_cpu in
9801 hppa*64*)
9802 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 ;;
9804 ia64*)
9805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9806 ;;
9807 *)
9808
9809 # Older versions of the 11.00 compiler do not understand -b yet
9810 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9812$as_echo_n "checking if $CC understands -b... " >&6; }
f00f02a3 9813if ${lt_cv_prog_compiler__b+:} false; then :
03385ed3 9814 $as_echo_n "(cached) " >&6
9815else
9816 lt_cv_prog_compiler__b=no
9817 save_LDFLAGS="$LDFLAGS"
9818 LDFLAGS="$LDFLAGS -b"
9819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9821 # The linker can only warn and ignore the option if not recognized
9822 # So say no if there are warnings
9823 if test -s conftest.err; then
9824 # Append any errors to the config.log.
9825 cat conftest.err 1>&5
9826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9828 if diff conftest.exp conftest.er2 >/dev/null; then
9829 lt_cv_prog_compiler__b=yes
9830 fi
9831 else
9832 lt_cv_prog_compiler__b=yes
9833 fi
9834 fi
9835 $RM -r conftest*
9836 LDFLAGS="$save_LDFLAGS"
9837
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9840$as_echo "$lt_cv_prog_compiler__b" >&6; }
9841
9842if test x"$lt_cv_prog_compiler__b" = xyes; then
9843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9844else
9845 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9846fi
9847
9848 ;;
9849 esac
9850 fi
9851 if test "$with_gnu_ld" = no; then
9852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853 hardcode_libdir_separator=:
9854
9855 case $host_cpu in
9856 hppa*64*|ia64*)
9857 hardcode_direct=no
9858 hardcode_shlibpath_var=no
9859 ;;
9860 *)
9861 hardcode_direct=yes
9862 hardcode_direct_absolute=yes
9863 export_dynamic_flag_spec='${wl}-E'
9864
9865 # hardcode_minus_L: Not really in the search PATH,
9866 # but as the default location of the library.
9867 hardcode_minus_L=yes
9868 ;;
9869 esac
9870 fi
9871 ;;
9872
9873 irix5* | irix6* | nonstopux*)
9874 if test "$GCC" = yes; then
9875 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'
9876 # Try to use the -exported_symbol ld option, if it does not
9877 # work, assume that -exports_file does not work either and
9878 # implicitly export all symbols.
9879 save_LDFLAGS="$LDFLAGS"
9880 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h. */
9883int foo(void) {}
9884_ACEOF
9885if ac_fn_c_try_link "$LINENO"; then :
9886 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'
9887
9888fi
9889rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LDFLAGS="$save_LDFLAGS"
9892 else
9893 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'
9894 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'
9895 fi
9896 archive_cmds_need_lc='no'
9897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898 hardcode_libdir_separator=:
9899 inherit_rpath=yes
9900 link_all_deplibs=yes
9901 ;;
9902
9903 netbsd*)
9904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9906 else
9907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9908 fi
9909 hardcode_libdir_flag_spec='-R$libdir'
9910 hardcode_direct=yes
9911 hardcode_shlibpath_var=no
9912 ;;
9913
9914 newsos6)
9915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916 hardcode_direct=yes
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 hardcode_libdir_separator=:
9919 hardcode_shlibpath_var=no
9920 ;;
9921
9922 *nto* | *qnx*)
9923 ;;
9924
9925 openbsd*)
9926 if test -f /usr/libexec/ld.so; then
9927 hardcode_direct=yes
9928 hardcode_shlibpath_var=no
9929 hardcode_direct_absolute=yes
9930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9934 export_dynamic_flag_spec='${wl}-E'
9935 else
9936 case $host_os in
9937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 ;;
9941 *)
9942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9944 ;;
9945 esac
9946 fi
9947 else
9948 ld_shlibs=no
9949 fi
9950 ;;
9951
9952 os2*)
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_minus_L=yes
9955 allow_undefined_flag=unsupported
9956 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'
9957 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9958 ;;
9959
9960 osf3*)
9961 if test "$GCC" = yes; then
9962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9963 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'
9964 else
9965 allow_undefined_flag=' -expect_unresolved \*'
9966 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'
9967 fi
9968 archive_cmds_need_lc='no'
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 hardcode_libdir_separator=:
9971 ;;
9972
9973 osf4* | osf5*) # as osf3* with the addition of -msym flag
9974 if test "$GCC" = yes; then
9975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9976 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'
9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978 else
9979 allow_undefined_flag=' -expect_unresolved \*'
9980 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'
9981 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~
9982 $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'
9983
9984 # Both c and cxx compiler support -rpath directly
9985 hardcode_libdir_flag_spec='-rpath $libdir'
9986 fi
9987 archive_cmds_need_lc='no'
9988 hardcode_libdir_separator=:
9989 ;;
9990
9991 solaris*)
9992 no_undefined_flag=' -z defs'
9993 if test "$GCC" = yes; then
9994 wlarc='${wl}'
9995 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9998 else
9999 case `$CC -V 2>&1` in
10000 *"Compilers 5.0"*)
10001 wlarc=''
10002 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10005 ;;
10006 *)
10007 wlarc='${wl}'
10008 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10011 ;;
10012 esac
10013 fi
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_shlibpath_var=no
10016 case $host_os in
10017 solaris2.[0-5] | solaris2.[0-5].*) ;;
10018 *)
10019 # The compiler driver will combine and reorder linker options,
10020 # but understands `-z linker_flag'. GCC discards it without `$wl',
10021 # but is careful enough not to reorder.
10022 # Supported since Solaris 2.6 (maybe 2.5.1?)
10023 if test "$GCC" = yes; then
10024 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10025 else
10026 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10027 fi
10028 ;;
10029 esac
10030 link_all_deplibs=yes
10031 ;;
10032
10033 sunos4*)
10034 if test "x$host_vendor" = xsequent; then
10035 # Use $CC to link under sequent, because it throws in some extra .o
10036 # files that make .init and .fini sections work.
10037 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10040 fi
10041 hardcode_libdir_flag_spec='-L$libdir'
10042 hardcode_direct=yes
10043 hardcode_minus_L=yes
10044 hardcode_shlibpath_var=no
10045 ;;
10046
10047 sysv4)
10048 case $host_vendor in
10049 sni)
10050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051 hardcode_direct=yes # is this really true???
10052 ;;
10053 siemens)
10054 ## LD is ld it makes a PLAMLIB
10055 ## CC just makes a GrossModule.
10056 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10057 reload_cmds='$CC -r -o $output$reload_objs'
10058 hardcode_direct=no
10059 ;;
10060 motorola)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10063 ;;
10064 esac
10065 runpath_var='LD_RUN_PATH'
10066 hardcode_shlibpath_var=no
10067 ;;
10068
10069 sysv4.3*)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_shlibpath_var=no
10072 export_dynamic_flag_spec='-Bexport'
10073 ;;
10074
10075 sysv4*MP*)
10076 if test -d /usr/nec; then
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_shlibpath_var=no
10079 runpath_var=LD_RUN_PATH
10080 hardcode_runpath_var=yes
10081 ld_shlibs=yes
10082 fi
10083 ;;
10084
10085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10086 no_undefined_flag='${wl}-z,text'
10087 archive_cmds_need_lc=no
10088 hardcode_shlibpath_var=no
10089 runpath_var='LD_RUN_PATH'
10090
10091 if test "$GCC" = yes; then
10092 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 else
10095 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 fi
10098 ;;
10099
10100 sysv5* | sco3.2v5* | sco5v6*)
10101 # Note: We can NOT use -z defs as we might desire, because we do not
10102 # link with -lc, and that would cause any symbols used from libc to
10103 # always be unresolved, which means just about no library would
10104 # ever link correctly. If we're not using GNU ld we use -z text
10105 # though, which does catch some bad symbols but isn't as heavy-handed
10106 # as -z defs.
10107 no_undefined_flag='${wl}-z,text'
10108 allow_undefined_flag='${wl}-z,nodefs'
10109 archive_cmds_need_lc=no
10110 hardcode_shlibpath_var=no
10111 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10112 hardcode_libdir_separator=':'
10113 link_all_deplibs=yes
10114 export_dynamic_flag_spec='${wl}-Bexport'
10115 runpath_var='LD_RUN_PATH'
10116
10117 if test "$GCC" = yes; then
10118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 else
10121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 fi
10124 ;;
10125
10126 uts4*)
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 *)
10133 ld_shlibs=no
10134 ;;
10135 esac
10136
10137 if test x$host_vendor = xsni; then
10138 case $host in
10139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10140 export_dynamic_flag_spec='${wl}-Blargedynsym'
10141 ;;
10142 esac
10143 fi
10144 fi
10145
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10147$as_echo "$ld_shlibs" >&6; }
10148test "$ld_shlibs" = no && can_build_shared=no
10149
10150with_gnu_ld=$with_gnu_ld
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166#
10167# Do we need to explicitly link libc?
10168#
10169case "x$archive_cmds_need_lc" in
10170x|xyes)
10171 # Assume -lc should be added
10172 archive_cmds_need_lc=yes
10173
10174 if test "$enable_shared" = yes && test "$GCC" = yes; then
10175 case $archive_cmds in
10176 *'~'*)
10177 # FIXME: we may have to deal with multi-command sequences.
10178 ;;
10179 '$CC '*)
10180 # Test whether the compiler implicitly links with -lc since on some
10181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182 # to ld, don't add -lc before -lgcc.
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10184$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 10185if ${lt_cv_archive_cmds_need_lc+:} false; then :
03385ed3 10186 $as_echo_n "(cached) " >&6
10187else
10188 $RM conftest*
10189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10190
10191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10192 (eval $ac_compile) 2>&5
10193 ac_status=$?
10194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10195 test $ac_status = 0; } 2>conftest.err; then
10196 soname=conftest
10197 lib=conftest
10198 libobjs=conftest.$ac_objext
10199 deplibs=
10200 wl=$lt_prog_compiler_wl
10201 pic_flag=$lt_prog_compiler_pic
10202 compiler_flags=-v
10203 linker_flags=-v
10204 verstring=
10205 output_objdir=.
10206 libname=conftest
10207 lt_save_allow_undefined_flag=$allow_undefined_flag
10208 allow_undefined_flag=
10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10210 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10211 ac_status=$?
10212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; }
10214 then
10215 lt_cv_archive_cmds_need_lc=no
10216 else
10217 lt_cv_archive_cmds_need_lc=yes
10218 fi
10219 allow_undefined_flag=$lt_save_allow_undefined_flag
10220 else
10221 cat conftest.err 1>&5
10222 fi
10223 $RM conftest*
10224
10225fi
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10227$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10228 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10229 ;;
10230 esac
10231 fi
10232 ;;
10233esac
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10392$as_echo_n "checking dynamic linker characteristics... " >&6; }
10393
10394if test "$GCC" = yes; then
10395 case $host_os in
10396 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10397 *) lt_awk_arg="/^libraries:/" ;;
10398 esac
10399 case $host_os in
10400 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10401 *) lt_sed_strip_eq="s,=/,/,g" ;;
10402 esac
10403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10404 case $lt_search_path_spec in
10405 *\;*)
10406 # if the path contains ";" then we assume it to be the separator
10407 # otherwise default to the standard path separator (i.e. ":") - it is
10408 # assumed that no part of a normal pathname contains ";" but that should
10409 # okay in the real world where ";" in dirpaths is itself problematic.
10410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10411 ;;
10412 *)
10413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10414 ;;
10415 esac
10416 # Ok, now we have the path, separated by spaces, we can step through it
10417 # and add multilib dir if necessary.
10418 lt_tmp_lt_search_path_spec=
10419 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10420 for lt_sys_path in $lt_search_path_spec; do
10421 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10423 else
10424 test -d "$lt_sys_path" && \
10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10426 fi
10427 done
10428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10429BEGIN {RS=" "; FS="/|\n";} {
10430 lt_foo="";
10431 lt_count=0;
10432 for (lt_i = NF; lt_i > 0; lt_i--) {
10433 if ($lt_i != "" && $lt_i != ".") {
10434 if ($lt_i == "..") {
10435 lt_count++;
10436 } else {
10437 if (lt_count == 0) {
10438 lt_foo="/" $lt_i lt_foo;
10439 } else {
10440 lt_count--;
10441 }
10442 }
10443 }
10444 }
10445 if (lt_foo != "") { lt_freq[lt_foo]++; }
10446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10447}'`
10448 # AWK program above erroneously prepends '/' to C:/dos/paths
10449 # for these hosts.
10450 case $host_os in
10451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10452 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10453 esac
10454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10455else
10456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10457fi
10458library_names_spec=
10459libname_spec='lib$name'
10460soname_spec=
10461shrext_cmds=".so"
10462postinstall_cmds=
10463postuninstall_cmds=
10464finish_cmds=
10465finish_eval=
10466shlibpath_var=
10467shlibpath_overrides_runpath=unknown
10468version_type=none
10469dynamic_linker="$host_os ld.so"
10470sys_lib_dlsearch_path_spec="/lib /usr/lib"
10471need_lib_prefix=unknown
10472hardcode_into_libs=no
10473
10474# when you set need_version to no, make sure it does not cause -set_version
10475# flags to be left without arguments
10476need_version=unknown
10477
10478case $host_os in
10479aix3*)
10480 version_type=linux
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10482 shlibpath_var=LIBPATH
10483
10484 # AIX 3 has no versioning support, so we append a major version to the name.
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 ;;
10487
10488aix[4-9]*)
10489 version_type=linux
10490 need_lib_prefix=no
10491 need_version=no
10492 hardcode_into_libs=yes
10493 if test "$host_cpu" = ia64; then
10494 # AIX 5 supports IA64
10495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 else
10498 # With GCC up to 2.95.x, collect2 would create an import file
10499 # for dependence libraries. The import file would start with
10500 # the line `#! .'. This would cause the generated library to
10501 # depend on `.', always an invalid library. This was fixed in
10502 # development snapshots of GCC prior to 3.0.
10503 case $host_os in
10504 aix4 | aix4.[01] | aix4.[01].*)
10505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10506 echo ' yes '
10507 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10508 :
10509 else
10510 can_build_shared=no
10511 fi
10512 ;;
10513 esac
10514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10515 # soname into executable. Probably we can add versioning support to
10516 # collect2, so additional links can be useful in future.
10517 if test "$aix_use_runtimelinking" = yes; then
10518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10519 # instead of lib<name>.a to let people know that these are not
10520 # typical AIX shared libraries.
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 else
10523 # We preserve .a as extension for shared libraries through AIX4.2
10524 # and later when we are not doing run time linking.
10525 library_names_spec='${libname}${release}.a $libname.a'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 fi
10528 shlibpath_var=LIBPATH
10529 fi
10530 ;;
10531
10532amigaos*)
10533 case $host_cpu in
10534 powerpc)
10535 # Since July 2007 AmigaOS4 officially supports .so libraries.
10536 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 ;;
10539 m68k)
10540 library_names_spec='$libname.ixlibrary $libname.a'
10541 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10542 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'
10543 ;;
10544 esac
10545 ;;
10546
10547beos*)
10548 library_names_spec='${libname}${shared_ext}'
10549 dynamic_linker="$host_os ld.so"
10550 shlibpath_var=LIBRARY_PATH
10551 ;;
10552
10553bsdi[45]*)
10554 version_type=linux
10555 need_version=no
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10562 # the default ld.so.conf also contains /usr/contrib/lib and
10563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10564 # libtool to hard-code these into programs
10565 ;;
10566
10567cygwin* | mingw* | pw32* | cegcc*)
10568 version_type=windows
10569 shrext_cmds=".dll"
10570 need_version=no
10571 need_lib_prefix=no
10572
10573 case $GCC,$host_os in
10574 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10575 library_names_spec='$libname.dll.a'
10576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10577 postinstall_cmds='base_file=`basename \${file}`~
10578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10579 dldir=$destdir/`dirname \$dlpath`~
10580 test -d \$dldir || mkdir -p \$dldir~
10581 $install_prog $dir/$dlname \$dldir/$dlname~
10582 chmod a+x \$dldir/$dlname~
10583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10585 fi'
10586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10587 dlpath=$dir/\$dldll~
10588 $RM \$dlpath'
10589 shlibpath_overrides_runpath=yes
10590
10591 case $host_os in
10592 cygwin*)
10593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10595
10596 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10597 ;;
10598 mingw* | cegcc*)
10599 # MinGW DLLs use traditional 'lib' prefix
10600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10601 ;;
10602 pw32*)
10603 # pw32 DLLs use 'pw' prefix rather than 'lib'
10604 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605 ;;
10606 esac
10607 ;;
10608
10609 *)
10610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10611 ;;
10612 esac
10613 dynamic_linker='Win32 ld.exe'
10614 # FIXME: first we should search . and the directory the executable is in
10615 shlibpath_var=PATH
10616 ;;
10617
10618darwin* | rhapsody*)
10619 dynamic_linker="$host_os dyld"
10620 version_type=darwin
10621 need_lib_prefix=no
10622 need_version=no
10623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10624 soname_spec='${libname}${release}${major}$shared_ext'
10625 shlibpath_overrides_runpath=yes
10626 shlibpath_var=DYLD_LIBRARY_PATH
10627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10628
10629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10631 ;;
10632
10633dgux*)
10634 version_type=linux
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 ;;
10641
10642freebsd* | dragonfly*)
10643 # DragonFly does not have aout. When/if they implement a new
10644 # versioning mechanism, adjust this.
10645 if test -x /usr/bin/objformat; then
10646 objformat=`/usr/bin/objformat`
10647 else
10648 case $host_os in
10649 freebsd[23].*) objformat=aout ;;
10650 *) objformat=elf ;;
10651 esac
10652 fi
10653 version_type=freebsd-$objformat
10654 case $version_type in
10655 freebsd-elf*)
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10657 need_version=no
10658 need_lib_prefix=no
10659 ;;
10660 freebsd-*)
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10662 need_version=yes
10663 ;;
10664 esac
10665 shlibpath_var=LD_LIBRARY_PATH
10666 case $host_os in
10667 freebsd2.*)
10668 shlibpath_overrides_runpath=yes
10669 ;;
10670 freebsd3.[01]* | freebsdelf3.[01]*)
10671 shlibpath_overrides_runpath=yes
10672 hardcode_into_libs=yes
10673 ;;
10674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10676 shlibpath_overrides_runpath=no
10677 hardcode_into_libs=yes
10678 ;;
10679 *) # from 4.6 on, and DragonFly
10680 shlibpath_overrides_runpath=yes
10681 hardcode_into_libs=yes
10682 ;;
10683 esac
10684 ;;
10685
10686gnu*)
10687 version_type=linux
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 hardcode_into_libs=yes
10694 ;;
10695
10696haiku*)
10697 version_type=linux
10698 need_lib_prefix=no
10699 need_version=no
10700 dynamic_linker="$host_os runtime_loader"
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 shlibpath_var=LIBRARY_PATH
10704 shlibpath_overrides_runpath=yes
10705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10706 hardcode_into_libs=yes
10707 ;;
10708
10709hpux9* | hpux10* | hpux11*)
10710 # Give a soname corresponding to the major version so that dld.sl refuses to
10711 # link against other versions.
10712 version_type=sunos
10713 need_lib_prefix=no
10714 need_version=no
10715 case $host_cpu in
10716 ia64*)
10717 shrext_cmds='.so'
10718 hardcode_into_libs=yes
10719 dynamic_linker="$host_os dld.so"
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 if test "X$HPUX_IA64_MODE" = X32; then
10725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10726 else
10727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10728 fi
10729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10730 ;;
10731 hppa*64*)
10732 shrext_cmds='.sl'
10733 hardcode_into_libs=yes
10734 dynamic_linker="$host_os dld.sl"
10735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10741 ;;
10742 *)
10743 shrext_cmds='.sl'
10744 dynamic_linker="$host_os dld.sl"
10745 shlibpath_var=SHLIB_PATH
10746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10750 esac
10751 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10752 postinstall_cmds='chmod 555 $lib'
10753 # or fails outright, so override atomically:
10754 install_override_mode=555
10755 ;;
10756
10757interix[3-9]*)
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10767 ;;
10768
10769irix5* | irix6* | nonstopux*)
10770 case $host_os in
10771 nonstopux*) version_type=nonstopux ;;
10772 *)
10773 if test "$lt_cv_prog_gnu_ld" = yes; then
10774 version_type=linux
10775 else
10776 version_type=irix
10777 fi ;;
10778 esac
10779 need_lib_prefix=no
10780 need_version=no
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10783 case $host_os in
10784 irix5* | nonstopux*)
10785 libsuff= shlibsuff=
10786 ;;
10787 *)
10788 case $LD in # libtool.m4 will add one of these switches to LD
10789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10790 libsuff= shlibsuff= libmagic=32-bit;;
10791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10792 libsuff=32 shlibsuff=N32 libmagic=N32;;
10793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10794 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10795 *) libsuff= shlibsuff= libmagic=never-match;;
10796 esac
10797 ;;
10798 esac
10799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10800 shlibpath_overrides_runpath=no
10801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10803 hardcode_into_libs=yes
10804 ;;
10805
10806# No shared lib support for Linux oldld, aout, or coff.
10807linux*oldld* | linux*aout* | linux*coff*)
10808 dynamic_linker=no
10809 ;;
10810
10811# This must be Linux ELF.
10812linux* | k*bsd*-gnu | kopensolaris*-gnu)
10813 version_type=linux
10814 need_lib_prefix=no
10815 need_version=no
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10819 shlibpath_var=LD_LIBRARY_PATH
10820 shlibpath_overrides_runpath=no
10821
10822 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 10823 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
03385ed3 10824 $as_echo_n "(cached) " >&6
10825else
10826 lt_cv_shlibpath_overrides_runpath=no
10827 save_LDFLAGS=$LDFLAGS
10828 save_libdir=$libdir
10829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h. */
10833
10834int
10835main ()
10836{
10837
10838 ;
10839 return 0;
10840}
10841_ACEOF
10842if ac_fn_c_try_link "$LINENO"; then :
10843 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10844 lt_cv_shlibpath_overrides_runpath=yes
10845fi
10846fi
10847rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LDFLAGS=$save_LDFLAGS
10850 libdir=$save_libdir
10851
10852fi
10853
10854 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10855
10856 # This implies no fast_install, which is unacceptable.
10857 # Some rework will be needed to allow for fast_install
10858 # before this can be enabled.
10859 hardcode_into_libs=yes
10860
10861 # Append ld.so.conf contents to the search path
10862 if test -f /etc/ld.so.conf; then
10863 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' ' '`
10864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10865 fi
10866
10867 # We used to test for /lib/ld.so.1 and disable shared libraries on
10868 # powerpc, because MkLinux only supported shared libraries with the
10869 # GNU dynamic linker. Since this was broken with cross compilers,
10870 # most powerpc-linux boxes support dynamic linking these days and
10871 # people can always --disable-shared, the test was removed, and we
10872 # assume the GNU/Linux dynamic linker is in use.
10873 dynamic_linker='GNU/Linux ld.so'
10874 ;;
10875
10876netbsd*)
10877 version_type=sunos
10878 need_lib_prefix=no
10879 need_version=no
10880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10883 dynamic_linker='NetBSD (a.out) ld.so'
10884 else
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 dynamic_linker='NetBSD ld.elf_so'
10888 fi
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10892 ;;
10893
10894newsos6)
10895 version_type=linux
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 ;;
10900
10901*nto* | *qnx*)
10902 version_type=qnx
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=no
10909 hardcode_into_libs=yes
10910 dynamic_linker='ldqnx.so'
10911 ;;
10912
10913openbsd*)
10914 version_type=sunos
10915 sys_lib_dlsearch_path_spec="/usr/lib"
10916 need_lib_prefix=no
10917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10918 case $host_os in
10919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10920 *) need_version=no ;;
10921 esac
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10926 case $host_os in
10927 openbsd2.[89] | openbsd2.[89].*)
10928 shlibpath_overrides_runpath=no
10929 ;;
10930 *)
10931 shlibpath_overrides_runpath=yes
10932 ;;
10933 esac
10934 else
10935 shlibpath_overrides_runpath=yes
10936 fi
10937 ;;
10938
10939os2*)
10940 libname_spec='$name'
10941 shrext_cmds=".dll"
10942 need_lib_prefix=no
10943 library_names_spec='$libname${shared_ext} $libname.a'
10944 dynamic_linker='OS/2 ld.exe'
10945 shlibpath_var=LIBPATH
10946 ;;
10947
10948osf3* | osf4* | osf5*)
10949 version_type=osf
10950 need_lib_prefix=no
10951 need_version=no
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10957 ;;
10958
10959rdos*)
10960 dynamic_linker=no
10961 ;;
10962
10963solaris*)
10964 version_type=linux
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=yes
10971 hardcode_into_libs=yes
10972 # ldd complains unless libraries are executable
10973 postinstall_cmds='chmod +x $lib'
10974 ;;
10975
10976sunos4*)
10977 version_type=sunos
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes
10982 if test "$with_gnu_ld" = yes; then
10983 need_lib_prefix=no
10984 fi
10985 need_version=yes
10986 ;;
10987
10988sysv4 | sysv4.3*)
10989 version_type=linux
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 case $host_vendor in
10994 sni)
10995 shlibpath_overrides_runpath=no
10996 need_lib_prefix=no
10997 runpath_var=LD_RUN_PATH
10998 ;;
10999 siemens)
11000 need_lib_prefix=no
11001 ;;
11002 motorola)
11003 need_lib_prefix=no
11004 need_version=no
11005 shlibpath_overrides_runpath=no
11006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11007 ;;
11008 esac
11009 ;;
11010
11011sysv4*MP*)
11012 if test -d /usr/nec ;then
11013 version_type=linux
11014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11015 soname_spec='$libname${shared_ext}.$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 fi
11018 ;;
11019
11020sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11021 version_type=freebsd-elf
11022 need_lib_prefix=no
11023 need_version=no
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11029 if test "$with_gnu_ld" = yes; then
11030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11031 else
11032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11033 case $host_os in
11034 sco3.2v5*)
11035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11036 ;;
11037 esac
11038 fi
11039 sys_lib_dlsearch_path_spec='/usr/lib'
11040 ;;
11041
11042tpf*)
11043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11044 version_type=linux
11045 need_lib_prefix=no
11046 need_version=no
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=no
11050 hardcode_into_libs=yes
11051 ;;
11052
11053uts4*)
11054 version_type=linux
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 ;;
11059
11060*)
11061 dynamic_linker=no
11062 ;;
11063esac
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11065$as_echo "$dynamic_linker" >&6; }
11066test "$dynamic_linker" = no && can_build_shared=no
11067
11068variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11069if test "$GCC" = yes; then
11070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11071fi
11072
11073if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11074 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11075fi
11076if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11078fi
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11172$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11173hardcode_action=
11174if test -n "$hardcode_libdir_flag_spec" ||
11175 test -n "$runpath_var" ||
11176 test "X$hardcode_automatic" = "Xyes" ; then
11177
11178 # We can hardcode non-existent directories.
11179 if test "$hardcode_direct" != no &&
11180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11181 # have to relink, otherwise we might link with an installed library
11182 # when we should be linking with a yet-to-be-installed one
11183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11184 test "$hardcode_minus_L" != no; then
11185 # Linking always hardcodes the temporary library directory.
11186 hardcode_action=relink
11187 else
11188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11189 hardcode_action=immediate
11190 fi
11191else
11192 # We cannot hardcode anything, or else we can only hardcode existing
11193 # directories.
11194 hardcode_action=unsupported
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11197$as_echo "$hardcode_action" >&6; }
11198
11199if test "$hardcode_action" = relink ||
11200 test "$inherit_rpath" = yes; then
11201 # Fast installation is not supported
11202 enable_fast_install=no
11203elif test "$shlibpath_overrides_runpath" = yes ||
11204 test "$enable_shared" = no; then
11205 # Fast installation is not necessary
11206 enable_fast_install=needless
11207fi
11208
11209
11210
11211
11212
11213
11214 if test "x$enable_dlopen" != xyes; then
11215 enable_dlopen=unknown
11216 enable_dlopen_self=unknown
11217 enable_dlopen_self_static=unknown
11218else
11219 lt_cv_dlopen=no
11220 lt_cv_dlopen_libs=
11221
11222 case $host_os in
11223 beos*)
11224 lt_cv_dlopen="load_add_on"
11225 lt_cv_dlopen_libs=
11226 lt_cv_dlopen_self=yes
11227 ;;
11228
11229 mingw* | pw32* | cegcc*)
11230 lt_cv_dlopen="LoadLibrary"
11231 lt_cv_dlopen_libs=
11232 ;;
11233
11234 cygwin*)
11235 lt_cv_dlopen="dlopen"
11236 lt_cv_dlopen_libs=
11237 ;;
11238
11239 darwin*)
11240 # if libdl is installed we need to link against it
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11242$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 11243if ${ac_cv_lib_dl_dlopen+:} false; then :
03385ed3 11244 $as_echo_n "(cached) " >&6
11245else
11246 ac_check_lib_save_LIBS=$LIBS
11247LIBS="-ldl $LIBS"
11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h. */
11250
11251/* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
11254#ifdef __cplusplus
11255extern "C"
11256#endif
11257char dlopen ();
11258int
11259main ()
11260{
11261return dlopen ();
11262 ;
11263 return 0;
11264}
11265_ACEOF
11266if ac_fn_c_try_link "$LINENO"; then :
11267 ac_cv_lib_dl_dlopen=yes
11268else
11269 ac_cv_lib_dl_dlopen=no
11270fi
11271rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273LIBS=$ac_check_lib_save_LIBS
11274fi
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11276$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 11277if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
03385ed3 11278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11279else
11280
11281 lt_cv_dlopen="dyld"
11282 lt_cv_dlopen_libs=
11283 lt_cv_dlopen_self=yes
11284
11285fi
11286
11287 ;;
11288
11289 *)
11290 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
f00f02a3 11291if test "x$ac_cv_func_shl_load" = xyes; then :
03385ed3 11292 lt_cv_dlopen="shl_load"
11293else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11295$as_echo_n "checking for shl_load in -ldld... " >&6; }
f00f02a3 11296if ${ac_cv_lib_dld_shl_load+:} false; then :
03385ed3 11297 $as_echo_n "(cached) " >&6
11298else
11299 ac_check_lib_save_LIBS=$LIBS
11300LIBS="-ldld $LIBS"
11301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h. */
11303
11304/* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
11307#ifdef __cplusplus
11308extern "C"
11309#endif
11310char shl_load ();
11311int
11312main ()
11313{
11314return shl_load ();
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320 ac_cv_lib_dld_shl_load=yes
11321else
11322 ac_cv_lib_dld_shl_load=no
11323fi
11324rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326LIBS=$ac_check_lib_save_LIBS
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11329$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
f00f02a3 11330if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
03385ed3 11331 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11332else
11333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
f00f02a3 11334if test "x$ac_cv_func_dlopen" = xyes; then :
03385ed3 11335 lt_cv_dlopen="dlopen"
11336else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11338$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 11339if ${ac_cv_lib_dl_dlopen+:} false; then :
03385ed3 11340 $as_echo_n "(cached) " >&6
11341else
11342 ac_check_lib_save_LIBS=$LIBS
11343LIBS="-ldl $LIBS"
11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h. */
11346
11347/* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350#ifdef __cplusplus
11351extern "C"
11352#endif
11353char dlopen ();
11354int
11355main ()
11356{
11357return dlopen ();
11358 ;
11359 return 0;
11360}
11361_ACEOF
11362if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dl_dlopen=yes
11364else
11365 ac_cv_lib_dl_dlopen=no
11366fi
11367rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369LIBS=$ac_check_lib_save_LIBS
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11372$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 11373if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
03385ed3 11374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11375else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11377$as_echo_n "checking for dlopen in -lsvld... " >&6; }
f00f02a3 11378if ${ac_cv_lib_svld_dlopen+:} false; then :
03385ed3 11379 $as_echo_n "(cached) " >&6
11380else
11381 ac_check_lib_save_LIBS=$LIBS
11382LIBS="-lsvld $LIBS"
11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h. */
11385
11386/* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389#ifdef __cplusplus
11390extern "C"
11391#endif
11392char dlopen ();
11393int
11394main ()
11395{
11396return dlopen ();
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_lib_svld_dlopen=yes
11403else
11404 ac_cv_lib_svld_dlopen=no
11405fi
11406rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
11408LIBS=$ac_check_lib_save_LIBS
11409fi
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11411$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
f00f02a3 11412if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
03385ed3 11413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11414else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11416$as_echo_n "checking for dld_link in -ldld... " >&6; }
f00f02a3 11417if ${ac_cv_lib_dld_dld_link+:} false; then :
03385ed3 11418 $as_echo_n "(cached) " >&6
11419else
11420 ac_check_lib_save_LIBS=$LIBS
11421LIBS="-ldld $LIBS"
11422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423/* end confdefs.h. */
11424
11425/* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428#ifdef __cplusplus
11429extern "C"
11430#endif
11431char dld_link ();
11432int
11433main ()
11434{
11435return dld_link ();
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dld_dld_link=yes
11442else
11443 ac_cv_lib_dld_dld_link=no
11444fi
11445rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447LIBS=$ac_check_lib_save_LIBS
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11450$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
f00f02a3 11451if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
03385ed3 11452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11453fi
11454
11455
11456fi
11457
11458
11459fi
11460
11461
11462fi
11463
11464
11465fi
11466
11467
11468fi
11469
11470 ;;
11471 esac
11472
11473 if test "x$lt_cv_dlopen" != xno; then
11474 enable_dlopen=yes
11475 else
11476 enable_dlopen=no
11477 fi
11478
11479 case $lt_cv_dlopen in
11480 dlopen)
11481 save_CPPFLAGS="$CPPFLAGS"
11482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11483
11484 save_LDFLAGS="$LDFLAGS"
11485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11486
11487 save_LIBS="$LIBS"
11488 LIBS="$lt_cv_dlopen_libs $LIBS"
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11491$as_echo_n "checking whether a program can dlopen itself... " >&6; }
f00f02a3 11492if ${lt_cv_dlopen_self+:} false; then :
03385ed3 11493 $as_echo_n "(cached) " >&6
11494else
11495 if test "$cross_compiling" = yes; then :
11496 lt_cv_dlopen_self=cross
11497else
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<_LT_EOF
e06fcd5a 11501#line 11501 "configure"
03385ed3 11502#include "confdefs.h"
11503
11504#if HAVE_DLFCN_H
11505#include <dlfcn.h>
11506#endif
11507
11508#include <stdio.h>
11509
11510#ifdef RTLD_GLOBAL
11511# define LT_DLGLOBAL RTLD_GLOBAL
11512#else
11513# ifdef DL_GLOBAL
11514# define LT_DLGLOBAL DL_GLOBAL
11515# else
11516# define LT_DLGLOBAL 0
11517# endif
11518#endif
11519
11520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522#ifndef LT_DLLAZY_OR_NOW
11523# ifdef RTLD_LAZY
11524# define LT_DLLAZY_OR_NOW RTLD_LAZY
11525# else
11526# ifdef DL_LAZY
11527# define LT_DLLAZY_OR_NOW DL_LAZY
11528# else
11529# ifdef RTLD_NOW
11530# define LT_DLLAZY_OR_NOW RTLD_NOW
11531# else
11532# ifdef DL_NOW
11533# define LT_DLLAZY_OR_NOW DL_NOW
11534# else
11535# define LT_DLLAZY_OR_NOW 0
11536# endif
11537# endif
11538# endif
11539# endif
11540#endif
11541
11542/* When -fvisbility=hidden is used, assume the code has been annotated
11543 correspondingly for the symbols needed. */
11544#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11545void fnord () __attribute__((visibility("default")));
11546#endif
11547
11548void fnord () { int i=42; }
11549int main ()
11550{
11551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552 int status = $lt_dlunknown;
11553
11554 if (self)
11555 {
11556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11557 else
11558 {
11559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11560 else puts (dlerror ());
11561 }
11562 /* dlclose (self); */
11563 }
11564 else
11565 puts (dlerror ());
11566
11567 return status;
11568}
11569_LT_EOF
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11571 (eval $ac_link) 2>&5
11572 ac_status=$?
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11575 (./conftest; exit; ) >&5 2>/dev/null
11576 lt_status=$?
11577 case x$lt_status in
11578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11580 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11581 esac
11582 else :
11583 # compilation failed
11584 lt_cv_dlopen_self=no
11585 fi
11586fi
11587rm -fr conftest*
11588
11589
11590fi
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11592$as_echo "$lt_cv_dlopen_self" >&6; }
11593
11594 if test "x$lt_cv_dlopen_self" = xyes; then
11595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11597$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
f00f02a3 11598if ${lt_cv_dlopen_self_static+:} false; then :
03385ed3 11599 $as_echo_n "(cached) " >&6
11600else
11601 if test "$cross_compiling" = yes; then :
11602 lt_cv_dlopen_self_static=cross
11603else
11604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11605 lt_status=$lt_dlunknown
11606 cat > conftest.$ac_ext <<_LT_EOF
e06fcd5a 11607#line 11607 "configure"
03385ed3 11608#include "confdefs.h"
11609
11610#if HAVE_DLFCN_H
11611#include <dlfcn.h>
11612#endif
11613
11614#include <stdio.h>
11615
11616#ifdef RTLD_GLOBAL
11617# define LT_DLGLOBAL RTLD_GLOBAL
11618#else
11619# ifdef DL_GLOBAL
11620# define LT_DLGLOBAL DL_GLOBAL
11621# else
11622# define LT_DLGLOBAL 0
11623# endif
11624#endif
11625
11626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11627 find out it does not work in some platform. */
11628#ifndef LT_DLLAZY_OR_NOW
11629# ifdef RTLD_LAZY
11630# define LT_DLLAZY_OR_NOW RTLD_LAZY
11631# else
11632# ifdef DL_LAZY
11633# define LT_DLLAZY_OR_NOW DL_LAZY
11634# else
11635# ifdef RTLD_NOW
11636# define LT_DLLAZY_OR_NOW RTLD_NOW
11637# else
11638# ifdef DL_NOW
11639# define LT_DLLAZY_OR_NOW DL_NOW
11640# else
11641# define LT_DLLAZY_OR_NOW 0
11642# endif
11643# endif
11644# endif
11645# endif
11646#endif
11647
11648/* When -fvisbility=hidden is used, assume the code has been annotated
11649 correspondingly for the symbols needed. */
11650#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11651void fnord () __attribute__((visibility("default")));
11652#endif
11653
11654void fnord () { int i=42; }
11655int main ()
11656{
11657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11658 int status = $lt_dlunknown;
11659
11660 if (self)
11661 {
11662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11663 else
11664 {
11665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11666 else puts (dlerror ());
11667 }
11668 /* dlclose (self); */
11669 }
11670 else
11671 puts (dlerror ());
11672
11673 return status;
11674}
11675_LT_EOF
11676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11681 (./conftest; exit; ) >&5 2>/dev/null
11682 lt_status=$?
11683 case x$lt_status in
11684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11687 esac
11688 else :
11689 # compilation failed
11690 lt_cv_dlopen_self_static=no
11691 fi
11692fi
11693rm -fr conftest*
11694
11695
11696fi
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11698$as_echo "$lt_cv_dlopen_self_static" >&6; }
11699 fi
11700
11701 CPPFLAGS="$save_CPPFLAGS"
11702 LDFLAGS="$save_LDFLAGS"
11703 LIBS="$save_LIBS"
11704 ;;
11705 esac
11706
11707 case $lt_cv_dlopen_self in
11708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11709 *) enable_dlopen_self=unknown ;;
11710 esac
11711
11712 case $lt_cv_dlopen_self_static in
11713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11714 *) enable_dlopen_self_static=unknown ;;
11715 esac
11716fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734striplib=
11735old_striplib=
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11737$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11738if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742$as_echo "yes" >&6; }
11743else
11744# FIXME - insert some real tests, host_os isn't really good enough
11745 case $host_os in
11746 darwin*)
11747 if test -n "$STRIP" ; then
11748 striplib="$STRIP -x"
11749 old_striplib="$STRIP -S"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751$as_echo "yes" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754$as_echo "no" >&6; }
11755 fi
11756 ;;
11757 *)
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760 ;;
11761 esac
11762fi
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 # Report which library types will actually be built
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11777$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11779$as_echo "$can_build_shared" >&6; }
11780
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11782$as_echo_n "checking whether to build shared libraries... " >&6; }
11783 test "$can_build_shared" = "no" && enable_shared=no
11784
11785 # On AIX, shared libraries and static libraries use the same namespace, and
11786 # are all built from PIC.
11787 case $host_os in
11788 aix3*)
11789 test "$enable_shared" = yes && enable_static=no
11790 if test -n "$RANLIB"; then
11791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11792 postinstall_cmds='$RANLIB $lib'
11793 fi
11794 ;;
11795
11796 aix[4-9]*)
11797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11798 test "$enable_shared" = yes && enable_static=no
11799 fi
11800 ;;
11801 esac
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11803$as_echo "$enable_shared" >&6; }
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11806$as_echo_n "checking whether to build static libraries... " >&6; }
11807 # Make sure either enable_shared or enable_static is yes.
11808 test "$enable_shared" = yes || enable_static=yes
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11810$as_echo "$enable_static" >&6; }
11811
11812
11813
11814
11815fi
11816ac_ext=c
11817ac_cpp='$CPP $CPPFLAGS'
11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822CC="$lt_save_CC"
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836 ac_config_commands="$ac_config_commands libtool"
11837
11838
11839
11840
11841# Only expand once:
11842
11843
11844
11845
11846
11847 gdc_save_DFLAGS=$GDCFLAGS
11848 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11849
11850
11851# Source file extension for D test sources.
11852ac_ext=d
11853
11854# Object file extension for compiled D test sources.
11855objext=o
11856objext_D=$objext
11857
11858# Code to be used in simple compile tests
11859lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11860
11861# Code to be used in simple link tests
11862lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11863
11864# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11865
11866
11867
11868
11869
11870
11871# If no C compiler was specified, use CC.
11872LTCC=${LTCC-"$CC"}
11873
11874# If no C compiler flags were specified, use CFLAGS.
11875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11876
11877# Allow CC to be a program name with arguments.
11878compiler=$CC
11879
11880
11881# save warnings/boilerplate of simple test code
11882ac_outfile=conftest.$ac_objext
11883echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11884eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11885_lt_compiler_boilerplate=`cat conftest.err`
11886$RM conftest*
11887
11888ac_outfile=conftest.$ac_objext
11889echo "$lt_simple_link_test_code" >conftest.$ac_ext
11890eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11891_lt_linker_boilerplate=`cat conftest.err`
11892$RM -r conftest*
11893
11894
11895# Allow CC to be a program name with arguments.
11896lt_save_CC=$CC
11897lt_save_CFLAGS=$CFLAGS
11898lt_save_DFLAGS=$GDCFLAGS
11899lt_save_GCC=$GCC
11900GCC=yes
11901CC=${GDC-"gdc"}
11902# Need to specify location for object.d
11903GDCFLAGS="-nophoboslib $GDCFLAGS"
11904CFLAGS=$GDCFLAGS
11905compiler=$CC
11906compiler_D=$CC
11907LD_D=$CC
11908for cc_temp in $compiler""; do
11909 case $cc_temp in
11910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11912 \-*) ;;
11913 *) break;;
11914 esac
11915done
11916cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11917
11918
11919# GDC did not exist at the time GCC didn't implicitly link libc in.
11920archive_cmds_need_lc_D=no
11921
11922old_archive_cmds_D=$old_archive_cmds
11923reload_flag_D=$reload_flag
11924reload_cmds_D=$reload_cmds
11925
11926## CAVEAT EMPTOR:
11927## There is no encapsulation within the following macros, do not change
11928## the running order or otherwise move them around unless you know exactly
11929## what you are doing...
11930if test -n "$compiler"; then
11931
11932lt_prog_compiler_no_builtin_flag_D=
11933
11934if test "$GCC" = yes; then
11935 case $cc_basename in
11936 nvcc*)
11937 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11938 *)
11939 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11940 esac
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11943$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
f00f02a3 11944if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
03385ed3 11945 $as_echo_n "(cached) " >&6
11946else
11947 lt_cv_prog_compiler_rtti_exceptions=no
11948 ac_outfile=conftest.$ac_objext
11949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11950 lt_compiler_flag="-fno-rtti -fno-exceptions"
11951 # Insert the option either (1) after the last *FLAGS variable, or
11952 # (2) before a word containing "conftest.", or (3) at the end.
11953 # Note that $ac_compile itself does not contain backslashes and begins
11954 # with a dollar sign (not a hyphen), so the echo should work correctly.
11955 # The option is referenced via a variable to avoid confusing sed.
11956 lt_compile=`echo "$ac_compile" | $SED \
11957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11959 -e 's:$: $lt_compiler_flag:'`
11960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11961 (eval "$lt_compile" 2>conftest.err)
11962 ac_status=$?
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 if (exit $ac_status) && test -s "$ac_outfile"; then
11966 # The compiler can only warn and ignore the option if not recognized
11967 # So say no if there are warnings other than the usual output.
11968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11971 lt_cv_prog_compiler_rtti_exceptions=yes
11972 fi
11973 fi
11974 $RM conftest*
11975
11976fi
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11978$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11979
11980if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11981 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11982else
11983 :
11984fi
11985
11986fi
11987
11988
11989
11990 lt_prog_compiler_wl_D=
11991lt_prog_compiler_pic_D=
11992lt_prog_compiler_static_D=
11993
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11995$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11996
11997 if test "$GCC" = yes; then
11998 lt_prog_compiler_wl_D='-Wl,'
11999 lt_prog_compiler_static_D='-static'
12000
12001 case $host_os in
12002 aix*)
12003 # All AIX code is PIC.
12004 if test "$host_cpu" = ia64; then
12005 # AIX 5 now supports IA64 processor
12006 lt_prog_compiler_static_D='-Bstatic'
12007 fi
12008 lt_prog_compiler_pic_D='-fPIC'
12009 ;;
12010
12011 amigaos*)
12012 case $host_cpu in
12013 powerpc)
12014 # see comment about AmigaOS4 .so support
12015 lt_prog_compiler_pic_D='-fPIC'
12016 ;;
12017 m68k)
12018 # FIXME: we need at least 68020 code to build shared libraries, but
12019 # adding the `-m68020' flag to GCC prevents building anything better,
12020 # like `-m68040'.
12021 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12022 ;;
12023 esac
12024 ;;
12025
12026 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027 # PIC is the default for these OSes.
12028 ;;
12029
12030 mingw* | cygwin* | pw32* | os2* | cegcc*)
12031 # This hack is so that the source file can tell whether it is being
12032 # built for inclusion in a dll (and should export symbols for example).
12033 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12034 # (--disable-auto-import) libraries
12035 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12036 ;;
12037
12038 darwin* | rhapsody*)
12039 # PIC is the default on this platform
12040 # Common symbols not allowed in MH_DYLIB files
12041 lt_prog_compiler_pic_D='-fno-common'
12042 ;;
12043
12044 haiku*)
12045 # PIC is the default for Haiku.
12046 # The "-static" flag exists, but is broken.
12047 lt_prog_compiler_static_D=
12048 ;;
12049
12050 hpux*)
12051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12053 # sets the default TLS model and affects inlining.
12054 case $host_cpu in
12055 hppa*64*)
12056 # +Z the default
12057 ;;
12058 *)
12059 lt_prog_compiler_pic_D='-fPIC'
12060 ;;
12061 esac
12062 ;;
12063
12064 interix[3-9]*)
12065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12066 # Instead, we relocate shared libraries at runtime.
12067 ;;
12068
12069 msdosdjgpp*)
12070 # Just because we use GCC doesn't mean we suddenly get shared libraries
12071 # on systems that don't support them.
12072 lt_prog_compiler_can_build_shared_D=no
12073 enable_shared=no
12074 ;;
12075
12076 *nto* | *qnx*)
12077 # QNX uses GNU C++, but need to define -shared option too, otherwise
12078 # it will coredump.
12079 lt_prog_compiler_pic_D='-fPIC -shared'
12080 ;;
12081
12082 sysv4*MP*)
12083 if test -d /usr/nec; then
12084 lt_prog_compiler_pic_D=-Kconform_pic
12085 fi
12086 ;;
12087
12088 *)
12089 lt_prog_compiler_pic_D='-fPIC'
12090 ;;
12091 esac
12092
12093 case $cc_basename in
12094 nvcc*) # Cuda Compiler Driver 2.2
12095 lt_prog_compiler_wl_D='-Xlinker '
12096 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12097 ;;
12098 esac
12099 else
12100 # PORTME Check for flag to pass linker flags through the system compiler.
12101 case $host_os in
12102 aix*)
12103 lt_prog_compiler_wl_D='-Wl,'
12104 if test "$host_cpu" = ia64; then
12105 # AIX 5 now supports IA64 processor
12106 lt_prog_compiler_static_D='-Bstatic'
12107 else
12108 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12109 fi
12110 ;;
12111
12112 mingw* | cygwin* | pw32* | os2* | cegcc*)
12113 # This hack is so that the source file can tell whether it is being
12114 # built for inclusion in a dll (and should export symbols for example).
12115 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12116 ;;
12117
12118 hpux9* | hpux10* | hpux11*)
12119 lt_prog_compiler_wl_D='-Wl,'
12120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12121 # not for PA HP-UX.
12122 case $host_cpu in
12123 hppa*64*|ia64*)
12124 # +Z the default
12125 ;;
12126 *)
12127 lt_prog_compiler_pic_D='+Z'
12128 ;;
12129 esac
12130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12131 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12132 ;;
12133
12134 irix5* | irix6* | nonstopux*)
12135 lt_prog_compiler_wl_D='-Wl,'
12136 # PIC (with -KPIC) is the default.
12137 lt_prog_compiler_static_D='-non_shared'
12138 ;;
12139
12140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12141 case $cc_basename in
12142 # old Intel for x86_64 which still supported -KPIC.
12143 ecc*)
12144 lt_prog_compiler_wl_D='-Wl,'
12145 lt_prog_compiler_pic_D='-KPIC'
12146 lt_prog_compiler_static_D='-static'
12147 ;;
12148 # icc used to be incompatible with GCC.
12149 # ICC 10 doesn't accept -KPIC any more.
12150 icc* | ifort*)
12151 lt_prog_compiler_wl_D='-Wl,'
12152 lt_prog_compiler_pic_D='-fPIC'
12153 lt_prog_compiler_static_D='-static'
12154 ;;
12155 # Lahey Fortran 8.1.
12156 lf95*)
12157 lt_prog_compiler_wl_D='-Wl,'
12158 lt_prog_compiler_pic_D='--shared'
12159 lt_prog_compiler_static_D='--static'
12160 ;;
12161 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12162 # Portland Group compilers (*not* the Pentium gcc compiler,
12163 # which looks to be a dead project)
12164 lt_prog_compiler_wl_D='-Wl,'
12165 lt_prog_compiler_pic_D='-fpic'
12166 lt_prog_compiler_static_D='-Bstatic'
12167 ;;
12168 ccc*)
12169 lt_prog_compiler_wl_D='-Wl,'
12170 # All Alpha code is PIC.
12171 lt_prog_compiler_static_D='-non_shared'
12172 ;;
12173 xl* | bgxl* | bgf* | mpixl*)
12174 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12175 lt_prog_compiler_wl_D='-Wl,'
12176 lt_prog_compiler_pic_D='-qpic'
12177 lt_prog_compiler_static_D='-qstaticlink'
12178 ;;
12179 *)
12180 case `$CC -V 2>&1 | sed 5q` in
12181 *Sun\ F* | *Sun*Fortran*)
12182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12183 lt_prog_compiler_pic_D='-KPIC'
12184 lt_prog_compiler_static_D='-Bstatic'
12185 lt_prog_compiler_wl_D=''
12186 ;;
12187 *Sun\ C*)
12188 # Sun C 5.9
12189 lt_prog_compiler_pic_D='-KPIC'
12190 lt_prog_compiler_static_D='-Bstatic'
12191 lt_prog_compiler_wl_D='-Wl,'
12192 ;;
12193 esac
12194 ;;
12195 esac
12196 ;;
12197
12198 newsos6)
12199 lt_prog_compiler_pic_D='-KPIC'
12200 lt_prog_compiler_static_D='-Bstatic'
12201 ;;
12202
12203 *nto* | *qnx*)
12204 # QNX uses GNU C++, but need to define -shared option too, otherwise
12205 # it will coredump.
12206 lt_prog_compiler_pic_D='-fPIC -shared'
12207 ;;
12208
12209 osf3* | osf4* | osf5*)
12210 lt_prog_compiler_wl_D='-Wl,'
12211 # All OSF/1 code is PIC.
12212 lt_prog_compiler_static_D='-non_shared'
12213 ;;
12214
12215 rdos*)
12216 lt_prog_compiler_static_D='-non_shared'
12217 ;;
12218
12219 solaris*)
12220 lt_prog_compiler_pic_D='-KPIC'
12221 lt_prog_compiler_static_D='-Bstatic'
12222 case $cc_basename in
12223 f77* | f90* | f95*)
12224 lt_prog_compiler_wl_D='-Qoption ld ';;
12225 *)
12226 lt_prog_compiler_wl_D='-Wl,';;
12227 esac
12228 ;;
12229
12230 sunos4*)
12231 lt_prog_compiler_wl_D='-Qoption ld '
12232 lt_prog_compiler_pic_D='-PIC'
12233 lt_prog_compiler_static_D='-Bstatic'
12234 ;;
12235
12236 sysv4 | sysv4.2uw2* | sysv4.3*)
12237 lt_prog_compiler_wl_D='-Wl,'
12238 lt_prog_compiler_pic_D='-KPIC'
12239 lt_prog_compiler_static_D='-Bstatic'
12240 ;;
12241
12242 sysv4*MP*)
12243 if test -d /usr/nec ;then
12244 lt_prog_compiler_pic_D='-Kconform_pic'
12245 lt_prog_compiler_static_D='-Bstatic'
12246 fi
12247 ;;
12248
12249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12250 lt_prog_compiler_wl_D='-Wl,'
12251 lt_prog_compiler_pic_D='-KPIC'
12252 lt_prog_compiler_static_D='-Bstatic'
12253 ;;
12254
12255 unicos*)
12256 lt_prog_compiler_wl_D='-Wl,'
12257 lt_prog_compiler_can_build_shared_D=no
12258 ;;
12259
12260 uts4*)
12261 lt_prog_compiler_pic_D='-pic'
12262 lt_prog_compiler_static_D='-Bstatic'
12263 ;;
12264
12265 *)
12266 lt_prog_compiler_can_build_shared_D=no
12267 ;;
12268 esac
12269 fi
12270
12271case $host_os in
12272 # For platforms which do not support PIC, -DPIC is meaningless:
12273 *djgpp*)
12274 lt_prog_compiler_pic_D=
12275 ;;
12276 *)
12277 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12278 ;;
12279esac
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12281$as_echo "$lt_prog_compiler_pic_D" >&6; }
12282
12283
12284
12285#
12286# Check to make sure the PIC flag actually works.
12287#
12288if test -n "$lt_prog_compiler_pic_D"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12290$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
f00f02a3 12291if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
03385ed3 12292 $as_echo_n "(cached) " >&6
12293else
12294 lt_cv_prog_compiler_pic_works_D=no
12295 ac_outfile=conftest.$ac_objext
12296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12297 lt_compiler_flag="$lt_prog_compiler_pic_D"
12298 # Insert the option either (1) after the last *FLAGS variable, or
12299 # (2) before a word containing "conftest.", or (3) at the end.
12300 # Note that $ac_compile itself does not contain backslashes and begins
12301 # with a dollar sign (not a hyphen), so the echo should work correctly.
12302 # The option is referenced via a variable to avoid confusing sed.
12303 lt_compile=`echo "$ac_compile" | $SED \
12304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306 -e 's:$: $lt_compiler_flag:'`
12307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12308 (eval "$lt_compile" 2>conftest.err)
12309 ac_status=$?
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 if (exit $ac_status) && test -s "$ac_outfile"; then
12313 # The compiler can only warn and ignore the option if not recognized
12314 # So say no if there are warnings other than the usual output.
12315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12318 lt_cv_prog_compiler_pic_works_D=yes
12319 fi
12320 fi
12321 $RM conftest*
12322
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12325$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12326
12327if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12328 case $lt_prog_compiler_pic_D in
12329 "" | " "*) ;;
12330 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12331 esac
12332else
12333 lt_prog_compiler_pic_D=
12334 lt_prog_compiler_can_build_shared_D=no
12335fi
12336
12337fi
12338
12339
12340
12341#
12342# Check to make sure the static flag actually works.
12343#
12344wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12346$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 12347if ${lt_cv_prog_compiler_static_works_D+:} false; then :
03385ed3 12348 $as_echo_n "(cached) " >&6
12349else
12350 lt_cv_prog_compiler_static_works_D=no
12351 save_LDFLAGS="$LDFLAGS"
12352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12355 # The linker can only warn and ignore the option if not recognized
12356 # So say no if there are warnings
12357 if test -s conftest.err; then
12358 # Append any errors to the config.log.
12359 cat conftest.err 1>&5
12360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12362 if diff conftest.exp conftest.er2 >/dev/null; then
12363 lt_cv_prog_compiler_static_works_D=yes
12364 fi
12365 else
12366 lt_cv_prog_compiler_static_works_D=yes
12367 fi
12368 fi
12369 $RM -r conftest*
12370 LDFLAGS="$save_LDFLAGS"
12371
12372fi
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12374$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12375
12376if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12377 :
12378else
12379 lt_prog_compiler_static_D=
12380fi
12381
12382
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12386$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 12387if ${lt_cv_prog_compiler_c_o_D+:} false; then :
03385ed3 12388 $as_echo_n "(cached) " >&6
12389else
12390 lt_cv_prog_compiler_c_o_D=no
12391 $RM -r conftest 2>/dev/null
12392 mkdir conftest
12393 cd conftest
12394 mkdir out
12395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12396
12397 lt_compiler_flag="-o out/conftest2.$ac_objext"
12398 # Insert the option either (1) after the last *FLAGS variable, or
12399 # (2) before a word containing "conftest.", or (3) at the end.
12400 # Note that $ac_compile itself does not contain backslashes and begins
12401 # with a dollar sign (not a hyphen), so the echo should work correctly.
12402 lt_compile=`echo "$ac_compile" | $SED \
12403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12405 -e 's:$: $lt_compiler_flag:'`
12406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12407 (eval "$lt_compile" 2>out/conftest.err)
12408 ac_status=$?
12409 cat out/conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12412 then
12413 # The compiler can only warn and ignore the option if not recognized
12414 # So say no if there are warnings
12415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12418 lt_cv_prog_compiler_c_o_D=yes
12419 fi
12420 fi
12421 chmod u+w . 2>&5
12422 $RM conftest*
12423 # SGI C++ compiler will create directory out/ii_files/ for
12424 # template instantiation
12425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12426 $RM out/* && rmdir out
12427 cd ..
12428 $RM -r conftest
12429 $RM conftest*
12430
12431fi
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12433$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12434
12435
12436
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12438$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 12439if ${lt_cv_prog_compiler_c_o_D+:} false; then :
03385ed3 12440 $as_echo_n "(cached) " >&6
12441else
12442 lt_cv_prog_compiler_c_o_D=no
12443 $RM -r conftest 2>/dev/null
12444 mkdir conftest
12445 cd conftest
12446 mkdir out
12447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12448
12449 lt_compiler_flag="-o out/conftest2.$ac_objext"
12450 # Insert the option either (1) after the last *FLAGS variable, or
12451 # (2) before a word containing "conftest.", or (3) at the end.
12452 # Note that $ac_compile itself does not contain backslashes and begins
12453 # with a dollar sign (not a hyphen), so the echo should work correctly.
12454 lt_compile=`echo "$ac_compile" | $SED \
12455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12457 -e 's:$: $lt_compiler_flag:'`
12458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12459 (eval "$lt_compile" 2>out/conftest.err)
12460 ac_status=$?
12461 cat out/conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12464 then
12465 # The compiler can only warn and ignore the option if not recognized
12466 # So say no if there are warnings
12467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12470 lt_cv_prog_compiler_c_o_D=yes
12471 fi
12472 fi
12473 chmod u+w . 2>&5
12474 $RM conftest*
12475 # SGI C++ compiler will create directory out/ii_files/ for
12476 # template instantiation
12477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12478 $RM out/* && rmdir out
12479 cd ..
12480 $RM -r conftest
12481 $RM conftest*
12482
12483fi
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12485$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12486
12487
12488
12489
12490hard_links="nottested"
12491if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12492 # do not overwrite the value of need_locks provided by the user
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12494$as_echo_n "checking if we can lock with hard links... " >&6; }
12495 hard_links=yes
12496 $RM conftest*
12497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12498 touch conftest.a
12499 ln conftest.a conftest.b 2>&5 || hard_links=no
12500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12502$as_echo "$hard_links" >&6; }
12503 if test "$hard_links" = no; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12505$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12506 need_locks=warn
12507 fi
12508else
12509 need_locks=no
12510fi
12511
12512
12513
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12515$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12516
12517 runpath_var=
12518 allow_undefined_flag_D=
12519 always_export_symbols_D=no
12520 archive_cmds_D=
12521 archive_expsym_cmds_D=
12522 compiler_needs_object_D=no
12523 enable_shared_with_static_runtimes_D=no
12524 export_dynamic_flag_spec_D=
12525 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12526 hardcode_automatic_D=no
12527 hardcode_direct_D=no
12528 hardcode_direct_absolute_D=no
12529 hardcode_libdir_flag_spec_D=
12530 hardcode_libdir_flag_spec_ld_D=
12531 hardcode_libdir_separator_D=
12532 hardcode_minus_L_D=no
12533 hardcode_shlibpath_var_D=unsupported
12534 inherit_rpath_D=no
12535 link_all_deplibs_D=unknown
12536 module_cmds_D=
12537 module_expsym_cmds_D=
12538 old_archive_from_new_cmds_D=
12539 old_archive_from_expsyms_cmds_D=
12540 thread_safe_flag_spec_D=
12541 whole_archive_flag_spec_D=
12542 # include_expsyms should be a list of space-separated symbols to be *always*
12543 # included in the symbol list
12544 include_expsyms_D=
12545 # exclude_expsyms can be an extended regexp of symbols to exclude
12546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12548 # as well as any symbol that contains `d'.
12549 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12551 # platforms (ab)use it in PIC code, but their linkers get confused if
12552 # the symbol is explicitly referenced. Since portable code cannot
12553 # rely on this symbol name, it's probably fine to never include it in
12554 # preloaded symbol tables.
12555 # Exclude shared library initialization/finalization symbols.
12556 extract_expsyms_cmds=
12557
12558 case $host_os in
12559 cygwin* | mingw* | pw32* | cegcc*)
12560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12561 # When not using gcc, we currently assume that we are using
12562 # Microsoft Visual C++.
12563 if test "$GCC" != yes; then
12564 with_gnu_ld=no
12565 fi
12566 ;;
12567 interix*)
12568 # we just hope/assume this is gcc and not c89 (= MSVC++)
12569 with_gnu_ld=yes
12570 ;;
12571 openbsd*)
12572 with_gnu_ld=no
12573 ;;
12574 esac
12575
12576 ld_shlibs_D=yes
12577
12578 # On some targets, GNU ld is compatible enough with the native linker
12579 # that we're better off using the native interface for both.
12580 lt_use_gnu_ld_interface=no
12581 if test "$with_gnu_ld" = yes; then
12582 case $host_os in
12583 aix*)
12584 # The AIX port of GNU ld has always aspired to compatibility
12585 # with the native linker. However, as the warning in the GNU ld
12586 # block says, versions before 2.19.5* couldn't really create working
12587 # shared libraries, regardless of the interface used.
12588 case `$LD -v 2>&1` in
12589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12591 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12592 *)
12593 lt_use_gnu_ld_interface=yes
12594 ;;
12595 esac
12596 ;;
12597 *)
12598 lt_use_gnu_ld_interface=yes
12599 ;;
12600 esac
12601 fi
12602
12603 if test "$lt_use_gnu_ld_interface" = yes; then
12604 # If archive_cmds runs LD, not CC, wlarc should be empty
12605 wlarc='${wl}'
12606
12607 # Set some defaults for GNU ld with shared library support. These
12608 # are reset later if shared libraries are not supported. Putting them
12609 # here allows them to be overridden if necessary.
12610 runpath_var=LD_RUN_PATH
12611 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12612 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12613 # ancient GNU ld didn't support --whole-archive et. al.
12614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12615 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12616 else
12617 whole_archive_flag_spec_D=
12618 fi
12619 supports_anon_versioning=no
12620 case `$LD -v 2>&1` in
12621 *GNU\ gold*) supports_anon_versioning=yes ;;
12622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12625 *\ 2.11.*) ;; # other 2.11 versions
12626 *) supports_anon_versioning=yes ;;
12627 esac
12628
12629 # See if GNU ld supports shared libraries.
12630 case $host_os in
12631 aix[3-9]*)
12632 # On AIX/PPC, the GNU linker is very broken
12633 if test "$host_cpu" != ia64; then
12634 ld_shlibs_D=no
12635 cat <<_LT_EOF 1>&2
12636
12637*** Warning: the GNU linker, at least up to release 2.19, is reported
12638*** to be unable to reliably create shared libraries on AIX.
12639*** Therefore, libtool is disabling shared libraries support. If you
12640*** really care for shared libraries, you may want to install binutils
12641*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12642*** You will then need to restart the configuration process.
12643
12644_LT_EOF
12645 fi
12646 ;;
12647
12648 amigaos*)
12649 case $host_cpu in
12650 powerpc)
12651 # see comment about AmigaOS4 .so support
12652 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12653 archive_expsym_cmds_D=''
12654 ;;
12655 m68k)
12656 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)'
12657 hardcode_libdir_flag_spec_D='-L$libdir'
12658 hardcode_minus_L_D=yes
12659 ;;
12660 esac
12661 ;;
12662
12663 beos*)
12664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12665 allow_undefined_flag_D=unsupported
12666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12667 # support --undefined. This deserves some investigation. FIXME
12668 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 else
12670 ld_shlibs_D=no
12671 fi
12672 ;;
12673
12674 cygwin* | mingw* | pw32* | cegcc*)
12675 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12676 # as there is no search path for DLLs.
12677 hardcode_libdir_flag_spec_D='-L$libdir'
12678 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12679 allow_undefined_flag_D=unsupported
12680 always_export_symbols_D=no
12681 enable_shared_with_static_runtimes_D=yes
12682 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12683
12684 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12685 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12686 # If the export-symbols file already is a .def file (1st line
12687 # is EXPORTS), use it as is; otherwise, prepend...
12688 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12689 cp $export_symbols $output_objdir/$soname.def;
12690 else
12691 echo EXPORTS > $output_objdir/$soname.def;
12692 cat $export_symbols >> $output_objdir/$soname.def;
12693 fi~
12694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12695 else
12696 ld_shlibs_D=no
12697 fi
12698 ;;
12699
12700 haiku*)
12701 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702 link_all_deplibs_D=yes
12703 ;;
12704
12705 interix[3-9]*)
12706 hardcode_direct_D=no
12707 hardcode_shlibpath_var_D=no
12708 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12709 export_dynamic_flag_spec_D='${wl}-E'
12710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12711 # Instead, shared libraries are loaded at an image base (0x10000000 by
12712 # default) and relocated if they conflict, which is a slow very memory
12713 # consuming and fragmenting process. To avoid this, we pick a random,
12714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12716 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'
12717 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'
12718 ;;
12719
12720 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12721 tmp_diet=no
12722 if test "$host_os" = linux-dietlibc; then
12723 case $cc_basename in
12724 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12725 esac
12726 fi
12727 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12728 && test "$tmp_diet" = no
12729 then
12730 tmp_addflag=' $pic_flag'
12731 tmp_sharedflag='-shared'
12732 case $cc_basename,$host_cpu in
12733 pgcc*) # Portland Group C compiler
12734 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12735 tmp_addflag=' $pic_flag'
12736 ;;
12737 pgf77* | pgf90* | pgf95* | pgfortran*)
12738 # Portland Group f77 and f90 compilers
12739 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'
12740 tmp_addflag=' $pic_flag -Mnomain' ;;
12741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12742 tmp_addflag=' -i_dynamic' ;;
12743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12744 tmp_addflag=' -i_dynamic -nofor_main' ;;
12745 ifc* | ifort*) # Intel Fortran compiler
12746 tmp_addflag=' -nofor_main' ;;
12747 lf95*) # Lahey Fortran 8.1
12748 whole_archive_flag_spec_D=
12749 tmp_sharedflag='--shared' ;;
12750 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12751 tmp_sharedflag='-qmkshrobj'
12752 tmp_addflag= ;;
12753 nvcc*) # Cuda Compiler Driver 2.2
12754 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'
12755 compiler_needs_object_D=yes
12756 ;;
12757 esac
12758 case `$CC -V 2>&1 | sed 5q` in
12759 *Sun\ C*) # Sun C 5.9
12760 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'
12761 compiler_needs_object_D=yes
12762 tmp_sharedflag='-G' ;;
12763 *Sun\ F*) # Sun Fortran 8.3
12764 tmp_sharedflag='-G' ;;
12765 esac
12766 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12767
12768 if test "x$supports_anon_versioning" = xyes; then
12769 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12771 echo "local: *; };" >> $output_objdir/$libname.ver~
12772 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12773 fi
12774
12775 case $cc_basename in
12776 xlf* | bgf* | bgxlf* | mpixlf*)
12777 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12778 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12779 hardcode_libdir_flag_spec_D=
12780 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12781 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12782 if test "x$supports_anon_versioning" = xyes; then
12783 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12785 echo "local: *; };" >> $output_objdir/$libname.ver~
12786 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12787 fi
12788 ;;
12789 esac
12790 else
12791 ld_shlibs_D=no
12792 fi
12793 ;;
12794
12795 netbsd*)
12796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12797 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12798 wlarc=
12799 else
12800 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12802 fi
12803 ;;
12804
12805 solaris*)
12806 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12807 ld_shlibs_D=no
12808 cat <<_LT_EOF 1>&2
12809
12810*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12811*** create shared libraries on Solaris systems. Therefore, libtool
12812*** is disabling shared libraries support. We urge you to upgrade GNU
12813*** binutils to release 2.9.1 or newer. Another option is to modify
12814*** your PATH or compiler configuration so that the native linker is
12815*** used, and then restart.
12816
12817_LT_EOF
12818 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12819 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12821 else
12822 ld_shlibs_D=no
12823 fi
12824 ;;
12825
12826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12827 case `$LD -v 2>&1` in
12828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12829 ld_shlibs_D=no
12830 cat <<_LT_EOF 1>&2
12831
12832*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12833*** reliably create shared libraries on SCO systems. Therefore, libtool
12834*** is disabling shared libraries support. We urge you to upgrade GNU
12835*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12836*** your PATH or compiler configuration so that the native linker is
12837*** used, and then restart.
12838
12839_LT_EOF
12840 ;;
12841 *)
12842 # For security reasons, it is highly recommended that you always
12843 # use absolute paths for naming shared libraries, and exclude the
12844 # DT_RUNPATH tag from executables and libraries. But doing so
12845 # requires that you compile everything twice, which is a pain.
12846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12847 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12848 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12849 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12850 else
12851 ld_shlibs_D=no
12852 fi
12853 ;;
12854 esac
12855 ;;
12856
12857 sunos4*)
12858 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12859 wlarc=
12860 hardcode_direct_D=yes
12861 hardcode_shlibpath_var_D=no
12862 ;;
12863
12864 *)
12865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12866 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12867 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12868 else
12869 ld_shlibs_D=no
12870 fi
12871 ;;
12872 esac
12873
12874 if test "$ld_shlibs_D" = no; then
12875 runpath_var=
12876 hardcode_libdir_flag_spec_D=
12877 export_dynamic_flag_spec_D=
12878 whole_archive_flag_spec_D=
12879 fi
12880 else
12881 # PORTME fill in a description of your system's linker (not GNU ld)
12882 case $host_os in
12883 aix3*)
12884 allow_undefined_flag_D=unsupported
12885 always_export_symbols_D=yes
12886 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'
12887 # Note: this linker hardcodes the directories in LIBPATH if there
12888 # are no directories specified by -L.
12889 hardcode_minus_L_D=yes
12890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12891 # Neither direct hardcoding nor static linking is supported with a
12892 # broken collect2.
12893 hardcode_direct_D=unsupported
12894 fi
12895 ;;
12896
12897 aix[4-9]*)
12898 if test "$host_cpu" = ia64; then
12899 # On IA64, the linker does run time linking by default, so we don't
12900 # have to do anything special.
12901 aix_use_runtimelinking=no
12902 exp_sym_flag='-Bexport'
12903 no_entry_flag=""
12904 else
12905 # If we're using GNU nm, then we don't want the "-C" option.
12906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12907 # Also, AIX nm treats weak defined symbols like other global
12908 # defined symbols, whereas GNU nm marks them as "W".
12909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12910 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'
12911 else
12912 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'
12913 fi
12914 aix_use_runtimelinking=no
12915
12916 # Test if we are trying to use run time linking or normal
12917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12918 # need to do runtime linking.
12919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12920 for ld_flag in $LDFLAGS; do
12921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12922 aix_use_runtimelinking=yes
12923 break
12924 fi
12925 done
12926 ;;
12927 esac
12928
12929 exp_sym_flag='-bexport'
12930 no_entry_flag='-bnoentry'
12931 fi
12932
12933 # When large executables or shared objects are built, AIX ld can
12934 # have problems creating the table of contents. If linking a library
12935 # or program results in "error TOC overflow" add -mminimal-toc to
12936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12938
12939 archive_cmds_D=''
12940 hardcode_direct_D=yes
12941 hardcode_direct_absolute_D=yes
12942 hardcode_libdir_separator_D=':'
12943 link_all_deplibs_D=yes
12944 file_list_spec_D='${wl}-f,'
12945
12946 if test "$GCC" = yes; then
12947 case $host_os in aix4.[012]|aix4.[012].*)
12948 # We only want to do this on AIX 4.2 and lower, the check
12949 # below for broken collect2 doesn't work under 4.3+
12950 collect2name=`${CC} -print-prog-name=collect2`
12951 if test -f "$collect2name" &&
12952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12953 then
12954 # We have reworked collect2
12955 :
12956 else
12957 # We have old collect2
12958 hardcode_direct_D=unsupported
12959 # It fails to find uninstalled libraries when the uninstalled
12960 # path is not listed in the libpath. Setting hardcode_minus_L
12961 # to unsupported forces relinking
12962 hardcode_minus_L_D=yes
12963 hardcode_libdir_flag_spec_D='-L$libdir'
12964 hardcode_libdir_separator_D=
12965 fi
12966 ;;
12967 esac
12968 shared_flag='-shared'
12969 if test "$aix_use_runtimelinking" = yes; then
12970 shared_flag="$shared_flag "'${wl}-G'
12971 fi
12972 else
12973 # not using gcc
12974 if test "$host_cpu" = ia64; then
12975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12976 # chokes on -Wl,-G. The following line is correct:
12977 shared_flag='-G'
12978 else
12979 if test "$aix_use_runtimelinking" = yes; then
12980 shared_flag='${wl}-G'
12981 else
12982 shared_flag='${wl}-bM:SRE'
12983 fi
12984 fi
12985 fi
12986
12987 export_dynamic_flag_spec_D='${wl}-bexpall'
12988 # It seems that -bexpall does not export symbols beginning with
12989 # underscore (_), so it is better to generate a list of symbols to export.
12990 always_export_symbols_D=yes
12991 if test "$aix_use_runtimelinking" = yes; then
12992 # Warning - without using the other runtime loading flags (-brtl),
12993 # -berok will link without error, but may produce a broken library.
12994 allow_undefined_flag_D='-berok'
12995 # Determine the default libpath from the value encoded in an
12996 # empty executable.
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998/* end confdefs.h. */
12999
13000int
13001main ()
13002{
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008if ac_fn_c_try_link "$LINENO"; then :
13009
13010lt_aix_libpath_sed='
13011 /Import File Strings/,/^$/ {
13012 /^0/ {
13013 s/^0 *\(.*\)$/\1/
13014 p
13015 }
13016 }'
13017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018# Check for a 64-bit object if we didn't find anything.
13019if test -z "$aix_libpath"; then
13020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13021fi
13022fi
13023rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13026
13027 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13028 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"
13029 else
13030 if test "$host_cpu" = ia64; then
13031 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13032 allow_undefined_flag_D="-z nodefs"
13033 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"
13034 else
13035 # Determine the default libpath from the value encoded in an
13036 # empty executable.
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h. */
13039
13040int
13041main ()
13042{
13043
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048if ac_fn_c_try_link "$LINENO"; then :
13049
13050lt_aix_libpath_sed='
13051 /Import File Strings/,/^$/ {
13052 /^0/ {
13053 s/^0 *\(.*\)$/\1/
13054 p
13055 }
13056 }'
13057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13058# Check for a 64-bit object if we didn't find anything.
13059if test -z "$aix_libpath"; then
13060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13061fi
13062fi
13063rm -f core conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13066
13067 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13068 # Warning - without using the other run time loading flags,
13069 # -berok will link without error, but may produce a broken library.
13070 no_undefined_flag_D=' ${wl}-bernotok'
13071 allow_undefined_flag_D=' ${wl}-berok'
13072 if test "$with_gnu_ld" = yes; then
13073 # We only use this code for GNU lds that support --whole-archive.
13074 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13075 else
13076 # Exported symbols can be pulled into shared objects from archives
13077 whole_archive_flag_spec_D='$convenience'
13078 fi
13079 archive_cmds_need_lc_D=yes
13080 # This is similar to how AIX traditionally builds its shared libraries.
13081 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'
13082 fi
13083 fi
13084 ;;
13085
13086 amigaos*)
13087 case $host_cpu in
13088 powerpc)
13089 # see comment about AmigaOS4 .so support
13090 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 archive_expsym_cmds_D=''
13092 ;;
13093 m68k)
13094 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)'
13095 hardcode_libdir_flag_spec_D='-L$libdir'
13096 hardcode_minus_L_D=yes
13097 ;;
13098 esac
13099 ;;
13100
13101 bsdi[45]*)
13102 export_dynamic_flag_spec_D=-rdynamic
13103 ;;
13104
13105 cygwin* | mingw* | pw32* | cegcc*)
13106 # When not using gcc, we currently assume that we are using
13107 # Microsoft Visual C++.
13108 # hardcode_libdir_flag_spec is actually meaningless, as there is
13109 # no search path for DLLs.
13110 hardcode_libdir_flag_spec_D=' '
13111 allow_undefined_flag_D=unsupported
13112 # Tell ltmain to make .lib files, not .a files.
13113 libext=lib
13114 # Tell ltmain to make .dll files, not .so files.
13115 shrext_cmds=".dll"
13116 # FIXME: Setting linknames here is a bad hack.
13117 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13118 # The linker will automatically build a .lib file if we build a DLL.
13119 old_archive_from_new_cmds_D='true'
13120 # FIXME: Should let the user specify the lib program.
13121 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13122 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13123 enable_shared_with_static_runtimes_D=yes
13124 ;;
13125
13126 darwin* | rhapsody*)
13127
13128
13129 archive_cmds_need_lc_D=no
13130 hardcode_direct_D=no
13131 hardcode_automatic_D=yes
13132 hardcode_shlibpath_var_D=unsupported
13133 if test "$lt_cv_ld_force_load" = "yes"; then
13134 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\"`'
13135 else
13136 whole_archive_flag_spec_D=''
13137 fi
13138 link_all_deplibs_D=yes
13139 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13140 case $cc_basename in
13141 ifort*) _lt_dar_can_shared=yes ;;
13142 *) _lt_dar_can_shared=$GCC ;;
13143 esac
13144 if test "$_lt_dar_can_shared" = "yes"; then
13145 output_verbose_link_cmd=func_echo_all
13146 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}"
13147 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13148 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}"
13149 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}"
13150
13151 else
13152 ld_shlibs_D=no
13153 fi
13154
13155 ;;
13156
13157 dgux*)
13158 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13159 hardcode_libdir_flag_spec_D='-L$libdir'
13160 hardcode_shlibpath_var_D=no
13161 ;;
13162
13163 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13164 # support. Future versions do this automatically, but an explicit c++rt0.o
13165 # does not break anything, and helps significantly (at the cost of a little
13166 # extra space).
13167 freebsd2.2*)
13168 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13169 hardcode_libdir_flag_spec_D='-R$libdir'
13170 hardcode_direct_D=yes
13171 hardcode_shlibpath_var_D=no
13172 ;;
13173
13174 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13175 freebsd2.*)
13176 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_direct_D=yes
13178 hardcode_minus_L_D=yes
13179 hardcode_shlibpath_var_D=no
13180 ;;
13181
13182 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13183 freebsd* | dragonfly*)
13184 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13185 hardcode_libdir_flag_spec_D='-R$libdir'
13186 hardcode_direct_D=yes
13187 hardcode_shlibpath_var_D=no
13188 ;;
13189
13190 hpux9*)
13191 if test "$GCC" = yes; then
13192 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'
13193 else
13194 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'
13195 fi
13196 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13197 hardcode_libdir_separator_D=:
13198 hardcode_direct_D=yes
13199
13200 # hardcode_minus_L: Not really in the search PATH,
13201 # but as the default location of the library.
13202 hardcode_minus_L_D=yes
13203 export_dynamic_flag_spec_D='${wl}-E'
13204 ;;
13205
13206 hpux10*)
13207 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13208 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13209 else
13210 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13211 fi
13212 if test "$with_gnu_ld" = no; then
13213 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13214 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13215 hardcode_libdir_separator_D=:
13216 hardcode_direct_D=yes
13217 hardcode_direct_absolute_D=yes
13218 export_dynamic_flag_spec_D='${wl}-E'
13219 # hardcode_minus_L: Not really in the search PATH,
13220 # but as the default location of the library.
13221 hardcode_minus_L_D=yes
13222 fi
13223 ;;
13224
13225 hpux11*)
13226 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13227 case $host_cpu in
13228 hppa*64*)
13229 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13230 ;;
13231 ia64*)
13232 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13233 ;;
13234 *)
13235 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13236 ;;
13237 esac
13238 else
13239 case $host_cpu in
13240 hppa*64*)
13241 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13242 ;;
13243 ia64*)
13244 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13245 ;;
13246 *)
13247 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13248 ;;
13249 esac
13250 fi
13251 if test "$with_gnu_ld" = no; then
13252 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13253 hardcode_libdir_separator_D=:
13254
13255 case $host_cpu in
13256 hppa*64*|ia64*)
13257 hardcode_direct_D=no
13258 hardcode_shlibpath_var_D=no
13259 ;;
13260 *)
13261 hardcode_direct_D=yes
13262 hardcode_direct_absolute_D=yes
13263 export_dynamic_flag_spec_D='${wl}-E'
13264
13265 # hardcode_minus_L: Not really in the search PATH,
13266 # but as the default location of the library.
13267 hardcode_minus_L_D=yes
13268 ;;
13269 esac
13270 fi
13271 ;;
13272
13273 irix5* | irix6* | nonstopux*)
13274 if test "$GCC" = yes; then
13275 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'
13276 # Try to use the -exported_symbol ld option, if it does not
13277 # work, assume that -exports_file does not work either and
13278 # implicitly export all symbols.
13279 save_LDFLAGS="$LDFLAGS"
13280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282/* end confdefs.h. */
13283int foo(void) {}
13284_ACEOF
13285if ac_fn_c_try_link "$LINENO"; then :
13286 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'
13287
13288fi
13289rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291 LDFLAGS="$save_LDFLAGS"
13292 else
13293 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'
13294 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'
13295 fi
13296 archive_cmds_need_lc_D='no'
13297 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13298 hardcode_libdir_separator_D=:
13299 inherit_rpath_D=yes
13300 link_all_deplibs_D=yes
13301 ;;
13302
13303 netbsd*)
13304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13305 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13306 else
13307 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13308 fi
13309 hardcode_libdir_flag_spec_D='-R$libdir'
13310 hardcode_direct_D=yes
13311 hardcode_shlibpath_var_D=no
13312 ;;
13313
13314 newsos6)
13315 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13316 hardcode_direct_D=yes
13317 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13318 hardcode_libdir_separator_D=:
13319 hardcode_shlibpath_var_D=no
13320 ;;
13321
13322 *nto* | *qnx*)
13323 ;;
13324
13325 openbsd*)
13326 if test -f /usr/libexec/ld.so; then
13327 hardcode_direct_D=yes
13328 hardcode_shlibpath_var_D=no
13329 hardcode_direct_absolute_D=yes
13330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13331 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13332 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13333 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13334 export_dynamic_flag_spec_D='${wl}-E'
13335 else
13336 case $host_os in
13337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13338 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13339 hardcode_libdir_flag_spec_D='-R$libdir'
13340 ;;
13341 *)
13342 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13343 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13344 ;;
13345 esac
13346 fi
13347 else
13348 ld_shlibs_D=no
13349 fi
13350 ;;
13351
13352 os2*)
13353 hardcode_libdir_flag_spec_D='-L$libdir'
13354 hardcode_minus_L_D=yes
13355 allow_undefined_flag_D=unsupported
13356 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'
13357 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13358 ;;
13359
13360 osf3*)
13361 if test "$GCC" = yes; then
13362 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13363 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'
13364 else
13365 allow_undefined_flag_D=' -expect_unresolved \*'
13366 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'
13367 fi
13368 archive_cmds_need_lc_D='no'
13369 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13370 hardcode_libdir_separator_D=:
13371 ;;
13372
13373 osf4* | osf5*) # as osf3* with the addition of -msym flag
13374 if test "$GCC" = yes; then
13375 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13376 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'
13377 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13378 else
13379 allow_undefined_flag_D=' -expect_unresolved \*'
13380 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'
13381 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~
13382 $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'
13383
13384 # Both c and cxx compiler support -rpath directly
13385 hardcode_libdir_flag_spec_D='-rpath $libdir'
13386 fi
13387 archive_cmds_need_lc_D='no'
13388 hardcode_libdir_separator_D=:
13389 ;;
13390
13391 solaris*)
13392 no_undefined_flag_D=' -z defs'
13393 if test "$GCC" = yes; then
13394 wlarc='${wl}'
13395 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13397 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13398 else
13399 case `$CC -V 2>&1` in
13400 *"Compilers 5.0"*)
13401 wlarc=''
13402 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13403 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13405 ;;
13406 *)
13407 wlarc='${wl}'
13408 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13409 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13411 ;;
13412 esac
13413 fi
13414 hardcode_libdir_flag_spec_D='-R$libdir'
13415 hardcode_shlibpath_var_D=no
13416 case $host_os in
13417 solaris2.[0-5] | solaris2.[0-5].*) ;;
13418 *)
13419 # The compiler driver will combine and reorder linker options,
13420 # but understands `-z linker_flag'. GCC discards it without `$wl',
13421 # but is careful enough not to reorder.
13422 # Supported since Solaris 2.6 (maybe 2.5.1?)
13423 if test "$GCC" = yes; then
13424 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13425 else
13426 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13427 fi
13428 ;;
13429 esac
13430 link_all_deplibs_D=yes
13431 ;;
13432
13433 sunos4*)
13434 if test "x$host_vendor" = xsequent; then
13435 # Use $CC to link under sequent, because it throws in some extra .o
13436 # files that make .init and .fini sections work.
13437 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13438 else
13439 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13440 fi
13441 hardcode_libdir_flag_spec_D='-L$libdir'
13442 hardcode_direct_D=yes
13443 hardcode_minus_L_D=yes
13444 hardcode_shlibpath_var_D=no
13445 ;;
13446
13447 sysv4)
13448 case $host_vendor in
13449 sni)
13450 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_direct_D=yes # is this really true???
13452 ;;
13453 siemens)
13454 ## LD is ld it makes a PLAMLIB
13455 ## CC just makes a GrossModule.
13456 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13457 reload_cmds_D='$CC -r -o $output$reload_objs'
13458 hardcode_direct_D=no
13459 ;;
13460 motorola)
13461 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13463 ;;
13464 esac
13465 runpath_var='LD_RUN_PATH'
13466 hardcode_shlibpath_var_D=no
13467 ;;
13468
13469 sysv4.3*)
13470 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_shlibpath_var_D=no
13472 export_dynamic_flag_spec_D='-Bexport'
13473 ;;
13474
13475 sysv4*MP*)
13476 if test -d /usr/nec; then
13477 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_shlibpath_var_D=no
13479 runpath_var=LD_RUN_PATH
13480 hardcode_runpath_var=yes
13481 ld_shlibs_D=yes
13482 fi
13483 ;;
13484
13485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13486 no_undefined_flag_D='${wl}-z,text'
13487 archive_cmds_need_lc_D=no
13488 hardcode_shlibpath_var_D=no
13489 runpath_var='LD_RUN_PATH'
13490
13491 if test "$GCC" = yes; then
13492 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 else
13495 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 fi
13498 ;;
13499
13500 sysv5* | sco3.2v5* | sco5v6*)
13501 # Note: We can NOT use -z defs as we might desire, because we do not
13502 # link with -lc, and that would cause any symbols used from libc to
13503 # always be unresolved, which means just about no library would
13504 # ever link correctly. If we're not using GNU ld we use -z text
13505 # though, which does catch some bad symbols but isn't as heavy-handed
13506 # as -z defs.
13507 no_undefined_flag_D='${wl}-z,text'
13508 allow_undefined_flag_D='${wl}-z,nodefs'
13509 archive_cmds_need_lc_D=no
13510 hardcode_shlibpath_var_D=no
13511 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13512 hardcode_libdir_separator_D=':'
13513 link_all_deplibs_D=yes
13514 export_dynamic_flag_spec_D='${wl}-Bexport'
13515 runpath_var='LD_RUN_PATH'
13516
13517 if test "$GCC" = yes; then
13518 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13519 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 else
13521 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13522 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 fi
13524 ;;
13525
13526 uts4*)
13527 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528 hardcode_libdir_flag_spec_D='-L$libdir'
13529 hardcode_shlibpath_var_D=no
13530 ;;
13531
13532 *)
13533 ld_shlibs_D=no
13534 ;;
13535 esac
13536
13537 if test x$host_vendor = xsni; then
13538 case $host in
13539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13540 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13541 ;;
13542 esac
13543 fi
13544 fi
13545
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13547$as_echo "$ld_shlibs_D" >&6; }
13548test "$ld_shlibs_D" = no && can_build_shared=no
13549
13550with_gnu_ld_D=$with_gnu_ld
13551
13552
13553
13554
13555
13556
13557#
13558# Do we need to explicitly link libc?
13559#
13560case "x$archive_cmds_need_lc_D" in
13561x|xyes)
13562 # Assume -lc should be added
13563 archive_cmds_need_lc_D=yes
13564
13565 if test "$enable_shared" = yes && test "$GCC" = yes; then
13566 case $archive_cmds_D in
13567 *'~'*)
13568 # FIXME: we may have to deal with multi-command sequences.
13569 ;;
13570 '$CC '*)
13571 # Test whether the compiler implicitly links with -lc since on some
13572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13573 # to ld, don't add -lc before -lgcc.
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 13576if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
03385ed3 13577 $as_echo_n "(cached) " >&6
13578else
13579 $RM conftest*
13580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13581
13582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13583 (eval $ac_compile) 2>&5
13584 ac_status=$?
13585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13586 test $ac_status = 0; } 2>conftest.err; then
13587 soname=conftest
13588 lib=conftest
13589 libobjs=conftest.$ac_objext
13590 deplibs=
13591 wl=$lt_prog_compiler_wl_D
13592 pic_flag=$lt_prog_compiler_pic_D
13593 compiler_flags=-v
13594 linker_flags=-v
13595 verstring=
13596 output_objdir=.
13597 libname=conftest
13598 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13599 allow_undefined_flag_D=
13600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13601 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13602 ac_status=$?
13603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13604 test $ac_status = 0; }
13605 then
13606 lt_cv_archive_cmds_need_lc_D=no
13607 else
13608 lt_cv_archive_cmds_need_lc_D=yes
13609 fi
13610 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13611 else
13612 cat conftest.err 1>&5
13613 fi
13614 $RM conftest*
13615
13616fi
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13618$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13619 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13620 ;;
13621 esac
13622 fi
13623 ;;
13624esac
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13690$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13691hardcode_action_D=
13692if test -n "$hardcode_libdir_flag_spec_D" ||
13693 test -n "$runpath_var_D" ||
13694 test "X$hardcode_automatic_D" = "Xyes" ; then
13695
13696 # We can hardcode non-existent directories.
13697 if test "$hardcode_direct_D" != no &&
13698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13699 # have to relink, otherwise we might link with an installed library
13700 # when we should be linking with a yet-to-be-installed one
13701 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13702 test "$hardcode_minus_L_D" != no; then
13703 # Linking always hardcodes the temporary library directory.
13704 hardcode_action_D=relink
13705 else
13706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13707 hardcode_action_D=immediate
13708 fi
13709else
13710 # We cannot hardcode anything, or else we can only hardcode existing
13711 # directories.
13712 hardcode_action_D=unsupported
13713fi
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13715$as_echo "$hardcode_action_D" >&6; }
13716
13717if test "$hardcode_action_D" = relink ||
13718 test "$inherit_rpath_D" = yes; then
13719 # Fast installation is not supported
13720 enable_fast_install=no
13721elif test "$shlibpath_overrides_runpath" = yes ||
13722 test "$enable_shared" = no; then
13723 # Fast installation is not necessary
13724 enable_fast_install=needless
13725fi
13726
13727
13728
13729
13730
13731
13732
13733fi
13734
13735ac_ext=c
13736ac_cpp='$CPP $CPPFLAGS'
13737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13739ac_compiler_gnu=$ac_cv_c_compiler_gnu
13740
13741
13742GCC=$lt_save_GCC
13743CC=$lt_save_CC
13744CFLAGS=$lt_save_CFLAGS
13745GDCFLAGS=$lt_save_DFLAGS
13746
13747 GDCFLAGS=$gdc_save_DFLAGS
13748
13749 if test "$enable_shared" = "yes"; then
13750 ENABLE_SHARED_TRUE=
13751 ENABLE_SHARED_FALSE='#'
13752else
13753 ENABLE_SHARED_TRUE='#'
13754 ENABLE_SHARED_FALSE=
13755fi
13756
13757 if test "$enable_static" = "yes"; then
13758 ENABLE_STATIC_TRUE=
13759 ENABLE_STATIC_FALSE='#'
13760else
13761 ENABLE_STATIC_TRUE='#'
13762 ENABLE_STATIC_FALSE=
13763fi
13764
13765
13766# libtool variables for Phobos shared and position-independent compiles.
13767#
13768# Use phobos_compiler_shared_flag to designate the compile-time flags for
13769# creating shared objects. Default: -fversion=Shared.
13770#
13771# Use phobos_compiler_pic_flag to designate the compile-time flags for
13772# creating position-independent objects. This varies with the target
13773# hardware and operating system, but is often: -fPIC.
13774#
13775# The distinction between pic and shared compilation flags is not present in
13776# libtool, and so we make it here. How it is handled is that in shared
13777# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13778# ensure that conditional compilation of shared runtime code is compiled in.
13779# The original PIC flags are then used in the compilation of every object.
13780#
13781# Why are objects destined for libgphobos.a compiled with -fPIC?
13782# Because -fPIC is not harmful to use for objects destined for static
13783# libraries. In addition, using -fPIC will allow the use of static
13784# libgphobos.a in the creation of other D shared libraries.
13785if test "$enable_shared" = yes; then
13786 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13787 phobos_compiler_shared_flag="-fversion=Shared"
13788else
13789 phobos_compiler_pic_flag=
13790 phobos_compiler_shared_flag=
13791fi
13792
13793
13794
13795# Override the libtool's pic_flag and pic_mode.
13796# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13797# NB: this impacts --with-pic and --without-pic.
13798lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13799pic_mode='default'
13800
13801# Determine what GCC version number to use in filesystem paths.
13802
13803 get_gcc_base_ver="cat"
13804
13805# Check whether --with-gcc-major-version-only was given.
13806if test "${with_gcc_major_version_only+set}" = set; then :
13807 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13808 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13809 fi
13810
13811fi
13812
13813
13814
13815
13816# libphobos/libdruntime specific options and feature detection
13817
13818 # These need to be absolute paths, yet at the same time need to
13819 # canonicalize only relative paths, because then amd will not unmount
13820 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13821 libphobos_builddir=`${PWDCMD-pwd}`
13822 case $srcdir in
13823 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13824 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13825 esac
13826
13827
13828
13829
13830 if test ${multilib} = yes; then
13831 multilib_arg="--enable-multilib"
13832 else
13833 multilib_arg=
13834 fi
13835
13836
13837 # Check whether --enable-werror was given.
13838if test "${enable_werror+set}" = set; then :
13839 enableval=$enable_werror;
13840fi
13841
13842 WERROR_FLAG=""
13843 if test "x$enable_werror" = "xyes"; then
13844 WERROR_FLAG="-Werror"
13845 fi
13846
13847
13848 # Check whether --enable-druntime-gc was given.
13849if test "${enable_druntime_gc+set}" = set; then :
13850 enableval=$enable_druntime_gc; enable_druntime_gc=no
13851else
13852 enable_druntime_gc=yes
13853fi
13854
13855
13856 if test "$enable_druntime_gc" = "yes"; then
13857 DRUNTIME_GC_ENABLE_TRUE=
13858 DRUNTIME_GC_ENABLE_FALSE='#'
13859else
13860 DRUNTIME_GC_ENABLE_TRUE='#'
13861 DRUNTIME_GC_ENABLE_FALSE=
13862fi
13863
13864
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13867$as_echo_n "checking for target OS... " >&6; }
f00f02a3 13868if ${druntime_cv_target_os+:} false; then :
03385ed3 13869 $as_echo_n "(cached) " >&6
13870else
13871 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13872fi
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13874$as_echo "$druntime_cv_target_os" >&6; }
13875 if test -z "$druntime_cv_target_os"; then :
f00f02a3 13876 as_fn_error $? "can't detect target OS" "$LINENO" 5
03385ed3 13877fi
13878
13879
13880
13881 # Check whether --enable-unix was given.
13882if test "${enable_unix+set}" = set; then :
13883 enableval=$enable_unix; :
13884else
13885 enable_unix=auto
13886fi
13887
13888
13889 case "$druntime_cv_target_os" in
13890 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13891 esac
13892 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13893 enable_unix=yes
13894 fi
13895 if test "$enable_unix" = "yes"; then
13896 DRUNTIME_OS_UNIX_TRUE=
13897 DRUNTIME_OS_UNIX_FALSE='#'
13898else
13899 DRUNTIME_OS_UNIX_TRUE='#'
13900 DRUNTIME_OS_UNIX_FALSE=
13901fi
13902
13903
13904
13905
13906
13907 druntime_target_os_parsed=""
13908 case "$druntime_cv_target_os" in
13909 aix*) druntime_target_os_parsed="aix"
13910 ;;
13911 *android*)
13912 druntime_target_os_parsed="android"
13913 ;;
13914 darwin*) druntime_target_os_parsed="darwin"
13915 ;;
13916 dragonfly*)
13917 druntime_target_os_parsed="dragonflybsd"
13918 ;;
13919 freebsd*|k*bsd*-gnu)
13920 druntime_target_os_parsed="freebsd"
13921 ;;
13922 openbsd*)
13923 druntime_target_os_parsed="openbsd"
13924 ;;
13925 netbsd*)
13926 druntime_target_os_parsed="netbsd"
13927 ;;
13928 linux*) druntime_target_os_parsed="linux"
13929 ;;
13930 mingw*) druntime_target_os_parsed="mingw"
13931 ;;
13932 *solaris*) druntime_target_os_parsed="solaris"
13933 esac
13934 if test "$druntime_target_os_parsed" = "aix"; then
13935 DRUNTIME_OS_AIX_TRUE=
13936 DRUNTIME_OS_AIX_FALSE='#'
13937else
13938 DRUNTIME_OS_AIX_TRUE='#'
13939 DRUNTIME_OS_AIX_FALSE=
13940fi
13941
13942 if test "$druntime_target_os_parsed" = "android"; then
13943 DRUNTIME_OS_ANDROID_TRUE=
13944 DRUNTIME_OS_ANDROID_FALSE='#'
13945else
13946 DRUNTIME_OS_ANDROID_TRUE='#'
13947 DRUNTIME_OS_ANDROID_FALSE=
13948fi
13949
13950 if test "$druntime_target_os_parsed" = "darwin"; then
13951 DRUNTIME_OS_DARWIN_TRUE=
13952 DRUNTIME_OS_DARWIN_FALSE='#'
13953else
13954 DRUNTIME_OS_DARWIN_TRUE='#'
13955 DRUNTIME_OS_DARWIN_FALSE=
13956fi
13957
13958 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13959 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13960 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13961else
13962 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13963 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13964fi
13965
13966 if test "$druntime_target_os_parsed" = "freebsd"; then
13967 DRUNTIME_OS_FREEBSD_TRUE=
13968 DRUNTIME_OS_FREEBSD_FALSE='#'
13969else
13970 DRUNTIME_OS_FREEBSD_TRUE='#'
13971 DRUNTIME_OS_FREEBSD_FALSE=
13972fi
13973
13974 if test "$druntime_target_os_parsed" = "netbsd"; then
13975 DRUNTIME_OS_NETBSD_TRUE=
13976 DRUNTIME_OS_NETBSD_FALSE='#'
13977else
13978 DRUNTIME_OS_NETBSD_TRUE='#'
13979 DRUNTIME_OS_NETBSD_FALSE=
13980fi
13981
13982 if test "$druntime_target_os_parsed" = "openbsd"; then
13983 DRUNTIME_OS_OPENBSD_TRUE=
13984 DRUNTIME_OS_OPENBSD_FALSE='#'
13985else
13986 DRUNTIME_OS_OPENBSD_TRUE='#'
13987 DRUNTIME_OS_OPENBSD_FALSE=
13988fi
13989
13990 if test "$druntime_target_os_parsed" = "linux"; then
13991 DRUNTIME_OS_LINUX_TRUE=
13992 DRUNTIME_OS_LINUX_FALSE='#'
13993else
13994 DRUNTIME_OS_LINUX_TRUE='#'
13995 DRUNTIME_OS_LINUX_FALSE=
13996fi
13997
13998 if test "$druntime_target_os_parsed" = "mingw"; then
13999 DRUNTIME_OS_MINGW_TRUE=
14000 DRUNTIME_OS_MINGW_FALSE='#'
14001else
14002 DRUNTIME_OS_MINGW_TRUE='#'
14003 DRUNTIME_OS_MINGW_FALSE=
14004fi
14005
14006 if test "$druntime_target_os_parsed" = "solaris"; then
14007 DRUNTIME_OS_SOLARIS_TRUE=
14008 DRUNTIME_OS_SOLARIS_FALSE='#'
14009else
14010 DRUNTIME_OS_SOLARIS_TRUE='#'
14011 DRUNTIME_OS_SOLARIS_FALSE=
14012fi
14013
14014
14015
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14018$as_echo_n "checking for thread model used by GDC... " >&6; }
14019 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14021$as_echo "$d_thread_model" >&6; }
14022
14023 # Map from thread model to thread interface.
14024
14025case $d_thread_model in
14026 aix) DCFG_THREAD_MODEL="Posix" ;;
14027 lynx) DCFG_THREAD_MODEL="Posix" ;;
14028 posix) DCFG_THREAD_MODEL="Posix" ;;
14029 single) DCFG_THREAD_MODEL="Single" ;;
14030 win32) DCFG_THREAD_MODEL="Win32" ;;
14031 # TODO: These targets need porting.
14032 dce|mipssde|rtems|tpf|vxworks)
14033 DCFG_THREAD_MODEL="Single" ;;
14034 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14035esac
14036
14037
14038
14039
14040 ac_ext=c
14041ac_cpp='$CPP $CPPFLAGS'
14042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14044ac_compiler_gnu=$ac_cv_c_compiler_gnu
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14047$as_echo_n "checking for ARM unwinder... " >&6; }
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h. */
14050#include <unwind.h>
14051int
14052main ()
14053{
14054
14055 #if __ARM_EABI_UNWINDER__
14056 #error Yes, it is.
14057 #endif
14058
14059 ;
14060 return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_compile "$LINENO"; then :
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065$as_echo "no" >&6; }
14066 DCFG_ARM_EABI_UNWINDER=false
14067else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14069$as_echo "yes" >&6; }
14070 DCFG_ARM_EABI_UNWINDER=true
14071fi
14072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073
14074 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14075 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14076 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14077else
14078 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14079 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14080fi
14081
14082 ac_ext=c
14083ac_cpp='$CPP $CPPFLAGS'
14084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14086ac_compiler_gnu=$ac_cv_c_compiler_gnu
14087
14088
14089
14090 ac_ext=c
14091ac_cpp='$CPP $CPPFLAGS'
14092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094ac_compiler_gnu=$ac_cv_c_compiler_gnu
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14097$as_echo_n "checking for minfo section bracketing... " >&6; }
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099/* end confdefs.h. */
14100
14101 void* module_info_ptr __attribute__((section ("minfo")));
14102 extern void* __start_minfo __attribute__((visibility ("hidden")));
14103 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14104
14105 int main()
14106 {
14107 // Never run, just to prevent compiler from optimizing access
14108 return &__start_minfo == &__stop_minfo;
14109 }
14110
14111_ACEOF
14112if ac_fn_c_try_link "$LINENO"; then :
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14114$as_echo "yes" >&6; }
14115 DCFG_MINFO_BRACKETING=true
14116else
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118$as_echo "no" >&6; }
14119 DCFG_MINFO_BRACKETING=false
14120fi
14121rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123
e06fcd5a 14124 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14125 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14126 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14127else
14128 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14129 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14130fi
14131
03385ed3 14132 ac_ext=c
14133ac_cpp='$CPP $CPPFLAGS'
14134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14136ac_compiler_gnu=$ac_cv_c_compiler_gnu
14137
14138
14139
14140
14141
14142 gdc_save_DFLAGS=$GDCFLAGS
14143 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14144
14145 ac_ext=d
14146ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14147ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148ac_compiler_gnu=yes
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14151$as_echo_n "checking for library containing malloc... " >&6; }
f00f02a3 14152if ${ac_cv_search_malloc+:} false; then :
03385ed3 14153 $as_echo_n "(cached) " >&6
14154else
14155 ac_func_search_save_LIBS=$LIBS
14156cat > conftest.$ac_ext <<_ACEOF
14157module mod;
14158 extern(C) int malloc();
14159
14160extern(C) int main() {
14161 malloc(); return 0;
14162}
14163_ACEOF
14164for ac_lib in '' c; do
14165 if test -z "$ac_lib"; then
14166 ac_res="none required"
14167 else
14168 ac_res=-l$ac_lib
14169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14170 fi
14171 if ac_fn_d_try_link "$LINENO"; then :
14172 ac_cv_search_malloc=$ac_res
14173fi
14174rm -f core conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext
f00f02a3 14176 if ${ac_cv_search_malloc+:} false; then :
03385ed3 14177 break
14178fi
14179done
f00f02a3 14180if ${ac_cv_search_malloc+:} false; then :
03385ed3 14181
14182else
14183 ac_cv_search_malloc=no
14184fi
14185rm conftest.$ac_ext
14186LIBS=$ac_func_search_save_LIBS
14187fi
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14189$as_echo "$ac_cv_search_malloc" >&6; }
14190ac_res=$ac_cv_search_malloc
14191if test "$ac_res" != no; then :
14192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14193
14194fi
14195
14196
14197 enable_thread_lib=yes
14198 # Check whether --enable-thread-lib was given.
14199if test "${enable_thread_lib+set}" = set; then :
14200 enableval=$enable_thread_lib;
14201fi
14202
14203
14204 if test "x$enable_thread_lib" = "xyes"; then :
14205
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14207$as_echo_n "checking for library containing pthread_create... " >&6; }
f00f02a3 14208if ${ac_cv_search_pthread_create+:} false; then :
03385ed3 14209 $as_echo_n "(cached) " >&6
14210else
14211 ac_func_search_save_LIBS=$LIBS
14212cat > conftest.$ac_ext <<_ACEOF
14213module mod;
14214 extern(C) int pthread_create();
14215
14216extern(C) int main() {
14217 pthread_create(); return 0;
14218}
14219_ACEOF
14220for ac_lib in '' pthread; do
14221 if test -z "$ac_lib"; then
14222 ac_res="none required"
14223 else
14224 ac_res=-l$ac_lib
14225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14226 fi
14227 if ac_fn_d_try_link "$LINENO"; then :
14228 ac_cv_search_pthread_create=$ac_res
14229fi
14230rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext
f00f02a3 14232 if ${ac_cv_search_pthread_create+:} false; then :
03385ed3 14233 break
14234fi
14235done
f00f02a3 14236if ${ac_cv_search_pthread_create+:} false; then :
03385ed3 14237
14238else
14239 ac_cv_search_pthread_create=no
14240fi
14241rm conftest.$ac_ext
14242LIBS=$ac_func_search_save_LIBS
14243fi
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14245$as_echo "$ac_cv_search_pthread_create" >&6; }
14246ac_res=$ac_cv_search_pthread_create
14247if test "$ac_res" != no; then :
14248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14249
14250fi
14251
14252
14253else
14254
14255 if test "x$enable_thread_lib" = "xno"; then :
14256
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14258$as_echo_n "checking for thread library... " >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14260$as_echo "disabled" >&6; }
14261
14262else
14263
14264 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14266$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
f00f02a3 14267if eval \${$as_ac_Lib+:} false; then :
03385ed3 14268 $as_echo_n "(cached) " >&6
14269else
14270 ac_check_lib_save_LIBS=$LIBS
14271LIBS="-l$enable_thread_lib $LIBS"
14272cat > conftest.$ac_ext <<_ACEOF
14273module mod;
14274 extern(C) int pthread_create();
14275
14276extern(C) int main() {
14277 pthread_create(); return 0;
14278}
14279_ACEOF
14280if ac_fn_d_try_link "$LINENO"; then :
14281 eval "$as_ac_Lib=yes"
14282else
14283 eval "$as_ac_Lib=no"
14284fi
14285rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287LIBS=$ac_check_lib_save_LIBS
14288fi
14289eval ac_res=\$$as_ac_Lib
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14291$as_echo "$ac_res" >&6; }
f00f02a3 14292if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
03385ed3 14293 cat >>confdefs.h <<_ACEOF
14294#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14295_ACEOF
14296
14297 LIBS="-l$enable_thread_lib $LIBS"
14298
14299else
14300
f00f02a3 14301 as_fn_error $? "Thread library not found" "$LINENO" 5
03385ed3 14302
14303fi
14304
14305
14306fi
14307
14308fi
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14311$as_echo_n "checking for library containing cosf... " >&6; }
f00f02a3 14312if ${ac_cv_search_cosf+:} false; then :
03385ed3 14313 $as_echo_n "(cached) " >&6
14314else
14315 ac_func_search_save_LIBS=$LIBS
14316cat > conftest.$ac_ext <<_ACEOF
14317module mod;
14318 extern(C) int cosf();
14319
14320extern(C) int main() {
14321 cosf(); return 0;
14322}
14323_ACEOF
14324for ac_lib in '' m; do
14325 if test -z "$ac_lib"; then
14326 ac_res="none required"
14327 else
14328 ac_res=-l$ac_lib
14329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14330 fi
14331 if ac_fn_d_try_link "$LINENO"; then :
14332 ac_cv_search_cosf=$ac_res
14333fi
14334rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext
f00f02a3 14336 if ${ac_cv_search_cosf+:} false; then :
03385ed3 14337 break
14338fi
14339done
f00f02a3 14340if ${ac_cv_search_cosf+:} false; then :
03385ed3 14341
14342else
14343 ac_cv_search_cosf=no
14344fi
14345rm conftest.$ac_ext
14346LIBS=$ac_func_search_save_LIBS
14347fi
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14349$as_echo "$ac_cv_search_cosf" >&6; }
14350ac_res=$ac_cv_search_cosf
14351if test "$ac_res" != no; then :
14352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14353
14354fi
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14357$as_echo_n "checking for library containing clock_gettime... " >&6; }
f00f02a3 14358if ${ac_cv_search_clock_gettime+:} false; then :
03385ed3 14359 $as_echo_n "(cached) " >&6
14360else
14361 ac_func_search_save_LIBS=$LIBS
14362cat > conftest.$ac_ext <<_ACEOF
14363module mod;
14364 extern(C) int clock_gettime();
14365
14366extern(C) int main() {
14367 clock_gettime(); return 0;
14368}
14369_ACEOF
14370for ac_lib in '' rt; do
14371 if test -z "$ac_lib"; then
14372 ac_res="none required"
14373 else
14374 ac_res=-l$ac_lib
14375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14376 fi
14377 if ac_fn_d_try_link "$LINENO"; then :
14378 ac_cv_search_clock_gettime=$ac_res
14379fi
14380rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext
f00f02a3 14382 if ${ac_cv_search_clock_gettime+:} false; then :
03385ed3 14383 break
14384fi
14385done
f00f02a3 14386if ${ac_cv_search_clock_gettime+:} false; then :
03385ed3 14387
14388else
14389 ac_cv_search_clock_gettime=no
14390fi
14391rm conftest.$ac_ext
14392LIBS=$ac_func_search_save_LIBS
14393fi
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14395$as_echo "$ac_cv_search_clock_gettime" >&6; }
14396ac_res=$ac_cv_search_clock_gettime
14397if test "$ac_res" != no; then :
14398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14399
14400fi
14401
14402
14403 # This checks to see if the host supports the compiler-generated builtins
14404 # for atomic operations for various integral sizes. Note, this is intended
14405 # to be an all-or-nothing switch, so all the atomic operations that are
14406 # used should be checked.
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14408$as_echo_n "checking for atomic builtins for byte... " >&6; }
f00f02a3 14409 if ${druntime_cv_atomic_byte+:} false; then :
03385ed3 14410 $as_echo_n "(cached) " >&6
14411else
14412
14413 cat > conftest.$ac_ext <<_ACEOF
14414module mod;
14415import gcc.builtins;
14416
14417extern(C) int main() {
14418
14419 shared(byte) c1;
14420 byte c2, c3;
14421 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14422 __atomic_load_1(&c1, 5);
14423 __atomic_store_1(&c1, c2, 5);
14424 return 0;
14425
14426}
14427_ACEOF
14428if ac_fn_d_try_link "$LINENO"; then :
14429 druntime_cv_atomic_byte=yes
14430else
14431 druntime_cv_atomic_byte=no
14432fi
14433rm -f core conftest.err conftest.$ac_objext \
14434 conftest$ac_exeext conftest.$ac_ext
14435
14436fi
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14439$as_echo "$druntime_cv_atomic_byte" >&6; }
14440
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14442$as_echo_n "checking for atomic builtins for short... " >&6; }
f00f02a3 14443 if ${druntime_cv_atomic_short+:} false; then :
03385ed3 14444 $as_echo_n "(cached) " >&6
14445else
14446
14447 cat > conftest.$ac_ext <<_ACEOF
14448module mod;
14449import gcc.builtins;
14450
14451extern(C) int main() {
14452
14453 shared(short) c1;
14454 short c2, c3;
14455 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14456 __atomic_load_2(&c1, 5);
14457 __atomic_store_2(&c1, c2, 5);
14458 return 0;
14459
14460}
14461_ACEOF
14462if ac_fn_d_try_link "$LINENO"; then :
14463 druntime_cv_atomic_short=yes
14464else
14465 druntime_cv_atomic_short=no
14466fi
14467rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469
14470fi
14471
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14473$as_echo "$druntime_cv_atomic_short" >&6; }
14474
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14476$as_echo_n "checking for atomic builtins for int... " >&6; }
f00f02a3 14477 if ${druntime_cv_atomic_int+:} false; then :
03385ed3 14478 $as_echo_n "(cached) " >&6
14479else
14480
14481 cat > conftest.$ac_ext <<_ACEOF
14482module mod;
14483import gcc.builtins;
14484
14485extern(C) int main() {
14486
14487 shared(int) c1;
14488 int c2, c3;
14489 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14490 __atomic_load_4(&c1, 5);
14491 __atomic_store_4(&c1, c2, 5);
14492 return 0;
14493
14494}
14495_ACEOF
14496if ac_fn_d_try_link "$LINENO"; then :
14497 druntime_cv_atomic_int=yes
14498else
14499 druntime_cv_atomic_int=no
14500fi
14501rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14503
14504fi
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14507$as_echo "$druntime_cv_atomic_int" >&6; }
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14510$as_echo_n "checking for atomic builtins for long... " >&6; }
f00f02a3 14511 if ${druntime_cv_atomic_long+:} false; then :
03385ed3 14512 $as_echo_n "(cached) " >&6
14513else
14514
14515 cat > conftest.$ac_ext <<_ACEOF
14516module mod;
14517import gcc.builtins;
14518
14519extern(C) int main() {
14520
14521 shared(long) c1;
14522 long c2, c3;
14523 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14524 __atomic_load_8(&c1, 5);
14525 __atomic_store_8(&c1, c2, 5);
14526 return 0;
14527
14528}
14529_ACEOF
14530if ac_fn_d_try_link "$LINENO"; then :
14531 druntime_cv_atomic_long=yes
14532else
14533 druntime_cv_atomic_long=no
14534fi
14535rm -f core conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537
14538fi
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14541$as_echo "$druntime_cv_atomic_long" >&6; }
14542
14543 # Have atomic builtin support if all but the long test above passes.
14544 DCFG_HAVE_ATOMIC_BUILTINS=false
14545 if test "$druntime_cv_atomic_byte" = yes \
14546 && test "$druntime_cv_atomic_short" = yes \
14547 && test "$druntime_cv_atomic_int" = yes; then \
14548 DCFG_HAVE_ATOMIC_BUILTINS=true
14549 fi
14550
14551 # Have 64-bit atomic support if the long test above passes.
14552 DCFG_HAVE_64BIT_ATOMICS=false
14553 if test "$druntime_cv_atomic_long" = yes; then
14554 DCFG_HAVE_64BIT_ATOMICS=true
14555 fi
14556
14557
14558
14559
14560 ac_ext=c
14561ac_cpp='$CPP $CPPFLAGS'
14562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564ac_compiler_gnu=$ac_cv_c_compiler_gnu
14565
14566
14567 GDCFLAGS=$gdc_save_DFLAGS
14568
14569
14570
14571
14572# Check whether --with-libatomic was given.
14573if test "${with_libatomic+set}" = set; then :
14574 withval=$with_libatomic;
14575fi
14576
14577
14578 DCFG_HAVE_LIBATOMIC=false
14579 LIBATOMIC=
14580 if test "x$with_libatomic" != "xno"; then :
14581
14582 DCFG_HAVE_LIBATOMIC=true
14583 LIBATOMIC=../../libatomic/libatomic_convenience.la
14584
14585else
14586
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14588$as_echo_n "checking for libatomic... " >&6; }
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14590$as_echo "disabled" >&6; }
14591
14592fi
14593
14594
14595
14596
14597
14598 ac_ext=c
14599ac_cpp='$CPP $CPPFLAGS'
14600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602ac_compiler_gnu=$ac_cv_c_compiler_gnu
14603
14604 BACKTRACE_SUPPORTED=false
14605 BACKTRACE_USES_MALLOC=false
14606 BACKTRACE_SUPPORTS_THREADS=false
14607 LIBBACKTRACE=""
14608
14609
14610# Check whether --with-libbacktrace was given.
14611if test "${with_libbacktrace+set}" = set; then :
14612 withval=$with_libbacktrace;
14613fi
14614
14615
14616 if test "x$with_libbacktrace" != "xno"; then :
14617
14618 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14619
14620 gdc_save_CPPFLAGS=$CPPFLAGS
14621 CPPFLAGS+=" -I../libbacktrace "
14622
14623 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
f00f02a3 14624if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
03385ed3 14625 have_libbacktrace_h=true
14626else
14627 have_libbacktrace_h=false
14628fi
14629
14630
14631
14632 if $have_libbacktrace_h; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14634$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h. */
14637
14638 #include <backtrace-supported.h>
14639 #if BACKTRACE_SUPPORTED
14640 FOUND_LIBBACKTRACE_RESULT_GDC
14641 #endif
14642
14643_ACEOF
14644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14645 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14646 BACKTRACE_SUPPORTED=true
14647else
14648 BACKTRACE_SUPPORTED=false
14649fi
14650rm -f conftest*
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14653$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14654
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14656$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658/* end confdefs.h. */
14659
14660 #include <backtrace-supported.h>
14661 #if BACKTRACE_USES_MALLOC
14662 FOUND_LIBBACKTRACE_RESULT_GDC
14663 #endif
14664
14665_ACEOF
14666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14667 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14668 BACKTRACE_USES_MALLOC=true
14669else
14670 BACKTRACE_USES_MALLOC=false
14671fi
14672rm -f conftest*
14673
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14675$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14678$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680/* end confdefs.h. */
14681
14682 #include <backtrace-supported.h>
14683 #if BACKTRACE_SUPPORTS_THREADS
14684 FOUND_LIBBACKTRACE_RESULT_GDC
14685 #endif
14686
14687_ACEOF
14688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14689 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14690 BACKTRACE_SUPPORTS_THREADS=true
14691else
14692 BACKTRACE_SUPPORTS_THREADS=false
14693fi
14694rm -f conftest*
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14697$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14698 fi
14699 CPPFLAGS=$gdc_save_CPPFLAGS
14700
14701else
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14704$as_echo_n "checking for libbacktrace... " >&6; }
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14706$as_echo "disabled" >&6; }
14707
14708fi
14709
14710
14711
14712
14713
14714 ac_ext=c
14715ac_cpp='$CPP $CPPFLAGS'
14716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14718ac_compiler_gnu=$ac_cv_c_compiler_gnu
14719
14720
14721
14722 # Libtool has already checked this, so re-use the inferred dlopen lib.
14723 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14724
14725 LIBS="$LIBS $lt_cv_dlopen_libs"
14726
14727fi
14728
14729
14730
14731# Check whether --with-target-system-zlib was given.
14732if test "${with_target_system_zlib+set}" = set; then :
14733 withval=$with_target_system_zlib;
14734fi
14735
14736
14737 system_zlib=false
14738 if test "x$with_target_system_zlib" = "xyes"; then :
14739
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14741$as_echo_n "checking for deflate in -lz... " >&6; }
f00f02a3 14742if ${ac_cv_lib_z_deflate+:} false; then :
03385ed3 14743 $as_echo_n "(cached) " >&6
14744else
14745 ac_check_lib_save_LIBS=$LIBS
14746LIBS="-lz $LIBS"
14747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748/* end confdefs.h. */
14749
14750/* Override any GCC internal prototype to avoid an error.
14751 Use char because int might match the return type of a GCC
14752 builtin and then its argument prototype would still apply. */
14753#ifdef __cplusplus
14754extern "C"
14755#endif
14756char deflate ();
14757int
14758main ()
14759{
14760return deflate ();
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765if ac_fn_c_try_link "$LINENO"; then :
14766 ac_cv_lib_z_deflate=yes
14767else
14768 ac_cv_lib_z_deflate=no
14769fi
14770rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14772LIBS=$ac_check_lib_save_LIBS
14773fi
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14775$as_echo "$ac_cv_lib_z_deflate" >&6; }
f00f02a3 14776if test "x$ac_cv_lib_z_deflate" = xyes; then :
03385ed3 14777
14778 system_zlib=yes
14779
14780else
14781
f00f02a3 14782 as_fn_error $? "System zlib not found" "$LINENO" 5
03385ed3 14783
14784fi
14785
14786
14787else
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14790$as_echo_n "checking for zlib... " >&6; }
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14792$as_echo "just compiled" >&6; }
14793
14794fi
14795
14796 if test "$with_target_system_zlib" = yes; then
14797 DRUNTIME_ZLIB_SYSTEM_TRUE=
14798 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14799else
14800 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14801 DRUNTIME_ZLIB_SYSTEM_FALSE=
14802fi
14803
14804
14805
14806
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14809$as_echo_n "checking D GCC version... " >&6; }
14810 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14812$as_echo "$gcc_version" >&6; }
14813
14814
14815
14816# Check whether --with-cross-host was given.
14817if test "${with_cross_host+set}" = set; then :
14818 withval=$with_cross_host;
14819fi
14820
14821
5114391d 14822 libphobos_toolexecdir=no
14823 libphobos_toolexeclibdir=no
03385ed3 14824
5114391d 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
14826$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
14827 # Check whether --enable-version-specific-runtime-libs was given.
14828if test "${enable_version_specific_runtime_libs+set}" = set; then :
14829 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
14830 yes) version_specific_libs=yes ;;
14831 no) version_specific_libs=no ;;
14832 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
14833 esac
14834else
03385ed3 14835 version_specific_libs=no
5114391d 14836fi
14837
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
14839$as_echo "$version_specific_libs" >&6; }
03385ed3 14840
14841 # Version-specific runtime libs processing.
14842 if test $version_specific_libs = yes; then
5114391d 14843 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14844 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
03385ed3 14845 else
5114391d 14846 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
14847 # Install a library built with a cross compiler in tooldir, not libdir.
14848 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14849 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
14850 libphobos_toolexeclibdir='${toolexecdir}/lib'
14851 else
14852 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
14853 libphobos_toolexeclibdir='${libdir}'
14854 fi
14855 multi_os_directory=`$GDC -print-multi-os-directory`
14856 case $multi_os_directory in
14857 .) ;; # Avoid trailing /.
14858 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
14859 esac
03385ed3 14860 fi
14861
14862
14863
14864 # Default case for install directory for D sources files.
14865 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14866
14867
14868
e06fcd5a 14869# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
14870if test "$DCFG_MINFO_BRACKETING" = "false"; then
14871 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
14872else
14873 DRTSTUFF_SPEC=/dev/null
14874fi
14875
14876
03385ed3 14877# Add dependencies for libgphobos.spec file
14878SPEC_PHOBOS_DEPS="$LIBS"
14879
14880
14881# Libdruntime / phobos soname version
345422ff 14882libtool_VERSION=76:3:0
03385ed3 14883
14884
14885# Set default flags (after DRUNTIME_WERROR!)
14886if test -z "$GDCFLAGS"; then
14887 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
14888fi
14889
14890
14891if test -z "$GDCFLAGSX"; then
14892 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
14893fi
14894
14895
14896# Sanity check for the cross-compilation case:
14897ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
f00f02a3 14898if test "x$ac_cv_header_stdio_h" = xyes; then :
03385ed3 14899 :
14900else
f00f02a3 14901 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
03385ed3 14902fi
14903
14904
14905
5114391d 14906ac_config_files="$ac_config_files Makefile"
03385ed3 14907
14908
14909ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14910
14911ac_config_files="$ac_config_files src/libgphobos.spec"
14912
14913ac_config_files="$ac_config_files testsuite/testsuite_flags"
14914
14915
5114391d 14916# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
14917# that multilib installs will end up installed in the correct place.
14918# The testsuite needs it for multilib-aware ABI baseline files.
14919# To work around this not being passed down from config-ml.in ->
14920# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
14921# append it here. Only modify Makefiles that have just been created.
14922#
14923# Also, get rid of this simulated-VPATH thing that automake does.
14924ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
03385ed3 14925
14926
14927cat >confcache <<\_ACEOF
14928# This file is a shell script that caches the results of configure
14929# tests run on this system so they can be shared between configure
14930# scripts and configure runs, see configure's option --config-cache.
14931# It is not useful on other systems. If it contains results you don't
14932# want to keep, you may remove or edit it.
14933#
14934# config.status only pays attention to the cache file if you give it
14935# the --recheck option to rerun configure.
14936#
14937# `ac_cv_env_foo' variables (set or unset) will be overridden when
14938# loading this file, other *unset* `ac_cv_foo' will be assigned the
14939# following values.
14940
14941_ACEOF
14942
14943# The following way of writing the cache mishandles newlines in values,
14944# but we know of no workaround that is simple, portable, and efficient.
14945# So, we kill variables containing newlines.
14946# Ultrix sh set writes to stderr and can't be redirected directly,
14947# and sets the high bit in the cache file unless we assign to the vars.
14948(
14949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14950 eval ac_val=\$$ac_var
14951 case $ac_val in #(
14952 *${as_nl}*)
14953 case $ac_var in #(
14954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14956 esac
14957 case $ac_var in #(
14958 _ | IFS | as_nl) ;; #(
14959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14960 *) { eval $ac_var=; unset $ac_var;} ;;
14961 esac ;;
14962 esac
14963 done
14964
14965 (set) 2>&1 |
14966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14967 *${as_nl}ac_space=\ *)
14968 # `set' does not quote correctly, so add quotes: double-quote
14969 # substitution turns \\\\ into \\, and sed turns \\ into \.
14970 sed -n \
14971 "s/'/'\\\\''/g;
14972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14973 ;; #(
14974 *)
14975 # `set' quotes correctly as required by POSIX, so do not add quotes.
14976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14977 ;;
14978 esac |
14979 sort
14980) |
14981 sed '
14982 /^ac_cv_env_/b end
14983 t clear
14984 :clear
14985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14986 t end
14987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14988 :end' >>confcache
14989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14990 if test -w "$cache_file"; then
f00f02a3 14991 if test "x$cache_file" != "x/dev/null"; then
03385ed3 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14993$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 14994 if test ! -f "$cache_file" || test -h "$cache_file"; then
14995 cat confcache >"$cache_file"
14996 else
14997 case $cache_file in #(
14998 */* | ?:*)
14999 mv -f confcache "$cache_file"$$ &&
15000 mv -f "$cache_file"$$ "$cache_file" ;; #(
15001 *)
15002 mv -f confcache "$cache_file" ;;
15003 esac
15004 fi
15005 fi
03385ed3 15006 else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15008$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15009 fi
15010fi
15011rm -f confcache
15012
15013test "x$prefix" = xNONE && prefix=$ac_default_prefix
15014# Let make expand exec_prefix.
15015test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15016
15017DEFS=-DHAVE_CONFIG_H
15018
15019ac_libobjs=
15020ac_ltlibobjs=
f00f02a3 15021U=
03385ed3 15022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15023 # 1. Remove the extension, and $U if already installed.
15024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15025 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15027 # will be set to the directory where LIBOBJS objects are built.
15028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15030done
15031LIBOBJS=$ac_libobjs
15032
15033LTLIBOBJS=$ac_ltlibobjs
15034
15035
f00f02a3 15036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15037$as_echo_n "checking that generated files are newer than configure... " >&6; }
15038 if test -n "$am_sleep_pid"; then
15039 # Hide warnings about reused PIDs.
15040 wait $am_sleep_pid 2>/dev/null
15041 fi
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15043$as_echo "done" >&6; }
03385ed3 15044 if test -n "$EXEEXT"; then
15045 am__EXEEXT_TRUE=
15046 am__EXEEXT_FALSE='#'
15047else
15048 am__EXEEXT_TRUE='#'
15049 am__EXEEXT_FALSE=
15050fi
15051
15052if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
f00f02a3 15053 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
03385ed3 15054Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055fi
15056if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
f00f02a3 15057 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
03385ed3 15058Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059fi
15060if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
f00f02a3 15061 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
03385ed3 15062Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063fi
15064if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
f00f02a3 15065 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
03385ed3 15066Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067fi
15068if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
f00f02a3 15069 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
03385ed3 15070Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071fi
15072if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
f00f02a3 15073 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
03385ed3 15074Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075fi
15076if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
f00f02a3 15077 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
03385ed3 15078Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079fi
15080if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
f00f02a3 15081 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
03385ed3 15082Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083fi
15084if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
f00f02a3 15085 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
03385ed3 15086Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087fi
15088if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
f00f02a3 15089 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
03385ed3 15090Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091fi
15092if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
f00f02a3 15093 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
03385ed3 15094Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095fi
15096if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
f00f02a3 15097 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
03385ed3 15098Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099fi
15100if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
f00f02a3 15101 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
03385ed3 15102Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103fi
15104if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
f00f02a3 15105 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
03385ed3 15106Usually this means the macro was only invoked conditionally." "$LINENO" 5
15107fi
15108if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
f00f02a3 15109 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
03385ed3 15110Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111fi
15112if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
f00f02a3 15113 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
03385ed3 15114Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115fi
e06fcd5a 15116if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15117 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15118Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119fi
03385ed3 15120if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
f00f02a3 15121 as_fn_error $? "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
03385ed3 15122Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123fi
15124
f00f02a3 15125: "${CONFIG_STATUS=./config.status}"
03385ed3 15126ac_write_fail=0
15127ac_clean_files_save=$ac_clean_files
15128ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15130$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15131as_write_fail=0
15132cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15133#! $SHELL
15134# Generated by $as_me.
15135# Run this file to recreate the current configuration.
15136# Compiler output produced by configure, useful for debugging
15137# configure, is in config.log if it exists.
15138
15139debug=false
15140ac_cs_recheck=false
15141ac_cs_silent=false
15142
15143SHELL=\${CONFIG_SHELL-$SHELL}
15144export SHELL
15145_ASEOF
15146cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15147## -------------------- ##
15148## M4sh Initialization. ##
15149## -------------------- ##
15150
15151# Be more Bourne compatible
15152DUALCASE=1; export DUALCASE # for MKS sh
15153if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15154 emulate sh
15155 NULLCMD=:
15156 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15157 # is contrary to our usage. Disable this feature.
15158 alias -g '${1+"$@"}'='"$@"'
15159 setopt NO_GLOB_SUBST
15160else
15161 case `(set -o) 2>/dev/null` in #(
15162 *posix*) :
15163 set -o posix ;; #(
15164 *) :
15165 ;;
15166esac
15167fi
15168
15169
15170as_nl='
15171'
15172export as_nl
15173# Printing a long string crashes Solaris 7 /usr/bin/printf.
15174as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15175as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15176as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15177# Prefer a ksh shell builtin over an external printf program on Solaris,
15178# but without wasting forks for bash or zsh.
15179if test -z "$BASH_VERSION$ZSH_VERSION" \
15180 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15181 as_echo='print -r --'
15182 as_echo_n='print -rn --'
15183elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15184 as_echo='printf %s\n'
15185 as_echo_n='printf %s'
15186else
15187 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15188 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15189 as_echo_n='/usr/ucb/echo -n'
15190 else
15191 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15192 as_echo_n_body='eval
15193 arg=$1;
15194 case $arg in #(
15195 *"$as_nl"*)
15196 expr "X$arg" : "X\\(.*\\)$as_nl";
15197 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15198 esac;
15199 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15200 '
15201 export as_echo_n_body
15202 as_echo_n='sh -c $as_echo_n_body as_echo'
15203 fi
15204 export as_echo_body
15205 as_echo='sh -c $as_echo_body as_echo'
15206fi
15207
15208# The user is always right.
15209if test "${PATH_SEPARATOR+set}" != set; then
15210 PATH_SEPARATOR=:
15211 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15212 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15213 PATH_SEPARATOR=';'
15214 }
15215fi
15216
15217
15218# IFS
15219# We need space, tab and new line, in precisely that order. Quoting is
15220# there to prevent editors from complaining about space-tab.
15221# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15222# splitting by setting IFS to empty value.)
15223IFS=" "" $as_nl"
15224
15225# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 15226as_myself=
03385ed3 15227case $0 in #((
15228 *[\\/]* ) as_myself=$0 ;;
15229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230for as_dir in $PATH
15231do
15232 IFS=$as_save_IFS
15233 test -z "$as_dir" && as_dir=.
15234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15235 done
15236IFS=$as_save_IFS
15237
15238 ;;
15239esac
15240# We did not find ourselves, most probably we were run as `sh COMMAND'
15241# in which case we are not to be found in the path.
15242if test "x$as_myself" = x; then
15243 as_myself=$0
15244fi
15245if test ! -f "$as_myself"; then
15246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15247 exit 1
15248fi
15249
15250# Unset variables that we do not need and which cause bugs (e.g. in
15251# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15252# suppresses any "Segmentation fault" message there. '((' could
15253# trigger a bug in pdksh 5.2.14.
15254for as_var in BASH_ENV ENV MAIL MAILPATH
15255do eval test x\${$as_var+set} = xset \
15256 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15257done
15258PS1='$ '
15259PS2='> '
15260PS4='+ '
15261
15262# NLS nuisances.
15263LC_ALL=C
15264export LC_ALL
15265LANGUAGE=C
15266export LANGUAGE
15267
15268# CDPATH.
15269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15270
15271
f00f02a3 15272# as_fn_error STATUS ERROR [LINENO LOG_FD]
15273# ----------------------------------------
03385ed3 15274# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15275# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 15276# script with STATUS, using 1 if that was 0.
03385ed3 15277as_fn_error ()
15278{
f00f02a3 15279 as_status=$1; test $as_status -eq 0 && as_status=1
15280 if test "$4"; then
15281 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15282 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
03385ed3 15283 fi
f00f02a3 15284 $as_echo "$as_me: error: $2" >&2
03385ed3 15285 as_fn_exit $as_status
15286} # as_fn_error
15287
15288
15289# as_fn_set_status STATUS
15290# -----------------------
15291# Set $? to STATUS, without forking.
15292as_fn_set_status ()
15293{
15294 return $1
15295} # as_fn_set_status
15296
15297# as_fn_exit STATUS
15298# -----------------
15299# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15300as_fn_exit ()
15301{
15302 set +e
15303 as_fn_set_status $1
15304 exit $1
15305} # as_fn_exit
15306
15307# as_fn_unset VAR
15308# ---------------
15309# Portably unset VAR.
15310as_fn_unset ()
15311{
15312 { eval $1=; unset $1;}
15313}
15314as_unset=as_fn_unset
15315# as_fn_append VAR VALUE
15316# ----------------------
15317# Append the text in VALUE to the end of the definition contained in VAR. Take
15318# advantage of any shell optimizations that allow amortized linear growth over
15319# repeated appends, instead of the typical quadratic growth present in naive
15320# implementations.
15321if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15322 eval 'as_fn_append ()
15323 {
15324 eval $1+=\$2
15325 }'
15326else
15327 as_fn_append ()
15328 {
15329 eval $1=\$$1\$2
15330 }
15331fi # as_fn_append
15332
15333# as_fn_arith ARG...
15334# ------------------
15335# Perform arithmetic evaluation on the ARGs, and store the result in the
15336# global $as_val. Take advantage of shells that can avoid forks. The arguments
15337# must be portable across $(()) and expr.
15338if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15339 eval 'as_fn_arith ()
15340 {
15341 as_val=$(( $* ))
15342 }'
15343else
15344 as_fn_arith ()
15345 {
15346 as_val=`expr "$@" || test $? -eq 1`
15347 }
15348fi # as_fn_arith
15349
15350
15351if expr a : '\(a\)' >/dev/null 2>&1 &&
15352 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15353 as_expr=expr
15354else
15355 as_expr=false
15356fi
15357
15358if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15359 as_basename=basename
15360else
15361 as_basename=false
15362fi
15363
15364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15365 as_dirname=dirname
15366else
15367 as_dirname=false
15368fi
15369
15370as_me=`$as_basename -- "$0" ||
15371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15372 X"$0" : 'X\(//\)$' \| \
15373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15374$as_echo X/"$0" |
15375 sed '/^.*\/\([^/][^/]*\)\/*$/{
15376 s//\1/
15377 q
15378 }
15379 /^X\/\(\/\/\)$/{
15380 s//\1/
15381 q
15382 }
15383 /^X\/\(\/\).*/{
15384 s//\1/
15385 q
15386 }
15387 s/.*/./; q'`
15388
15389# Avoid depending upon Character Ranges.
15390as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15392as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15393as_cr_digits='0123456789'
15394as_cr_alnum=$as_cr_Letters$as_cr_digits
15395
15396ECHO_C= ECHO_N= ECHO_T=
15397case `echo -n x` in #(((((
15398-n*)
15399 case `echo 'xy\c'` in
15400 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15401 xy) ECHO_C='\c';;
15402 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15403 ECHO_T=' ';;
15404 esac;;
15405*)
15406 ECHO_N='-n';;
15407esac
15408
15409rm -f conf$$ conf$$.exe conf$$.file
15410if test -d conf$$.dir; then
15411 rm -f conf$$.dir/conf$$.file
15412else
15413 rm -f conf$$.dir
15414 mkdir conf$$.dir 2>/dev/null
15415fi
15416if (echo >conf$$.file) 2>/dev/null; then
15417 if ln -s conf$$.file conf$$ 2>/dev/null; then
15418 as_ln_s='ln -s'
15419 # ... but there are two gotchas:
15420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 15422 # In both cases, we have to default to `cp -pR'.
03385ed3 15423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 15424 as_ln_s='cp -pR'
03385ed3 15425 elif ln conf$$.file conf$$ 2>/dev/null; then
15426 as_ln_s=ln
15427 else
f00f02a3 15428 as_ln_s='cp -pR'
03385ed3 15429 fi
15430else
f00f02a3 15431 as_ln_s='cp -pR'
03385ed3 15432fi
15433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15434rmdir conf$$.dir 2>/dev/null
15435
15436
15437# as_fn_mkdir_p
15438# -------------
15439# Create "$as_dir" as a directory, including parents if necessary.
15440as_fn_mkdir_p ()
15441{
15442
15443 case $as_dir in #(
15444 -*) as_dir=./$as_dir;;
15445 esac
15446 test -d "$as_dir" || eval $as_mkdir_p || {
15447 as_dirs=
15448 while :; do
15449 case $as_dir in #(
15450 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15451 *) as_qdir=$as_dir;;
15452 esac
15453 as_dirs="'$as_qdir' $as_dirs"
15454 as_dir=`$as_dirname -- "$as_dir" ||
15455$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15456 X"$as_dir" : 'X\(//\)[^/]' \| \
15457 X"$as_dir" : 'X\(//\)$' \| \
15458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15459$as_echo X"$as_dir" |
15460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15461 s//\1/
15462 q
15463 }
15464 /^X\(\/\/\)[^/].*/{
15465 s//\1/
15466 q
15467 }
15468 /^X\(\/\/\)$/{
15469 s//\1/
15470 q
15471 }
15472 /^X\(\/\).*/{
15473 s//\1/
15474 q
15475 }
15476 s/.*/./; q'`
15477 test -d "$as_dir" && break
15478 done
15479 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 15480 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
03385ed3 15481
15482
15483} # as_fn_mkdir_p
15484if mkdir -p . 2>/dev/null; then
15485 as_mkdir_p='mkdir -p "$as_dir"'
15486else
15487 test -d ./-p && rmdir ./-p
15488 as_mkdir_p=false
15489fi
15490
f00f02a3 15491
15492# as_fn_executable_p FILE
15493# -----------------------
15494# Test if FILE is an executable regular file.
15495as_fn_executable_p ()
15496{
15497 test -f "$1" && test -x "$1"
15498} # as_fn_executable_p
15499as_test_x='test -x'
15500as_executable_p=as_fn_executable_p
03385ed3 15501
15502# Sed expression to map a string onto a valid CPP name.
15503as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15504
15505# Sed expression to map a string onto a valid variable name.
15506as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15507
15508
15509exec 6>&1
15510## ----------------------------------- ##
15511## Main body of $CONFIG_STATUS script. ##
15512## ----------------------------------- ##
15513_ASEOF
15514test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15515
15516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15517# Save the log message, to keep $0 and so on meaningful, and to
15518# report actual input values of CONFIG_FILES etc. instead of their
15519# values after options handling.
15520ac_log="
15521This file was extended by package-unused $as_me version-unused, which was
f00f02a3 15522generated by GNU Autoconf 2.69. Invocation command line was
03385ed3 15523
15524 CONFIG_FILES = $CONFIG_FILES
15525 CONFIG_HEADERS = $CONFIG_HEADERS
15526 CONFIG_LINKS = $CONFIG_LINKS
15527 CONFIG_COMMANDS = $CONFIG_COMMANDS
15528 $ $0 $@
15529
15530on `(hostname || uname -n) 2>/dev/null | sed 1q`
15531"
15532
15533_ACEOF
15534
15535case $ac_config_files in *"
15536"*) set x $ac_config_files; shift; ac_config_files=$*;;
15537esac
15538
15539case $ac_config_headers in *"
15540"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15541esac
15542
15543
15544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545# Files that config.status was made for.
15546config_files="$ac_config_files"
15547config_headers="$ac_config_headers"
15548config_commands="$ac_config_commands"
15549
15550_ACEOF
15551
15552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553ac_cs_usage="\
15554\`$as_me' instantiates files and other configuration actions
15555from templates according to the current configuration. Unless the files
15556and actions are specified as TAGs, all are instantiated by default.
15557
15558Usage: $0 [OPTION]... [TAG]...
15559
15560 -h, --help print this help, then exit
15561 -V, --version print version number and configuration settings, then exit
f00f02a3 15562 --config print configuration, then exit
03385ed3 15563 -q, --quiet, --silent
15564 do not print progress messages
15565 -d, --debug don't remove temporary files
15566 --recheck update $as_me by reconfiguring in the same conditions
15567 --file=FILE[:TEMPLATE]
15568 instantiate the configuration file FILE
15569 --header=FILE[:TEMPLATE]
15570 instantiate the configuration header FILE
15571
15572Configuration files:
15573$config_files
15574
15575Configuration headers:
15576$config_headers
15577
15578Configuration commands:
15579$config_commands
15580
15581Report bugs to the package provider."
15582
15583_ACEOF
15584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 15585ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
03385ed3 15586ac_cs_version="\\
15587package-unused config.status version-unused
f00f02a3 15588configured by $0, generated by GNU Autoconf 2.69,
15589 with options \\"\$ac_cs_config\\"
03385ed3 15590
e06fcd5a 15591Copyright (C) 2012 Free Software Foundation, Inc.
03385ed3 15592This config.status script is free software; the Free Software Foundation
15593gives unlimited permission to copy, distribute and modify it."
15594
15595ac_pwd='$ac_pwd'
15596srcdir='$srcdir'
15597INSTALL='$INSTALL'
15598MKDIR_P='$MKDIR_P'
15599AWK='$AWK'
15600test -n "\$AWK" || AWK=awk
15601_ACEOF
15602
15603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15604# The default lists apply if the user does not specify any file.
15605ac_need_defaults=:
15606while test $# != 0
15607do
15608 case $1 in
f00f02a3 15609 --*=?*)
03385ed3 15610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15612 ac_shift=:
15613 ;;
f00f02a3 15614 --*=)
15615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15616 ac_optarg=
15617 ac_shift=:
15618 ;;
03385ed3 15619 *)
15620 ac_option=$1
15621 ac_optarg=$2
15622 ac_shift=shift
15623 ;;
15624 esac
15625
15626 case $ac_option in
15627 # Handling of the options.
15628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15629 ac_cs_recheck=: ;;
15630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15631 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 15632 --config | --confi | --conf | --con | --co | --c )
15633 $as_echo "$ac_cs_config"; exit ;;
03385ed3 15634 --debug | --debu | --deb | --de | --d | -d )
15635 debug=: ;;
15636 --file | --fil | --fi | --f )
15637 $ac_shift
15638 case $ac_optarg in
15639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 15640 '') as_fn_error $? "missing file argument" ;;
03385ed3 15641 esac
15642 as_fn_append CONFIG_FILES " '$ac_optarg'"
15643 ac_need_defaults=false;;
15644 --header | --heade | --head | --hea )
15645 $ac_shift
15646 case $ac_optarg in
15647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15648 esac
15649 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15650 ac_need_defaults=false;;
15651 --he | --h)
15652 # Conflict between --help and --header
f00f02a3 15653 as_fn_error $? "ambiguous option: \`$1'
03385ed3 15654Try \`$0 --help' for more information.";;
15655 --help | --hel | -h )
15656 $as_echo "$ac_cs_usage"; exit ;;
15657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15659 ac_cs_silent=: ;;
15660
15661 # This is an error.
f00f02a3 15662 -*) as_fn_error $? "unrecognized option: \`$1'
03385ed3 15663Try \`$0 --help' for more information." ;;
15664
15665 *) as_fn_append ac_config_targets " $1"
15666 ac_need_defaults=false ;;
15667
15668 esac
15669 shift
15670done
15671
15672ac_configure_extra_args=
15673
15674if $ac_cs_silent; then
15675 exec 6>/dev/null
15676 ac_configure_extra_args="$ac_configure_extra_args --silent"
15677fi
15678
15679_ACEOF
15680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15681if \$ac_cs_recheck; then
f00f02a3 15682 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
03385ed3 15683 shift
15684 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15685 CONFIG_SHELL='$SHELL'
15686 export CONFIG_SHELL
15687 exec "\$@"
15688fi
15689
15690_ACEOF
15691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692exec 5>>config.log
15693{
15694 echo
15695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15696## Running $as_me. ##
15697_ASBOX
15698 $as_echo "$ac_log"
15699} >&5
15700
15701_ACEOF
15702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703#
15704# INIT-COMMANDS
15705#
15706
15707srcdir="$srcdir"
15708host="$host"
15709target="$target"
15710with_multisubdir="$with_multisubdir"
15711with_multisrctop="$with_multisrctop"
15712with_target_subdir="$with_target_subdir"
15713ac_configure_args="${multilib_arg} ${ac_configure_args}"
15714multi_basedir="$multi_basedir"
15715CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15716CC="$CC"
15717CXX="$CXX"
15718GFORTRAN="$GFORTRAN"
15719GDC="$GDC"
15720
15721
15722# The HP-UX ksh and POSIX shell print the target directory to stdout
15723# if CDPATH is set.
15724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15725
15726sed_quote_subst='$sed_quote_subst'
15727double_quote_subst='$double_quote_subst'
15728delay_variable_subst='$delay_variable_subst'
15729macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15730macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15731enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15732enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15733pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15734enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15735SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15736ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15737host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15738host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15739host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15740build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15741build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15742build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15743SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15744Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15745GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15746EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15747FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15748LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15749NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15750LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15751max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15752ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15753exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15754lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15755lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15756lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15757reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15758reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15759OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15760deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15761file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15762AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15763AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15764STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15765RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15766old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15767old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15768old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15769lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15770CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15771CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15772compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15773GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15774lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15775lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15776lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15777lt_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"`'
15778objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15779MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15780lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15781lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15782lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15783lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15784lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15785need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15786DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15787NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15788LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15789OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15790OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15791libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15792shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15793extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15794archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15795enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15796export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15797whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15798compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15799old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15800old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15801archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15802archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15803module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15804module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15805with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15806allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15807no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15808hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15809hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15810hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15811hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15812hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15813hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15814hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15815hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15816inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15817link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15818fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15819always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15820export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15821exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15822include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15823prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15824file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15825variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15826need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15827need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15828version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15829runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15830shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15831shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15832libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15833library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15834soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15835install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15836postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15837postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15838finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15839finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15840hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15841sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15842sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15843hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15844enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15845enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15846enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15847old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15848striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15849LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15850reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15851reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15852old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15853compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15854GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15855lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15856lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15857lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15858lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15859lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15860archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15861enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15862export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15863whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15864compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15865old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15866old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15867archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15868archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15869module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15870module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15871with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15872allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15873no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15874hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15875hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15876hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15877hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15878hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15879hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15880hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15881hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15882inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15883link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15884fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15885always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15886export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15887exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15888include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15889prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15890file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15891hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15892
15893LTCC='$LTCC'
15894LTCFLAGS='$LTCFLAGS'
15895compiler='$compiler_DEFAULT'
15896
15897# A function that is used when there is no print builtin or printf.
15898func_fallback_echo ()
15899{
15900 eval 'cat <<_LTECHO_EOF
15901\$1
15902_LTECHO_EOF'
15903}
15904
15905# Quote evaled strings.
15906for var in SHELL \
15907ECHO \
15908SED \
15909GREP \
15910EGREP \
15911FGREP \
15912LD \
15913NM \
15914LN_S \
15915lt_SP2NL \
15916lt_NL2SP \
15917reload_flag \
15918OBJDUMP \
15919deplibs_check_method \
15920file_magic_cmd \
15921AR \
15922AR_FLAGS \
15923STRIP \
15924RANLIB \
15925CC \
15926CFLAGS \
15927compiler \
15928lt_cv_sys_global_symbol_pipe \
15929lt_cv_sys_global_symbol_to_cdecl \
15930lt_cv_sys_global_symbol_to_c_name_address \
15931lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15932lt_prog_compiler_no_builtin_flag \
15933lt_prog_compiler_wl \
15934lt_prog_compiler_pic \
15935lt_prog_compiler_static \
15936lt_cv_prog_compiler_c_o \
15937need_locks \
15938DSYMUTIL \
15939NMEDIT \
15940LIPO \
15941OTOOL \
15942OTOOL64 \
15943shrext_cmds \
15944export_dynamic_flag_spec \
15945whole_archive_flag_spec \
15946compiler_needs_object \
15947with_gnu_ld \
15948allow_undefined_flag \
15949no_undefined_flag \
15950hardcode_libdir_flag_spec \
15951hardcode_libdir_flag_spec_ld \
15952hardcode_libdir_separator \
15953fix_srcfile_path \
15954exclude_expsyms \
15955include_expsyms \
15956file_list_spec \
15957variables_saved_for_relink \
15958libname_spec \
15959library_names_spec \
15960soname_spec \
15961install_override_mode \
15962finish_eval \
15963old_striplib \
15964striplib \
15965LD_D \
15966reload_flag_D \
15967compiler_D \
15968lt_prog_compiler_no_builtin_flag_D \
15969lt_prog_compiler_wl_D \
15970lt_prog_compiler_pic_D \
15971lt_prog_compiler_static_D \
15972lt_cv_prog_compiler_c_o_D \
15973export_dynamic_flag_spec_D \
15974whole_archive_flag_spec_D \
15975compiler_needs_object_D \
15976with_gnu_ld_D \
15977allow_undefined_flag_D \
15978no_undefined_flag_D \
15979hardcode_libdir_flag_spec_D \
15980hardcode_libdir_flag_spec_ld_D \
15981hardcode_libdir_separator_D \
15982fix_srcfile_path_D \
15983exclude_expsyms_D \
15984include_expsyms_D \
15985file_list_spec_D; do
15986 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15987 *[\\\\\\\`\\"\\\$]*)
15988 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15989 ;;
15990 *)
15991 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15992 ;;
15993 esac
15994done
15995
15996# Double-quote double-evaled strings.
15997for var in reload_cmds \
15998old_postinstall_cmds \
15999old_postuninstall_cmds \
16000old_archive_cmds \
16001extract_expsyms_cmds \
16002old_archive_from_new_cmds \
16003old_archive_from_expsyms_cmds \
16004archive_cmds \
16005archive_expsym_cmds \
16006module_cmds \
16007module_expsym_cmds \
16008export_symbols_cmds \
16009prelink_cmds \
16010postinstall_cmds \
16011postuninstall_cmds \
16012finish_cmds \
16013sys_lib_search_path_spec \
16014sys_lib_dlsearch_path_spec \
16015reload_cmds_D \
16016old_archive_cmds_D \
16017old_archive_from_new_cmds_D \
16018old_archive_from_expsyms_cmds_D \
16019archive_cmds_D \
16020archive_expsym_cmds_D \
16021module_cmds_D \
16022module_expsym_cmds_D \
16023export_symbols_cmds_D \
16024prelink_cmds_D; do
16025 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16026 *[\\\\\\\`\\"\\\$]*)
16027 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16028 ;;
16029 *)
16030 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16031 ;;
16032 esac
16033done
16034
16035ac_aux_dir='$ac_aux_dir'
16036xsi_shell='$xsi_shell'
16037lt_shell_append='$lt_shell_append'
16038
16039# See if we are running on zsh, and set the options which allow our
16040# commands through without removal of \ escapes INIT.
16041if test -n "\${ZSH_VERSION+set}" ; then
16042 setopt NO_GLOB_SUBST
16043fi
16044
16045
16046 PACKAGE='$PACKAGE'
16047 VERSION='$VERSION'
16048 TIMESTAMP='$TIMESTAMP'
16049 RM='$RM'
16050 ofile='$ofile'
16051
16052
16053
16054
16055
16056
03385ed3 16057_ACEOF
16058
16059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060
16061# Handling of arguments.
16062for ac_config_target in $ac_config_targets
16063do
16064 case $ac_config_target in
16065 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16066 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16067 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16068 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
03385ed3 16069 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16070 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16071 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16072 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
5114391d 16073 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16074 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16075 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
03385ed3 16076
f00f02a3 16077 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
03385ed3 16078 esac
16079done
16080
16081
16082# If the user did not use the arguments to specify the items to instantiate,
16083# then the envvar interface is used. Set only those that are not.
16084# We use the long form for the default assignment because of an extremely
16085# bizarre bug on SunOS 4.1.3.
16086if $ac_need_defaults; then
16087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16090fi
16091
16092# Have a temporary directory for convenience. Make it in the build tree
16093# simply because there is no reason against having it here, and in addition,
16094# creating and moving files from /tmp can sometimes cause problems.
16095# Hook for its removal unless debugging.
16096# Note that there is a small window in which the directory will not be cleaned:
16097# after its creation but before its name has been assigned to `$tmp'.
16098$debug ||
16099{
f00f02a3 16100 tmp= ac_tmp=
03385ed3 16101 trap 'exit_status=$?
f00f02a3 16102 : "${ac_tmp:=$tmp}"
16103 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
03385ed3 16104' 0
16105 trap 'as_fn_exit 1' 1 2 13 15
16106}
16107# Create a (secure) tmp directory for tmp files.
16108
16109{
16110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 16111 test -d "$tmp"
03385ed3 16112} ||
16113{
16114 tmp=./conf$$-$RANDOM
16115 (umask 077 && mkdir "$tmp")
f00f02a3 16116} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16117ac_tmp=$tmp
03385ed3 16118
16119# Set up the scripts for CONFIG_FILES section.
16120# No need to generate them if there are no CONFIG_FILES.
16121# This happens for instance with `./config.status config.h'.
16122if test -n "$CONFIG_FILES"; then
16123
e06fcd5a 16124if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16125 ac_cs_awk_getline=:
16126 ac_cs_awk_pipe_init=
16127 ac_cs_awk_read_file='
16128 while ((getline aline < (F[key])) > 0)
16129 print(aline)
16130 close(F[key])'
16131 ac_cs_awk_pipe_fini=
16132else
16133 ac_cs_awk_getline=false
16134 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16135 ac_cs_awk_read_file='
16136 print "|#_!!_#|"
16137 print "cat " F[key] " &&"
16138 '$ac_cs_awk_pipe_init
16139 # The final `:' finishes the AND list.
16140 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16141fi
03385ed3 16142ac_cr=`echo X | tr X '\015'`
16143# On cygwin, bash can eat \r inside `` if the user requested igncr.
16144# But we know of no other shell where ac_cr would be empty at this
16145# point, so we can use a bashism as a fallback.
16146if test "x$ac_cr" = x; then
16147 eval ac_cr=\$\'\\r\'
16148fi
16149ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16150if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 16151 ac_cs_awk_cr='\\r'
03385ed3 16152else
16153 ac_cs_awk_cr=$ac_cr
16154fi
16155
f00f02a3 16156echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
03385ed3 16157_ACEOF
16158
e06fcd5a 16159# Create commands to substitute file output variables.
16160{
16161 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16162 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16163 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16164 echo "_ACAWK" &&
16165 echo "_ACEOF"
16166} >conf$$files.sh &&
16167. ./conf$$files.sh ||
16168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16169rm -f conf$$files.sh
03385ed3 16170
16171{
16172 echo "cat >conf$$subs.awk <<_ACEOF" &&
16173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16174 echo "_ACEOF"
16175} >conf$$subs.sh ||
f00f02a3 16176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16177ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
03385ed3 16178ac_delim='%!_!# '
16179for ac_last_try in false false false false false :; do
16180 . ./conf$$subs.sh ||
f00f02a3 16181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
03385ed3 16182
16183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16184 if test $ac_delim_n = $ac_delim_num; then
16185 break
16186 elif $ac_last_try; then
f00f02a3 16187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
03385ed3 16188 else
16189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16190 fi
16191done
16192rm -f conf$$subs.sh
16193
16194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 16195cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
03385ed3 16196_ACEOF
16197sed -n '
16198h
16199s/^/S["/; s/!.*/"]=/
16200p
16201g
16202s/^[^!]*!//
16203:repl
16204t repl
16205s/'"$ac_delim"'$//
16206t delim
16207:nl
16208h
f00f02a3 16209s/\(.\{148\}\)..*/\1/
03385ed3 16210t more1
16211s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16212p
16213n
16214b repl
16215:more1
16216s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16217p
16218g
16219s/.\{148\}//
16220t nl
16221:delim
16222h
f00f02a3 16223s/\(.\{148\}\)..*/\1/
03385ed3 16224t more2
16225s/["\\]/\\&/g; s/^/"/; s/$/"/
16226p
16227b
16228:more2
16229s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16230p
16231g
16232s/.\{148\}//
16233t delim
16234' <conf$$subs.awk | sed '
16235/^[^""]/{
16236 N
16237 s/\n//
16238}
16239' >>$CONFIG_STATUS || ac_write_fail=1
16240rm -f conf$$subs.awk
16241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16242_ACAWK
f00f02a3 16243cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
03385ed3 16244 for (key in S) S_is_set[key] = 1
16245 FS = "\a"
e06fcd5a 16246 \$ac_cs_awk_pipe_init
03385ed3 16247}
16248{
16249 line = $ 0
16250 nfields = split(line, field, "@")
16251 substed = 0
16252 len = length(field[1])
16253 for (i = 2; i < nfields; i++) {
16254 key = field[i]
16255 keylen = length(key)
16256 if (S_is_set[key]) {
16257 value = S[key]
16258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16259 len += length(value) + length(field[++i])
16260 substed = 1
16261 } else
16262 len += 1 + keylen
16263 }
e06fcd5a 16264 if (nfields == 3 && !substed) {
16265 key = field[2]
16266 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16267 \$ac_cs_awk_read_file
16268 next
16269 }
16270 }
03385ed3 16271 print line
16272}
e06fcd5a 16273\$ac_cs_awk_pipe_fini
03385ed3 16274_ACAWK
16275_ACEOF
16276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16277if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16278 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16279else
16280 cat
f00f02a3 16281fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16282 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
03385ed3 16283_ACEOF
16284
f00f02a3 16285# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16286# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
03385ed3 16287# trailing colons and then remove the whole line if VPATH becomes empty
16288# (actually we leave an empty line to preserve line numbers).
16289if test "x$srcdir" = x.; then
f00f02a3 16290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16291h
16292s///
16293s/^/:/
16294s/[ ]*$/:/
16295s/:\$(srcdir):/:/g
16296s/:\${srcdir}:/:/g
16297s/:@srcdir@:/:/g
16298s/^:*//
03385ed3 16299s/:*$//
f00f02a3 16300x
16301s/\(=[ ]*\).*/\1/
16302G
16303s/\n//
03385ed3 16304s/^[^=]*=[ ]*$//
16305}'
16306fi
16307
16308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309fi # test -n "$CONFIG_FILES"
16310
16311# Set up the scripts for CONFIG_HEADERS section.
16312# No need to generate them if there are no CONFIG_HEADERS.
16313# This happens for instance with `./config.status Makefile'.
16314if test -n "$CONFIG_HEADERS"; then
f00f02a3 16315cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
03385ed3 16316BEGIN {
16317_ACEOF
16318
16319# Transform confdefs.h into an awk script `defines.awk', embedded as
16320# here-document in config.status, that substitutes the proper values into
16321# config.h.in to produce config.h.
16322
16323# Create a delimiter string that does not exist in confdefs.h, to ease
16324# handling of long lines.
16325ac_delim='%!_!# '
16326for ac_last_try in false false :; do
f00f02a3 16327 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16328 if test -z "$ac_tt"; then
03385ed3 16329 break
16330 elif $ac_last_try; then
f00f02a3 16331 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
03385ed3 16332 else
16333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16334 fi
16335done
16336
16337# For the awk script, D is an array of macro values keyed by name,
16338# likewise P contains macro parameters if any. Preserve backslash
16339# newline sequences.
16340
16341ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16342sed -n '
16343s/.\{148\}/&'"$ac_delim"'/g
16344t rset
16345:rset
16346s/^[ ]*#[ ]*define[ ][ ]*/ /
16347t def
16348d
16349:def
16350s/\\$//
16351t bsnl
16352s/["\\]/\\&/g
16353s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16354D["\1"]=" \3"/p
16355s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16356d
16357:bsnl
16358s/["\\]/\\&/g
16359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16360D["\1"]=" \3\\\\\\n"\\/p
16361t cont
16362s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16363t cont
16364d
16365:cont
16366n
16367s/.\{148\}/&'"$ac_delim"'/g
16368t clear
16369:clear
16370s/\\$//
16371t bsnlc
16372s/["\\]/\\&/g; s/^/"/; s/$/"/p
16373d
16374:bsnlc
16375s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16376b cont
16377' <confdefs.h | sed '
16378s/'"$ac_delim"'/"\\\
16379"/g' >>$CONFIG_STATUS || ac_write_fail=1
16380
16381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16382 for (key in D) D_is_set[key] = 1
16383 FS = "\a"
16384}
16385/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16386 line = \$ 0
16387 split(line, arg, " ")
16388 if (arg[1] == "#") {
16389 defundef = arg[2]
16390 mac1 = arg[3]
16391 } else {
16392 defundef = substr(arg[1], 2)
16393 mac1 = arg[2]
16394 }
16395 split(mac1, mac2, "(") #)
16396 macro = mac2[1]
16397 prefix = substr(line, 1, index(line, defundef) - 1)
16398 if (D_is_set[macro]) {
16399 # Preserve the white space surrounding the "#".
16400 print prefix "define", macro P[macro] D[macro]
16401 next
16402 } else {
16403 # Replace #undef with comments. This is necessary, for example,
16404 # in the case of _POSIX_SOURCE, which is predefined and required
16405 # on some systems where configure will not decide to define it.
16406 if (defundef == "undef") {
16407 print "/*", prefix defundef, macro, "*/"
16408 next
16409 }
16410 }
16411}
16412{ print }
16413_ACAWK
16414_ACEOF
16415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f00f02a3 16416 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
03385ed3 16417fi # test -n "$CONFIG_HEADERS"
16418
16419
16420eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16421shift
16422for ac_tag
16423do
16424 case $ac_tag in
16425 :[FHLC]) ac_mode=$ac_tag; continue;;
16426 esac
16427 case $ac_mode$ac_tag in
16428 :[FHL]*:*);;
f00f02a3 16429 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
03385ed3 16430 :[FH]-) ac_tag=-:-;;
16431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16432 esac
16433 ac_save_IFS=$IFS
16434 IFS=:
16435 set x $ac_tag
16436 IFS=$ac_save_IFS
16437 shift
16438 ac_file=$1
16439 shift
16440
16441 case $ac_mode in
16442 :L) ac_source=$1;;
16443 :[FH])
16444 ac_file_inputs=
16445 for ac_f
16446 do
16447 case $ac_f in
f00f02a3 16448 -) ac_f="$ac_tmp/stdin";;
03385ed3 16449 *) # Look for the file first in the build tree, then in the source tree
16450 # (if the path is not absolute). The absolute path cannot be DOS-style,
16451 # because $ac_f cannot contain `:'.
16452 test -f "$ac_f" ||
16453 case $ac_f in
16454 [\\/$]*) false;;
16455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16456 esac ||
f00f02a3 16457 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
03385ed3 16458 esac
16459 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16460 as_fn_append ac_file_inputs " '$ac_f'"
16461 done
16462
16463 # Let's still pretend it is `configure' which instantiates (i.e., don't
16464 # use $as_me), people would be surprised to read:
16465 # /* config.h. Generated by config.status. */
16466 configure_input='Generated from '`
16467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16468 `' by configure.'
16469 if test x"$ac_file" != x-; then
16470 configure_input="$ac_file. $configure_input"
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16472$as_echo "$as_me: creating $ac_file" >&6;}
16473 fi
16474 # Neutralize special characters interpreted by sed in replacement strings.
16475 case $configure_input in #(
16476 *\&* | *\|* | *\\* )
16477 ac_sed_conf_input=`$as_echo "$configure_input" |
16478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16479 *) ac_sed_conf_input=$configure_input;;
16480 esac
16481
16482 case $ac_tag in
f00f02a3 16483 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
03385ed3 16485 esac
16486 ;;
16487 esac
16488
16489 ac_dir=`$as_dirname -- "$ac_file" ||
16490$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16491 X"$ac_file" : 'X\(//\)[^/]' \| \
16492 X"$ac_file" : 'X\(//\)$' \| \
16493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16494$as_echo X"$ac_file" |
16495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16496 s//\1/
16497 q
16498 }
16499 /^X\(\/\/\)[^/].*/{
16500 s//\1/
16501 q
16502 }
16503 /^X\(\/\/\)$/{
16504 s//\1/
16505 q
16506 }
16507 /^X\(\/\).*/{
16508 s//\1/
16509 q
16510 }
16511 s/.*/./; q'`
16512 as_dir="$ac_dir"; as_fn_mkdir_p
16513 ac_builddir=.
16514
16515case "$ac_dir" in
16516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16517*)
16518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16519 # A ".." for each directory in $ac_dir_suffix.
16520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16521 case $ac_top_builddir_sub in
16522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16524 esac ;;
16525esac
16526ac_abs_top_builddir=$ac_pwd
16527ac_abs_builddir=$ac_pwd$ac_dir_suffix
16528# for backward compatibility:
16529ac_top_builddir=$ac_top_build_prefix
16530
16531case $srcdir in
16532 .) # We are building in place.
16533 ac_srcdir=.
16534 ac_top_srcdir=$ac_top_builddir_sub
16535 ac_abs_top_srcdir=$ac_pwd ;;
16536 [\\/]* | ?:[\\/]* ) # Absolute name.
16537 ac_srcdir=$srcdir$ac_dir_suffix;
16538 ac_top_srcdir=$srcdir
16539 ac_abs_top_srcdir=$srcdir ;;
16540 *) # Relative name.
16541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16542 ac_top_srcdir=$ac_top_build_prefix$srcdir
16543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16544esac
16545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16546
16547
16548 case $ac_mode in
16549 :F)
16550 #
16551 # CONFIG_FILE
16552 #
16553
16554 case $INSTALL in
16555 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16556 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16557 esac
16558 ac_MKDIR_P=$MKDIR_P
16559 case $MKDIR_P in
16560 [\\/$]* | ?:[\\/]* ) ;;
16561 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16562 esac
16563_ACEOF
16564
16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566# If the template does not know about datarootdir, expand it.
16567# FIXME: This hack should be removed a few years after 2.60.
16568ac_datarootdir_hack=; ac_datarootdir_seen=
16569ac_sed_dataroot='
16570/datarootdir/ {
16571 p
16572 q
16573}
16574/@datadir@/p
16575/@docdir@/p
16576/@infodir@/p
16577/@localedir@/p
16578/@mandir@/p'
16579case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16580*datarootdir*) ac_datarootdir_seen=yes;;
16581*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16583$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16584_ACEOF
16585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16586 ac_datarootdir_hack='
16587 s&@datadir@&$datadir&g
16588 s&@docdir@&$docdir&g
16589 s&@infodir@&$infodir&g
16590 s&@localedir@&$localedir&g
16591 s&@mandir@&$mandir&g
16592 s&\\\${datarootdir}&$datarootdir&g' ;;
16593esac
16594_ACEOF
16595
16596# Neutralize VPATH when `$srcdir' = `.'.
16597# Shell code in configure.ac might set extrasub.
16598# FIXME: do we really want to maintain this feature?
16599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16600ac_sed_extra="$ac_vpsub
16601$extrasub
16602_ACEOF
16603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16604:t
16605/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16606s|@configure_input@|$ac_sed_conf_input|;t t
16607s&@top_builddir@&$ac_top_builddir_sub&;t t
16608s&@top_build_prefix@&$ac_top_build_prefix&;t t
16609s&@srcdir@&$ac_srcdir&;t t
16610s&@abs_srcdir@&$ac_abs_srcdir&;t t
16611s&@top_srcdir@&$ac_top_srcdir&;t t
16612s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16613s&@builddir@&$ac_builddir&;t t
16614s&@abs_builddir@&$ac_abs_builddir&;t t
16615s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16616s&@INSTALL@&$ac_INSTALL&;t t
16617s&@MKDIR_P@&$ac_MKDIR_P&;t t
16618$ac_datarootdir_hack
16619"
e06fcd5a 16620eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16621if $ac_cs_awk_getline; then
16622 $AWK -f "$ac_tmp/subs.awk"
16623else
16624 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16625fi \
f00f02a3 16626 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
03385ed3 16627
16628test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 16629 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16631 "$ac_tmp/out"`; test -z "$ac_out"; } &&
03385ed3 16632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16633which seems to be undefined. Please make sure it is defined" >&5
03385ed3 16634$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16635which seems to be undefined. Please make sure it is defined" >&2;}
03385ed3 16636
f00f02a3 16637 rm -f "$ac_tmp/stdin"
03385ed3 16638 case $ac_file in
f00f02a3 16639 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16640 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
03385ed3 16641 esac \
f00f02a3 16642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
03385ed3 16643 ;;
16644 :H)
16645 #
16646 # CONFIG_HEADER
16647 #
16648 if test x"$ac_file" != x-; then
16649 {
16650 $as_echo "/* $configure_input */" \
f00f02a3 16651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16652 } >"$ac_tmp/config.h" \
16653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16654 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
03385ed3 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16656$as_echo "$as_me: $ac_file is unchanged" >&6;}
16657 else
16658 rm -f "$ac_file"
f00f02a3 16659 mv "$ac_tmp/config.h" "$ac_file" \
16660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
03385ed3 16661 fi
16662 else
16663 $as_echo "/* $configure_input */" \
f00f02a3 16664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16665 || as_fn_error $? "could not create -" "$LINENO" 5
03385ed3 16666 fi
16667# Compute "$ac_file"'s index in $config_headers.
16668_am_arg="$ac_file"
16669_am_stamp_count=1
16670for _am_header in $config_headers :; do
16671 case $_am_header in
16672 $_am_arg | $_am_arg:* )
16673 break ;;
16674 * )
16675 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16676 esac
16677done
16678echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16679$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16680 X"$_am_arg" : 'X\(//\)[^/]' \| \
16681 X"$_am_arg" : 'X\(//\)$' \| \
16682 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16683$as_echo X"$_am_arg" |
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16685 s//\1/
16686 q
16687 }
16688 /^X\(\/\/\)[^/].*/{
16689 s//\1/
16690 q
16691 }
16692 /^X\(\/\/\)$/{
16693 s//\1/
16694 q
16695 }
16696 /^X\(\/\).*/{
16697 s//\1/
16698 q
16699 }
16700 s/.*/./; q'`/stamp-h$_am_stamp_count
16701 ;;
16702
16703 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16704$as_echo "$as_me: executing $ac_file commands" >&6;}
16705 ;;
16706 esac
16707
16708
16709 case $ac_file$ac_mode in
16710 "default-1":C)
16711# Only add multilib support code if we just rebuilt the top-level
16712# Makefile.
16713case " $CONFIG_FILES " in
16714 *" Makefile "*)
16715 ac_file=Makefile . ${multi_basedir}/config-ml.in
16716 ;;
16717esac ;;
16718 "libtool":C)
16719
16720 # See if we are running on zsh, and set the options which allow our
16721 # commands through without removal of \ escapes.
16722 if test -n "${ZSH_VERSION+set}" ; then
16723 setopt NO_GLOB_SUBST
16724 fi
16725
16726 cfgfile="${ofile}T"
16727 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16728 $RM "$cfgfile"
16729
16730 cat <<_LT_EOF >> "$cfgfile"
16731#! $SHELL
16732
16733# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16734# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16735# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16736# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16737#
e06fcd5a 16738# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16739# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
03385ed3 16740# Written by Gordon Matzigkeit, 1996
16741#
16742# This file is part of GNU Libtool.
16743#
16744# GNU Libtool is free software; you can redistribute it and/or
16745# modify it under the terms of the GNU General Public License as
16746# published by the Free Software Foundation; either version 2 of
16747# the License, or (at your option) any later version.
16748#
16749# As a special exception to the GNU General Public License,
16750# if you distribute this file as part of a program or library that
16751# is built using GNU Libtool, you may include this file under the
16752# same distribution terms that you use for the rest of that program.
16753#
16754# GNU Libtool is distributed in the hope that it will be useful,
16755# but WITHOUT ANY WARRANTY; without even the implied warranty of
16756# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16757# GNU General Public License for more details.
16758#
16759# You should have received a copy of the GNU General Public License
16760# along with GNU Libtool; see the file COPYING. If not, a copy
16761# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16762# obtained by writing to the Free Software Foundation, Inc.,
16763# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16764
16765
16766# The names of the tagged configurations supported by this script.
16767available_tags="D "
16768
16769# ### BEGIN LIBTOOL CONFIG
16770
16771# Which release of libtool.m4 was used?
16772macro_version=$macro_version
16773macro_revision=$macro_revision
16774
16775# Whether or not to build shared libraries.
16776build_libtool_libs=$enable_shared
16777
16778# Whether or not to build static libraries.
16779build_old_libs=$enable_static
16780
16781# What type of objects to build.
16782pic_mode=$pic_mode
16783
16784# Whether or not to optimize for fast installation.
16785fast_install=$enable_fast_install
16786
16787# Shell to use when invoking shell scripts.
16788SHELL=$lt_SHELL
16789
16790# An echo program that protects backslashes.
16791ECHO=$lt_ECHO
16792
16793# The host system.
16794host_alias=$host_alias
16795host=$host
16796host_os=$host_os
16797
16798# The build system.
16799build_alias=$build_alias
16800build=$build
16801build_os=$build_os
16802
16803# A sed program that does not truncate output.
16804SED=$lt_SED
16805
16806# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16807Xsed="\$SED -e 1s/^X//"
16808
16809# A grep program that handles long lines.
16810GREP=$lt_GREP
16811
16812# An ERE matcher.
16813EGREP=$lt_EGREP
16814
16815# A literal string matcher.
16816FGREP=$lt_FGREP
16817
16818# A BSD- or MS-compatible name lister.
16819NM=$lt_NM
16820
16821# Whether we need soft or hard links.
16822LN_S=$lt_LN_S
16823
16824# What is the maximum length of a command?
16825max_cmd_len=$max_cmd_len
16826
16827# Object file suffix (normally "o").
16828objext=$ac_objext
16829
16830# Executable file suffix (normally "").
16831exeext=$exeext
16832
16833# whether the shell understands "unset".
16834lt_unset=$lt_unset
16835
16836# turn spaces into newlines.
16837SP2NL=$lt_lt_SP2NL
16838
16839# turn newlines into spaces.
16840NL2SP=$lt_lt_NL2SP
16841
16842# An object symbol dumper.
16843OBJDUMP=$lt_OBJDUMP
16844
16845# Method to check whether dependent libraries are shared objects.
16846deplibs_check_method=$lt_deplibs_check_method
16847
16848# Command to use when deplibs_check_method == "file_magic".
16849file_magic_cmd=$lt_file_magic_cmd
16850
16851# The archiver.
16852AR=$lt_AR
16853AR_FLAGS=$lt_AR_FLAGS
16854
16855# A symbol stripping program.
16856STRIP=$lt_STRIP
16857
16858# Commands used to install an old-style archive.
16859RANLIB=$lt_RANLIB
16860old_postinstall_cmds=$lt_old_postinstall_cmds
16861old_postuninstall_cmds=$lt_old_postuninstall_cmds
16862
16863# Whether to use a lock for old archive extraction.
16864lock_old_archive_extraction=$lock_old_archive_extraction
16865
16866# A C compiler.
16867LTCC=$lt_CC
16868
16869# LTCC compiler flags.
16870LTCFLAGS=$lt_CFLAGS
16871
16872# Take the output of nm and produce a listing of raw symbols and C names.
16873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16874
16875# Transform the output of nm in a proper C declaration.
16876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16877
16878# Transform the output of nm in a C name address pair.
16879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16880
16881# Transform the output of nm in a C name address pair when lib prefix is needed.
16882global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16883
16884# The name of the directory that contains temporary libtool files.
16885objdir=$objdir
16886
16887# Used to examine libraries when file_magic_cmd begins with "file".
16888MAGIC_CMD=$MAGIC_CMD
16889
16890# Must we lock files when doing compilation?
16891need_locks=$lt_need_locks
16892
16893# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16894DSYMUTIL=$lt_DSYMUTIL
16895
16896# Tool to change global to local symbols on Mac OS X.
16897NMEDIT=$lt_NMEDIT
16898
16899# Tool to manipulate fat objects and archives on Mac OS X.
16900LIPO=$lt_LIPO
16901
16902# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16903OTOOL=$lt_OTOOL
16904
16905# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16906OTOOL64=$lt_OTOOL64
16907
16908# Old archive suffix (normally "a").
16909libext=$libext
16910
16911# Shared library suffix (normally ".so").
16912shrext_cmds=$lt_shrext_cmds
16913
16914# The commands to extract the exported symbol list from a shared archive.
16915extract_expsyms_cmds=$lt_extract_expsyms_cmds
16916
16917# Variables whose values should be saved in libtool wrapper scripts and
16918# restored at link time.
16919variables_saved_for_relink=$lt_variables_saved_for_relink
16920
16921# Do we need the "lib" prefix for modules?
16922need_lib_prefix=$need_lib_prefix
16923
16924# Do we need a version for libraries?
16925need_version=$need_version
16926
16927# Library versioning type.
16928version_type=$version_type
16929
16930# Shared library runtime path variable.
16931runpath_var=$runpath_var
16932
16933# Shared library path variable.
16934shlibpath_var=$shlibpath_var
16935
16936# Is shlibpath searched before the hard-coded library search path?
16937shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16938
16939# Format of library name prefix.
16940libname_spec=$lt_libname_spec
16941
16942# List of archive names. First name is the real one, the rest are links.
16943# The last name is the one that the linker finds with -lNAME
16944library_names_spec=$lt_library_names_spec
16945
16946# The coded name of the library, if different from the real name.
16947soname_spec=$lt_soname_spec
16948
16949# Permission mode override for installation of shared libraries.
16950install_override_mode=$lt_install_override_mode
16951
16952# Command to use after installation of a shared archive.
16953postinstall_cmds=$lt_postinstall_cmds
16954
16955# Command to use after uninstallation of a shared archive.
16956postuninstall_cmds=$lt_postuninstall_cmds
16957
16958# Commands used to finish a libtool library installation in a directory.
16959finish_cmds=$lt_finish_cmds
16960
16961# As "finish_cmds", except a single script fragment to be evaled but
16962# not shown.
16963finish_eval=$lt_finish_eval
16964
16965# Whether we should hardcode library paths into libraries.
16966hardcode_into_libs=$hardcode_into_libs
16967
16968# Compile-time system search path for libraries.
16969sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16970
16971# Run-time system search path for libraries.
16972sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16973
16974# Whether dlopen is supported.
16975dlopen_support=$enable_dlopen
16976
16977# Whether dlopen of programs is supported.
16978dlopen_self=$enable_dlopen_self
16979
16980# Whether dlopen of statically linked programs is supported.
16981dlopen_self_static=$enable_dlopen_self_static
16982
16983# Commands to strip libraries.
16984old_striplib=$lt_old_striplib
16985striplib=$lt_striplib
16986
16987
16988# The linker used to build libraries.
16989LD=$lt_LD
16990
16991# How to create reloadable object files.
16992reload_flag=$lt_reload_flag
16993reload_cmds=$lt_reload_cmds
16994
16995# Commands used to build an old-style archive.
16996old_archive_cmds=$lt_old_archive_cmds
16997
16998# A language specific compiler.
16999CC=$lt_compiler
17000
17001# Is the compiler the GNU compiler?
17002with_gcc=$GCC
17003
17004# Compiler flag to turn off builtin functions.
17005no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17006
17007# How to pass a linker flag through the compiler.
17008wl=$lt_lt_prog_compiler_wl
17009
17010# Additional compiler flags for building library objects.
17011pic_flag=$lt_lt_prog_compiler_pic
17012
17013# Compiler flag to prevent dynamic linking.
17014link_static_flag=$lt_lt_prog_compiler_static
17015
17016# Does compiler simultaneously support -c and -o options?
17017compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17018
17019# Whether or not to add -lc for building shared libraries.
17020build_libtool_need_lc=$archive_cmds_need_lc
17021
17022# Whether or not to disallow shared libs when runtime libs are static.
17023allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17024
17025# Compiler flag to allow reflexive dlopens.
17026export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17027
17028# Compiler flag to generate shared objects directly from archives.
17029whole_archive_flag_spec=$lt_whole_archive_flag_spec
17030
17031# Whether the compiler copes with passing no objects directly.
17032compiler_needs_object=$lt_compiler_needs_object
17033
17034# Create an old-style archive from a shared archive.
17035old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17036
17037# Create a temporary old-style archive to link instead of a shared archive.
17038old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17039
17040# Commands used to build a shared archive.
17041archive_cmds=$lt_archive_cmds
17042archive_expsym_cmds=$lt_archive_expsym_cmds
17043
17044# Commands used to build a loadable module if different from building
17045# a shared archive.
17046module_cmds=$lt_module_cmds
17047module_expsym_cmds=$lt_module_expsym_cmds
17048
17049# Whether we are building with GNU ld or not.
17050with_gnu_ld=$lt_with_gnu_ld
17051
17052# Flag that allows shared libraries with undefined symbols to be built.
17053allow_undefined_flag=$lt_allow_undefined_flag
17054
17055# Flag that enforces no undefined symbols.
17056no_undefined_flag=$lt_no_undefined_flag
17057
17058# Flag to hardcode \$libdir into a binary during linking.
17059# This must work even if \$libdir does not exist
17060hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17061
17062# If ld is used when linking, flag to hardcode \$libdir into a binary
17063# during linking. This must work even if \$libdir does not exist.
17064hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17065
17066# Whether we need a single "-rpath" flag with a separated argument.
17067hardcode_libdir_separator=$lt_hardcode_libdir_separator
17068
17069# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17070# DIR into the resulting binary.
17071hardcode_direct=$hardcode_direct
17072
17073# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17074# DIR into the resulting binary and the resulting library dependency is
17075# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17076# library is relocated.
17077hardcode_direct_absolute=$hardcode_direct_absolute
17078
17079# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17080# into the resulting binary.
17081hardcode_minus_L=$hardcode_minus_L
17082
17083# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17084# into the resulting binary.
17085hardcode_shlibpath_var=$hardcode_shlibpath_var
17086
17087# Set to "yes" if building a shared library automatically hardcodes DIR
17088# into the library and all subsequent libraries and executables linked
17089# against it.
17090hardcode_automatic=$hardcode_automatic
17091
17092# Set to yes if linker adds runtime paths of dependent libraries
17093# to runtime path list.
17094inherit_rpath=$inherit_rpath
17095
17096# Whether libtool must link a program against all its dependency libraries.
17097link_all_deplibs=$link_all_deplibs
17098
17099# Fix the shell variable \$srcfile for the compiler.
17100fix_srcfile_path=$lt_fix_srcfile_path
17101
17102# Set to "yes" if exported symbols are required.
17103always_export_symbols=$always_export_symbols
17104
17105# The commands to list exported symbols.
17106export_symbols_cmds=$lt_export_symbols_cmds
17107
17108# Symbols that should not be listed in the preloaded symbols.
17109exclude_expsyms=$lt_exclude_expsyms
17110
17111# Symbols that must always be exported.
17112include_expsyms=$lt_include_expsyms
17113
17114# Commands necessary for linking programs (against libraries) with templates.
17115prelink_cmds=$lt_prelink_cmds
17116
17117# Specify filename containing input files.
17118file_list_spec=$lt_file_list_spec
17119
17120# How to hardcode a shared library path into an executable.
17121hardcode_action=$hardcode_action
17122
17123# ### END LIBTOOL CONFIG
17124
17125_LT_EOF
17126
17127 case $host_os in
17128 aix3*)
17129 cat <<\_LT_EOF >> "$cfgfile"
17130# AIX sometimes has problems with the GCC collect2 program. For some
17131# reason, if we set the COLLECT_NAMES environment variable, the problems
17132# vanish in a puff of smoke.
17133if test "X${COLLECT_NAMES+set}" != Xset; then
17134 COLLECT_NAMES=
17135 export COLLECT_NAMES
17136fi
17137_LT_EOF
17138 ;;
17139 esac
17140
17141
17142ltmain="$ac_aux_dir/ltmain.sh"
17143
17144
17145 # We use sed instead of cat because bash on DJGPP gets confused if
17146 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17147 # text mode, it properly converts lines to CR/LF. This bash problem
17148 # is reportedly fixed, but why not run on old versions too?
17149 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17150 || (rm -f "$cfgfile"; exit 1)
17151
17152 case $xsi_shell in
17153 yes)
17154 cat << \_LT_EOF >> "$cfgfile"
17155
17156# func_dirname file append nondir_replacement
17157# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17158# otherwise set result to NONDIR_REPLACEMENT.
17159func_dirname ()
17160{
17161 case ${1} in
17162 */*) func_dirname_result="${1%/*}${2}" ;;
17163 * ) func_dirname_result="${3}" ;;
17164 esac
17165}
17166
17167# func_basename file
17168func_basename ()
17169{
17170 func_basename_result="${1##*/}"
17171}
17172
17173# func_dirname_and_basename file append nondir_replacement
17174# perform func_basename and func_dirname in a single function
17175# call:
17176# dirname: Compute the dirname of FILE. If nonempty,
17177# add APPEND to the result, otherwise set result
17178# to NONDIR_REPLACEMENT.
17179# value returned in "$func_dirname_result"
17180# basename: Compute filename of FILE.
17181# value retuned in "$func_basename_result"
17182# Implementation must be kept synchronized with func_dirname
17183# and func_basename. For efficiency, we do not delegate to
17184# those functions but instead duplicate the functionality here.
17185func_dirname_and_basename ()
17186{
17187 case ${1} in
17188 */*) func_dirname_result="${1%/*}${2}" ;;
17189 * ) func_dirname_result="${3}" ;;
17190 esac
17191 func_basename_result="${1##*/}"
17192}
17193
17194# func_stripname prefix suffix name
17195# strip PREFIX and SUFFIX off of NAME.
17196# PREFIX and SUFFIX must not contain globbing or regex special
17197# characters, hashes, percent signs, but SUFFIX may contain a leading
17198# dot (in which case that matches only a dot).
17199func_stripname ()
17200{
17201 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17202 # positional parameters, so assign one to ordinary parameter first.
17203 func_stripname_result=${3}
17204 func_stripname_result=${func_stripname_result#"${1}"}
17205 func_stripname_result=${func_stripname_result%"${2}"}
17206}
17207
17208# func_opt_split
17209func_opt_split ()
17210{
17211 func_opt_split_opt=${1%%=*}
17212 func_opt_split_arg=${1#*=}
17213}
17214
17215# func_lo2o object
17216func_lo2o ()
17217{
17218 case ${1} in
17219 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17220 *) func_lo2o_result=${1} ;;
17221 esac
17222}
17223
17224# func_xform libobj-or-source
17225func_xform ()
17226{
17227 func_xform_result=${1%.*}.lo
17228}
17229
17230# func_arith arithmetic-term...
17231func_arith ()
17232{
17233 func_arith_result=$(( $* ))
17234}
17235
17236# func_len string
17237# STRING may not start with a hyphen.
17238func_len ()
17239{
17240 func_len_result=${#1}
17241}
17242
17243_LT_EOF
17244 ;;
17245 *) # Bourne compatible functions.
17246 cat << \_LT_EOF >> "$cfgfile"
17247
17248# func_dirname file append nondir_replacement
17249# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17250# otherwise set result to NONDIR_REPLACEMENT.
17251func_dirname ()
17252{
17253 # Extract subdirectory from the argument.
17254 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17255 if test "X$func_dirname_result" = "X${1}"; then
17256 func_dirname_result="${3}"
17257 else
17258 func_dirname_result="$func_dirname_result${2}"
17259 fi
17260}
17261
17262# func_basename file
17263func_basename ()
17264{
17265 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17266}
17267
17268
17269# func_stripname prefix suffix name
17270# strip PREFIX and SUFFIX off of NAME.
17271# PREFIX and SUFFIX must not contain globbing or regex special
17272# characters, hashes, percent signs, but SUFFIX may contain a leading
17273# dot (in which case that matches only a dot).
17274# func_strip_suffix prefix name
17275func_stripname ()
17276{
17277 case ${2} in
17278 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17279 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17280 esac
17281}
17282
17283# sed scripts:
17284my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17285my_sed_long_arg='1s/^-[^=]*=//'
17286
17287# func_opt_split
17288func_opt_split ()
17289{
17290 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17291 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17292}
17293
17294# func_lo2o object
17295func_lo2o ()
17296{
17297 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17298}
17299
17300# func_xform libobj-or-source
17301func_xform ()
17302{
17303 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17304}
17305
17306# func_arith arithmetic-term...
17307func_arith ()
17308{
17309 func_arith_result=`expr "$@"`
17310}
17311
17312# func_len string
17313# STRING may not start with a hyphen.
17314func_len ()
17315{
17316 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17317}
17318
17319_LT_EOF
17320esac
17321
17322case $lt_shell_append in
17323 yes)
17324 cat << \_LT_EOF >> "$cfgfile"
17325
17326# func_append var value
17327# Append VALUE to the end of shell variable VAR.
17328func_append ()
17329{
17330 eval "$1+=\$2"
17331}
17332_LT_EOF
17333 ;;
17334 *)
17335 cat << \_LT_EOF >> "$cfgfile"
17336
17337# func_append var value
17338# Append VALUE to the end of shell variable VAR.
17339func_append ()
17340{
17341 eval "$1=\$$1\$2"
17342}
17343
17344_LT_EOF
17345 ;;
17346 esac
17347
17348
17349 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17350 || (rm -f "$cfgfile"; exit 1)
17351
17352 mv -f "$cfgfile" "$ofile" ||
17353 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17354 chmod +x "$ofile"
17355
17356
17357 cat <<_LT_EOF >> "$ofile"
17358
17359# ### BEGIN LIBTOOL TAG CONFIG: D
17360
17361# The linker used to build libraries.
17362LD=$lt_LD_D
17363
17364# How to create reloadable object files.
17365reload_flag=$lt_reload_flag_D
17366reload_cmds=$lt_reload_cmds_D
17367
17368# Commands used to build an old-style archive.
17369old_archive_cmds=$lt_old_archive_cmds_D
17370
17371# A language specific compiler.
17372CC=$lt_compiler_D
17373
17374# Is the compiler the GNU compiler?
17375with_gcc=$GCC_D
17376
17377# Compiler flag to turn off builtin functions.
17378no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17379
17380# How to pass a linker flag through the compiler.
17381wl=$lt_lt_prog_compiler_wl_D
17382
17383# Additional compiler flags for building library objects.
17384pic_flag=$lt_lt_prog_compiler_pic_D
17385
17386# Compiler flag to prevent dynamic linking.
17387link_static_flag=$lt_lt_prog_compiler_static_D
17388
17389# Does compiler simultaneously support -c and -o options?
17390compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17391
17392# Whether or not to add -lc for building shared libraries.
17393build_libtool_need_lc=$archive_cmds_need_lc_D
17394
17395# Whether or not to disallow shared libs when runtime libs are static.
17396allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17397
17398# Compiler flag to allow reflexive dlopens.
17399export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17400
17401# Compiler flag to generate shared objects directly from archives.
17402whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17403
17404# Whether the compiler copes with passing no objects directly.
17405compiler_needs_object=$lt_compiler_needs_object_D
17406
17407# Create an old-style archive from a shared archive.
17408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17409
17410# Create a temporary old-style archive to link instead of a shared archive.
17411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17412
17413# Commands used to build a shared archive.
17414archive_cmds=$lt_archive_cmds_D
17415archive_expsym_cmds=$lt_archive_expsym_cmds_D
17416
17417# Commands used to build a loadable module if different from building
17418# a shared archive.
17419module_cmds=$lt_module_cmds_D
17420module_expsym_cmds=$lt_module_expsym_cmds_D
17421
17422# Whether we are building with GNU ld or not.
17423with_gnu_ld=$lt_with_gnu_ld_D
17424
17425# Flag that allows shared libraries with undefined symbols to be built.
17426allow_undefined_flag=$lt_allow_undefined_flag_D
17427
17428# Flag that enforces no undefined symbols.
17429no_undefined_flag=$lt_no_undefined_flag_D
17430
17431# Flag to hardcode \$libdir into a binary during linking.
17432# This must work even if \$libdir does not exist
17433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17434
17435# If ld is used when linking, flag to hardcode \$libdir into a binary
17436# during linking. This must work even if \$libdir does not exist.
17437hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17438
17439# Whether we need a single "-rpath" flag with a separated argument.
17440hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17441
17442# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17443# DIR into the resulting binary.
17444hardcode_direct=$hardcode_direct_D
17445
17446# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17447# DIR into the resulting binary and the resulting library dependency is
17448# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17449# library is relocated.
17450hardcode_direct_absolute=$hardcode_direct_absolute_D
17451
17452# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17453# into the resulting binary.
17454hardcode_minus_L=$hardcode_minus_L_D
17455
17456# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17457# into the resulting binary.
17458hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17459
17460# Set to "yes" if building a shared library automatically hardcodes DIR
17461# into the library and all subsequent libraries and executables linked
17462# against it.
17463hardcode_automatic=$hardcode_automatic_D
17464
17465# Set to yes if linker adds runtime paths of dependent libraries
17466# to runtime path list.
17467inherit_rpath=$inherit_rpath_D
17468
17469# Whether libtool must link a program against all its dependency libraries.
17470link_all_deplibs=$link_all_deplibs_D
17471
17472# Fix the shell variable \$srcfile for the compiler.
17473fix_srcfile_path=$lt_fix_srcfile_path_D
17474
17475# Set to "yes" if exported symbols are required.
17476always_export_symbols=$always_export_symbols_D
17477
17478# The commands to list exported symbols.
17479export_symbols_cmds=$lt_export_symbols_cmds_D
17480
17481# Symbols that should not be listed in the preloaded symbols.
17482exclude_expsyms=$lt_exclude_expsyms_D
17483
17484# Symbols that must always be exported.
17485include_expsyms=$lt_include_expsyms_D
17486
17487# Commands necessary for linking programs (against libraries) with templates.
17488prelink_cmds=$lt_prelink_cmds_D
17489
17490# Specify filename containing input files.
17491file_list_spec=$lt_file_list_spec_D
17492
17493# How to hardcode a shared library path into an executable.
17494hardcode_action=$hardcode_action_D
17495
17496# ### END LIBTOOL TAG CONFIG: D
17497_LT_EOF
17498
17499 ;;
17500 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
5114391d 17501 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17502s!`test -f '$<' || echo '$(srcdir)/'`!!
03385ed3 17503_EOF
5114391d 17504 sed -f vpsed$$ $ac_file > tmp$$
17505 mv tmp$$ $ac_file
17506 rm vpsed$$
17507 echo 'MULTISUBDIR =' >> $ac_file
17508 ml_norecursion=yes
17509 . ${multi_basedir}/config-ml.in
17510 { ml_norecursion=; unset ml_norecursion;}
17511 ;;
17512 "src/Makefile":F) cat > vpsed$$ << \_EOF
17513s!`test -f '$<' || echo '$(srcdir)/'`!!
17514_EOF
17515 sed -f vpsed$$ $ac_file > tmp$$
17516 mv tmp$$ $ac_file
17517 rm vpsed$$
17518 echo 'MULTISUBDIR =' >> $ac_file
17519 ml_norecursion=yes
17520 . ${multi_basedir}/config-ml.in
17521 { ml_norecursion=; unset ml_norecursion;}
17522 ;;
17523 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17524s!`test -f '$<' || echo '$(srcdir)/'`!!
17525_EOF
17526 sed -f vpsed$$ $ac_file > tmp$$
17527 mv tmp$$ $ac_file
17528 rm vpsed$$
17529 echo 'MULTISUBDIR =' >> $ac_file
17530 ml_norecursion=yes
17531 . ${multi_basedir}/config-ml.in
17532 { ml_norecursion=; unset ml_norecursion;}
03385ed3 17533 ;;
17534
17535 esac
17536done # for ac_tag
17537
17538
17539as_fn_exit 0
17540_ACEOF
17541ac_clean_files=$ac_clean_files_save
17542
17543test $ac_write_fail = 0 ||
f00f02a3 17544 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
03385ed3 17545
17546
17547# configure is writing to config.log, and then calls config.status.
17548# config.status does its own redirection, appending to config.log.
17549# Unfortunately, on DOS this fails, as config.log is still kept open
17550# by configure, so config.status won't be able to write to it; its
17551# output is simply discarded. So we exec the FD to /dev/null,
17552# effectively closing config.log, so it can be properly (re)opened and
17553# appended to by config.status. When coming back to configure, we
17554# need to make the FD available again.
17555if test "$no_create" != yes; then
17556 ac_cs_success=:
17557 ac_config_status_args=
17558 test "$silent" = yes &&
17559 ac_config_status_args="$ac_config_status_args --quiet"
17560 exec 5>/dev/null
17561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17562 exec 5>>config.log
17563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17564 # would make configure fail if this is the last instruction.
f00f02a3 17565 $ac_cs_success || as_fn_exit 1
03385ed3 17566fi
17567if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17569$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17570fi
17571