]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mn10300/configure
sim: use AC_CHECK_TOOL to find ar
[thirdparty/binutils-gdb.git] / sim / mn10300 / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
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 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
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
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
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;}
81ecdfbb
RW
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
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
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
6bb11ab3
L
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
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
b7026657 219do
81ecdfbb
RW
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 :
d0ac1c44
SM
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
81ecdfbb
RW
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."
b7026657 274 else
81ecdfbb
RW
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."
b7026657 279 fi
81ecdfbb
RW
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"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
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
81ecdfbb
RW
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
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
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
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
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
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
c906108c 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
c906108c 433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
c906108c 439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
c906108c 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
b7026657
AC
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
c906108c 464
b7026657
AC
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
c906108c 471
c906108c 472
81ecdfbb
RW
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 |
b7026657 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
b7026657 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 490 t loop
81ecdfbb 491 s/-\n.*//
b7026657 492 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
b7026657 495
d0ac1c44
SM
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
b7026657
AC
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
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
b7026657
AC
504 # Exit status is that of the last command.
505 exit
506}
c906108c 507
81ecdfbb
RW
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';;
b7026657 519esac
c906108c 520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
b7026657 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
b7026657 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 530 as_ln_s='ln -s'
81ecdfbb
RW
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.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
b7026657 541 fi
b7026657 542else
d0ac1c44 543 as_ln_s='cp -pR'
b7026657 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
c906108c 547
b7026657 548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
c906108c 554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
c906108c 557
b7026657
AC
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'"
c906108c 560
b7026657
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
c906108c 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
c906108c 569
b7026657 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 574
c906108c 575#
b7026657 576# Initializations.
c906108c 577#
b7026657 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
b7026657 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
b7026657
AC
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
b7026657
AC
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
b7026657
AC
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
b7026657
AC
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
b7026657
AC
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
b7026657
AC
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
b7026657
AC
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
b7026657
AC
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
b7026657 623# include <inttypes.h>
b7026657 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
b7026657
AC
629# include <unistd.h>
630#endif"
c906108c 631
81ecdfbb
RW
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
760b3e8b
MF
634sim_default_model
635sim_scache
636sim_float
81ecdfbb
RW
637cgen_breaks
638REPORT_BUGS_TEXI
639REPORT_BUGS_TO
640PKGVERSION
81ecdfbb 641MAINT
31e6ad7d
MF
642MAINTAINER_MODE_FALSE
643MAINTAINER_MODE_TRUE
6bb11ab3
L
644lt_cv_dlopen_libs
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650AWK
651STRIP
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661PLUGINS_FALSE
662PLUGINS_TRUE
aadc9410
MF
663zlibinc
664zlibdir
81ecdfbb
RW
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
670POSUB
671GMSGFMT
672XGETTEXT
673INCINTL
674LIBINTL_DEP
675LIBINTL
676USE_NLS
db2e4d67
MF
677GMAKE_FALSE
678GMAKE_TRUE
679MAKE
680CCDEPMODE
681DEPDIR
682am__leading_dot
5f3ef9d0 683PACKAGE
46f900c0 684C_DIALECT
81ecdfbb
RW
685RANLIB
686AR
81ecdfbb
RW
687CC_FOR_BUILD
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
2232061b
MF
691EGREP
692GREP
81ecdfbb
RW
693target_os
694target_vendor
695target_cpu
696target
697host_os
698host_vendor
699host_cpu
700host
701build_os
702build_vendor
703build_cpu
704build
ebe9564b 705CPP
6ffe910a
MF
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
81ecdfbb
RW
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
136da8cd
MF
750SHELL
751WERROR_CFLAGS
752WARN_CFLAGS
753sim_reserved_bits
754sim_inline
755sim_hw
756sim_hw_objs
757sim_hw_cflags
136da8cd
MF
758sim_endian
759sim_bitsize
760sim_alignment'
b7026657 761ac_subst_files=''
81ecdfbb
RW
762ac_user_opts='
763enable_option_checking
aadc9410 764with_system_zlib
6bb11ab3
L
765enable_plugins
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771enable_libtool_lock
81ecdfbb 772enable_maintainer_mode
81ecdfbb
RW
773enable_sim_debug
774enable_sim_stdio
775enable_sim_trace
776enable_sim_profile
35656e95 777enable_sim_assert
16f7876d 778enable_sim_environment
347fe5bb 779enable_sim_inline
81ecdfbb
RW
780with_pkgversion
781with_bugurl
782enable_sim_endian
783enable_sim_alignment
2232061b 784enable_werror
81ecdfbb
RW
785enable_build_warnings
786enable_sim_build_warnings
787enable_sim_reserved_bits
788enable_sim_bitsize
81ecdfbb
RW
789enable_sim_hardware
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CPP'
800
c906108c
SS
801
802# Initialize some variables set by options.
b7026657
AC
803ac_init_help=
804ac_init_version=false
81ecdfbb
RW
805ac_unrecognized_opts=
806ac_unrecognized_sep=
c906108c
SS
807# The variables have the same names as the options, with
808# dashes changed to underlines.
b7026657 809cache_file=/dev/null
c906108c 810exec_prefix=NONE
c906108c 811no_create=
c906108c
SS
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
c906108c
SS
820verbose=
821x_includes=NONE
822x_libraries=NONE
b7026657
AC
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 829# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
c906108c
SS
835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
c906108c
SS
838includedir='${prefix}/include'
839oldincludedir='/usr/include'
81ecdfbb
RW
840docdir='${datarootdir}/doc/${PACKAGE}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
c906108c 849
c906108c 850ac_prev=
81ecdfbb 851ac_dashdash=
c906108c
SS
852for ac_option
853do
c906108c
SS
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
81ecdfbb 856 eval $ac_prev=\$ac_option
c906108c
SS
857 ac_prev=
858 continue
859 fi
860
81ecdfbb 861 case $ac_option in
d0ac1c44
SM
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
81ecdfbb 865 esac
c906108c
SS
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
81ecdfbb
RW
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
c906108c
SS
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 876 bindir=$ac_optarg ;;
c906108c
SS
877
878 -build | --build | --buil | --bui | --bu)
b7026657 879 ac_prev=build_alias ;;
c906108c 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 881 build_alias=$ac_optarg ;;
c906108c
SS
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
c906108c 892
81ecdfbb 893 -datadir | --datadir | --datadi | --datad)
c906108c 894 ac_prev=datadir ;;
81ecdfbb 895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 896 datadir=$ac_optarg ;;
c906108c 897
81ecdfbb
RW
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
c906108c 905 -disable-* | --disable-*)
81ecdfbb 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 907 # Reject names that are not valid shell variable names.
81ecdfbb 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 909 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914"enable_$ac_useropt"
915"*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
c906108c
SS
930
931 -enable-* | --enable-*)
81ecdfbb 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 933 # Reject names that are not valid shell variable names.
81ecdfbb 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 935 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940"enable_$ac_useropt"
941"*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
c906108c 944 esac
81ecdfbb 945 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
b7026657 954 exec_prefix=$ac_optarg ;;
c906108c
SS
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
b7026657
AC
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
c906108c
SS
966
967 -host | --host | --hos | --ho)
b7026657 968 ac_prev=host_alias ;;
c906108c 969 -host=* | --host=* | --hos=* | --ho=*)
b7026657 970 host_alias=$ac_optarg ;;
c906108c 971
81ecdfbb
RW
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
c906108c
SS
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 983 includedir=$ac_optarg ;;
c906108c
SS
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 988 infodir=$ac_optarg ;;
c906108c
SS
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 993 libdir=$ac_optarg ;;
c906108c
SS
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
b7026657 1000 libexecdir=$ac_optarg ;;
c906108c 1001
81ecdfbb
RW
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
c906108c 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1008 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1012 localstatedir=$ac_optarg ;;
c906108c
SS
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1017 mandir=$ac_optarg ;;
c906108c
SS
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1024 | --no-cr | --no-c | -n)
c906108c
SS
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1038 oldincludedir=$ac_optarg ;;
c906108c
SS
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1043 prefix=$ac_optarg ;;
c906108c
SS
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1050 program_prefix=$ac_optarg ;;
c906108c
SS
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1057 program_suffix=$ac_optarg ;;
c906108c
SS
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1074 program_transform_name=$ac_optarg ;;
c906108c 1075
81ecdfbb
RW
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
c906108c
SS
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
b7026657 1094 sbindir=$ac_optarg ;;
c906108c
SS
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
b7026657 1105 sharedstatedir=$ac_optarg ;;
c906108c
SS
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
b7026657 1110 site=$ac_optarg ;;
eb2d80b4 1111
c906108c
SS
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1115 srcdir=$ac_optarg ;;
c906108c
SS
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1122 sysconfdir=$ac_optarg ;;
c906108c
SS
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1125 ac_prev=target_alias ;;
c906108c 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1127 target_alias=$ac_optarg ;;
c906108c
SS
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
b7026657
AC
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
c906108c
SS
1134
1135 -with-* | --with-*)
81ecdfbb 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1137 # Reject names that are not valid shell variable names.
81ecdfbb 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1139 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
c906108c 1148 esac
81ecdfbb 1149 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1150
1151 -without-* | --without-*)
81ecdfbb 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1153 # Reject names that are not valid shell variable names.
81ecdfbb 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1155 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
c906108c
SS
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1176 x_includes=$ac_optarg ;;
c906108c
SS
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1183 x_libraries=$ac_optarg ;;
c906108c 1184
d0ac1c44
SM
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186Try \`$0 --help' for more information"
c906108c
SS
1187 ;;
1188
b7026657
AC
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1195 esac
1196 eval $ac_envvar=\$ac_optarg
b7026657
AC
1197 export $ac_envvar ;;
1198
c906108c 1199 *)
b7026657 1200 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1205 ;;
1206
1207 esac
1208done
1209
1210if test -n "$ac_prev"; then
b7026657 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1212 as_fn_error $? "missing argument to $ac_option"
c906108c 1213fi
c906108c 1214
81ecdfbb
RW
1215if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
d0ac1c44 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1220 esac
81ecdfbb 1221fi
c906108c 1222
81ecdfbb
RW
1223# Check all directory arguments for consistency.
1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
c906108c 1228do
81ecdfbb
RW
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
b7026657 1237 case $ac_val in
81ecdfbb
RW
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1240 esac
d0ac1c44 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1242done
1243
b7026657
AC
1244# There might be people who depend on the old broken behavior: `$host'
1245# used to hold the argument of --host etc.
1246# FIXME: To remove some day.
1247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
1251# FIXME: To remove some day.
1252if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
b7026657
AC
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258fi
c906108c 1259
b7026657
AC
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
c906108c 1264
c906108c 1265
81ecdfbb
RW
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1269 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1271 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1272
1273
c906108c
SS
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
81ecdfbb
RW
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
c906108c 1301 srcdir=$ac_confdir
81ecdfbb 1302 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1303 srcdir=..
1304 fi
1305else
1306 ac_srcdir_defaulted=no
1307fi
81ecdfbb
RW
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
d0ac1c44 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1315 pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
c906108c 1332
b7026657
AC
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340\`configure' configures this package to adapt to many kinds of systems.
c906108c 1341
b7026657 1342Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1343
b7026657
AC
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1346
b7026657 1347Defaults for the options are specified in brackets.
c906108c 1348
b7026657
AC
1349Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
d0ac1c44 1354 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
b7026657
AC
1360Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1362 [$ac_default_prefix]
b7026657 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1364 [PREFIX]
c906108c 1365
b7026657
AC
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
c906108c 1370
b7026657
AC
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
81ecdfbb
RW
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1393_ACEOF
1394
1395 cat <<\_ACEOF
1396
1397Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406_ACEOF
c906108c 1407fi
b7026657
AC
1408
1409if test -n "$ac_init_help"; then
1410
1411 cat <<\_ACEOF
1412
1413Optional Features:
81ecdfbb 1414 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1417 --enable-plugins Enable support for plugins
6bb11ab3
L
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1423 --enable-maintainer-mode
1424 enable make rules and dependencies not useful (and
1425 sometimes confusing) to the casual installer
8d0978fb
MF
1426 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1427 itself)
1428 --enable-sim-stdio Specify whether to use stdio for console
1429 input/output
1430 --enable-sim-trace=opts Enable tracing of simulated programs
1431 --enable-sim-profile=opts
1432 Enable profiling flags
35656e95 1433 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1434 --enable-sim-environment=environment
1435 Specify mixed, user, virtual or operating
1436 environment
347fe5bb
MF
1437 --enable-sim-inline=inlines
1438 Specify which functions should be inlined
8d0978fb
MF
1439 --enable-sim-endian=endian
1440 Specify target byte endian orientation
1441 --enable-sim-alignment=align
1442 Specify strict, nonstrict or forced alignment of
1443 memory accesses
2232061b
MF
1444 --enable-werror treat compile warnings as errors
1445 --enable-build-warnings enable build-time compiler warnings if gcc is used
1446 --enable-sim-build-warnings
1447 enable SIM specific build-time compiler warnings if
1448 gcc is used
8d0978fb
MF
1449 --enable-sim-reserved-bits
1450 Specify whether to check reserved bits in
1451 instruction
1452 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1517bd27
MF
1453 --enable-sim-hardware=LIST
1454 Specify the hardware to be included in the build.
b7026657 1455
6efef468
JM
1456Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1459 --with-system-zlib use installed libz
6bb11ab3
L
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1463 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468
JM
1464 --with-bugurl=URL Direct users to URL to report a bug
1465
b7026657
AC
1466Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
81ecdfbb 1471 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1473 you have headers in a nonstandard directory <include dir>
b7026657
AC
1474 CPP C preprocessor
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
81ecdfbb 1479Report bugs to the package provider.
b7026657 1480_ACEOF
81ecdfbb 1481ac_status=$?
c906108c
SS
1482fi
1483
b7026657
AC
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
b7026657 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
b7026657 1490 ac_builddir=.
c906108c 1491
81ecdfbb
RW
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
c906108c 1507
b7026657 1508case $srcdir in
81ecdfbb 1509 .) # We are building in place.
b7026657 1510 ac_srcdir=.
81ecdfbb
RW
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1514 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1521esac
81ecdfbb
RW
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1532 else
81ecdfbb
RW
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1536 done
c906108c 1537fi
b7026657 1538
81ecdfbb 1539test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1540if $ac_init_version; then
1541 cat <<\_ACEOF
81ecdfbb 1542configure
d0ac1c44 1543generated by GNU Autoconf 2.69
b7026657 1544
d0ac1c44 1545Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
81ecdfbb 1549 exit
b7026657 1550fi
b7026657 1551
81ecdfbb
RW
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
b7026657 1555
81ecdfbb
RW
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
b7026657 1560{
81ecdfbb
RW
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1586
81ecdfbb
RW
1587 ac_retval=1
1588fi
d0ac1c44
SM
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
b7026657 1591
81ecdfbb 1592} # ac_fn_c_try_compile
b7026657 1593
81ecdfbb
RW
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1615 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1623
81ecdfbb
RW
1624 ac_retval=1
1625fi
d0ac1c44
SM
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
b7026657 1628
81ecdfbb
RW
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634# the include files in INCLUDES and setting the cache variable VAR
1635# accordingly.
1636ac_fn_c_check_header_mongrel ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1639 if eval \${$3+:} false; then :
81ecdfbb
RW
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1642if eval \${$3+:} false; then :
81ecdfbb
RW
1643 $as_echo_n "(cached) " >&6
1644fi
1645eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648else
1649 # Is the header compilable?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651$as_echo_n "checking $2 usability... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_header_compiler=yes
1659else
1660 ac_header_compiler=no
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664$as_echo "$ac_header_compiler" >&6; }
1665
1666# Is the header present?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668$as_echo_n "checking $2 presence... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_cpp "$LINENO"; then :
1674 ac_header_preproc=yes
1675else
1676 ac_header_preproc=no
1677fi
d0ac1c44 1678rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680$as_echo "$ac_header_preproc" >&6; }
1681
1682# So? What about this header?
1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684 yes:no: )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 ;;
1690 no:yes:* )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1694$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1698$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 ;;
1702esac
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1705if eval \${$3+:} false; then :
81ecdfbb
RW
1706 $as_echo_n "(cached) " >&6
1707else
1708 eval "$3=\$ac_header_compiler"
1709fi
1710eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713fi
d0ac1c44 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1715
1716} # ac_fn_c_check_header_mongrel
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
81ecdfbb
RW
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1769if eval \${$3+:} false; then :
81ecdfbb
RW
1770 $as_echo_n "(cached) " >&6
1771else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779else
1780 eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
d0ac1c44 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
d0ac1c44 1818 test -x conftest$ac_exeext
81ecdfbb
RW
1819 }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
81ecdfbb
RW
1834
1835} # ac_fn_c_try_link
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1845if eval \${$3+:} false; then :
81ecdfbb
RW
1846 $as_echo_n "(cached) " >&6
1847else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891else
1892 eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
d0ac1c44 1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1901
1902} # ac_fn_c_check_func
936df756
MF
1903
1904# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1905# ----------------------------------------------------
1906# Tries to find if the field MEMBER exists in type AGGR, after including
1907# INCLUDES, setting cache variable VAR accordingly.
1908ac_fn_c_check_member ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1912$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1913if eval \${$4+:} false; then :
936df756
MF
1914 $as_echo_n "(cached) " >&6
1915else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918$5
1919int
1920main ()
1921{
1922static $2 ac_aggr;
1923if (ac_aggr.$3)
1924return 0;
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930 eval "$4=yes"
1931else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934$5
1935int
1936main ()
1937{
1938static $2 ac_aggr;
1939if (sizeof ac_aggr.$3)
1940return 0;
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$4=yes"
1947else
1948 eval "$4=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954eval ac_res=\$$4
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
d0ac1c44 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1958
1959} # ac_fn_c_check_member
1960
1961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962# -------------------------------------------
1963# Tests whether TYPE exists after having included INCLUDES, setting cache
1964# variable VAR accordingly.
1965ac_fn_c_check_type ()
1966{
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1970if eval \${$3+:} false; then :
936df756
MF
1971 $as_echo_n "(cached) " >&6
1972else
1973 eval "$3=no"
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977int
1978main ()
1979{
1980if (sizeof ($2))
1981 return 0;
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993if (sizeof (($2)))
1994 return 0;
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000
2001else
2002 eval "$3=yes"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
d0ac1c44 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
2012
2013} # ac_fn_c_check_type
81ecdfbb
RW
2014cat >config.log <<_ACEOF
2015This file contains any messages produced by compilers while
2016running configure, to aid debugging if configure makes a mistake.
2017
2018It was created by $as_me, which was
d0ac1c44 2019generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2020
2021 $ $0 $@
2022
2023_ACEOF
2024exec 5>>config.log
2025{
2026cat <<_ASUNAME
2027## --------- ##
2028## Platform. ##
2029## --------- ##
2030
2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2039
2040/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2047
2048_ASUNAME
2049
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2056 done
2057IFS=$as_save_IFS
2058
2059} >&5
2060
2061cat >&5 <<_ACEOF
b7026657
AC
2062
2063
2064## ----------- ##
2065## Core tests. ##
2066## ----------- ##
2067
2068_ACEOF
2069
2070
2071# Keep a trace of the command line.
2072# Strip out --no-create and --no-recursion so they do not pile up.
2073# Strip out --silent because we don't want to record it for future runs.
2074# Also quote any args containing shell meta-characters.
2075# Make two passes to allow for proper duplicate-argument suppression.
2076ac_configure_args=
2077ac_configure_args0=
2078ac_configure_args1=
b7026657
AC
2079ac_must_keep_next=false
2080for ac_pass in 1 2
2081do
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
81ecdfbb
RW
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2091 esac
2092 case $ac_pass in
81ecdfbb 2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2094 2)
81ecdfbb 2095 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2107 ;;
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2110 fi
81ecdfbb 2111 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2112 ;;
2113 esac
2114 done
2115done
81ecdfbb
RW
2116{ ac_configure_args0=; unset ac_configure_args0;}
2117{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2118
2119# When interrupted or exit'd, cleanup temporary files, and complete
2120# config.log. We remove comments because anyway the quotes in there
2121# would cause problems or look ugly.
81ecdfbb
RW
2122# WARNING: Use '\'' to represent an apostrophe within the trap.
2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2124trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2126 {
2127 echo
2128
d0ac1c44 2129 $as_echo "## ---------------- ##
b7026657 2130## Cache variables. ##
d0ac1c44 2131## ---------------- ##"
b7026657
AC
2132 echo
2133 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2134(
2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in #(
2138 *${as_nl}*)
2139 case $ac_var in #(
2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 esac
2143 case $ac_var in #(
2144 _ | IFS | as_nl) ;; #(
2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146 *) { eval $ac_var=; unset $ac_var;} ;;
2147 esac ;;
2148 esac
2149 done
b7026657 2150 (set) 2>&1 |
81ecdfbb
RW
2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152 *${as_nl}ac_space=\ *)
b7026657 2153 sed -n \
81ecdfbb
RW
2154 "s/'\''/'\''\\\\'\'''\''/g;
2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 ;; #(
b7026657 2157 *)
81ecdfbb 2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2159 ;;
81ecdfbb
RW
2160 esac |
2161 sort
2162)
b7026657
AC
2163 echo
2164
d0ac1c44 2165 $as_echo "## ----------------- ##
b7026657 2166## Output variables. ##
d0ac1c44 2167## ----------------- ##"
b7026657
AC
2168 echo
2169 for ac_var in $ac_subst_vars
2170 do
81ecdfbb
RW
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2176 done | sort
2177 echo
2178
2179 if test -n "$ac_subst_files"; then
d0ac1c44 2180 $as_echo "## ------------------- ##
81ecdfbb 2181## File substitutions. ##
d0ac1c44 2182## ------------------- ##"
b7026657
AC
2183 echo
2184 for ac_var in $ac_subst_files
2185 do
81ecdfbb
RW
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2191 done | sort
2192 echo
2193 fi
2194
2195 if test -s confdefs.h; then
d0ac1c44 2196 $as_echo "## ----------- ##
b7026657 2197## confdefs.h. ##
d0ac1c44 2198## ----------- ##"
b7026657 2199 echo
81ecdfbb 2200 cat confdefs.h
b7026657
AC
2201 echo
2202 fi
2203 test "$ac_signal" != 0 &&
81ecdfbb
RW
2204 $as_echo "$as_me: caught signal $ac_signal"
2205 $as_echo "$as_me: exit $exit_status"
b7026657 2206 } >&5
81ecdfbb
RW
2207 rm -f core *.core core.conftest.* &&
2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2209 exit $exit_status
81ecdfbb 2210' 0
b7026657 2211for ac_signal in 1 2 13 15; do
81ecdfbb 2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2217rm -f -r conftest* confdefs.h
2218
2219$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2220
2221# Predefined preprocessor variables.
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_NAME "$PACKAGE_NAME"
2225_ACEOF
2226
b7026657
AC
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229_ACEOF
2230
b7026657
AC
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
b7026657
AC
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_STRING "$PACKAGE_STRING"
2237_ACEOF
2238
b7026657
AC
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241_ACEOF
2242
81ecdfbb
RW
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_URL "$PACKAGE_URL"
2245_ACEOF
2246
b7026657
AC
2247
2248# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2249# Prefer an explicitly selected file to automatically selected ones.
2250ac_site_file1=NONE
2251ac_site_file2=NONE
2252if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2253 # We do not want a PATH search for config.site.
2254 case $CONFIG_SITE in #((
2255 -*) ac_site_file1=./$CONFIG_SITE;;
2256 */*) ac_site_file1=$CONFIG_SITE;;
2257 *) ac_site_file1=./$CONFIG_SITE;;
2258 esac
81ecdfbb
RW
2259elif test "x$prefix" != xNONE; then
2260 ac_site_file1=$prefix/share/config.site
2261 ac_site_file2=$prefix/etc/config.site
2262else
2263 ac_site_file1=$ac_default_prefix/share/config.site
2264 ac_site_file2=$ac_default_prefix/etc/config.site
2265fi
2266for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267do
2268 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2272 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2273 . "$ac_site_file" \
2274 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276as_fn_error $? "failed to load site script $ac_site_file
2277See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2278 fi
2279done
2280
2281if test -r "$cache_file"; then
d0ac1c44
SM
2282 # Some versions of bash will fail to source /dev/null (special files
2283 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2284 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2287 case $cache_file in
81ecdfbb
RW
2288 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289 *) . "./$cache_file";;
b7026657
AC
2290 esac
2291 fi
2292else
81ecdfbb
RW
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2295 >$cache_file
2296fi
2297
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
81ecdfbb 2301for ac_var in $ac_precious_vars; do
b7026657
AC
2302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2304 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2306 case $ac_old_set,$ac_new_set in
2307 set,)
81ecdfbb
RW
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2310 ac_cache_corrupted=: ;;
2311 ,set)
81ecdfbb
RW
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2314 ac_cache_corrupted=: ;;
2315 ,);;
2316 *)
2317 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2318 # differences in whitespace do not lead to failure.
2319 ac_old_val_w=`echo x $ac_old_val`
2320 ac_new_val_w=`echo x $ac_new_val`
2321 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324 ac_cache_corrupted=:
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328 eval $ac_var=\$ac_old_val
2329 fi
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2331$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2334 fi;;
2335 esac
2336 # Pass precious variables to config.status.
2337 if test "$ac_new_set" = set; then
2338 case $ac_new_val in
81ecdfbb 2339 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2340 *) ac_arg=$ac_var=$ac_new_val ;;
2341 esac
2342 case " $ac_configure_args " in
2343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2344 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2345 esac
2346 fi
2347done
2348if $ac_cache_corrupted; then
81ecdfbb
RW
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2353 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2354fi
81ecdfbb
RW
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
b7026657
AC
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
6bb11ab3
L
2366
2367
2368
2369
2370
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2378set dummy ${ac_tool_prefix}gcc; ac_word=$2
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2381if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2382 $as_echo_n "(cached) " >&6
2383else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386else
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2394 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398done
2399 done
2400IFS=$as_save_IFS
2401
2402fi
2403fi
2404CC=$ac_cv_prog_CC
2405if test -n "$CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2407$as_echo "$CC" >&6; }
2408else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410$as_echo "no" >&6; }
2411fi
2412
2413
2414fi
2415if test -z "$ac_cv_prog_CC"; then
2416 ac_ct_CC=$CC
2417 # Extract the first word of "gcc", so it can be a program name with args.
2418set dummy gcc; ac_word=$2
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2421if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2422 $as_echo_n "(cached) " >&6
2423else
2424 if test -n "$ac_ct_CC"; then
2425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2426else
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2434 ac_cv_prog_ac_ct_CC="gcc"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2437 fi
2438done
2439 done
2440IFS=$as_save_IFS
2441
2442fi
2443fi
2444ac_ct_CC=$ac_cv_prog_ac_ct_CC
2445if test -n "$ac_ct_CC"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2447$as_echo "$ac_ct_CC" >&6; }
2448else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450$as_echo "no" >&6; }
2451fi
2452
2453 if test "x$ac_ct_CC" = x; then
2454 CC=""
2455 else
2456 case $cross_compiling:$ac_tool_warned in
2457yes:)
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2460ac_tool_warned=yes ;;
2461esac
2462 CC=$ac_ct_CC
2463 fi
2464else
2465 CC="$ac_cv_prog_CC"
2466fi
2467
2468if test -z "$CC"; then
2469 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2471set dummy ${ac_tool_prefix}cc; ac_word=$2
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2474if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2475 $as_echo_n "(cached) " >&6
2476else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2487 ac_cv_prog_CC="${ac_tool_prefix}cc"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491done
2492 done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497CC=$ac_cv_prog_CC
2498if test -n "$CC"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500$as_echo "$CC" >&6; }
2501else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506
2507 fi
2508fi
2509if test -z "$CC"; then
2510 # Extract the first word of "cc", so it can be a program name with args.
2511set dummy cc; ac_word=$2
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2514if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2515 $as_echo_n "(cached) " >&6
2516else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519else
2520 ac_prog_rejected=no
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2529 ac_prog_rejected=yes
2530 continue
2531 fi
2532 ac_cv_prog_CC="cc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536done
2537 done
2538IFS=$as_save_IFS
2539
2540if test $ac_prog_rejected = yes; then
2541 # We found a bogon in the path, so make sure we never use it.
2542 set dummy $ac_cv_prog_CC
2543 shift
2544 if test $# != 0; then
2545 # We chose a different compiler from the bogus one.
2546 # However, it has the same basename, so the bogon will be chosen
2547 # first if we set CC to just the basename; use the full file name.
2548 shift
2549 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2550 fi
2551fi
2552fi
2553fi
2554CC=$ac_cv_prog_CC
2555if test -n "$CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557$as_echo "$CC" >&6; }
2558else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
2561fi
2562
2563
2564fi
2565if test -z "$CC"; then
2566 if test -n "$ac_tool_prefix"; then
2567 for ac_prog in cl.exe
2568 do
2569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2573if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2586 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591 done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596CC=$ac_cv_prog_CC
2597if test -n "$CC"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2599$as_echo "$CC" >&6; }
2600else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606 test -n "$CC" && break
2607 done
2608fi
2609if test -z "$CC"; then
2610 ac_ct_CC=$CC
2611 for ac_prog in cl.exe
2612do
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614set dummy $ac_prog; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2617if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2618 $as_echo_n "(cached) " >&6
2619else
2620 if test -n "$ac_ct_CC"; then
2621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2630 ac_cv_prog_ac_ct_CC="$ac_prog"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635 done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640ac_ct_CC=$ac_cv_prog_ac_ct_CC
2641if test -n "$ac_ct_CC"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2643$as_echo "$ac_ct_CC" >&6; }
2644else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649
2650 test -n "$ac_ct_CC" && break
2651done
2652
2653 if test "x$ac_ct_CC" = x; then
2654 CC=""
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657yes:)
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660ac_tool_warned=yes ;;
2661esac
2662 CC=$ac_ct_CC
2663 fi
2664fi
2665
2666fi
2667
2668
2669test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2671as_fn_error $? "no acceptable C compiler found in \$PATH
2672See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2673
2674# Provide some information about the compiler.
2675$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2676set X $ac_compile
2677ac_compiler=$2
2678for ac_option in --version -v -V -qversion; do
2679 { { ac_try="$ac_compiler $ac_option >&5"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685$as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2687 ac_status=$?
2688 if test -s conftest.err; then
2689 sed '10a\
2690... rest of stderr output deleted ...
2691 10q' conftest.err >conftest.er1
2692 cat conftest.er1 >&5
6bb11ab3 2693 fi
d0ac1c44 2694 rm -f conftest.er1 conftest.err
6bb11ab3
L
2695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696 test $ac_status = 0; }
2697done
2698
2699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700/* end confdefs.h. */
2701
2702int
2703main ()
2704{
2705
2706 ;
2707 return 0;
2708}
2709_ACEOF
2710ac_clean_files_save=$ac_clean_files
d0ac1c44 2711ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2712# Try to create an executable without -o first, disregard a.out.
2713# It will help us diagnose broken compilers, and finding out an intuition
2714# of exeext.
d0ac1c44
SM
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2716$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2717ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2718
2719# The possible output files:
2720ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2721
2722ac_rmfiles=
2723for ac_file in $ac_files
2724do
2725 case $ac_file in
2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2728 esac
2729done
2730rm -f $ac_rmfiles
2731
2732if { { ac_try="$ac_link_default"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738$as_echo "$ac_try_echo"; } >&5
2739 (eval "$ac_link_default") 2>&5
2740 ac_status=$?
2741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742 test $ac_status = 0; }; then :
2743 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2744# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2745# in a Makefile. We should not override ac_cv_exeext if it was cached,
2746# so that the user can short-circuit this test for compilers unknown to
2747# Autoconf.
2748for ac_file in $ac_files ''
2749do
2750 test -f "$ac_file" || continue
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2753 ;;
2754 [ab].out )
2755 # We found the default executable, but exeext='' is most
2756 # certainly right.
2757 break;;
2758 *.* )
2759 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2760 then :; else
2761 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2762 fi
2763 # We set ac_cv_exeext here because the later test for it is not
2764 # safe: cross compilers may not add the suffix if given an `-o'
2765 # argument, so we may need to know it at that point already.
2766 # Even if this section looks crufty: it has the advantage of
2767 # actually working.
2768 break;;
2769 * )
2770 break;;
2771 esac
2772done
2773test "$ac_cv_exeext" = no && ac_cv_exeext=
2774
2775else
2776 ac_file=''
2777fi
6bb11ab3 2778if test -z "$ac_file"; then :
d0ac1c44
SM
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780$as_echo "no" >&6; }
2781$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2786as_fn_error 77 "C compiler cannot create executables
2787See \`config.log' for more details" "$LINENO" 5; }
2788else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790$as_echo "yes" >&6; }
6bb11ab3 2791fi
d0ac1c44
SM
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2793$as_echo_n "checking for C compiler default output file name... " >&6; }
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2795$as_echo "$ac_file" >&6; }
6bb11ab3
L
2796ac_exeext=$ac_cv_exeext
2797
d0ac1c44 2798rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2799ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2801$as_echo_n "checking for suffix of executables... " >&6; }
2802if { { ac_try="$ac_link"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
2807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2808$as_echo "$ac_try_echo"; } >&5
2809 (eval "$ac_link") 2>&5
2810 ac_status=$?
2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812 test $ac_status = 0; }; then :
2813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2814# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2815# work properly (i.e., refer to `conftest.exe'), while it won't with
2816# `rm'.
2817for ac_file in conftest.exe conftest conftest.*; do
2818 test -f "$ac_file" || continue
2819 case $ac_file in
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2821 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 break;;
2823 * ) break;;
2824 esac
2825done
2826else
2827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2829as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2830See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2831fi
d0ac1c44 2832rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2834$as_echo "$ac_cv_exeext" >&6; }
2835
2836rm -f conftest.$ac_ext
2837EXEEXT=$ac_cv_exeext
2838ac_exeext=$EXEEXT
d0ac1c44
SM
2839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840/* end confdefs.h. */
2841#include <stdio.h>
2842int
2843main ()
2844{
2845FILE *f = fopen ("conftest.out", "w");
2846 return ferror (f) || fclose (f) != 0;
2847
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852ac_clean_files="$ac_clean_files conftest.out"
2853# Check that the compiler produces executables we can run. If not, either
2854# the compiler is broken, or we cross compile.
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2856$as_echo_n "checking whether we are cross compiling... " >&6; }
2857if test "$cross_compiling" != yes; then
2858 { { ac_try="$ac_link"
2859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_link") 2>&5
2866 ac_status=$?
2867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; }
2869 if { ac_try='./conftest$ac_cv_exeext'
2870 { { case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
2874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875$as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_try") 2>&5
2877 ac_status=$?
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }; }; then
2880 cross_compiling=no
2881 else
2882 if test "$cross_compiling" = maybe; then
2883 cross_compiling=yes
2884 else
2885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887as_fn_error $? "cannot run C compiled programs.
2888If you meant to cross compile, use \`--host'.
2889See \`config.log' for more details" "$LINENO" 5; }
2890 fi
2891 fi
2892fi
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2894$as_echo "$cross_compiling" >&6; }
2895
2896rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2897ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2899$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2900if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2901 $as_echo_n "(cached) " >&6
2902else
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905
2906int
2907main ()
2908{
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914rm -f conftest.o conftest.obj
2915if { { ac_try="$ac_compile"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921$as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_compile") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; then :
2926 for ac_file in conftest.o conftest.obj conftest.*; do
2927 test -f "$ac_file" || continue;
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2931 break;;
2932 esac
2933done
2934else
2935 $as_echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2940as_fn_error $? "cannot compute suffix of object files: cannot compile
2941See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2942fi
2943rm -f conftest.$ac_cv_objext conftest.$ac_ext
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2946$as_echo "$ac_cv_objext" >&6; }
2947OBJEXT=$ac_cv_objext
2948ac_objext=$OBJEXT
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2950$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2951if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2952 $as_echo_n "(cached) " >&6
2953else
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h. */
2956
2957int
2958main ()
2959{
2960#ifndef __GNUC__
2961 choke me
2962#endif
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969 ac_compiler_gnu=yes
2970else
2971 ac_compiler_gnu=no
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974ac_cv_c_compiler_gnu=$ac_compiler_gnu
2975
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2978$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2979if test $ac_compiler_gnu = yes; then
2980 GCC=yes
2981else
2982 GCC=
2983fi
2984ac_test_CFLAGS=${CFLAGS+set}
2985ac_save_CFLAGS=$CFLAGS
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2987$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2988if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
2989 $as_echo_n "(cached) " >&6
2990else
2991 ac_save_c_werror_flag=$ac_c_werror_flag
2992 ac_c_werror_flag=yes
2993 ac_cv_prog_cc_g=no
2994 CFLAGS="-g"
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996/* end confdefs.h. */
2997
2998int
2999main ()
3000{
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006if ac_fn_c_try_compile "$LINENO"; then :
3007 ac_cv_prog_cc_g=yes
3008else
3009 CFLAGS=""
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021if ac_fn_c_try_compile "$LINENO"; then :
3022
3023else
3024 ac_c_werror_flag=$ac_save_c_werror_flag
3025 CFLAGS="-g"
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037if ac_fn_c_try_compile "$LINENO"; then :
3038 ac_cv_prog_cc_g=yes
3039fi
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041fi
3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 ac_c_werror_flag=$ac_save_c_werror_flag
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3048$as_echo "$ac_cv_prog_cc_g" >&6; }
3049if test "$ac_test_CFLAGS" = set; then
3050 CFLAGS=$ac_save_CFLAGS
3051elif test $ac_cv_prog_cc_g = yes; then
3052 if test "$GCC" = yes; then
3053 CFLAGS="-g -O2"
3054 else
3055 CFLAGS="-g"
3056 fi
3057else
3058 if test "$GCC" = yes; then
3059 CFLAGS="-O2"
3060 else
3061 CFLAGS=
3062 fi
3063fi
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3065$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3066if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3067 $as_echo_n "(cached) " >&6
3068else
3069 ac_cv_prog_cc_c89=no
3070ac_save_CC=$CC
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073#include <stdarg.h>
3074#include <stdio.h>
d0ac1c44 3075struct stat;
6bb11ab3
L
3076/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3077struct buf { int x; };
3078FILE * (*rcsopen) (struct buf *, struct stat *, int);
3079static char *e (p, i)
3080 char **p;
3081 int i;
3082{
3083 return p[i];
3084}
3085static char *f (char * (*g) (char **, int), char **p, ...)
3086{
3087 char *s;
3088 va_list v;
3089 va_start (v,p);
3090 s = g (p, va_arg (v,int));
3091 va_end (v);
3092 return s;
3093}
3094
3095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3096 function prototypes and stuff, but not '\xHH' hex character constants.
3097 These don't provoke an error unfortunately, instead are silently treated
3098 as 'x'. The following induces an error, until -std is added to get
3099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3100 array size at least. It's necessary to write '\x00'==0 to get something
3101 that's true only with -std. */
3102int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3103
3104/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3105 inside strings and character constants. */
3106#define FOO(x) 'x'
3107int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3108
3109int test (int i, double x);
3110struct s1 {int (*f) (int a);};
3111struct s2 {int (*f) (double a);};
3112int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3113int argc;
3114char **argv;
3115int
3116main ()
3117{
3118return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3125do
3126 CC="$ac_save_CC $ac_arg"
3127 if ac_fn_c_try_compile "$LINENO"; then :
3128 ac_cv_prog_cc_c89=$ac_arg
3129fi
3130rm -f core conftest.err conftest.$ac_objext
3131 test "x$ac_cv_prog_cc_c89" != "xno" && break
3132done
3133rm -f conftest.$ac_ext
3134CC=$ac_save_CC
3135
3136fi
3137# AC_CACHE_VAL
3138case "x$ac_cv_prog_cc_c89" in
3139 x)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3141$as_echo "none needed" >&6; } ;;
3142 xno)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3144$as_echo "unsupported" >&6; } ;;
3145 *)
3146 CC="$CC $ac_cv_prog_cc_c89"
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3148$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3149esac
3150if test "x$ac_cv_prog_cc_c89" != xno; then :
3151
3152fi
3153
3154ac_ext=c
3155ac_cpp='$CPP $CPPFLAGS'
3156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159
ebe9564b
MF
3160ac_ext=c
3161ac_cpp='$CPP $CPPFLAGS'
3162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3166$as_echo_n "checking how to run the C preprocessor... " >&6; }
3167# On Suns, sometimes $CPP names a directory.
3168if test -n "$CPP" && test -d "$CPP"; then
3169 CPP=
3170fi
3171if test -z "$CPP"; then
3172 if ${ac_cv_prog_CPP+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174else
3175 # Double quotes because CPP needs to be expanded
3176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3177 do
3178 ac_preproc_ok=false
3179for ac_c_preproc_warn_flag in '' yes
3180do
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188/* end confdefs.h. */
3189#ifdef __STDC__
3190# include <limits.h>
3191#else
3192# include <assert.h>
3193#endif
3194 Syntax error
3195_ACEOF
3196if ac_fn_c_try_cpp "$LINENO"; then :
3197
3198else
3199 # Broken: fails on valid input.
3200continue
3201fi
3202rm -f conftest.err conftest.i conftest.$ac_ext
3203
3204 # OK, works on sane cases. Now check whether nonexistent headers
3205 # can be detected and how.
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h. */
3208#include <ac_nonexistent.h>
3209_ACEOF
3210if ac_fn_c_try_cpp "$LINENO"; then :
3211 # Broken: success on invalid input.
3212continue
3213else
3214 # Passes both tests.
3215ac_preproc_ok=:
3216break
3217fi
3218rm -f conftest.err conftest.i conftest.$ac_ext
3219
3220done
3221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222rm -f conftest.i conftest.err conftest.$ac_ext
3223if $ac_preproc_ok; then :
3224 break
3225fi
3226
3227 done
3228 ac_cv_prog_CPP=$CPP
3229
3230fi
3231 CPP=$ac_cv_prog_CPP
3232else
3233 ac_cv_prog_CPP=$CPP
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3236$as_echo "$CPP" >&6; }
3237ac_preproc_ok=false
3238for ac_c_preproc_warn_flag in '' yes
3239do
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247/* end confdefs.h. */
3248#ifdef __STDC__
3249# include <limits.h>
3250#else
3251# include <assert.h>
3252#endif
3253 Syntax error
3254_ACEOF
3255if ac_fn_c_try_cpp "$LINENO"; then :
3256
3257else
3258 # Broken: fails on valid input.
3259continue
3260fi
3261rm -f conftest.err conftest.i conftest.$ac_ext
3262
3263 # OK, works on sane cases. Now check whether nonexistent headers
3264 # can be detected and how.
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h. */
3267#include <ac_nonexistent.h>
3268_ACEOF
3269if ac_fn_c_try_cpp "$LINENO"; then :
3270 # Broken: success on invalid input.
3271continue
3272else
3273 # Passes both tests.
3274ac_preproc_ok=:
3275break
3276fi
3277rm -f conftest.err conftest.i conftest.$ac_ext
3278
3279done
3280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3281rm -f conftest.i conftest.err conftest.$ac_ext
3282if $ac_preproc_ok; then :
3283
3284else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3288See \`config.log' for more details" "$LINENO" 5; }
3289fi
3290
3291ac_ext=c
3292ac_cpp='$CPP $CPPFLAGS'
3293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296
6bb11ab3
L
3297ac_aux_dir=
3298for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
3299 if test -f "$ac_dir/install-sh"; then
3300 ac_aux_dir=$ac_dir
3301 ac_install_sh="$ac_aux_dir/install-sh -c"
3302 break
3303 elif test -f "$ac_dir/install.sh"; then
3304 ac_aux_dir=$ac_dir
3305 ac_install_sh="$ac_aux_dir/install.sh -c"
3306 break
3307 elif test -f "$ac_dir/shtool"; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/shtool install -c"
3310 break
3311 fi
6bb11ab3
L
3312done
3313if test -z "$ac_aux_dir"; then
d0ac1c44 3314 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
3315fi
3316
3317# These three variables are undocumented and unsupported,
3318# and are intended to be withdrawn in a future Autoconf release.
3319# They can cause serious problems if a builder's source tree is in a directory
3320# whose full name contains unusual characters.
3321ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3322ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3323ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3324
3325
3326# Make sure we can run config.sub.
3327$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 3328 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
3329
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3331$as_echo_n "checking build system type... " >&6; }
d0ac1c44 3332if ${ac_cv_build+:} false; then :
6bb11ab3
L
3333 $as_echo_n "(cached) " >&6
3334else
3335 ac_build_alias=$build_alias
3336test "x$ac_build_alias" = x &&
3337 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3338test "x$ac_build_alias" = x &&
d0ac1c44 3339 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 3340ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 3341 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
3342
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3345$as_echo "$ac_cv_build" >&6; }
3346case $ac_cv_build in
3347*-*-*) ;;
d0ac1c44 3348*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
3349esac
3350build=$ac_cv_build
3351ac_save_IFS=$IFS; IFS='-'
3352set x $ac_cv_build
3353shift
3354build_cpu=$1
3355build_vendor=$2
3356shift; shift
3357# Remember, the first character of IFS is used to create $*,
3358# except with old shells:
3359build_os=$*
3360IFS=$ac_save_IFS
3361case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3362
3363
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3365$as_echo_n "checking host system type... " >&6; }
d0ac1c44 3366if ${ac_cv_host+:} false; then :
6bb11ab3
L
3367 $as_echo_n "(cached) " >&6
3368else
3369 if test "x$host_alias" = x; then
3370 ac_cv_host=$ac_cv_build
3371else
3372 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 3373 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
3374fi
3375
3376fi
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3378$as_echo "$ac_cv_host" >&6; }
3379case $ac_cv_host in
3380*-*-*) ;;
d0ac1c44 3381*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
3382esac
3383host=$ac_cv_host
3384ac_save_IFS=$IFS; IFS='-'
3385set x $ac_cv_host
3386shift
3387host_cpu=$1
3388host_vendor=$2
3389shift; shift
3390# Remember, the first character of IFS is used to create $*,
3391# except with old shells:
3392host_os=$*
3393IFS=$ac_save_IFS
3394case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3395
3396
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3398$as_echo_n "checking target system type... " >&6; }
d0ac1c44 3399if ${ac_cv_target+:} false; then :
6bb11ab3
L
3400 $as_echo_n "(cached) " >&6
3401else
3402 if test "x$target_alias" = x; then
3403 ac_cv_target=$ac_cv_host
3404else
3405 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 3406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
3407fi
3408
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3411$as_echo "$ac_cv_target" >&6; }
3412case $ac_cv_target in
3413*-*-*) ;;
d0ac1c44 3414*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
3415esac
3416target=$ac_cv_target
3417ac_save_IFS=$IFS; IFS='-'
3418set x $ac_cv_target
3419shift
3420target_cpu=$1
3421target_vendor=$2
3422shift; shift
3423# Remember, the first character of IFS is used to create $*,
3424# except with old shells:
3425target_os=$*
3426IFS=$ac_save_IFS
3427case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3428
3429
3430# The aliases save the names the user supplied, while $host etc.
3431# will get canonicalized.
3432test -n "$target_alias" &&
3433 test "$program_prefix$program_suffix$program_transform_name" = \
3434 NONENONEs,x,x, &&
3435 program_prefix=${target_alias}-
3436
6bb11ab3
L
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3440if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3441 $as_echo_n "(cached) " >&6
3442else
3443 if test -z "$GREP"; then
3444 ac_path_GREP_found=false
3445 # Loop through the user's path and test for each of PROGNAME-LIST
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_prog in grep ggrep; do
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3454 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3455# Check for GNU ac_path_GREP and select it if it is found.
3456 # Check for GNU $ac_path_GREP
3457case `"$ac_path_GREP" --version 2>&1` in
3458*GNU*)
3459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460*)
3461 ac_count=0
3462 $as_echo_n 0123456789 >"conftest.in"
3463 while :
3464 do
3465 cat "conftest.in" "conftest.in" >"conftest.tmp"
3466 mv "conftest.tmp" "conftest.in"
3467 cp "conftest.in" "conftest.nl"
3468 $as_echo 'GREP' >> "conftest.nl"
3469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471 as_fn_arith $ac_count + 1 && ac_count=$as_val
3472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3473 # Best one so far, save it but keep looking for a better one
3474 ac_cv_path_GREP="$ac_path_GREP"
3475 ac_path_GREP_max=$ac_count
3476 fi
3477 # 10*(2^10) chars as input seems more than enough
3478 test $ac_count -gt 10 && break
3479 done
3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481esac
3482
3483 $ac_path_GREP_found && break 3
3484 done
3485 done
3486 done
3487IFS=$as_save_IFS
3488 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3490 fi
3491else
3492 ac_cv_path_GREP=$GREP
3493fi
3494
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3497$as_echo "$ac_cv_path_GREP" >&6; }
3498 GREP="$ac_cv_path_GREP"
3499
3500
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3502$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3503if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3504 $as_echo_n "(cached) " >&6
3505else
3506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3507 then ac_cv_path_EGREP="$GREP -E"
3508 else
3509 if test -z "$EGREP"; then
3510 ac_path_EGREP_found=false
3511 # Loop through the user's path and test for each of PROGNAME-LIST
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_prog in egrep; do
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3520 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3521# Check for GNU ac_path_EGREP and select it if it is found.
3522 # Check for GNU $ac_path_EGREP
3523case `"$ac_path_EGREP" --version 2>&1` in
3524*GNU*)
3525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3526*)
3527 ac_count=0
3528 $as_echo_n 0123456789 >"conftest.in"
3529 while :
3530 do
3531 cat "conftest.in" "conftest.in" >"conftest.tmp"
3532 mv "conftest.tmp" "conftest.in"
3533 cp "conftest.in" "conftest.nl"
3534 $as_echo 'EGREP' >> "conftest.nl"
3535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3537 as_fn_arith $ac_count + 1 && ac_count=$as_val
3538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3539 # Best one so far, save it but keep looking for a better one
3540 ac_cv_path_EGREP="$ac_path_EGREP"
3541 ac_path_EGREP_max=$ac_count
3542 fi
3543 # 10*(2^10) chars as input seems more than enough
3544 test $ac_count -gt 10 && break
3545 done
3546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3547esac
3548
3549 $ac_path_EGREP_found && break 3
3550 done
3551 done
3552 done
3553IFS=$as_save_IFS
3554 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3556 fi
3557else
3558 ac_cv_path_EGREP=$EGREP
3559fi
3560
3561 fi
3562fi
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3564$as_echo "$ac_cv_path_EGREP" >&6; }
3565 EGREP="$ac_cv_path_EGREP"
3566
3567
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3569$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3570if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3571 $as_echo_n "(cached) " >&6
3572else
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h. */
3575#include <stdlib.h>
3576#include <stdarg.h>
3577#include <string.h>
3578#include <float.h>
3579
3580int
3581main ()
3582{
3583
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_header_stdc=yes
3590else
3591 ac_cv_header_stdc=no
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594
3595if test $ac_cv_header_stdc = yes; then
3596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h. */
3599#include <string.h>
3600
3601_ACEOF
3602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "memchr" >/dev/null 2>&1; then :
3604
3605else
3606 ac_cv_header_stdc=no
3607fi
3608rm -f conftest*
3609
3610fi
3611
3612if test $ac_cv_header_stdc = yes; then
3613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h. */
3616#include <stdlib.h>
3617
3618_ACEOF
3619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "free" >/dev/null 2>&1; then :
3621
3622else
3623 ac_cv_header_stdc=no
3624fi
3625rm -f conftest*
3626
3627fi
3628
3629if test $ac_cv_header_stdc = yes; then
3630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3631 if test "$cross_compiling" = yes; then :
3632 :
3633else
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h. */
3636#include <ctype.h>
3637#include <stdlib.h>
3638#if ((' ' & 0x0FF) == 0x020)
3639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3641#else
3642# define ISLOWER(c) \
3643 (('a' <= (c) && (c) <= 'i') \
3644 || ('j' <= (c) && (c) <= 'r') \
3645 || ('s' <= (c) && (c) <= 'z'))
3646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3647#endif
3648
3649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3650int
3651main ()
3652{
3653 int i;
3654 for (i = 0; i < 256; i++)
3655 if (XOR (islower (i), ISLOWER (i))
3656 || toupper (i) != TOUPPER (i))
3657 return 2;
3658 return 0;
3659}
3660_ACEOF
3661if ac_fn_c_try_run "$LINENO"; then :
3662
3663else
3664 ac_cv_header_stdc=no
3665fi
3666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3667 conftest.$ac_objext conftest.beam conftest.$ac_ext
3668fi
3669
3670fi
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3673$as_echo "$ac_cv_header_stdc" >&6; }
3674if test $ac_cv_header_stdc = yes; then
3675
3676$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3677
3678fi
3679
3680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3681for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3682 inttypes.h stdint.h unistd.h
3683do :
3684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3685ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3686"
d0ac1c44 3687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3688 cat >>confdefs.h <<_ACEOF
3689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3690_ACEOF
3691
3692fi
3693
3694done
3695
3696
3697
3698 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3699if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3700 MINIX=yes
3701else
3702 MINIX=
3703fi
3704
3705
3706 if test "$MINIX" = yes; then
3707
3708$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3709
3710
3711$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3712
3713
3714$as_echo "#define _MINIX 1" >>confdefs.h
3715
3716 fi
3717
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3720$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3721if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3722 $as_echo_n "(cached) " >&6
3723else
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h. */
3726
d0ac1c44
SM
3727# define __EXTENSIONS__ 1
3728 $ac_includes_default
6bb11ab3
L
3729int
3730main ()
3731{
3732
3733 ;
3734 return 0;
3735}
3736_ACEOF
3737if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_safe_to_define___extensions__=yes
3739else
3740 ac_cv_safe_to_define___extensions__=no
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3745$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3746 test $ac_cv_safe_to_define___extensions__ = yes &&
3747 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3748
3749 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3750
3751 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3752
3753 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3754
3755 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3756
3757
3758test "$program_prefix" != NONE &&
3759 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3760# Use a double $ so make ignores it.
3761test "$program_suffix" != NONE &&
3762 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3763# Double any \ or $.
3764# By default was `s,x,x', remove it if useless.
3765ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3766program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3767
3768# Find a good install program. We prefer a C program (faster),
3769# so one script is as good as another. But avoid the broken or
3770# incompatible versions:
3771# SysV /etc/install, /usr/sbin/install
3772# SunOS /usr/etc/install
3773# IRIX /sbin/install
3774# AIX /bin/install
3775# AmigaOS /C/install, which installs bootblocks on floppy discs
3776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3779# OS/2's system install, which has a completely different semantic
3780# ./install, which can be erroneously created by make from ./install.sh.
3781# Reject install programs that cannot install multiple files.
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3783$as_echo_n "checking for a BSD-compatible install... " >&6; }
3784if test -z "$INSTALL"; then
d0ac1c44 3785if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3786 $as_echo_n "(cached) " >&6
3787else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 # Account for people who put trailing slashes in PATH elements.
3794case $as_dir/ in #((
3795 ./ | .// | /[cC]/* | \
3796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3798 /usr/ucb/* ) ;;
3799 *)
3800 # OSF1 and SCO ODT 3.0 have their own names for install.
3801 # Don't use installbsd from OSF since it installs stuff as root
3802 # by default.
3803 for ac_prog in ginstall scoinst install; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3805 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3806 if test $ac_prog = install &&
3807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3808 # AIX install. It has an incompatible calling convention.
3809 :
3810 elif test $ac_prog = install &&
3811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # program-specific install script used by HP pwplus--don't use.
3813 :
3814 else
3815 rm -rf conftest.one conftest.two conftest.dir
3816 echo one > conftest.one
3817 echo two > conftest.two
3818 mkdir conftest.dir
3819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3820 test -s conftest.one && test -s conftest.two &&
3821 test -s conftest.dir/conftest.one &&
3822 test -s conftest.dir/conftest.two
3823 then
3824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3825 break 3
3826 fi
3827 fi
3828 fi
3829 done
3830 done
3831 ;;
3832esac
3833
3834 done
3835IFS=$as_save_IFS
3836
3837rm -rf conftest.one conftest.two conftest.dir
3838
3839fi
3840 if test "${ac_cv_path_install+set}" = set; then
3841 INSTALL=$ac_cv_path_install
3842 else
3843 # As a last resort, use the slow shell script. Don't cache a
3844 # value for INSTALL within a source directory, because that will
3845 # break other packages using the cache if that directory is
3846 # removed, or if the value is a relative name.
3847 INSTALL=$ac_install_sh
3848 fi
3849fi
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3851$as_echo "$INSTALL" >&6; }
3852
3853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3854# It thinks the first close brace ends the variable substitution.
3855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3856
3857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3858
3859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3860
3861rm -rf .tst 2>/dev/null
3862mkdir .tst 2>/dev/null
3863if test -d .tst; then
3864 am__leading_dot=.
3865else
3866 am__leading_dot=_
3867fi
3868rmdir .tst 2>/dev/null
3869
3870DEPDIR="${am__leading_dot}deps"
3871
3872case `pwd` in
3873 *\ * | *\ *)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3875$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3876esac
3877
3878
3879
3880macro_version='2.2.7a'
3881macro_revision='1.3134'
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895ltmain="$ac_aux_dir/ltmain.sh"
3896
3897# Backslashify metacharacters that are still active within
3898# double-quoted strings.
3899sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3900
3901# Same as above, but do not quote variable references.
3902double_quote_subst='s/\(["`\\]\)/\\\1/g'
3903
3904# Sed substitution to delay expansion of an escaped shell variable in a
3905# double_quote_subst'ed string.
3906delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3907
3908# Sed substitution to delay expansion of an escaped single quote.
3909delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3910
3911# Sed substitution to avoid accidental globbing in evaled expressions
3912no_glob_subst='s/\*/\\\*/g'
3913
3914ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3915ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3916ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3917
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3919$as_echo_n "checking how to print strings... " >&6; }
3920# Test print first, because it will be a builtin if present.
3921if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3922 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3923 ECHO='print -r --'
3924elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3925 ECHO='printf %s\n'
3926else
3927 # Use this function as a fallback that always works.
3928 func_fallback_echo ()
3929 {
3930 eval 'cat <<_LTECHO_EOF
3931$1
3932_LTECHO_EOF'
3933 }
3934 ECHO='func_fallback_echo'
3935fi
3936
3937# func_echo_all arg...
3938# Invoke $ECHO with all args, space-separated.
3939func_echo_all ()
3940{
3941 $ECHO ""
3942}
3943
3944case "$ECHO" in
3945 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3946$as_echo "printf" >&6; } ;;
3947 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3948$as_echo "print -r" >&6; } ;;
3949 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3950$as_echo "cat" >&6; } ;;
3951esac
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3967$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3968if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3969 $as_echo_n "(cached) " >&6
3970else
3971 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3972 for ac_i in 1 2 3 4 5 6 7; do
3973 ac_script="$ac_script$as_nl$ac_script"
3974 done
3975 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3976 { ac_script=; unset ac_script;}
3977 if test -z "$SED"; then
3978 ac_path_SED_found=false
3979 # Loop through the user's path and test for each of PROGNAME-LIST
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_prog in sed gsed; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3988 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
3989# Check for GNU ac_path_SED and select it if it is found.
3990 # Check for GNU $ac_path_SED
3991case `"$ac_path_SED" --version 2>&1` in
3992*GNU*)
3993 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3994*)
3995 ac_count=0
3996 $as_echo_n 0123456789 >"conftest.in"
3997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
4002 $as_echo '' >> "conftest.nl"
4003 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005 as_fn_arith $ac_count + 1 && ac_count=$as_val
4006 if test $ac_count -gt ${ac_path_SED_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_SED="$ac_path_SED"
4009 ac_path_SED_max=$ac_count
4010 fi
4011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015esac
4016
4017 $ac_path_SED_found && break 3
4018 done
4019 done
4020 done
4021IFS=$as_save_IFS
4022 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4023 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
4024 fi
4025else
4026 ac_cv_path_SED=$SED
4027fi
4028
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4031$as_echo "$ac_cv_path_SED" >&6; }
4032 SED="$ac_cv_path_SED"
4033 rm -f conftest.sed
4034
4035test -z "$SED" && SED=sed
4036Xsed="$SED -e 1s/^X//"
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4049$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4050if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
4051 $as_echo_n "(cached) " >&6
4052else
4053 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4054 then ac_cv_path_FGREP="$GREP -F"
4055 else
4056 if test -z "$FGREP"; then
4057 ac_path_FGREP_found=false
4058 # Loop through the user's path and test for each of PROGNAME-LIST
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4061do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_prog in fgrep; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4067 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
4068# Check for GNU ac_path_FGREP and select it if it is found.
4069 # Check for GNU $ac_path_FGREP
4070case `"$ac_path_FGREP" --version 2>&1` in
4071*GNU*)
4072 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4073*)
4074 ac_count=0
4075 $as_echo_n 0123456789 >"conftest.in"
4076 while :
4077 do
4078 cat "conftest.in" "conftest.in" >"conftest.tmp"
4079 mv "conftest.tmp" "conftest.in"
4080 cp "conftest.in" "conftest.nl"
4081 $as_echo 'FGREP' >> "conftest.nl"
4082 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 as_fn_arith $ac_count + 1 && ac_count=$as_val
4085 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4086 # Best one so far, save it but keep looking for a better one
4087 ac_cv_path_FGREP="$ac_path_FGREP"
4088 ac_path_FGREP_max=$ac_count
4089 fi
4090 # 10*(2^10) chars as input seems more than enough
4091 test $ac_count -gt 10 && break
4092 done
4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094esac
4095
4096 $ac_path_FGREP_found && break 3
4097 done
4098 done
4099 done
4100IFS=$as_save_IFS
4101 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4102 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
4103 fi
4104else
4105 ac_cv_path_FGREP=$FGREP
4106fi
4107
4108 fi
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4111$as_echo "$ac_cv_path_FGREP" >&6; }
4112 FGREP="$ac_cv_path_FGREP"
4113
4114
4115test -z "$GREP" && GREP=grep
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135# Check whether --with-gnu-ld was given.
4136if test "${with_gnu_ld+set}" = set; then :
4137 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4138else
4139 with_gnu_ld=no
4140fi
4141
4142ac_prog=ld
4143if test "$GCC" = yes; then
4144 # Check if gcc -print-prog-name=ld gives a path.
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4146$as_echo_n "checking for ld used by $CC... " >&6; }
4147 case $host in
4148 *-*-mingw*)
4149 # gcc leaves a trailing carriage return which upsets mingw
4150 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4151 *)
4152 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4153 esac
4154 case $ac_prog in
4155 # Accept absolute paths.
4156 [\\/]* | ?:[\\/]*)
4157 re_direlt='/[^/][^/]*/\.\./'
4158 # Canonicalize the pathname of ld
4159 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4160 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4161 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4162 done
4163 test -z "$LD" && LD="$ac_prog"
4164 ;;
4165 "")
4166 # If it fails, then pretend we aren't using GCC.
4167 ac_prog=ld
4168 ;;
4169 *)
4170 # If it is relative, then search for the first ld in PATH.
4171 with_gnu_ld=unknown
4172 ;;
4173 esac
4174elif test "$with_gnu_ld" = yes; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4176$as_echo_n "checking for GNU ld... " >&6; }
4177else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4179$as_echo_n "checking for non-GNU ld... " >&6; }
4180fi
d0ac1c44 4181if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4182 $as_echo_n "(cached) " >&6
4183else
4184 if test -z "$LD"; then
4185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH; do
4187 IFS="$lt_save_ifs"
4188 test -z "$ac_dir" && ac_dir=.
4189 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4190 lt_cv_path_LD="$ac_dir/$ac_prog"
4191 # Check to see if the program is GNU ld. I'd rather use --version,
4192 # but apparently some variants of GNU ld only accept -v.
4193 # Break only if it was the GNU/non-GNU ld that we prefer.
4194 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4195 *GNU* | *'with BFD'*)
4196 test "$with_gnu_ld" != no && break
4197 ;;
4198 *)
4199 test "$with_gnu_ld" != yes && break
4200 ;;
4201 esac
4202 fi
4203 done
4204 IFS="$lt_save_ifs"
4205else
4206 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4207fi
4208fi
4209
4210LD="$lt_cv_path_LD"
4211if test -n "$LD"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4213$as_echo "$LD" >&6; }
4214else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216$as_echo "no" >&6; }
4217fi
d0ac1c44 4218test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4220$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4221if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4222 $as_echo_n "(cached) " >&6
4223else
4224 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4225case `$LD -v 2>&1 </dev/null` in
4226*GNU* | *'with BFD'*)
4227 lt_cv_prog_gnu_ld=yes
4228 ;;
4229*)
4230 lt_cv_prog_gnu_ld=no
4231 ;;
4232esac
4233fi
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4235$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4236with_gnu_ld=$lt_cv_prog_gnu_ld
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4247$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4248if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4249 $as_echo_n "(cached) " >&6
4250else
4251 if test -n "$NM"; then
4252 # Let the user override the test.
4253 lt_cv_path_NM="$NM"
4254else
4255 lt_nm_to_check="${ac_tool_prefix}nm"
4256 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4257 lt_nm_to_check="$lt_nm_to_check nm"
4258 fi
4259 for lt_tmp_nm in $lt_nm_to_check; do
4260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4261 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4262 IFS="$lt_save_ifs"
4263 test -z "$ac_dir" && ac_dir=.
4264 tmp_nm="$ac_dir/$lt_tmp_nm"
4265 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4266 # Check to see if the nm accepts a BSD-compat flag.
4267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4268 # nm: unknown option "B" ignored
4269 # Tru64's nm complains that /dev/null is an invalid object file
4270 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4271 */dev/null* | *'Invalid file or object type'*)
4272 lt_cv_path_NM="$tmp_nm -B"
4273 break
4274 ;;
4275 *)
4276 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4277 */dev/null*)
4278 lt_cv_path_NM="$tmp_nm -p"
4279 break
4280 ;;
4281 *)
4282 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4283 continue # so that we can try to find one that supports BSD flags
4284 ;;
4285 esac
4286 ;;
4287 esac
4288 fi
4289 done
4290 IFS="$lt_save_ifs"
4291 done
4292 : ${lt_cv_path_NM=no}
4293fi
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4296$as_echo "$lt_cv_path_NM" >&6; }
4297if test "$lt_cv_path_NM" != "no"; then
4298 NM="$lt_cv_path_NM"
4299else
4300 # Didn't find any BSD compatible name lister, look for dumpbin.
4301 if test -n "$DUMPBIN"; then :
4302 # Let the user override the test.
4303 else
4304 if test -n "$ac_tool_prefix"; then
4305 for ac_prog in dumpbin "link -dump"
4306 do
4307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4311if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$DUMPBIN"; then
4315 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4324 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328done
4329 done
4330IFS=$as_save_IFS
4331
4332fi
4333fi
4334DUMPBIN=$ac_cv_prog_DUMPBIN
4335if test -n "$DUMPBIN"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4337$as_echo "$DUMPBIN" >&6; }
4338else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340$as_echo "no" >&6; }
4341fi
4342
4343
4344 test -n "$DUMPBIN" && break
4345 done
4346fi
4347if test -z "$DUMPBIN"; then
4348 ac_ct_DUMPBIN=$DUMPBIN
4349 for ac_prog in dumpbin "link -dump"
4350do
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352set dummy $ac_prog; ac_word=$2
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4355if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4356 $as_echo_n "(cached) " >&6
4357else
4358 if test -n "$ac_ct_DUMPBIN"; then
4359 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4360else
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4368 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372done
4373 done
4374IFS=$as_save_IFS
4375
4376fi
4377fi
4378ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4379if test -n "$ac_ct_DUMPBIN"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4381$as_echo "$ac_ct_DUMPBIN" >&6; }
4382else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384$as_echo "no" >&6; }
4385fi
4386
4387
4388 test -n "$ac_ct_DUMPBIN" && break
4389done
4390
4391 if test "x$ac_ct_DUMPBIN" = x; then
4392 DUMPBIN=":"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395yes:)
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398ac_tool_warned=yes ;;
4399esac
4400 DUMPBIN=$ac_ct_DUMPBIN
4401 fi
4402fi
4403
4404 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4405 *COFF*)
4406 DUMPBIN="$DUMPBIN -symbols"
4407 ;;
4408 *)
4409 DUMPBIN=:
4410 ;;
4411 esac
4412 fi
4413
4414 if test "$DUMPBIN" != ":"; then
4415 NM="$DUMPBIN"
4416 fi
4417fi
4418test -z "$NM" && NM=nm
4419
4420
4421
4422
4423
4424
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4426$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4427if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4428 $as_echo_n "(cached) " >&6
4429else
4430 lt_cv_nm_interface="BSD nm"
4431 echo "int some_variable = 0;" > conftest.$ac_ext
4432 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4433 (eval "$ac_compile" 2>conftest.err)
4434 cat conftest.err >&5
4435 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4436 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4437 cat conftest.err >&5
4438 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4439 cat conftest.out >&5
4440 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4441 lt_cv_nm_interface="MS dumpbin"
4442 fi
4443 rm -f conftest*
4444fi
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4446$as_echo "$lt_cv_nm_interface" >&6; }
4447
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4449$as_echo_n "checking whether ln -s works... " >&6; }
4450LN_S=$as_ln_s
4451if test "$LN_S" = "ln -s"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453$as_echo "yes" >&6; }
4454else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4456$as_echo "no, using $LN_S" >&6; }
4457fi
4458
4459# find the maximum length of command line arguments
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4461$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4462if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4463 $as_echo_n "(cached) " >&6
4464else
4465 i=0
4466 teststring="ABCD"
4467
4468 case $build_os in
4469 msdosdjgpp*)
4470 # On DJGPP, this test can blow up pretty badly due to problems in libc
4471 # (any single argument exceeding 2000 bytes causes a buffer overrun
4472 # during glob expansion). Even if it were fixed, the result of this
4473 # check would be larger than it should be.
4474 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4475 ;;
4476
4477 gnu*)
4478 # Under GNU Hurd, this test is not required because there is
4479 # no limit to the length of command line arguments.
4480 # Libtool will interpret -1 as no limit whatsoever
4481 lt_cv_sys_max_cmd_len=-1;
4482 ;;
4483
4484 cygwin* | mingw* | cegcc*)
4485 # On Win9x/ME, this test blows up -- it succeeds, but takes
4486 # about 5 minutes as the teststring grows exponentially.
4487 # Worse, since 9x/ME are not pre-emptively multitasking,
4488 # you end up with a "frozen" computer, even though with patience
4489 # the test eventually succeeds (with a max line length of 256k).
4490 # Instead, let's just punt: use the minimum linelength reported by
4491 # all of the supported platforms: 8192 (on NT/2K/XP).
4492 lt_cv_sys_max_cmd_len=8192;
4493 ;;
4494
4495 mint*)
4496 # On MiNT this can take a long time and run out of memory.
4497 lt_cv_sys_max_cmd_len=8192;
4498 ;;
4499
4500 amigaos*)
4501 # On AmigaOS with pdksh, this test takes hours, literally.
4502 # So we just punt and use a minimum line length of 8192.
4503 lt_cv_sys_max_cmd_len=8192;
4504 ;;
4505
4506 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4507 # This has been around since 386BSD, at least. Likely further.
4508 if test -x /sbin/sysctl; then
4509 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4510 elif test -x /usr/sbin/sysctl; then
4511 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4512 else
4513 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4514 fi
4515 # And add a safety zone
4516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4518 ;;
4519
4520 interix*)
4521 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4522 lt_cv_sys_max_cmd_len=196608
4523 ;;
4524
4525 osf*)
4526 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4527 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4528 # nice to cause kernel panics so lets avoid the loop below.
4529 # First set a reasonable default.
4530 lt_cv_sys_max_cmd_len=16384
4531 #
4532 if test -x /sbin/sysconfig; then
4533 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4534 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4535 esac
4536 fi
4537 ;;
4538 sco3.2v5*)
4539 lt_cv_sys_max_cmd_len=102400
4540 ;;
4541 sysv5* | sco5v6* | sysv4.2uw2*)
4542 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4543 if test -n "$kargmax"; then
4544 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4545 else
4546 lt_cv_sys_max_cmd_len=32768
4547 fi
4548 ;;
4549 *)
4550 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4551 if test -n "$lt_cv_sys_max_cmd_len"; then
4552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4554 else
4555 # Make teststring a little bigger before we do anything with it.
4556 # a 1K string should be a reasonable start.
4557 for i in 1 2 3 4 5 6 7 8 ; do
4558 teststring=$teststring$teststring
4559 done
4560 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4561 # If test is not a shell built-in, we'll probably end up computing a
4562 # maximum length that is only half of the actual maximum length, but
4563 # we can't tell.
4564 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4565 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4566 test $i != 17 # 1/2 MB should be enough
4567 do
4568 i=`expr $i + 1`
4569 teststring=$teststring$teststring
4570 done
4571 # Only check the string length outside the loop.
4572 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4573 teststring=
4574 # Add a significant safety factor because C++ compilers can tack on
4575 # massive amounts of additional arguments before passing them to the
4576 # linker. It appears as though 1/2 is a usable value.
4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4578 fi
4579 ;;
4580 esac
4581
4582fi
4583
4584if test -n $lt_cv_sys_max_cmd_len ; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4586$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4587else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4589$as_echo "none" >&6; }
4590fi
4591max_cmd_len=$lt_cv_sys_max_cmd_len
4592
4593
4594
4595
4596
4597
4598: ${CP="cp -f"}
4599: ${MV="mv -f"}
4600: ${RM="rm -f"}
4601
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4603$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4604# Try some XSI features
4605xsi_shell=no
4606( _lt_dummy="a/b/c"
4607 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4608 = c,a/b,, \
4609 && eval 'test $(( 1 + 1 )) -eq 2 \
4610 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4611 && xsi_shell=yes
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4613$as_echo "$xsi_shell" >&6; }
4614
4615
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4617$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4618lt_shell_append=no
4619( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4620 >/dev/null 2>&1 \
4621 && lt_shell_append=yes
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4623$as_echo "$lt_shell_append" >&6; }
4624
4625
4626if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4627 lt_unset=unset
4628else
4629 lt_unset=false
4630fi
4631
4632
4633
4634
4635
4636# test EBCDIC or ASCII
4637case `echo X|tr X '\101'` in
4638 A) # ASCII based system
4639 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4640 lt_SP2NL='tr \040 \012'
4641 lt_NL2SP='tr \015\012 \040\040'
4642 ;;
4643 *) # EBCDIC based system
4644 lt_SP2NL='tr \100 \n'
4645 lt_NL2SP='tr \r\n \100\100'
4646 ;;
4647esac
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4658$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4659if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4660 $as_echo_n "(cached) " >&6
4661else
4662 lt_cv_ld_reload_flag='-r'
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4665$as_echo "$lt_cv_ld_reload_flag" >&6; }
4666reload_flag=$lt_cv_ld_reload_flag
4667case $reload_flag in
4668"" | " "*) ;;
4669*) reload_flag=" $reload_flag" ;;
4670esac
4671reload_cmds='$LD$reload_flag -o $output$reload_objs'
4672case $host_os in
4673 darwin*)
4674 if test "$GCC" = yes; then
4675 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4676 else
4677 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4678 fi
4679 ;;
4680esac
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4692set dummy ${ac_tool_prefix}objdump; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4695if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4696 $as_echo_n "(cached) " >&6
4697else
4698 if test -n "$OBJDUMP"; then
4699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4708 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713 done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718OBJDUMP=$ac_cv_prog_OBJDUMP
4719if test -n "$OBJDUMP"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4721$as_echo "$OBJDUMP" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728fi
4729if test -z "$ac_cv_prog_OBJDUMP"; then
4730 ac_ct_OBJDUMP=$OBJDUMP
4731 # Extract the first word of "objdump", so it can be a program name with args.
4732set dummy objdump; ac_word=$2
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4735if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4736 $as_echo_n "(cached) " >&6
4737else
4738 if test -n "$ac_ct_OBJDUMP"; then
4739 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4748 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752done
4753 done
4754IFS=$as_save_IFS
4755
4756fi
4757fi
4758ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4759if test -n "$ac_ct_OBJDUMP"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4761$as_echo "$ac_ct_OBJDUMP" >&6; }
4762else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764$as_echo "no" >&6; }
4765fi
4766
4767 if test "x$ac_ct_OBJDUMP" = x; then
4768 OBJDUMP="false"
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771yes:)
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774ac_tool_warned=yes ;;
4775esac
4776 OBJDUMP=$ac_ct_OBJDUMP
4777 fi
4778else
4779 OBJDUMP="$ac_cv_prog_OBJDUMP"
4780fi
4781
4782test -z "$OBJDUMP" && OBJDUMP=objdump
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4793$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4794if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4795 $as_echo_n "(cached) " >&6
4796else
4797 lt_cv_file_magic_cmd='$MAGIC_CMD'
4798lt_cv_file_magic_test_file=
4799lt_cv_deplibs_check_method='unknown'
4800# Need to set the preceding variable on all platforms that support
4801# interlibrary dependencies.
4802# 'none' -- dependencies not supported.
4803# `unknown' -- same as none, but documents that we really don't know.
4804# 'pass_all' -- all dependencies passed with no checks.
4805# 'test_compile' -- check by making test program.
4806# 'file_magic [[regex]]' -- check by looking for files in library path
4807# which responds to the $file_magic_cmd with a given extended regex.
4808# If you have `file' or equivalent on your system and you're not sure
4809# whether `pass_all' will *always* work, you probably want this one.
4810
4811case $host_os in
4812aix[4-9]*)
4813 lt_cv_deplibs_check_method=pass_all
4814 ;;
4815
4816beos*)
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819
4820bsdi[45]*)
4821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4822 lt_cv_file_magic_cmd='/usr/bin/file -L'
4823 lt_cv_file_magic_test_file=/shlib/libc.so
4824 ;;
4825
4826cygwin*)
4827 # func_win32_libid is a shell function defined in ltmain.sh
4828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4829 lt_cv_file_magic_cmd='func_win32_libid'
4830 ;;
4831
4832mingw* | pw32*)
4833 # Base MSYS/MinGW do not provide the 'file' command needed by
4834 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4835 # unless we find 'file', for example because we are cross-compiling.
4836 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4837 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4839 lt_cv_file_magic_cmd='func_win32_libid'
4840 else
4841 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4842 lt_cv_file_magic_cmd='$OBJDUMP -f'
4843 fi
4844 ;;
4845
4846cegcc*)
4847 # use the weaker test based on 'objdump'. See mingw*.
4848 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4849 lt_cv_file_magic_cmd='$OBJDUMP -f'
4850 ;;
4851
4852darwin* | rhapsody*)
4853 lt_cv_deplibs_check_method=pass_all
4854 ;;
4855
4856freebsd* | dragonfly*)
4857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4858 case $host_cpu in
4859 i*86 )
4860 # Not sure whether the presence of OpenBSD here was a mistake.
4861 # Let's accept both of them until this is cleared up.
4862 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4863 lt_cv_file_magic_cmd=/usr/bin/file
4864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4865 ;;
4866 esac
4867 else
4868 lt_cv_deplibs_check_method=pass_all
4869 fi
4870 ;;
4871
4872gnu*)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875
4876haiku*)
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879
4880hpux10.20* | hpux11*)
4881 lt_cv_file_magic_cmd=/usr/bin/file
4882 case $host_cpu in
4883 ia64*)
4884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4885 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4886 ;;
4887 hppa*64*)
4888 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]'
4889 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4890 ;;
4891 *)
4892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4894 ;;
4895 esac
4896 ;;
4897
4898interix[3-9]*)
4899 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4901 ;;
4902
4903irix5* | irix6* | nonstopux*)
4904 case $LD in
4905 *-32|*"-32 ") libmagic=32-bit;;
4906 *-n32|*"-n32 ") libmagic=N32;;
4907 *-64|*"-64 ") libmagic=64-bit;;
4908 *) libmagic=never-match;;
4909 esac
4910 lt_cv_deplibs_check_method=pass_all
4911 ;;
4912
4913# This must be Linux ELF.
4914linux* | k*bsd*-gnu | kopensolaris*-gnu)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918netbsd*)
4919 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4921 else
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4923 fi
4924 ;;
4925
4926newos6*)
4927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4928 lt_cv_file_magic_cmd=/usr/bin/file
4929 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4930 ;;
4931
4932*nto* | *qnx*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936openbsd*)
4937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4939 else
4940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4941 fi
4942 ;;
4943
4944osf3* | osf4* | osf5*)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947
4948rdos*)
4949 lt_cv_deplibs_check_method=pass_all
4950 ;;
4951
4952solaris*)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955
4956sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4957 lt_cv_deplibs_check_method=pass_all
4958 ;;
4959
4960sysv4 | sysv4.3*)
4961 case $host_vendor in
4962 motorola)
4963 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]'
4964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4965 ;;
4966 ncr)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969 sequent)
4970 lt_cv_file_magic_cmd='/bin/file'
4971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4972 ;;
4973 sni)
4974 lt_cv_file_magic_cmd='/bin/file'
4975 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4976 lt_cv_file_magic_test_file=/lib/libc.so
4977 ;;
4978 siemens)
4979 lt_cv_deplibs_check_method=pass_all
4980 ;;
4981 pc)
4982 lt_cv_deplibs_check_method=pass_all
4983 ;;
4984 esac
4985 ;;
4986
4987tpf*)
4988 lt_cv_deplibs_check_method=pass_all
4989 ;;
4990esac
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4994$as_echo "$lt_cv_deplibs_check_method" >&6; }
4995file_magic_cmd=$lt_cv_file_magic_cmd
4996deplibs_check_method=$lt_cv_deplibs_check_method
4997test -z "$deplibs_check_method" && deplibs_check_method=unknown
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
68ed2854
MF
5010plugin_option=
5011plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5012for plugin in $plugin_names; do
5013 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5014 if test x$plugin_so = x$plugin; then
5015 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5016 fi
5017 if test x$plugin_so != x$plugin; then
5018 plugin_option="--plugin $plugin_so"
5019 break
5020 fi
5021done
5022
6bb11ab3
L
5023if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5025set dummy ${ac_tool_prefix}ar; ac_word=$2
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5028if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
5029 $as_echo_n "(cached) " >&6
5030else
5031 if test -n "$AR"; then
5032 ac_cv_prog_AR="$AR" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5041 ac_cv_prog_AR="${ac_tool_prefix}ar"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045done
5046 done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051AR=$ac_cv_prog_AR
5052if test -n "$AR"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5054$as_echo "$AR" >&6; }
5055else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
5058fi
5059
5060
5061fi
5062if test -z "$ac_cv_prog_AR"; then
5063 ac_ct_AR=$AR
5064 # Extract the first word of "ar", so it can be a program name with args.
5065set dummy ar; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5068if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
5069 $as_echo_n "(cached) " >&6
5070else
5071 if test -n "$ac_ct_AR"; then
5072 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5081 ac_cv_prog_ac_ct_AR="ar"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086 done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ac_ct_AR=$ac_cv_prog_ac_ct_AR
5092if test -n "$ac_ct_AR"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5094$as_echo "$ac_ct_AR" >&6; }
5095else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100 if test "x$ac_ct_AR" = x; then
5101 AR="false"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104yes:)
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107ac_tool_warned=yes ;;
5108esac
5109 AR=$ac_ct_AR
5110 fi
5111else
5112 AR="$ac_cv_prog_AR"
5113fi
5114
5115test -z "$AR" && AR=ar
68ed2854
MF
5116if test -n "$plugin_option"; then
5117 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
5118 touch conftest.c
5119 $AR $plugin_option rc conftest.a conftest.c
5120 if test "$?" != 0; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5122$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5123 else
5124 AR="$AR $plugin_option"
5125 fi
5126 rm -f conftest.*
68ed2854
MF
5127 fi
5128fi
6bb11ab3
L
5129test -z "$AR_FLAGS" && AR_FLAGS=cru
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5143set dummy ${ac_tool_prefix}strip; ac_word=$2
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5146if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5147 $as_echo_n "(cached) " >&6
5148else
5149 if test -n "$STRIP"; then
5150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5159 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164 done
5165IFS=$as_save_IFS
5166
5167fi
5168fi
5169STRIP=$ac_cv_prog_STRIP
5170if test -n "$STRIP"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5172$as_echo "$STRIP" >&6; }
5173else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175$as_echo "no" >&6; }
5176fi
5177
5178
5179fi
5180if test -z "$ac_cv_prog_STRIP"; then
5181 ac_ct_STRIP=$STRIP
5182 # Extract the first word of "strip", so it can be a program name with args.
5183set dummy strip; ac_word=$2
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5186if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5187 $as_echo_n "(cached) " >&6
5188else
5189 if test -n "$ac_ct_STRIP"; then
5190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5199 ac_cv_prog_ac_ct_STRIP="strip"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204 done
5205IFS=$as_save_IFS
5206
5207fi
5208fi
5209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5210if test -n "$ac_ct_STRIP"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5212$as_echo "$ac_ct_STRIP" >&6; }
5213else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217
5218 if test "x$ac_ct_STRIP" = x; then
5219 STRIP=":"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222yes:)
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225ac_tool_warned=yes ;;
5226esac
5227 STRIP=$ac_ct_STRIP
5228 fi
5229else
5230 STRIP="$ac_cv_prog_STRIP"
5231fi
5232
5233test -z "$STRIP" && STRIP=:
5234
5235
5236
5237
5238
5239
5240if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5245if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5246 $as_echo_n "(cached) " >&6
5247else
5248 if test -n "$RANLIB"; then
5249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262done
5263 done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268RANLIB=$ac_cv_prog_RANLIB
5269if test -n "$RANLIB"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5271$as_echo "$RANLIB" >&6; }
5272else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278fi
5279if test -z "$ac_cv_prog_RANLIB"; then
5280 ac_ct_RANLIB=$RANLIB
5281 # Extract the first word of "ranlib", so it can be a program name with args.
5282set dummy ranlib; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5285if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5286 $as_echo_n "(cached) " >&6
5287else
5288 if test -n "$ac_ct_RANLIB"; then
5289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5298 ac_cv_prog_ac_ct_RANLIB="ranlib"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302done
5303 done
5304IFS=$as_save_IFS
5305
5306fi
5307fi
5308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5309if test -n "$ac_ct_RANLIB"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5311$as_echo "$ac_ct_RANLIB" >&6; }
5312else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317 if test "x$ac_ct_RANLIB" = x; then
5318 RANLIB=":"
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321yes:)
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324ac_tool_warned=yes ;;
5325esac
5326 RANLIB=$ac_ct_RANLIB
5327 fi
5328else
5329 RANLIB="$ac_cv_prog_RANLIB"
5330fi
5331
5332test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5333if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5334 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5335 RANLIB="$RANLIB $plugin_option"
5336 fi
5337fi
6bb11ab3
L
5338
5339
5340
5341
5342
5343
5344# Determine commands to create old-style static archives.
5345old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5346old_postinstall_cmds='chmod 644 $oldlib'
5347old_postuninstall_cmds=
5348
5349if test -n "$RANLIB"; then
5350 case $host_os in
5351 openbsd*)
5352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5353 ;;
5354 *)
5355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5356 ;;
5357 esac
5358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5359fi
5360
5361case $host_os in
5362 darwin*)
5363 lock_old_archive_extraction=yes ;;
5364 *)
5365 lock_old_archive_extraction=no ;;
5366esac
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388for ac_prog in gawk mawk nawk awk
5389do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5394if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5395 $as_echo_n "(cached) " >&6
5396else
5397 if test -n "$AWK"; then
5398 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5407 ac_cv_prog_AWK="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412 done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417AWK=$ac_cv_prog_AWK
5418if test -n "$AWK"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5420$as_echo "$AWK" >&6; }
5421else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427 test -n "$AWK" && break
5428done
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448# If no C compiler was specified, use CC.
5449LTCC=${LTCC-"$CC"}
5450
5451# If no C compiler flags were specified, use CFLAGS.
5452LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5453
5454# Allow CC to be a program name with arguments.
5455compiler=$CC
5456
5457
5458# Check for command to grab the raw symbol name followed by C symbol from nm.
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5460$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5461if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5462 $as_echo_n "(cached) " >&6
5463else
5464
5465# These are sane defaults that work on at least a few old systems.
5466# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5467
5468# Character class describing NM global symbol codes.
5469symcode='[BCDEGRST]'
5470
5471# Regexp to match symbols that can be accessed directly from C.
5472sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5473
5474# Define system-specific variables.
5475case $host_os in
5476aix*)
5477 symcode='[BCDT]'
5478 ;;
5479cygwin* | mingw* | pw32* | cegcc*)
5480 symcode='[ABCDGISTW]'
5481 ;;
5482hpux*)
5483 if test "$host_cpu" = ia64; then
5484 symcode='[ABCDEGRST]'
5485 fi
5486 ;;
5487irix* | nonstopux*)
5488 symcode='[BCDEGRST]'
5489 ;;
5490osf*)
5491 symcode='[BCDEGQRST]'
5492 ;;
5493solaris*)
5494 symcode='[BDRT]'
5495 ;;
5496sco3.2v5*)
5497 symcode='[DT]'
5498 ;;
5499sysv4.2uw2*)
5500 symcode='[DT]'
5501 ;;
5502sysv5* | sco5v6* | unixware* | OpenUNIX*)
5503 symcode='[ABDT]'
5504 ;;
5505sysv4)
5506 symcode='[DFNSTU]'
5507 ;;
5508esac
5509
5510# If we're using GNU nm, then use its standard symbol codes.
5511case `$NM -V 2>&1` in
5512*GNU* | *'with BFD'*)
5513 symcode='[ABCDGIRSTW]' ;;
5514esac
5515
5516# Transform an extracted symbol line into a proper C declaration.
5517# Some systems (esp. on ia64) link data and code symbols differently,
5518# so use this general approach.
5519lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5520
5521# Transform an extracted symbol line into symbol name and symbol address
5522lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5523lt_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'"
5524
5525# Handle CRLF in mingw tool chain
5526opt_cr=
5527case $build_os in
5528mingw*)
5529 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5530 ;;
5531esac
5532
5533# Try without a prefix underscore, then with it.
5534for ac_symprfx in "" "_"; do
5535
5536 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5537 symxfrm="\\1 $ac_symprfx\\2 \\2"
5538
5539 # Write the raw and C identifiers.
5540 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5541 # Fake it for dumpbin and say T for any non-static function
5542 # and D for any global variable.
5543 # Also find C++ and __fastcall symbols from MSVC++,
5544 # which start with @ or ?.
5545 lt_cv_sys_global_symbol_pipe="$AWK '"\
5546" {last_section=section; section=\$ 3};"\
5547" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5548" \$ 0!~/External *\|/{next};"\
5549" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5550" {if(hide[section]) next};"\
5551" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5552" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5553" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5554" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5555" ' prfx=^$ac_symprfx"
5556 else
5557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5558 fi
5559
5560 # Check to see that the pipe works correctly.
5561 pipe_works=no
5562
5563 rm -f conftest*
5564 cat > conftest.$ac_ext <<_LT_EOF
5565#ifdef __cplusplus
5566extern "C" {
5567#endif
5568char nm_test_var;
5569void nm_test_func(void);
5570void nm_test_func(void){}
5571#ifdef __cplusplus
5572}
5573#endif
5574int main(){nm_test_var='a';nm_test_func();return(0);}
5575_LT_EOF
5576
5577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5578 (eval $ac_compile) 2>&5
5579 ac_status=$?
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }; then
5582 # Now try to grab the symbols.
5583 nlist=conftest.nm
5584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5585 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; } && test -s "$nlist"; then
5589 # Try sorting and uniquifying the output.
5590 if sort "$nlist" | uniq > "$nlist"T; then
5591 mv -f "$nlist"T "$nlist"
5592 else
5593 rm -f "$nlist"T
5594 fi
5595
5596 # Make sure that we snagged all the symbols we need.
5597 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5598 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5599 cat <<_LT_EOF > conftest.$ac_ext
5600#ifdef __cplusplus
5601extern "C" {
5602#endif
5603
5604_LT_EOF
5605 # Now generate the symbol file.
5606 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5607
5608 cat <<_LT_EOF >> conftest.$ac_ext
5609
5610/* The mapping between symbol names and symbols. */
5611const struct {
5612 const char *name;
5613 void *address;
5614}
5615lt__PROGRAM__LTX_preloaded_symbols[] =
5616{
5617 { "@PROGRAM@", (void *) 0 },
5618_LT_EOF
5619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5620 cat <<\_LT_EOF >> conftest.$ac_ext
5621 {0, (void *) 0}
5622};
5623
5624/* This works around a problem in FreeBSD linker */
5625#ifdef FREEBSD_WORKAROUND
5626static const void *lt_preloaded_setup() {
5627 return lt__PROGRAM__LTX_preloaded_symbols;
5628}
5629#endif
5630
5631#ifdef __cplusplus
5632}
5633#endif
5634_LT_EOF
5635 # Now try linking the two files.
5636 mv conftest.$ac_objext conftstm.$ac_objext
5637 lt_save_LIBS="$LIBS"
5638 lt_save_CFLAGS="$CFLAGS"
5639 LIBS="conftstm.$ac_objext"
5640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5642 (eval $ac_link) 2>&5
5643 ac_status=$?
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5646 pipe_works=yes
5647 fi
5648 LIBS="$lt_save_LIBS"
5649 CFLAGS="$lt_save_CFLAGS"
5650 else
5651 echo "cannot find nm_test_func in $nlist" >&5
5652 fi
5653 else
5654 echo "cannot find nm_test_var in $nlist" >&5
5655 fi
5656 else
5657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5658 fi
5659 else
5660 echo "$progname: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5662 fi
5663 rm -rf conftest* conftst*
5664
5665 # Do not use the global_symbol_pipe unless it works.
5666 if test "$pipe_works" = yes; then
5667 break
5668 else
5669 lt_cv_sys_global_symbol_pipe=
5670 fi
5671done
5672
5673fi
5674
5675if test -z "$lt_cv_sys_global_symbol_pipe"; then
5676 lt_cv_sys_global_symbol_to_cdecl=
5677fi
5678if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5680$as_echo "failed" >&6; }
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5683$as_echo "ok" >&6; }
5684fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707# Check whether --enable-libtool-lock was given.
5708if test "${enable_libtool_lock+set}" = set; then :
5709 enableval=$enable_libtool_lock;
5710fi
5711
5712test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5713
5714# Some flags need to be propagated to the compiler or linker for good
5715# libtool support.
5716case $host in
5717ia64-*-hpux*)
5718 # Find out which ABI we are using.
5719 echo 'int i;' > conftest.$ac_ext
5720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5721 (eval $ac_compile) 2>&5
5722 ac_status=$?
5723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5724 test $ac_status = 0; }; then
5725 case `/usr/bin/file conftest.$ac_objext` in
5726 *ELF-32*)
5727 HPUX_IA64_MODE="32"
5728 ;;
5729 *ELF-64*)
5730 HPUX_IA64_MODE="64"
5731 ;;
5732 esac
5733 fi
5734 rm -rf conftest*
5735 ;;
5736*-*-irix6*)
5737 # Find out which ABI we are using.
5738 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5740 (eval $ac_compile) 2>&5
5741 ac_status=$?
5742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743 test $ac_status = 0; }; then
5744 if test "$lt_cv_prog_gnu_ld" = yes; then
5745 case `/usr/bin/file conftest.$ac_objext` in
5746 *32-bit*)
5747 LD="${LD-ld} -melf32bsmip"
5748 ;;
5749 *N32*)
5750 LD="${LD-ld} -melf32bmipn32"
5751 ;;
5752 *64-bit*)
5753 LD="${LD-ld} -melf64bmip"
5754 ;;
5755 esac
5756 else
5757 case `/usr/bin/file conftest.$ac_objext` in
5758 *32-bit*)
5759 LD="${LD-ld} -32"
5760 ;;
5761 *N32*)
5762 LD="${LD-ld} -n32"
5763 ;;
5764 *64-bit*)
5765 LD="${LD-ld} -64"
5766 ;;
5767 esac
5768 fi
5769 fi
5770 rm -rf conftest*
5771 ;;
5772
bf3d9781 5773x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5774s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5775 # Find out which ABI we are using.
5776 echo 'int i;' > conftest.$ac_ext
5777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5778 (eval $ac_compile) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }; then
5782 case `/usr/bin/file conftest.o` in
5783 *32-bit*)
5784 case $host in
5785 x86_64-*kfreebsd*-gnu)
5786 LD="${LD-ld} -m elf_i386_fbsd"
5787 ;;
5788 x86_64-*linux*)
5789 case `/usr/bin/file conftest.o` in
5790 *x86-64*)
5791 LD="${LD-ld} -m elf32_x86_64"
5792 ;;
5793 *)
5794 LD="${LD-ld} -m elf_i386"
5795 ;;
5796 esac
5797 ;;
bf3d9781
AM
5798 powerpc64le-*linux*)
5799 LD="${LD-ld} -m elf32lppclinux"
5800 ;;
5801 powerpc64-*linux*)
6bb11ab3
L
5802 LD="${LD-ld} -m elf32ppclinux"
5803 ;;
5804 s390x-*linux*)
5805 LD="${LD-ld} -m elf_s390"
5806 ;;
5807 sparc64-*linux*)
5808 LD="${LD-ld} -m elf32_sparc"
5809 ;;
5810 esac
5811 ;;
5812 *64-bit*)
5813 case $host in
5814 x86_64-*kfreebsd*-gnu)
5815 LD="${LD-ld} -m elf_x86_64_fbsd"
5816 ;;
5817 x86_64-*linux*)
5818 LD="${LD-ld} -m elf_x86_64"
5819 ;;
bf3d9781
AM
5820 powerpcle-*linux*)
5821 LD="${LD-ld} -m elf64lppc"
5822 ;;
5823 powerpc-*linux*)
6bb11ab3
L
5824 LD="${LD-ld} -m elf64ppc"
5825 ;;
5826 s390*-*linux*|s390*-*tpf*)
5827 LD="${LD-ld} -m elf64_s390"
5828 ;;
5829 sparc*-*linux*)
5830 LD="${LD-ld} -m elf64_sparc"
5831 ;;
5832 esac
5833 ;;
5834 esac
5835 fi
5836 rm -rf conftest*
5837 ;;
5838
5839*-*-sco3.2v5*)
5840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5841 SAVE_CFLAGS="$CFLAGS"
5842 CFLAGS="$CFLAGS -belf"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5844$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5845if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5846 $as_echo_n "(cached) " >&6
5847else
5848 ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855/* end confdefs.h. */
5856
5857int
5858main ()
5859{
5860
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865if ac_fn_c_try_link "$LINENO"; then :
5866 lt_cv_cc_needs_belf=yes
5867else
5868 lt_cv_cc_needs_belf=no
5869fi
5870rm -f core conftest.err conftest.$ac_objext \
5871 conftest$ac_exeext conftest.$ac_ext
5872 ac_ext=c
5873ac_cpp='$CPP $CPPFLAGS'
5874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5880$as_echo "$lt_cv_cc_needs_belf" >&6; }
5881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5883 CFLAGS="$SAVE_CFLAGS"
5884 fi
5885 ;;
5886sparc*-*solaris*)
5887 # Find out which ABI we are using.
5888 echo 'int i;' > conftest.$ac_ext
5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; }; then
5894 case `/usr/bin/file conftest.o` in
5895 *64-bit*)
5896 case $lt_cv_prog_gnu_ld in
5897 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5898 *)
5899 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5900 LD="${LD-ld} -64"
5901 fi
5902 ;;
5903 esac
5904 ;;
5905 esac
5906 fi
5907 rm -rf conftest*
5908 ;;
5909esac
5910
5911need_locks="$enable_libtool_lock"
5912
5913
5914 case $host_os in
5915 rhapsody* | darwin*)
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5918set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5921if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5922 $as_echo_n "(cached) " >&6
5923else
5924 if test -n "$DSYMUTIL"; then
5925 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5926else
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5934 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939 done
5940IFS=$as_save_IFS
5941
5942fi
5943fi
5944DSYMUTIL=$ac_cv_prog_DSYMUTIL
5945if test -n "$DSYMUTIL"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5947$as_echo "$DSYMUTIL" >&6; }
5948else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950$as_echo "no" >&6; }
5951fi
5952
5953
5954fi
5955if test -z "$ac_cv_prog_DSYMUTIL"; then
5956 ac_ct_DSYMUTIL=$DSYMUTIL
5957 # Extract the first word of "dsymutil", so it can be a program name with args.
5958set dummy dsymutil; ac_word=$2
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5961if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5962 $as_echo_n "(cached) " >&6
5963else
5964 if test -n "$ac_ct_DSYMUTIL"; then
5965 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5966else
5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5974 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5977 fi
5978done
5979 done
5980IFS=$as_save_IFS
5981
5982fi
5983fi
5984ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5985if test -n "$ac_ct_DSYMUTIL"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5987$as_echo "$ac_ct_DSYMUTIL" >&6; }
5988else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990$as_echo "no" >&6; }
5991fi
5992
5993 if test "x$ac_ct_DSYMUTIL" = x; then
5994 DSYMUTIL=":"
5995 else
5996 case $cross_compiling:$ac_tool_warned in
5997yes:)
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000ac_tool_warned=yes ;;
6001esac
6002 DSYMUTIL=$ac_ct_DSYMUTIL
6003 fi
6004else
6005 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6006fi
6007
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6010set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6013if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
6014 $as_echo_n "(cached) " >&6
6015else
6016 if test -n "$NMEDIT"; then
6017 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6026 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030done
6031 done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036NMEDIT=$ac_cv_prog_NMEDIT
6037if test -n "$NMEDIT"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6039$as_echo "$NMEDIT" >&6; }
6040else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046fi
6047if test -z "$ac_cv_prog_NMEDIT"; then
6048 ac_ct_NMEDIT=$NMEDIT
6049 # Extract the first word of "nmedit", so it can be a program name with args.
6050set dummy nmedit; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6053if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
6054 $as_echo_n "(cached) " >&6
6055else
6056 if test -n "$ac_ct_NMEDIT"; then
6057 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6066 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071 done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6077if test -n "$ac_ct_NMEDIT"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6079$as_echo "$ac_ct_NMEDIT" >&6; }
6080else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085 if test "x$ac_ct_NMEDIT" = x; then
6086 NMEDIT=":"
6087 else
6088 case $cross_compiling:$ac_tool_warned in
6089yes:)
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092ac_tool_warned=yes ;;
6093esac
6094 NMEDIT=$ac_ct_NMEDIT
6095 fi
6096else
6097 NMEDIT="$ac_cv_prog_NMEDIT"
6098fi
6099
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6102set dummy ${ac_tool_prefix}lipo; ac_word=$2
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6105if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
6106 $as_echo_n "(cached) " >&6
6107else
6108 if test -n "$LIPO"; then
6109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6118 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123 done
6124IFS=$as_save_IFS
6125
6126fi
6127fi
6128LIPO=$ac_cv_prog_LIPO
6129if test -n "$LIPO"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6131$as_echo "$LIPO" >&6; }
6132else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134$as_echo "no" >&6; }
6135fi
6136
6137
6138fi
6139if test -z "$ac_cv_prog_LIPO"; then
6140 ac_ct_LIPO=$LIPO
6141 # Extract the first word of "lipo", so it can be a program name with args.
6142set dummy lipo; ac_word=$2
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6145if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6146 $as_echo_n "(cached) " >&6
6147else
6148 if test -n "$ac_ct_LIPO"; then
6149 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6158 ac_cv_prog_ac_ct_LIPO="lipo"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163 done
6164IFS=$as_save_IFS
6165
6166fi
6167fi
6168ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6169if test -n "$ac_ct_LIPO"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6171$as_echo "$ac_ct_LIPO" >&6; }
6172else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174$as_echo "no" >&6; }
6175fi
6176
6177 if test "x$ac_ct_LIPO" = x; then
6178 LIPO=":"
6179 else
6180 case $cross_compiling:$ac_tool_warned in
6181yes:)
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184ac_tool_warned=yes ;;
6185esac
6186 LIPO=$ac_ct_LIPO
6187 fi
6188else
6189 LIPO="$ac_cv_prog_LIPO"
6190fi
6191
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6194set dummy ${ac_tool_prefix}otool; ac_word=$2
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6197if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6198 $as_echo_n "(cached) " >&6
6199else
6200 if test -n "$OTOOL"; then
6201 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6210 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215 done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220OTOOL=$ac_cv_prog_OTOOL
6221if test -n "$OTOOL"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6223$as_echo "$OTOOL" >&6; }
6224else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226$as_echo "no" >&6; }
6227fi
6228
6229
6230fi
6231if test -z "$ac_cv_prog_OTOOL"; then
6232 ac_ct_OTOOL=$OTOOL
6233 # Extract the first word of "otool", so it can be a program name with args.
6234set dummy otool; ac_word=$2
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6237if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6238 $as_echo_n "(cached) " >&6
6239else
6240 if test -n "$ac_ct_OTOOL"; then
6241 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6242else
6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6250 ac_cv_prog_ac_ct_OTOOL="otool"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254done
6255 done
6256IFS=$as_save_IFS
6257
6258fi
6259fi
6260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6261if test -n "$ac_ct_OTOOL"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6263$as_echo "$ac_ct_OTOOL" >&6; }
6264else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266$as_echo "no" >&6; }
6267fi
6268
6269 if test "x$ac_ct_OTOOL" = x; then
6270 OTOOL=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273yes:)
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276ac_tool_warned=yes ;;
6277esac
6278 OTOOL=$ac_ct_OTOOL
6279 fi
6280else
6281 OTOOL="$ac_cv_prog_OTOOL"
6282fi
6283
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6286set dummy ${ac_tool_prefix}otool64; ac_word=$2
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6289if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6290 $as_echo_n "(cached) " >&6
6291else
6292 if test -n "$OTOOL64"; then
6293 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6302 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306done
6307 done
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312OTOOL64=$ac_cv_prog_OTOOL64
6313if test -n "$OTOOL64"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6315$as_echo "$OTOOL64" >&6; }
6316else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320
6321
6322fi
6323if test -z "$ac_cv_prog_OTOOL64"; then
6324 ac_ct_OTOOL64=$OTOOL64
6325 # Extract the first word of "otool64", so it can be a program name with args.
6326set dummy otool64; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6329if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$ac_ct_OTOOL64"; then
6333 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6342 ac_cv_prog_ac_ct_OTOOL64="otool64"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347 done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6353if test -n "$ac_ct_OTOOL64"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6355$as_echo "$ac_ct_OTOOL64" >&6; }
6356else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361 if test "x$ac_ct_OTOOL64" = x; then
6362 OTOOL64=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 OTOOL64=$ac_ct_OTOOL64
6371 fi
6372else
6373 OTOOL64="$ac_cv_prog_OTOOL64"
6374fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6403$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6404if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6405 $as_echo_n "(cached) " >&6
6406else
6407 lt_cv_apple_cc_single_mod=no
6408 if test -z "${LT_MULTI_MODULE}"; then
6409 # By default we will add the -single_module flag. You can override
6410 # by either setting the environment variable LT_MULTI_MODULE
6411 # non-empty at configure time, or by adding -multi_module to the
6412 # link flags.
6413 rm -rf libconftest.dylib*
6414 echo "int foo(void){return 1;}" > conftest.c
6415 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6416-dynamiclib -Wl,-single_module conftest.c" >&5
6417 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6418 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6419 _lt_result=$?
6420 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6421 lt_cv_apple_cc_single_mod=yes
6422 else
6423 cat conftest.err >&5
6424 fi
6425 rm -rf libconftest.dylib*
6426 rm -f conftest.*
6427 fi
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6430$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6432$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6433if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6434 $as_echo_n "(cached) " >&6
6435else
6436 lt_cv_ld_exported_symbols_list=no
6437 save_LDFLAGS=$LDFLAGS
6438 echo "_main" > conftest.sym
6439 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h. */
6442
6443int
6444main ()
6445{
6446
6447 ;
6448 return 0;
6449}
6450_ACEOF
6451if ac_fn_c_try_link "$LINENO"; then :
6452 lt_cv_ld_exported_symbols_list=yes
6453else
6454 lt_cv_ld_exported_symbols_list=no
6455fi
6456rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 LDFLAGS="$save_LDFLAGS"
6459
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6462$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6464$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6465if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6466 $as_echo_n "(cached) " >&6
6467else
6468 lt_cv_ld_force_load=no
6469 cat > conftest.c << _LT_EOF
6470int forced_loaded() { return 2;}
6471_LT_EOF
6472 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6473 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6474 echo "$AR cru libconftest.a conftest.o" >&5
6475 $AR cru libconftest.a conftest.o 2>&5
6476 cat > conftest.c << _LT_EOF
6477int main() { return 0;}
6478_LT_EOF
6479 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6480 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6481 _lt_result=$?
6482 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6483 lt_cv_ld_force_load=yes
6484 else
6485 cat conftest.err >&5
6486 fi
6487 rm -f conftest.err libconftest.a conftest conftest.c
6488 rm -rf conftest.dSYM
6489
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6492$as_echo "$lt_cv_ld_force_load" >&6; }
6493 case $host_os in
6494 rhapsody* | darwin1.[012])
6495 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6496 darwin1.*)
6497 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6498 darwin*) # darwin 5.x on
6499 # if running on 10.5 or later, the deployment target defaults
6500 # to the OS version, if on x86, and 10.4, the deployment
6501 # target defaults to 10.4. Don't you love it?
6502 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6503 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6504 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 6505 10.[012][,.]*)
6bb11ab3
L
6506 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6507 10.*)
6508 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6509 esac
6510 ;;
6511 esac
6512 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6513 _lt_dar_single_mod='$single_module'
6514 fi
6515 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6516 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6517 else
6518 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6519 fi
6520 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6521 _lt_dsymutil='~$DSYMUTIL $lib || :'
6522 else
6523 _lt_dsymutil=
6524 fi
6525 ;;
6526 esac
6527
6528for ac_header in dlfcn.h
6529do :
6530 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6531"
d0ac1c44 6532if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6533 cat >>confdefs.h <<_ACEOF
6534#define HAVE_DLFCN_H 1
6535_ACEOF
6536
6537fi
6538
6539done
6540
6541
6542
ebe9564b 6543
6bb11ab3
L
6544ac_config_headers="$ac_config_headers config.h:config.in"
6545
6546
6547
0cb8d851
MF
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6549$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6550if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6551 $as_echo_n "(cached) " >&6
6552else
6553 ac_cv_c_bigendian=unknown
6554 # See if we're dealing with a universal compiler.
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556/* end confdefs.h. */
6557#ifndef __APPLE_CC__
6558 not a universal capable compiler
6559 #endif
6560 typedef int dummy;
6561
6562_ACEOF
6563if ac_fn_c_try_compile "$LINENO"; then :
6564
6565 # Check for potential -arch flags. It is not universal unless
6566 # there are at least two -arch flags with different values.
6567 ac_arch=
6568 ac_prev=
6569 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6570 if test -n "$ac_prev"; then
6571 case $ac_word in
6572 i?86 | x86_64 | ppc | ppc64)
6573 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6574 ac_arch=$ac_word
6575 else
6576 ac_cv_c_bigendian=universal
6577 break
6578 fi
6579 ;;
6580 esac
6581 ac_prev=
6582 elif test "x$ac_word" = "x-arch"; then
6583 ac_prev=arch
6584 fi
6585 done
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 if test $ac_cv_c_bigendian = unknown; then
6589 # See if sys/param.h defines the BYTE_ORDER macro.
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h. */
6592#include <sys/types.h>
6593 #include <sys/param.h>
6594
6595int
6596main ()
6597{
6598#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6599 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6600 && LITTLE_ENDIAN)
6601 bogus endian macros
6602 #endif
6603
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_compile "$LINENO"; then :
6609 # It does; now see whether it defined to BIG_ENDIAN or not.
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */
6612#include <sys/types.h>
6613 #include <sys/param.h>
6614
6615int
6616main ()
6617{
6618#if BYTE_ORDER != BIG_ENDIAN
6619 not big endian
6620 #endif
6621
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626if ac_fn_c_try_compile "$LINENO"; then :
6627 ac_cv_c_bigendian=yes
6628else
6629 ac_cv_c_bigendian=no
6630fi
6631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 if test $ac_cv_c_bigendian = unknown; then
6636 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639#include <limits.h>
6640
6641int
6642main ()
6643{
6644#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6645 bogus endian macros
6646 #endif
6647
6648 ;
6649 return 0;
6650}
6651_ACEOF
6652if ac_fn_c_try_compile "$LINENO"; then :
6653 # It does; now see whether it defined to _BIG_ENDIAN or not.
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h. */
6656#include <limits.h>
6657
6658int
6659main ()
6660{
6661#ifndef _BIG_ENDIAN
6662 not big endian
6663 #endif
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669if ac_fn_c_try_compile "$LINENO"; then :
6670 ac_cv_c_bigendian=yes
6671else
6672 ac_cv_c_bigendian=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 fi
6678 if test $ac_cv_c_bigendian = unknown; then
6679 # Compile a test program.
6680 if test "$cross_compiling" = yes; then :
6681 # Try to guess by grepping values from an object file.
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h. */
6684short int ascii_mm[] =
6685 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6686 short int ascii_ii[] =
6687 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6688 int use_ascii (int i) {
6689 return ascii_mm[i] + ascii_ii[i];
6690 }
6691 short int ebcdic_ii[] =
6692 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6693 short int ebcdic_mm[] =
6694 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6695 int use_ebcdic (int i) {
6696 return ebcdic_mm[i] + ebcdic_ii[i];
6697 }
6698 extern int foo;
6699
6700int
6701main ()
6702{
6703return use_ascii (foo) == use_ebcdic (foo);
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"; then :
6709 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6710 ac_cv_c_bigendian=yes
6711 fi
6712 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6713 if test "$ac_cv_c_bigendian" = unknown; then
6714 ac_cv_c_bigendian=no
6715 else
6716 # finding both strings is unlikely to happen, but who knows?
6717 ac_cv_c_bigendian=unknown
6718 fi
6719 fi
6720fi
6721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722else
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h. */
6725$ac_includes_default
6726int
6727main ()
6728{
6729
6730 /* Are we little or big endian? From Harbison&Steele. */
6731 union
6732 {
6733 long int l;
6734 char c[sizeof (long int)];
6735 } u;
6736 u.l = 1;
6737 return u.c[sizeof (long int) - 1] == 1;
6738
6739 ;
6740 return 0;
6741}
6742_ACEOF
6743if ac_fn_c_try_run "$LINENO"; then :
6744 ac_cv_c_bigendian=no
6745else
6746 ac_cv_c_bigendian=yes
6747fi
6748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6749 conftest.$ac_objext conftest.beam conftest.$ac_ext
6750fi
6751
6752 fi
6753fi
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6755$as_echo "$ac_cv_c_bigendian" >&6; }
6756 case $ac_cv_c_bigendian in #(
6757 yes)
6758 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6759;; #(
6760 no)
6761 ;; #(
6762 universal)
6763
6764$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6765
6766 ;; #(
6767 *)
d0ac1c44 6768 as_fn_error $? "unknown endianness
0cb8d851
MF
6769 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6770 esac
6771
6bb11ab3
L
6772
6773
6774
6775# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
6776if test -z "$CC_FOR_BUILD"; then
6777 if test "x$cross_compiling" = "xno"; then
6778 CC_FOR_BUILD='$(CC)'
6779 else
6780 CC_FOR_BUILD=gcc
6781 fi
6bb11ab3
L
6782fi
6783
6784
6785
a3e2cc64
MF
6786if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}ar; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if ${ac_cv_prog_AR+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793else
6794 if test -n "$AR"; then
6795 ac_cv_prog_AR="$AR" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_AR="${ac_tool_prefix}ar"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809 done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814AR=$ac_cv_prog_AR
6815if test -n "$AR"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6817$as_echo "$AR" >&6; }
6818else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824fi
6825if test -z "$ac_cv_prog_AR"; then
6826 ac_ct_AR=$AR
6827 # Extract the first word of "ar", so it can be a program name with args.
6828set dummy ar; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if ${ac_cv_prog_ac_ct_AR+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833else
6834 if test -n "$ac_ct_AR"; then
6835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_ac_ct_AR="ar"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849 done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854ac_ct_AR=$ac_cv_prog_ac_ct_AR
6855if test -n "$ac_ct_AR"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6857$as_echo "$ac_ct_AR" >&6; }
6858else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863 if test "x$ac_ct_AR" = x; then
6864 AR=""
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870ac_tool_warned=yes ;;
6871esac
6872 AR=$ac_ct_AR
6873 fi
6874else
6875 AR="$ac_cv_prog_AR"
6876fi
6bb11ab3
L
6877
6878if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6880set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6883if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6884 $as_echo_n "(cached) " >&6
6885else
6886 if test -n "$RANLIB"; then
6887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901 done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906RANLIB=$ac_cv_prog_RANLIB
6907if test -n "$RANLIB"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6909$as_echo "$RANLIB" >&6; }
6910else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
6913fi
6914
6915
6916fi
6917if test -z "$ac_cv_prog_RANLIB"; then
6918 ac_ct_RANLIB=$RANLIB
6919 # Extract the first word of "ranlib", so it can be a program name with args.
6920set dummy ranlib; ac_word=$2
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6923if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6924 $as_echo_n "(cached) " >&6
6925else
6926 if test -n "$ac_ct_RANLIB"; then
6927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6936 ac_cv_prog_ac_ct_RANLIB="ranlib"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940done
6941 done
6942IFS=$as_save_IFS
6943
6944fi
6945fi
6946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6947if test -n "$ac_ct_RANLIB"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6949$as_echo "$ac_ct_RANLIB" >&6; }
6950else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
6953fi
6954
6955 if test "x$ac_ct_RANLIB" = x; then
6956 RANLIB=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959yes:)
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962ac_tool_warned=yes ;;
6963esac
6964 RANLIB=$ac_ct_RANLIB
6965 fi
6966else
6967 RANLIB="$ac_cv_prog_RANLIB"
6968fi
6969
6970
46f900c0
MF
6971# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6972# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6973# is C99. So handle it ourselves.
6974:
6975C_DIALECT=
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6977$as_echo_n "checking whether C11 is supported by default... " >&6; }
6978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h. */
6980
6981#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6982# error "C11 support not found"
6983#endif
6984
6985_ACEOF
6986if ac_fn_c_try_compile "$LINENO"; then :
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988$as_echo "yes" >&6; }
6989else
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992$as_echo "no" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6994$as_echo_n "checking for -std=c11 support... " >&6; }
6995 ac_save_CC="$CC"
6996 CC="$CC -std=c11"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h. */
6999
7000#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7001# error "C11 support not found"
7002#endif
7003
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"; then :
7006
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7008$as_echo "yes" >&6; }
7009 CC="$ac_save_CC"
7010 C_DIALECT="-std=c11"
7011
7012else
7013 as_fn_error $? "C11 is required" "$LINENO" 5
7014fi
7015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016fi
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018
7019
6bb11ab3
L
7020# Some of the common include files depend on bfd.h, and bfd.h checks
7021# that config.h is included first by testing that the PACKAGE macro
7022# is defined.
7023PACKAGE=sim
7024
7025cat >>confdefs.h <<_ACEOF
7026#define PACKAGE "$PACKAGE"
7027_ACEOF
7028
7029
7030
7031# Dependency checking.
7032ac_config_commands="$ac_config_commands depdir"
7033
7034
7035depcc="$CC" am_compiler_list=
7036
7037am_depcomp=$ac_aux_dir/depcomp
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7039$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 7040if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
7041 $as_echo_n "(cached) " >&6
7042else
7043 if test -f "$am_depcomp"; then
7044 # We make a subdir and do the tests there. Otherwise we can end up
7045 # making bogus files that we don't know about and never remove. For
7046 # instance it was reported that on HP-UX the gcc test will end up
7047 # making a dummy file named `D' -- because `-MD' means `put the output
7048 # in D'.
7049 mkdir conftest.dir
7050 # Copy depcomp to subdir because otherwise we won't find it if we're
7051 # using a relative directory.
7052 cp "$am_depcomp" conftest.dir
7053 cd conftest.dir
7054 # We will build objects and dependencies in a subdirectory because
7055 # it helps to detect inapplicable dependency modes. For instance
7056 # both Tru64's cc and ICC support -MD to output dependencies as a
7057 # side effect of compilation, but ICC will put the dependencies in
7058 # the current directory while Tru64 will put them in the object
7059 # directory.
7060 mkdir sub
7061
7062 am_cv_CC_dependencies_compiler_type=none
7063 if test "$am_compiler_list" = ""; then
7064 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7065 fi
7066 for depmode in $am_compiler_list; do
7067 if test $depmode = none; then break; fi
7068
7069 $as_echo "$as_me:$LINENO: trying $depmode" >&5
7070 # Setup a source with many dependencies, because some compilers
7071 # like to wrap large dependency lists on column 80 (with \), and
7072 # we should not choose a depcomp mode which is confused by this.
7073 #
7074 # We need to recreate these files for each test, as the compiler may
7075 # overwrite some of them when testing with obscure command lines.
7076 # This happens at least with the AIX C compiler.
7077 : > sub/conftest.c
7078 for i in 1 2 3 4 5 6; do
7079 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7080 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7081 # Solaris 8's {/usr,}/bin/sh.
7082 touch sub/conftst$i.h
7083 done
7084 echo "include sub/conftest.Po" > confmf
7085
7086 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7087 # mode. It turns out that the SunPro C++ compiler does not properly
7088 # handle `-M -o', and we need to detect this.
7089 depcmd="depmode=$depmode \
7090 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7091 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7092 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7093 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7094 if env $depcmd > conftest.err 2>&1 &&
7095 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7096 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7097 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7098 # icc doesn't choke on unknown options, it will just issue warnings
7099 # or remarks (even with -Werror). So we grep stderr for any message
7100 # that says an option was ignored or not supported.
7101 # When given -MP, icc 7.0 and 7.1 complain thusly:
7102 # icc: Command line warning: ignoring option '-M'; no argument required
7103 # The diagnosis changed in icc 8.0:
7104 # icc: Command line remark: option '-MP' not supported
7105 if (grep 'ignoring option' conftest.err ||
7106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7107 am_cv_CC_dependencies_compiler_type=$depmode
7108 $as_echo "$as_me:$LINENO: success" >&5
7109 break
7110 fi
7111 fi
7112 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7113 sed -e 's/^/| /' < conftest.err >&5
7114 done
7115
7116 cd ..
7117 rm -rf conftest.dir
7118else
7119 am_cv_CC_dependencies_compiler_type=none
7120fi
7121
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7124$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7125if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7126then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7127else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7128
7129fi
7130
7131
7132# Check for the 'make' the user wants to use.
7133for ac_prog in make
7134do
7135 # Extract the first word of "$ac_prog", so it can be a program name with args.
7136set dummy $ac_prog; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7139if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
7140 $as_echo_n "(cached) " >&6
7141else
7142 if test -n "$MAKE"; then
7143 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7152 ac_cv_prog_MAKE="$ac_prog"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157 done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162MAKE=$ac_cv_prog_MAKE
7163if test -n "$MAKE"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7165$as_echo "$MAKE" >&6; }
7166else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172 test -n "$MAKE" && break
7173done
7174
7175MAKE_IS_GNU=
7176case "`$MAKE --version 2>&1 | sed 1q`" in
7177 *GNU*)
7178 MAKE_IS_GNU=yes
7179 ;;
7180esac
7181 if test "$MAKE_IS_GNU" = yes; then
7182 GMAKE_TRUE=
7183 GMAKE_FALSE='#'
7184else
7185 GMAKE_TRUE='#'
7186 GMAKE_FALSE=
7187fi
7188
7189
7190ALL_LINGUAS=
7191# If we haven't got the data from the intl directory,
7192# assume NLS is disabled.
7193USE_NLS=no
7194LIBINTL=
7195LIBINTL_DEP=
7196INCINTL=
7197XGETTEXT=
7198GMSGFMT=
7199POSUB=
7200
7201if test -f ../../intl/config.intl; then
7202 . ../../intl/config.intl
7203fi
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7205$as_echo_n "checking whether NLS is requested... " >&6; }
7206if test x"$USE_NLS" != xyes; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7211$as_echo "yes" >&6; }
7212
7213$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7214
7215
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7217$as_echo_n "checking for catalogs to be installed... " >&6; }
7218 # Look for .po and .gmo files in the source directory.
7219 CATALOGS=
7220 XLINGUAS=
7221 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7222 # If there aren't any .gmo files the shell will give us the
7223 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7224 # weeded out.
7225 case "$cat" in *\**)
7226 continue;;
7227 esac
7228 # The quadruple backslash is collapsed to a double backslash
7229 # by the backticks, then collapsed again by the double quotes,
7230 # leaving us with one backslash in the sed expression (right
7231 # before the dot that mustn't act as a wildcard).
7232 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7233 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7234 # The user is allowed to set LINGUAS to a list of languages to
7235 # install catalogs for. If it's empty that means "all of them."
7236 if test "x$LINGUAS" = x; then
7237 CATALOGS="$CATALOGS $cat"
7238 XLINGUAS="$XLINGUAS $lang"
7239 else
7240 case "$LINGUAS" in *$lang*)
7241 CATALOGS="$CATALOGS $cat"
7242 XLINGUAS="$XLINGUAS $lang"
7243 ;;
7244 esac
7245 fi
7246 done
7247 LINGUAS="$XLINGUAS"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7249$as_echo "$LINGUAS" >&6; }
7250
7251
7252 DATADIRNAME=share
7253
7254 INSTOBJEXT=.mo
7255
7256 GENCAT=gencat
7257
7258 CATOBJEXT=.gmo
7259
7260fi
7261
7262# Check for common headers.
68ed2854
MF
7263# NB: You can assume C11 headers exist.
7264for ac_header in unistd.h
6bb11ab3 7265do :
68ed2854
MF
7266 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7267if test "x$ac_cv_header_unistd_h" = xyes; then :
6bb11ab3 7268 cat >>confdefs.h <<_ACEOF
68ed2854 7269#define HAVE_UNISTD_H 1
6bb11ab3
L
7270_ACEOF
7271
7272fi
7273
7274done
7275
936df756 7276for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
7277do :
7278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7279ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7281 cat >>confdefs.h <<_ACEOF
7282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283_ACEOF
7284
7285fi
7286
7287done
7288
7289for ac_header in fcntl.h fpu_control.h
7290do :
7291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7293if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7294 cat >>confdefs.h <<_ACEOF
7295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7296_ACEOF
7297
7298fi
7299
7300done
7301
68ed2854 7302for ac_header in dlfcn.h sys/stat.h
6bb11ab3
L
7303do :
7304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7305ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7306if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7307 cat >>confdefs.h <<_ACEOF
7308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7309_ACEOF
7310
7311fi
7312
7313done
7314
7315for ac_func in getrusage time sigaction __setfpucw
7316do :
7317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 7319if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
7320 cat >>confdefs.h <<_ACEOF
7321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7322_ACEOF
7323
7324fi
7325done
7326
936df756
MF
7327for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
7328do :
7329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7330ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 7331if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
7332 cat >>confdefs.h <<_ACEOF
7333#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7334_ACEOF
7335
7336fi
7337done
7338
7339ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7340#include <sys/types.h>
7341#endif
7342#ifdef HAVE_SYS_STAT_H
7343#include <sys/stat.h>
7344#endif
7345"
d0ac1c44 7346if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
7347
7348cat >>confdefs.h <<_ACEOF
7349#define HAVE_STRUCT_STAT_ST_DEV 1
7350_ACEOF
7351
7352
7353fi
7354ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7355#include <sys/types.h>
7356#endif
7357#ifdef HAVE_SYS_STAT_H
7358#include <sys/stat.h>
7359#endif
7360"
d0ac1c44 7361if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
7362
7363cat >>confdefs.h <<_ACEOF
7364#define HAVE_STRUCT_STAT_ST_INO 1
7365_ACEOF
7366
7367
7368fi
7369ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7370#include <sys/types.h>
7371#endif
7372#ifdef HAVE_SYS_STAT_H
7373#include <sys/stat.h>
7374#endif
7375"
d0ac1c44 7376if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
7377
7378cat >>confdefs.h <<_ACEOF
7379#define HAVE_STRUCT_STAT_ST_MODE 1
7380_ACEOF
7381
7382
7383fi
7384ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7385#include <sys/types.h>
7386#endif
7387#ifdef HAVE_SYS_STAT_H
7388#include <sys/stat.h>
7389#endif
7390"
d0ac1c44 7391if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
7392
7393cat >>confdefs.h <<_ACEOF
7394#define HAVE_STRUCT_STAT_ST_NLINK 1
7395_ACEOF
7396
7397
7398fi
7399ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7400#include <sys/types.h>
7401#endif
7402#ifdef HAVE_SYS_STAT_H
7403#include <sys/stat.h>
7404#endif
7405"
d0ac1c44 7406if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
7407
7408cat >>confdefs.h <<_ACEOF
7409#define HAVE_STRUCT_STAT_ST_UID 1
7410_ACEOF
7411
7412
7413fi
7414ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7415#include <sys/types.h>
7416#endif
7417#ifdef HAVE_SYS_STAT_H
7418#include <sys/stat.h>
7419#endif
7420"
d0ac1c44 7421if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
7422
7423cat >>confdefs.h <<_ACEOF
7424#define HAVE_STRUCT_STAT_ST_GID 1
7425_ACEOF
7426
7427
7428fi
7429ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7430#include <sys/types.h>
7431#endif
7432#ifdef HAVE_SYS_STAT_H
7433#include <sys/stat.h>
7434#endif
7435"
d0ac1c44 7436if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
7437
7438cat >>confdefs.h <<_ACEOF
7439#define HAVE_STRUCT_STAT_ST_RDEV 1
7440_ACEOF
7441
7442
7443fi
7444ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7445#include <sys/types.h>
7446#endif
7447#ifdef HAVE_SYS_STAT_H
7448#include <sys/stat.h>
7449#endif
7450"
d0ac1c44 7451if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
7452
7453cat >>confdefs.h <<_ACEOF
7454#define HAVE_STRUCT_STAT_ST_SIZE 1
7455_ACEOF
7456
7457
7458fi
7459ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7460#include <sys/types.h>
7461#endif
7462#ifdef HAVE_SYS_STAT_H
7463#include <sys/stat.h>
7464#endif
7465"
d0ac1c44 7466if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
7467
7468cat >>confdefs.h <<_ACEOF
7469#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7470_ACEOF
7471
7472
7473fi
7474ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
7475#include <sys/types.h>
7476#endif
7477#ifdef HAVE_SYS_STAT_H
7478#include <sys/stat.h>
7479#endif
7480"
d0ac1c44 7481if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
7482
7483cat >>confdefs.h <<_ACEOF
7484#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7485_ACEOF
7486
7487
7488fi
7489ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
7490#include <sys/types.h>
7491#endif
7492#ifdef HAVE_SYS_STAT_H
7493#include <sys/stat.h>
7494#endif
7495"
d0ac1c44 7496if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
7497
7498cat >>confdefs.h <<_ACEOF
7499#define HAVE_STRUCT_STAT_ST_ATIME 1
7500_ACEOF
7501
7502
7503fi
7504ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
7505#include <sys/types.h>
7506#endif
7507#ifdef HAVE_SYS_STAT_H
7508#include <sys/stat.h>
7509#endif
7510"
d0ac1c44 7511if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
7512
7513cat >>confdefs.h <<_ACEOF
7514#define HAVE_STRUCT_STAT_ST_MTIME 1
7515_ACEOF
7516
7517
7518fi
7519ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
7520#include <sys/types.h>
7521#endif
7522#ifdef HAVE_SYS_STAT_H
7523#include <sys/stat.h>
7524#endif
7525"
d0ac1c44 7526if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
7527
7528cat >>confdefs.h <<_ACEOF
7529#define HAVE_STRUCT_STAT_ST_CTIME 1
7530_ACEOF
7531
7532
7533fi
7534
7535ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7536#include <sys/socket.h>
7537
7538"
d0ac1c44 7539if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
7540
7541cat >>confdefs.h <<_ACEOF
7542#define HAVE_SOCKLEN_T 1
7543_ACEOF
7544
7545
7546fi
7547
6bb11ab3
L
7548
7549# Check for socket libraries
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7551$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7552if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7553 $as_echo_n "(cached) " >&6
7554else
7555 ac_check_lib_save_LIBS=$LIBS
7556LIBS="-lsocket $LIBS"
7557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h. */
7559
7560/* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7563#ifdef __cplusplus
7564extern "C"
7565#endif
7566char bind ();
7567int
7568main ()
7569{
7570return bind ();
7571 ;
7572 return 0;
7573}
7574_ACEOF
7575if ac_fn_c_try_link "$LINENO"; then :
7576 ac_cv_lib_socket_bind=yes
7577else
7578 ac_cv_lib_socket_bind=no
7579fi
7580rm -f core conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7582LIBS=$ac_check_lib_save_LIBS
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7585$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7586if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7587 cat >>confdefs.h <<_ACEOF
7588#define HAVE_LIBSOCKET 1
7589_ACEOF
7590
7591 LIBS="-lsocket $LIBS"
7592
7593fi
7594
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7596$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7597if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7598 $as_echo_n "(cached) " >&6
7599else
7600 ac_check_lib_save_LIBS=$LIBS
7601LIBS="-lnsl $LIBS"
7602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605/* Override any GCC internal prototype to avoid an error.
7606 Use char because int might match the return type of a GCC
7607 builtin and then its argument prototype would still apply. */
7608#ifdef __cplusplus
7609extern "C"
7610#endif
7611char gethostbyname ();
7612int
7613main ()
7614{
7615return gethostbyname ();
7616 ;
7617 return 0;
7618}
7619_ACEOF
7620if ac_fn_c_try_link "$LINENO"; then :
7621 ac_cv_lib_nsl_gethostbyname=yes
7622else
7623 ac_cv_lib_nsl_gethostbyname=no
7624fi
7625rm -f core conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627LIBS=$ac_check_lib_save_LIBS
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7630$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7631if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7632 cat >>confdefs.h <<_ACEOF
7633#define HAVE_LIBNSL 1
7634_ACEOF
7635
7636 LIBS="-lnsl $LIBS"
7637
7638fi
7639
7640
7641# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7642# using the same condition.
7643
aadc9410 7644 # Use the system's zlib library.
7fed4b0b
L
7645 zlibdir="-L\$(top_builddir)/../zlib"
7646 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7647
aadc9410
MF
7648# Check whether --with-system-zlib was given.
7649if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7650 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7651 zlibdir=
7652 zlibinc=
7653 fi
6bb11ab3
L
7654
7655fi
7656
6bb11ab3 7657
6bb11ab3 7658
6bb11ab3
L
7659
7660
7661# BFD uses libdl when when plugins enabled.
7662
faa743bb
RM
7663 maybe_plugins=no
7664 for ac_header in dlfcn.h
7665do :
7666 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7667"
d0ac1c44 7668if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7669 cat >>confdefs.h <<_ACEOF
7670#define HAVE_DLFCN_H 1
7671_ACEOF
7672 maybe_plugins=yes
7673fi
7674
7675done
7676
7677 for ac_header in windows.h
7678do :
7679 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7680"
d0ac1c44 7681if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7682 cat >>confdefs.h <<_ACEOF
7683#define HAVE_WINDOWS_H 1
7684_ACEOF
7685 maybe_plugins=yes
7686fi
7687
7688done
7689
7690
7691 # Check whether --enable-plugins was given.
6bb11ab3
L
7692if test "${enable_plugins+set}" = set; then :
7693 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7694 no) plugins=no ;;
7695 *) plugins=yes
7696 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7697 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7698 fi ;;
7699 esac
6bb11ab3 7700else
faa743bb
RM
7701 plugins=$maybe_plugins
7702
6bb11ab3
L
7703fi
7704
2974be62 7705 if test "$plugins" = "yes"; then
37f980dc
SM
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7707$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7708if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7709 $as_echo_n "(cached) " >&6
7710else
7711 ac_func_search_save_LIBS=$LIBS
7712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h. */
7714
7715/* Override any GCC internal prototype to avoid an error.
7716 Use char because int might match the return type of a GCC
7717 builtin and then its argument prototype would still apply. */
7718#ifdef __cplusplus
7719extern "C"
7720#endif
37f980dc 7721char dlsym ();
2974be62
AM
7722int
7723main ()
7724{
37f980dc 7725return dlsym ();
2974be62
AM
7726 ;
7727 return 0;
7728}
7729_ACEOF
7730for ac_lib in '' dl; do
7731 if test -z "$ac_lib"; then
7732 ac_res="none required"
7733 else
7734 ac_res=-l$ac_lib
7735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7736 fi
7737 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7738 ac_cv_search_dlsym=$ac_res
2974be62
AM
7739fi
7740rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext
d0ac1c44 7742 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7743 break
7744fi
7745done
d0ac1c44 7746if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7747
7748else
37f980dc 7749 ac_cv_search_dlsym=no
2974be62
AM
7750fi
7751rm conftest.$ac_ext
7752LIBS=$ac_func_search_save_LIBS
7753fi
37f980dc
SM
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7755$as_echo "$ac_cv_search_dlsym" >&6; }
7756ac_res=$ac_cv_search_dlsym
2974be62
AM
7757if test "$ac_res" != no; then :
7758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7759
7760fi
7761
7762 fi
6bb11ab3
L
7763
7764 if test "$plugins" = yes; then
7765 PLUGINS_TRUE=
7766 PLUGINS_FALSE='#'
7767else
7768 PLUGINS_TRUE='#'
7769 PLUGINS_FALSE=
7770fi
7771
7772
7773
7774
7775
7776# Set options
7777enable_dlopen=yes
7778
7779
7780
7781
7782 enable_win32_dll=no
7783
7784
7785 # Check whether --enable-shared was given.
7786if test "${enable_shared+set}" = set; then :
7787 enableval=$enable_shared; p=${PACKAGE-default}
7788 case $enableval in
7789 yes) enable_shared=yes ;;
7790 no) enable_shared=no ;;
7791 *)
7792 enable_shared=no
7793 # Look at the argument we got. We use all the common list separators.
7794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7795 for pkg in $enableval; do
7796 IFS="$lt_save_ifs"
7797 if test "X$pkg" = "X$p"; then
7798 enable_shared=yes
7799 fi
7800 done
7801 IFS="$lt_save_ifs"
7802 ;;
7803 esac
7804else
7805 enable_shared=yes
7806fi
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816 # Check whether --enable-static was given.
7817if test "${enable_static+set}" = set; then :
7818 enableval=$enable_static; p=${PACKAGE-default}
7819 case $enableval in
7820 yes) enable_static=yes ;;
7821 no) enable_static=no ;;
7822 *)
7823 enable_static=no
7824 # Look at the argument we got. We use all the common list separators.
7825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7826 for pkg in $enableval; do
7827 IFS="$lt_save_ifs"
7828 if test "X$pkg" = "X$p"; then
7829 enable_static=yes
7830 fi
7831 done
7832 IFS="$lt_save_ifs"
7833 ;;
7834 esac
7835else
7836 enable_static=yes
7837fi
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848# Check whether --with-pic was given.
7849if test "${with_pic+set}" = set; then :
7850 withval=$with_pic; pic_mode="$withval"
7851else
7852 pic_mode=default
7853fi
7854
7855
7856test -z "$pic_mode" && pic_mode=default
7857
7858
7859
7860
7861
7862
7863
7864 # Check whether --enable-fast-install was given.
7865if test "${enable_fast_install+set}" = set; then :
7866 enableval=$enable_fast_install; p=${PACKAGE-default}
7867 case $enableval in
7868 yes) enable_fast_install=yes ;;
7869 no) enable_fast_install=no ;;
7870 *)
7871 enable_fast_install=no
7872 # Look at the argument we got. We use all the common list separators.
7873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7874 for pkg in $enableval; do
7875 IFS="$lt_save_ifs"
7876 if test "X$pkg" = "X$p"; then
7877 enable_fast_install=yes
7878 fi
7879 done
7880 IFS="$lt_save_ifs"
7881 ;;
7882 esac
7883else
7884 enable_fast_install=yes
7885fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897# This can be used to rebuild libtool when needed
7898LIBTOOL_DEPS="$ltmain"
7899
7900# Always use our own libtool.
7901LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928test -z "$LN_S" && LN_S="ln -s"
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943if test -n "${ZSH_VERSION+set}" ; then
7944 setopt NO_GLOB_SUBST
7945fi
7946
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7948$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7949if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7950 $as_echo_n "(cached) " >&6
7951else
7952 rm -f .libs 2>/dev/null
7953mkdir .libs 2>/dev/null
7954if test -d .libs; then
7955 lt_cv_objdir=.libs
7956else
7957 # MS-DOS does not allow filenames that begin with a dot.
7958 lt_cv_objdir=_libs
f0569246 7959fi
6bb11ab3
L
7960rmdir .libs 2>/dev/null
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7963$as_echo "$lt_cv_objdir" >&6; }
7964objdir=$lt_cv_objdir
f0569246 7965
6bb11ab3
L
7966
7967
7968
7969
7970cat >>confdefs.h <<_ACEOF
7971#define LT_OBJDIR "$lt_cv_objdir/"
7972_ACEOF
7973
7974
7975
7976
7977case $host_os in
7978aix3*)
7979 # AIX sometimes has problems with the GCC collect2 program. For some
7980 # reason, if we set the COLLECT_NAMES environment variable, the problems
7981 # vanish in a puff of smoke.
7982 if test "X${COLLECT_NAMES+set}" != Xset; then
7983 COLLECT_NAMES=
7984 export COLLECT_NAMES
7985 fi
7986 ;;
81ecdfbb 7987esac
6bb11ab3
L
7988
7989# Global variables:
7990ofile=libtool
7991can_build_shared=yes
7992
7993# All known linkers require a `.a' archive for static linking (except MSVC,
7994# which needs '.lib').
7995libext=a
7996
7997with_gnu_ld="$lt_cv_prog_gnu_ld"
7998
7999old_CC="$CC"
8000old_CFLAGS="$CFLAGS"
8001
8002# Set sane defaults for various variables
8003test -z "$CC" && CC=cc
8004test -z "$LTCC" && LTCC=$CC
8005test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8006test -z "$LD" && LD=ld
8007test -z "$ac_objext" && ac_objext=o
8008
8009for cc_temp in $compiler""; do
8010 case $cc_temp in
8011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8013 \-*) ;;
8014 *) break;;
8015 esac
8016done
8017cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8018
8019
8020# Only perform the check for file, if the check method requires it
8021test -z "$MAGIC_CMD" && MAGIC_CMD=file
8022case $deplibs_check_method in
8023file_magic*)
8024 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8026$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8027if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8028 $as_echo_n "(cached) " >&6
8029else
8030 case $MAGIC_CMD in
8031[\\/*] | ?:[\\/]*)
8032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8033 ;;
8034*)
8035 lt_save_MAGIC_CMD="$MAGIC_CMD"
8036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8038 for ac_dir in $ac_dummy; do
8039 IFS="$lt_save_ifs"
8040 test -z "$ac_dir" && ac_dir=.
8041 if test -f $ac_dir/${ac_tool_prefix}file; then
8042 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8043 if test -n "$file_magic_test_file"; then
8044 case $deplibs_check_method in
8045 "file_magic "*)
8046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8049 $EGREP "$file_magic_regex" > /dev/null; then
8050 :
8051 else
8052 cat <<_LT_EOF 1>&2
8053
8054*** Warning: the command libtool uses to detect shared libraries,
8055*** $file_magic_cmd, produces output that libtool cannot recognize.
8056*** The result is that libtool may fail to recognize shared libraries
8057*** as such. This will affect the creation of libtool libraries that
8058*** depend on shared libraries, but programs linked with such libtool
8059*** libraries will work regardless of this problem. Nevertheless, you
8060*** may want to report the problem to your system manager and/or to
8061*** bug-libtool@gnu.org
8062
8063_LT_EOF
8064 fi ;;
8065 esac
8066 fi
8067 break
f0569246 8068 fi
6bb11ab3
L
8069 done
8070 IFS="$lt_save_ifs"
8071 MAGIC_CMD="$lt_save_MAGIC_CMD"
8072 ;;
8073esac
f0569246 8074fi
f0569246 8075
6bb11ab3
L
8076MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077if test -n "$MAGIC_CMD"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8079$as_echo "$MAGIC_CMD" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
81ecdfbb 8084
6bb11ab3
L
8085
8086
8087
8088
8089if test -z "$lt_cv_path_MAGIC_CMD"; then
8090 if test -n "$ac_tool_prefix"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8092$as_echo_n "checking for file... " >&6; }
d0ac1c44 8093if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8094 $as_echo_n "(cached) " >&6
8095else
8096 case $MAGIC_CMD in
8097[\\/*] | ?:[\\/]*)
8098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8099 ;;
8100*)
8101 lt_save_MAGIC_CMD="$MAGIC_CMD"
8102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8104 for ac_dir in $ac_dummy; do
8105 IFS="$lt_save_ifs"
8106 test -z "$ac_dir" && ac_dir=.
8107 if test -f $ac_dir/file; then
8108 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8109 if test -n "$file_magic_test_file"; then
8110 case $deplibs_check_method in
8111 "file_magic "*)
8112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8115 $EGREP "$file_magic_regex" > /dev/null; then
8116 :
8117 else
8118 cat <<_LT_EOF 1>&2
8119
8120*** Warning: the command libtool uses to detect shared libraries,
8121*** $file_magic_cmd, produces output that libtool cannot recognize.
8122*** The result is that libtool may fail to recognize shared libraries
8123*** as such. This will affect the creation of libtool libraries that
8124*** depend on shared libraries, but programs linked with such libtool
8125*** libraries will work regardless of this problem. Nevertheless, you
8126*** may want to report the problem to your system manager and/or to
8127*** bug-libtool@gnu.org
8128
8129_LT_EOF
8130 fi ;;
8131 esac
8132 fi
8133 break
8134 fi
8135 done
8136 IFS="$lt_save_ifs"
8137 MAGIC_CMD="$lt_save_MAGIC_CMD"
8138 ;;
81ecdfbb 8139esac
6bb11ab3
L
8140fi
8141
8142MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143if test -n "$MAGIC_CMD"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8145$as_echo "$MAGIC_CMD" >&6; }
8146else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151
8152 else
8153 MAGIC_CMD=:
8154 fi
8155fi
8156
8157 fi
8158 ;;
8159esac
8160
8161# Use C for the default configuration in the libtool script
8162
8163lt_save_CC="$CC"
8164ac_ext=c
8165ac_cpp='$CPP $CPPFLAGS'
8166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171# Source file extension for C test sources.
8172ac_ext=c
8173
8174# Object file extension for compiled C test sources.
8175objext=o
8176objext=$objext
8177
8178# Code to be used in simple compile tests
8179lt_simple_compile_test_code="int some_variable = 0;"
8180
8181# Code to be used in simple link tests
8182lt_simple_link_test_code='int main(){return(0);}'
8183
8184
8185
8186
8187
8188
8189
8190# If no C compiler was specified, use CC.
8191LTCC=${LTCC-"$CC"}
8192
8193# If no C compiler flags were specified, use CFLAGS.
8194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8195
8196# Allow CC to be a program name with arguments.
8197compiler=$CC
8198
8199# Save the default compiler, since it gets overwritten when the other
8200# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8201compiler_DEFAULT=$CC
8202
8203# save warnings/boilerplate of simple test code
8204ac_outfile=conftest.$ac_objext
8205echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8206eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207_lt_compiler_boilerplate=`cat conftest.err`
8208$RM conftest*
8209
8210ac_outfile=conftest.$ac_objext
8211echo "$lt_simple_link_test_code" >conftest.$ac_ext
8212eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8213_lt_linker_boilerplate=`cat conftest.err`
8214$RM -r conftest*
8215
8216
8217## CAVEAT EMPTOR:
8218## There is no encapsulation within the following macros, do not change
8219## the running order or otherwise move them around unless you know exactly
8220## what you are doing...
8221if test -n "$compiler"; then
8222
8223lt_prog_compiler_no_builtin_flag=
8224
8225if test "$GCC" = yes; then
8226 case $cc_basename in
8227 nvcc*)
8228 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8229 *)
8230 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 8231 esac
6bb11ab3
L
8232
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8234$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8235if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 8236 $as_echo_n "(cached) " >&6
f0569246 8237else
6bb11ab3
L
8238 lt_cv_prog_compiler_rtti_exceptions=no
8239 ac_outfile=conftest.$ac_objext
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="-fno-rtti -fno-exceptions"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 # The option is referenced via a variable to avoid confusing sed.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>conftest.err)
8253 ac_status=$?
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s "$ac_outfile"; then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings other than the usual output.
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_rtti_exceptions=yes
8263 fi
8264 fi
8265 $RM conftest*
8266
f0569246 8267fi
6bb11ab3
L
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8269$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8270
8271if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8272 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8273else
8274 :
8275fi
8276
8277fi
8278
8279
8280
8281
8282
8283
8284 lt_prog_compiler_wl=
8285lt_prog_compiler_pic=
8286lt_prog_compiler_static=
8287
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8289$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8290
8291 if test "$GCC" = yes; then
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_static='-static'
8294
8295 case $host_os in
8296 aix*)
8297 # All AIX code is PIC.
8298 if test "$host_cpu" = ia64; then
8299 # AIX 5 now supports IA64 processor
8300 lt_prog_compiler_static='-Bstatic'
8301 fi
8302 lt_prog_compiler_pic='-fPIC'
8303 ;;
8304
8305 amigaos*)
8306 case $host_cpu in
8307 powerpc)
8308 # see comment about AmigaOS4 .so support
8309 lt_prog_compiler_pic='-fPIC'
8310 ;;
8311 m68k)
8312 # FIXME: we need at least 68020 code to build shared libraries, but
8313 # adding the `-m68020' flag to GCC prevents building anything better,
8314 # like `-m68040'.
8315 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8316 ;;
8317 esac
8318 ;;
8319
8320 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8321 # PIC is the default for these OSes.
8322 ;;
8323
8324 mingw* | cygwin* | pw32* | os2* | cegcc*)
8325 # This hack is so that the source file can tell whether it is being
8326 # built for inclusion in a dll (and should export symbols for example).
8327 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8328 # (--disable-auto-import) libraries
8329 lt_prog_compiler_pic='-DDLL_EXPORT'
8330 ;;
8331
8332 darwin* | rhapsody*)
8333 # PIC is the default on this platform
8334 # Common symbols not allowed in MH_DYLIB files
8335 lt_prog_compiler_pic='-fno-common'
8336 ;;
8337
8338 haiku*)
8339 # PIC is the default for Haiku.
8340 # The "-static" flag exists, but is broken.
8341 lt_prog_compiler_static=
8342 ;;
8343
8344 hpux*)
8345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8347 # sets the default TLS model and affects inlining.
8348 case $host_cpu in
8349 hppa*64*)
8350 # +Z the default
8351 ;;
8352 *)
8353 lt_prog_compiler_pic='-fPIC'
8354 ;;
8355 esac
8356 ;;
8357
8358 interix[3-9]*)
8359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8360 # Instead, we relocate shared libraries at runtime.
8361 ;;
8362
8363 msdosdjgpp*)
8364 # Just because we use GCC doesn't mean we suddenly get shared libraries
8365 # on systems that don't support them.
8366 lt_prog_compiler_can_build_shared=no
8367 enable_shared=no
8368 ;;
8369
8370 *nto* | *qnx*)
8371 # QNX uses GNU C++, but need to define -shared option too, otherwise
8372 # it will coredump.
8373 lt_prog_compiler_pic='-fPIC -shared'
8374 ;;
8375
8376 sysv4*MP*)
8377 if test -d /usr/nec; then
8378 lt_prog_compiler_pic=-Kconform_pic
8379 fi
8380 ;;
8381
8382 *)
8383 lt_prog_compiler_pic='-fPIC'
8384 ;;
8385 esac
8386
8387 case $cc_basename in
8388 nvcc*) # Cuda Compiler Driver 2.2
8389 lt_prog_compiler_wl='-Xlinker '
8390 lt_prog_compiler_pic='-Xcompiler -fPIC'
8391 ;;
8392 esac
8393 else
8394 # PORTME Check for flag to pass linker flags through the system compiler.
8395 case $host_os in
8396 aix*)
8397 lt_prog_compiler_wl='-Wl,'
8398 if test "$host_cpu" = ia64; then
8399 # AIX 5 now supports IA64 processor
8400 lt_prog_compiler_static='-Bstatic'
8401 else
8402 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8403 fi
8404 ;;
8405
8406 mingw* | cygwin* | pw32* | os2* | cegcc*)
8407 # This hack is so that the source file can tell whether it is being
8408 # built for inclusion in a dll (and should export symbols for example).
8409 lt_prog_compiler_pic='-DDLL_EXPORT'
8410 ;;
8411
8412 hpux9* | hpux10* | hpux11*)
8413 lt_prog_compiler_wl='-Wl,'
8414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8415 # not for PA HP-UX.
8416 case $host_cpu in
8417 hppa*64*|ia64*)
8418 # +Z the default
8419 ;;
8420 *)
8421 lt_prog_compiler_pic='+Z'
8422 ;;
8423 esac
8424 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8425 lt_prog_compiler_static='${wl}-a ${wl}archive'
8426 ;;
8427
8428 irix5* | irix6* | nonstopux*)
8429 lt_prog_compiler_wl='-Wl,'
8430 # PIC (with -KPIC) is the default.
8431 lt_prog_compiler_static='-non_shared'
8432 ;;
8433
8434 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8435 case $cc_basename in
8436 # old Intel for x86_64 which still supported -KPIC.
8437 ecc*)
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-static'
8441 ;;
8442 # icc used to be incompatible with GCC.
8443 # ICC 10 doesn't accept -KPIC any more.
8444 icc* | ifort*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_pic='-fPIC'
8447 lt_prog_compiler_static='-static'
8448 ;;
8449 # Lahey Fortran 8.1.
8450 lf95*)
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_pic='--shared'
8453 lt_prog_compiler_static='--static'
8454 ;;
8455 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8456 # Portland Group compilers (*not* the Pentium gcc compiler,
8457 # which looks to be a dead project)
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='-fpic'
8460 lt_prog_compiler_static='-Bstatic'
8461 ;;
8462 ccc*)
8463 lt_prog_compiler_wl='-Wl,'
8464 # All Alpha code is PIC.
8465 lt_prog_compiler_static='-non_shared'
8466 ;;
8467 xl* | bgxl* | bgf* | mpixl*)
8468 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8469 lt_prog_compiler_wl='-Wl,'
8470 lt_prog_compiler_pic='-qpic'
8471 lt_prog_compiler_static='-qstaticlink'
8472 ;;
8473 *)
8474 case `$CC -V 2>&1 | sed 5q` in
8475 *Sun\ F* | *Sun*Fortran*)
8476 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8477 lt_prog_compiler_pic='-KPIC'
8478 lt_prog_compiler_static='-Bstatic'
8479 lt_prog_compiler_wl=''
8480 ;;
8481 *Sun\ C*)
8482 # Sun C 5.9
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 lt_prog_compiler_wl='-Wl,'
8486 ;;
8487 esac
8488 ;;
8489 esac
8490 ;;
8491
8492 newsos6)
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-Bstatic'
8495 ;;
8496
8497 *nto* | *qnx*)
8498 # QNX uses GNU C++, but need to define -shared option too, otherwise
8499 # it will coredump.
8500 lt_prog_compiler_pic='-fPIC -shared'
8501 ;;
8502
8503 osf3* | osf4* | osf5*)
8504 lt_prog_compiler_wl='-Wl,'
8505 # All OSF/1 code is PIC.
8506 lt_prog_compiler_static='-non_shared'
8507 ;;
8508
8509 rdos*)
8510 lt_prog_compiler_static='-non_shared'
8511 ;;
8512
8513 solaris*)
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 case $cc_basename in
8517 f77* | f90* | f95*)
8518 lt_prog_compiler_wl='-Qoption ld ';;
8519 *)
8520 lt_prog_compiler_wl='-Wl,';;
8521 esac
8522 ;;
f0569246 8523
6bb11ab3
L
8524 sunos4*)
8525 lt_prog_compiler_wl='-Qoption ld '
8526 lt_prog_compiler_pic='-PIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 ;;
f0569246 8529
6bb11ab3
L
8530 sysv4 | sysv4.2uw2* | sysv4.3*)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 ;;
f0569246 8535
6bb11ab3
L
8536 sysv4*MP*)
8537 if test -d /usr/nec ;then
8538 lt_prog_compiler_pic='-Kconform_pic'
8539 lt_prog_compiler_static='-Bstatic'
8540 fi
8541 ;;
8542
8543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_pic='-KPIC'
8546 lt_prog_compiler_static='-Bstatic'
8547 ;;
8548
8549 unicos*)
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_can_build_shared=no
8552 ;;
8553
8554 uts4*)
8555 lt_prog_compiler_pic='-pic'
8556 lt_prog_compiler_static='-Bstatic'
8557 ;;
8558
8559 *)
8560 lt_prog_compiler_can_build_shared=no
8561 ;;
8562 esac
8563 fi
8564
8565case $host_os in
8566 # For platforms which do not support PIC, -DPIC is meaningless:
8567 *djgpp*)
8568 lt_prog_compiler_pic=
8569 ;;
8570 *)
8571 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8572 ;;
81ecdfbb 8573esac
6bb11ab3
L
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8575$as_echo "$lt_prog_compiler_pic" >&6; }
8576
8577
8578
8579
8580
8581
8582#
8583# Check to make sure the PIC flag actually works.
8584#
8585if test -n "$lt_prog_compiler_pic"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8587$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8588if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8589 $as_echo_n "(cached) " >&6
b7026657 8590else
6bb11ab3
L
8591 lt_cv_prog_compiler_pic_works=no
8592 ac_outfile=conftest.$ac_objext
8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8595 # Insert the option either (1) after the last *FLAGS variable, or
8596 # (2) before a word containing "conftest.", or (3) at the end.
8597 # Note that $ac_compile itself does not contain backslashes and begins
8598 # with a dollar sign (not a hyphen), so the echo should work correctly.
8599 # The option is referenced via a variable to avoid confusing sed.
8600 lt_compile=`echo "$ac_compile" | $SED \
8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603 -e 's:$: $lt_compiler_flag:'`
8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605 (eval "$lt_compile" 2>conftest.err)
8606 ac_status=$?
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 if (exit $ac_status) && test -s "$ac_outfile"; then
8610 # The compiler can only warn and ignore the option if not recognized
8611 # So say no if there are warnings other than the usual output.
8612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8615 lt_cv_prog_compiler_pic_works=yes
8616 fi
8617 fi
8618 $RM conftest*
b7026657 8619
b7026657 8620fi
6bb11ab3
L
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8622$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8623
8624if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8625 case $lt_prog_compiler_pic in
8626 "" | " "*) ;;
8627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8628 esac
8629else
8630 lt_prog_compiler_pic=
8631 lt_prog_compiler_can_build_shared=no
f0569246 8632fi
6bb11ab3
L
8633
8634fi
8635
8636
8637
8638
8639
8640
8641#
8642# Check to make sure the static flag actually works.
8643#
8644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8646$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8647if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8648 $as_echo_n "(cached) " >&6
f0569246 8649else
6bb11ab3
L
8650 lt_cv_prog_compiler_static_works=no
8651 save_LDFLAGS="$LDFLAGS"
8652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8655 # The linker can only warn and ignore the option if not recognized
8656 # So say no if there are warnings
8657 if test -s conftest.err; then
8658 # Append any errors to the config.log.
8659 cat conftest.err 1>&5
8660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8662 if diff conftest.exp conftest.er2 >/dev/null; then
8663 lt_cv_prog_compiler_static_works=yes
8664 fi
8665 else
8666 lt_cv_prog_compiler_static_works=yes
8667 fi
8668 fi
8669 $RM -r conftest*
8670 LDFLAGS="$save_LDFLAGS"
f0569246 8671
6bb11ab3
L
8672fi
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8674$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 8675
6bb11ab3
L
8676if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8677 :
f0569246 8678else
6bb11ab3 8679 lt_prog_compiler_static=
f0569246 8680fi
b7026657 8681
6bb11ab3
L
8682
8683
8684
8685
8686
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8690if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8691 $as_echo_n "(cached) " >&6
81ecdfbb 8692else
6bb11ab3
L
8693 lt_cv_prog_compiler_c_o=no
8694 $RM -r conftest 2>/dev/null
8695 mkdir conftest
8696 cd conftest
8697 mkdir out
8698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8699
8700 lt_compiler_flag="-o out/conftest2.$ac_objext"
8701 # Insert the option either (1) after the last *FLAGS variable, or
8702 # (2) before a word containing "conftest.", or (3) at the end.
8703 # Note that $ac_compile itself does not contain backslashes and begins
8704 # with a dollar sign (not a hyphen), so the echo should work correctly.
8705 lt_compile=`echo "$ac_compile" | $SED \
8706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8708 -e 's:$: $lt_compiler_flag:'`
8709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8710 (eval "$lt_compile" 2>out/conftest.err)
8711 ac_status=$?
8712 cat out/conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8715 then
8716 # The compiler can only warn and ignore the option if not recognized
8717 # So say no if there are warnings
8718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8721 lt_cv_prog_compiler_c_o=yes
8722 fi
8723 fi
8724 chmod u+w . 2>&5
8725 $RM conftest*
8726 # SGI C++ compiler will create directory out/ii_files/ for
8727 # template instantiation
8728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8729 $RM out/* && rmdir out
8730 cd ..
8731 $RM -r conftest
8732 $RM conftest*
8733
81ecdfbb 8734fi
6bb11ab3
L
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8736$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8737
8738
8739
8740
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8745if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8746 $as_echo_n "(cached) " >&6
8747else
6bb11ab3
L
8748 lt_cv_prog_compiler_c_o=no
8749 $RM -r conftest 2>/dev/null
8750 mkdir conftest
8751 cd conftest
8752 mkdir out
8753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8754
8755 lt_compiler_flag="-o out/conftest2.$ac_objext"
8756 # Insert the option either (1) after the last *FLAGS variable, or
8757 # (2) before a word containing "conftest.", or (3) at the end.
8758 # Note that $ac_compile itself does not contain backslashes and begins
8759 # with a dollar sign (not a hyphen), so the echo should work correctly.
8760 lt_compile=`echo "$ac_compile" | $SED \
8761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763 -e 's:$: $lt_compiler_flag:'`
8764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8765 (eval "$lt_compile" 2>out/conftest.err)
8766 ac_status=$?
8767 cat out/conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8770 then
8771 # The compiler can only warn and ignore the option if not recognized
8772 # So say no if there are warnings
8773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8776 lt_cv_prog_compiler_c_o=yes
8777 fi
8778 fi
8779 chmod u+w . 2>&5
8780 $RM conftest*
8781 # SGI C++ compiler will create directory out/ii_files/ for
8782 # template instantiation
8783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8784 $RM out/* && rmdir out
8785 cd ..
8786 $RM -r conftest
8787 $RM conftest*
8788
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8792
8793
8794
8795
8796hard_links="nottested"
8797if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8798 # do not overwrite the value of need_locks provided by the user
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8800$as_echo_n "checking if we can lock with hard links... " >&6; }
8801 hard_links=yes
8802 $RM conftest*
8803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8804 touch conftest.a
8805 ln conftest.a conftest.b 2>&5 || hard_links=no
8806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8808$as_echo "$hard_links" >&6; }
8809 if test "$hard_links" = no; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8811$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8812 need_locks=warn
8813 fi
8814else
8815 need_locks=no
8816fi
8817
8818
8819
8820
8821
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8825
8826 runpath_var=
8827 allow_undefined_flag=
8828 always_export_symbols=no
8829 archive_cmds=
8830 archive_expsym_cmds=
8831 compiler_needs_object=no
8832 enable_shared_with_static_runtimes=no
8833 export_dynamic_flag_spec=
8834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8835 hardcode_automatic=no
8836 hardcode_direct=no
8837 hardcode_direct_absolute=no
8838 hardcode_libdir_flag_spec=
8839 hardcode_libdir_flag_spec_ld=
8840 hardcode_libdir_separator=
8841 hardcode_minus_L=no
8842 hardcode_shlibpath_var=unsupported
8843 inherit_rpath=no
8844 link_all_deplibs=unknown
8845 module_cmds=
8846 module_expsym_cmds=
8847 old_archive_from_new_cmds=
8848 old_archive_from_expsyms_cmds=
8849 thread_safe_flag_spec=
8850 whole_archive_flag_spec=
8851 # include_expsyms should be a list of space-separated symbols to be *always*
8852 # included in the symbol list
8853 include_expsyms=
8854 # exclude_expsyms can be an extended regexp of symbols to exclude
8855 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8856 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8857 # as well as any symbol that contains `d'.
8858 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8859 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8860 # platforms (ab)use it in PIC code, but their linkers get confused if
8861 # the symbol is explicitly referenced. Since portable code cannot
8862 # rely on this symbol name, it's probably fine to never include it in
8863 # preloaded symbol tables.
8864 # Exclude shared library initialization/finalization symbols.
8865 extract_expsyms_cmds=
8866
8867 case $host_os in
8868 cygwin* | mingw* | pw32* | cegcc*)
8869 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8870 # When not using gcc, we currently assume that we are using
8871 # Microsoft Visual C++.
8872 if test "$GCC" != yes; then
8873 with_gnu_ld=no
8874 fi
8875 ;;
8876 interix*)
8877 # we just hope/assume this is gcc and not c89 (= MSVC++)
8878 with_gnu_ld=yes
8879 ;;
8880 openbsd*)
8881 with_gnu_ld=no
8882 ;;
8883 esac
f0569246 8884
6bb11ab3
L
8885 ld_shlibs=yes
8886
8887 # On some targets, GNU ld is compatible enough with the native linker
8888 # that we're better off using the native interface for both.
8889 lt_use_gnu_ld_interface=no
8890 if test "$with_gnu_ld" = yes; then
8891 case $host_os in
8892 aix*)
8893 # The AIX port of GNU ld has always aspired to compatibility
8894 # with the native linker. However, as the warning in the GNU ld
8895 # block says, versions before 2.19.5* couldn't really create working
8896 # shared libraries, regardless of the interface used.
8897 case `$LD -v 2>&1` in
8898 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8899 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8900 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8901 *)
8902 lt_use_gnu_ld_interface=yes
8903 ;;
8904 esac
8905 ;;
8906 *)
8907 lt_use_gnu_ld_interface=yes
8908 ;;
8909 esac
8910 fi
f0569246 8911
6bb11ab3
L
8912 if test "$lt_use_gnu_ld_interface" = yes; then
8913 # If archive_cmds runs LD, not CC, wlarc should be empty
8914 wlarc='${wl}'
8915
8916 # Set some defaults for GNU ld with shared library support. These
8917 # are reset later if shared libraries are not supported. Putting them
8918 # here allows them to be overridden if necessary.
8919 runpath_var=LD_RUN_PATH
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 export_dynamic_flag_spec='${wl}--export-dynamic'
8922 # ancient GNU ld didn't support --whole-archive et. al.
8923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8925 else
8926 whole_archive_flag_spec=
8927 fi
8928 supports_anon_versioning=no
8929 case `$LD -v 2>&1` in
8930 *GNU\ gold*) supports_anon_versioning=yes ;;
8931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8934 *\ 2.11.*) ;; # other 2.11 versions
8935 *) supports_anon_versioning=yes ;;
8936 esac
8937
8938 # See if GNU ld supports shared libraries.
8939 case $host_os in
8940 aix[3-9]*)
8941 # On AIX/PPC, the GNU linker is very broken
8942 if test "$host_cpu" != ia64; then
8943 ld_shlibs=no
8944 cat <<_LT_EOF 1>&2
8945
8946*** Warning: the GNU linker, at least up to release 2.19, is reported
8947*** to be unable to reliably create shared libraries on AIX.
8948*** Therefore, libtool is disabling shared libraries support. If you
8949*** really care for shared libraries, you may want to install binutils
8950*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8951*** You will then need to restart the configuration process.
8952
8953_LT_EOF
8954 fi
8955 ;;
8956
8957 amigaos*)
8958 case $host_cpu in
8959 powerpc)
8960 # see comment about AmigaOS4 .so support
8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 archive_expsym_cmds=''
8963 ;;
8964 m68k)
8965 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)'
8966 hardcode_libdir_flag_spec='-L$libdir'
8967 hardcode_minus_L=yes
8968 ;;
8969 esac
8970 ;;
8971
8972 beos*)
8973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8974 allow_undefined_flag=unsupported
8975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8976 # support --undefined. This deserves some investigation. FIXME
8977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 else
8979 ld_shlibs=no
8980 fi
8981 ;;
8982
8983 cygwin* | mingw* | pw32* | cegcc*)
8984 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8985 # as there is no search path for DLLs.
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 export_dynamic_flag_spec='${wl}--export-all-symbols'
8988 allow_undefined_flag=unsupported
8989 always_export_symbols=no
8990 enable_shared_with_static_runtimes=yes
8991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8992
8993 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995 # If the export-symbols file already is a .def file (1st line
8996 # is EXPORTS), use it as is; otherwise, prepend...
8997 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998 cp $export_symbols $output_objdir/$soname.def;
8999 else
9000 echo EXPORTS > $output_objdir/$soname.def;
9001 cat $export_symbols >> $output_objdir/$soname.def;
9002 fi~
9003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004 else
9005 ld_shlibs=no
9006 fi
9007 ;;
9008
9009 haiku*)
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 link_all_deplibs=yes
9012 ;;
9013
9014 interix[3-9]*)
9015 hardcode_direct=no
9016 hardcode_shlibpath_var=no
9017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9018 export_dynamic_flag_spec='${wl}-E'
9019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9020 # Instead, shared libraries are loaded at an image base (0x10000000 by
9021 # default) and relocated if they conflict, which is a slow very memory
9022 # consuming and fragmenting process. To avoid this, we pick a random,
9023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9026 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'
9027 ;;
9028
9029 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9030 tmp_diet=no
9031 if test "$host_os" = linux-dietlibc; then
9032 case $cc_basename in
9033 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9034 esac
9035 fi
9036 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9037 && test "$tmp_diet" = no
9038 then
5cddc23a 9039 tmp_addflag=' $pic_flag'
6bb11ab3
L
9040 tmp_sharedflag='-shared'
9041 case $cc_basename,$host_cpu in
9042 pgcc*) # Portland Group C compiler
9043 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'
9044 tmp_addflag=' $pic_flag'
9045 ;;
9046 pgf77* | pgf90* | pgf95* | pgfortran*)
9047 # Portland Group f77 and f90 compilers
9048 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'
9049 tmp_addflag=' $pic_flag -Mnomain' ;;
9050 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9051 tmp_addflag=' -i_dynamic' ;;
9052 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9053 tmp_addflag=' -i_dynamic -nofor_main' ;;
9054 ifc* | ifort*) # Intel Fortran compiler
9055 tmp_addflag=' -nofor_main' ;;
9056 lf95*) # Lahey Fortran 8.1
9057 whole_archive_flag_spec=
9058 tmp_sharedflag='--shared' ;;
9059 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9060 tmp_sharedflag='-qmkshrobj'
9061 tmp_addflag= ;;
9062 nvcc*) # Cuda Compiler Driver 2.2
9063 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'
9064 compiler_needs_object=yes
9065 ;;
9066 esac
9067 case `$CC -V 2>&1 | sed 5q` in
9068 *Sun\ C*) # Sun C 5.9
9069 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'
9070 compiler_needs_object=yes
9071 tmp_sharedflag='-G' ;;
9072 *Sun\ F*) # Sun Fortran 8.3
9073 tmp_sharedflag='-G' ;;
9074 esac
9075 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076
9077 if test "x$supports_anon_versioning" = xyes; then
9078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9080 echo "local: *; };" >> $output_objdir/$libname.ver~
9081 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9082 fi
9083
9084 case $cc_basename in
9085 xlf* | bgf* | bgxlf* | mpixlf*)
9086 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9087 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9088 hardcode_libdir_flag_spec=
9089 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9090 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9091 if test "x$supports_anon_versioning" = xyes; then
9092 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9094 echo "local: *; };" >> $output_objdir/$libname.ver~
9095 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9096 fi
9097 ;;
9098 esac
9099 else
9100 ld_shlibs=no
9101 fi
9102 ;;
9103
9104 netbsd*)
9105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9106 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9107 wlarc=
9108 else
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9111 fi
9112 ;;
9113
9114 solaris*)
9115 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9116 ld_shlibs=no
9117 cat <<_LT_EOF 1>&2
9118
9119*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9120*** create shared libraries on Solaris systems. Therefore, libtool
9121*** is disabling shared libraries support. We urge you to upgrade GNU
9122*** binutils to release 2.9.1 or newer. Another option is to modify
9123*** your PATH or compiler configuration so that the native linker is
9124*** used, and then restart.
9125
9126_LT_EOF
9127 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130 else
9131 ld_shlibs=no
9132 fi
9133 ;;
9134
9135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9136 case `$LD -v 2>&1` in
9137 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9138 ld_shlibs=no
9139 cat <<_LT_EOF 1>&2
9140
9141*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9142*** reliably create shared libraries on SCO systems. Therefore, libtool
9143*** is disabling shared libraries support. We urge you to upgrade GNU
9144*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9145*** your PATH or compiler configuration so that the native linker is
9146*** used, and then restart.
9147
9148_LT_EOF
9149 ;;
9150 *)
9151 # For security reasons, it is highly recommended that you always
9152 # use absolute paths for naming shared libraries, and exclude the
9153 # DT_RUNPATH tag from executables and libraries. But doing so
9154 # requires that you compile everything twice, which is a pain.
9155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163 esac
9164 ;;
9165
9166 sunos4*)
9167 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9168 wlarc=
9169 hardcode_direct=yes
9170 hardcode_shlibpath_var=no
9171 ;;
9172
9173 *)
9174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177 else
9178 ld_shlibs=no
9179 fi
9180 ;;
9181 esac
9182
9183 if test "$ld_shlibs" = no; then
9184 runpath_var=
9185 hardcode_libdir_flag_spec=
9186 export_dynamic_flag_spec=
9187 whole_archive_flag_spec=
9188 fi
9189 else
9190 # PORTME fill in a description of your system's linker (not GNU ld)
9191 case $host_os in
9192 aix3*)
9193 allow_undefined_flag=unsupported
9194 always_export_symbols=yes
9195 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'
9196 # Note: this linker hardcodes the directories in LIBPATH if there
9197 # are no directories specified by -L.
9198 hardcode_minus_L=yes
9199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9200 # Neither direct hardcoding nor static linking is supported with a
9201 # broken collect2.
9202 hardcode_direct=unsupported
9203 fi
9204 ;;
9205
9206 aix[4-9]*)
9207 if test "$host_cpu" = ia64; then
9208 # On IA64, the linker does run time linking by default, so we don't
9209 # have to do anything special.
9210 aix_use_runtimelinking=no
9211 exp_sym_flag='-Bexport'
9212 no_entry_flag=""
9213 else
9214 # If we're using GNU nm, then we don't want the "-C" option.
9215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9216 # Also, AIX nm treats weak defined symbols like other global
9217 # defined symbols, whereas GNU nm marks them as "W".
9218 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9219 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'
9220 else
5c887dd5 9221 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'
6bb11ab3
L
9222 fi
9223 aix_use_runtimelinking=no
9224
9225 # Test if we are trying to use run time linking or normal
9226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9227 # need to do runtime linking.
9228 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9229 for ld_flag in $LDFLAGS; do
9230 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9231 aix_use_runtimelinking=yes
9232 break
9233 fi
9234 done
9235 ;;
9236 esac
9237
9238 exp_sym_flag='-bexport'
9239 no_entry_flag='-bnoentry'
9240 fi
9241
9242 # When large executables or shared objects are built, AIX ld can
9243 # have problems creating the table of contents. If linking a library
9244 # or program results in "error TOC overflow" add -mminimal-toc to
9245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9247
9248 archive_cmds=''
9249 hardcode_direct=yes
9250 hardcode_direct_absolute=yes
9251 hardcode_libdir_separator=':'
9252 link_all_deplibs=yes
9253 file_list_spec='${wl}-f,'
9254
9255 if test "$GCC" = yes; then
9256 case $host_os in aix4.[012]|aix4.[012].*)
9257 # We only want to do this on AIX 4.2 and lower, the check
9258 # below for broken collect2 doesn't work under 4.3+
9259 collect2name=`${CC} -print-prog-name=collect2`
9260 if test -f "$collect2name" &&
9261 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9262 then
9263 # We have reworked collect2
9264 :
9265 else
9266 # We have old collect2
9267 hardcode_direct=unsupported
9268 # It fails to find uninstalled libraries when the uninstalled
9269 # path is not listed in the libpath. Setting hardcode_minus_L
9270 # to unsupported forces relinking
9271 hardcode_minus_L=yes
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_libdir_separator=
9274 fi
9275 ;;
9276 esac
9277 shared_flag='-shared'
9278 if test "$aix_use_runtimelinking" = yes; then
9279 shared_flag="$shared_flag "'${wl}-G'
9280 fi
9281 else
9282 # not using gcc
9283 if test "$host_cpu" = ia64; then
9284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9285 # chokes on -Wl,-G. The following line is correct:
9286 shared_flag='-G'
9287 else
9288 if test "$aix_use_runtimelinking" = yes; then
9289 shared_flag='${wl}-G'
9290 else
9291 shared_flag='${wl}-bM:SRE'
9292 fi
9293 fi
9294 fi
9295
9296 export_dynamic_flag_spec='${wl}-bexpall'
9297 # It seems that -bexpall does not export symbols beginning with
9298 # underscore (_), so it is better to generate a list of symbols to export.
9299 always_export_symbols=yes
9300 if test "$aix_use_runtimelinking" = yes; then
9301 # Warning - without using the other runtime loading flags (-brtl),
9302 # -berok will link without error, but may produce a broken library.
9303 allow_undefined_flag='-berok'
9304 # Determine the default libpath from the value encoded in an
9305 # empty executable.
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
9307/* end confdefs.h. */
9308
9309int
9310main ()
9311{
9312
9313 ;
9314 return 0;
9315}
9316_ACEOF
6bb11ab3 9317if ac_fn_c_try_link "$LINENO"; then :
b7026657 9318
6bb11ab3
L
9319lt_aix_libpath_sed='
9320 /Import File Strings/,/^$/ {
9321 /^0/ {
9322 s/^0 *\(.*\)$/\1/
9323 p
9324 }
9325 }'
9326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327# Check for a 64-bit object if we didn't find anything.
9328if test -z "$aix_libpath"; then
9329 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9330fi
9331fi
9332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9335
9336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9337 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"
9338 else
9339 if test "$host_cpu" = ia64; then
9340 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9341 allow_undefined_flag="-z nodefs"
9342 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"
9343 else
9344 # Determine the default libpath from the value encoded in an
9345 # empty executable.
81ecdfbb
RW
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h. */
9348
9349int
9350main ()
9351{
9352
9353 ;
9354 return 0;
9355}
9356_ACEOF
6bb11ab3
L
9357if ac_fn_c_try_link "$LINENO"; then :
9358
9359lt_aix_libpath_sed='
9360 /Import File Strings/,/^$/ {
9361 /^0/ {
9362 s/^0 *\(.*\)$/\1/
9363 p
9364 }
9365 }'
9366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9367# Check for a 64-bit object if we didn't find anything.
9368if test -z "$aix_libpath"; then
9369 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
81ecdfbb 9370fi
81ecdfbb 9371fi
6bb11ab3
L
9372rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375
9376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9377 # Warning - without using the other run time loading flags,
9378 # -berok will link without error, but may produce a broken library.
9379 no_undefined_flag=' ${wl}-bernotok'
9380 allow_undefined_flag=' ${wl}-berok'
9381 if test "$with_gnu_ld" = yes; then
9382 # We only use this code for GNU lds that support --whole-archive.
9383 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9384 else
9385 # Exported symbols can be pulled into shared objects from archives
9386 whole_archive_flag_spec='$convenience'
9387 fi
9388 archive_cmds_need_lc=yes
9389 # This is similar to how AIX traditionally builds its shared libraries.
9390 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'
9391 fi
9392 fi
9393 ;;
9394
9395 amigaos*)
9396 case $host_cpu in
9397 powerpc)
9398 # see comment about AmigaOS4 .so support
9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 archive_expsym_cmds=''
9401 ;;
9402 m68k)
9403 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)'
9404 hardcode_libdir_flag_spec='-L$libdir'
9405 hardcode_minus_L=yes
9406 ;;
9407 esac
9408 ;;
9409
9410 bsdi[45]*)
9411 export_dynamic_flag_spec=-rdynamic
9412 ;;
9413
9414 cygwin* | mingw* | pw32* | cegcc*)
9415 # When not using gcc, we currently assume that we are using
9416 # Microsoft Visual C++.
9417 # hardcode_libdir_flag_spec is actually meaningless, as there is
9418 # no search path for DLLs.
9419 hardcode_libdir_flag_spec=' '
9420 allow_undefined_flag=unsupported
9421 # Tell ltmain to make .lib files, not .a files.
9422 libext=lib
9423 # Tell ltmain to make .dll files, not .so files.
9424 shrext_cmds=".dll"
9425 # FIXME: Setting linknames here is a bad hack.
9426 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9427 # The linker will automatically build a .lib file if we build a DLL.
9428 old_archive_from_new_cmds='true'
9429 # FIXME: Should let the user specify the lib program.
9430 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9431 fix_srcfile_path='`cygpath -w "$srcfile"`'
9432 enable_shared_with_static_runtimes=yes
9433 ;;
9434
9435 darwin* | rhapsody*)
9436
9437
9438 archive_cmds_need_lc=no
9439 hardcode_direct=no
9440 hardcode_automatic=yes
9441 hardcode_shlibpath_var=unsupported
9442 if test "$lt_cv_ld_force_load" = "yes"; then
9443 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\"`'
f0569246 9444 else
6bb11ab3 9445 whole_archive_flag_spec=''
f0569246 9446 fi
6bb11ab3
L
9447 link_all_deplibs=yes
9448 allow_undefined_flag="$_lt_dar_allow_undefined"
9449 case $cc_basename in
9450 ifort*) _lt_dar_can_shared=yes ;;
9451 *) _lt_dar_can_shared=$GCC ;;
9452 esac
9453 if test "$_lt_dar_can_shared" = "yes"; then
9454 output_verbose_link_cmd=func_echo_all
9455 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9456 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9457 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}"
9458 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}"
9459
f0569246 9460 else
6bb11ab3 9461 ld_shlibs=no
f0569246 9462 fi
6bb11ab3
L
9463
9464 ;;
9465
9466 dgux*)
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_libdir_flag_spec='-L$libdir'
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9473 # support. Future versions do this automatically, but an explicit c++rt0.o
9474 # does not break anything, and helps significantly (at the cost of a little
9475 # extra space).
9476 freebsd2.2*)
9477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9478 hardcode_libdir_flag_spec='-R$libdir'
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9484 freebsd2.*)
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_direct=yes
9487 hardcode_minus_L=yes
9488 hardcode_shlibpath_var=no
9489 ;;
9490
9491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9492 freebsd* | dragonfly*)
9493 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_direct=yes
9496 hardcode_shlibpath_var=no
9497 ;;
9498
9499 hpux9*)
9500 if test "$GCC" = yes; then
9501 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'
9502 else
9503 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'
9504 fi
9505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 hardcode_direct=yes
9508
9509 # hardcode_minus_L: Not really in the search PATH,
9510 # but as the default location of the library.
9511 hardcode_minus_L=yes
9512 export_dynamic_flag_spec='${wl}-E'
9513 ;;
9514
9515 hpux10*)
9516 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9517 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9518 else
9519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9520 fi
9521 if test "$with_gnu_ld" = no; then
9522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9523 hardcode_libdir_flag_spec_ld='+b $libdir'
9524 hardcode_libdir_separator=:
9525 hardcode_direct=yes
9526 hardcode_direct_absolute=yes
9527 export_dynamic_flag_spec='${wl}-E'
9528 # hardcode_minus_L: Not really in the search PATH,
9529 # but as the default location of the library.
9530 hardcode_minus_L=yes
9531 fi
9532 ;;
9533
9534 hpux11*)
9535 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9536 case $host_cpu in
9537 hppa*64*)
9538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9539 ;;
9540 ia64*)
9541 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9542 ;;
9543 *)
9544 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9545 ;;
9546 esac
9547 else
9548 case $host_cpu in
9549 hppa*64*)
9550 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 ;;
9552 ia64*)
9553 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9554 ;;
9555 *)
9556
9557 # Older versions of the 11.00 compiler do not understand -b yet
9558 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9560$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9561if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9562 $as_echo_n "(cached) " >&6
f0569246 9563else
6bb11ab3
L
9564 lt_cv_prog_compiler__b=no
9565 save_LDFLAGS="$LDFLAGS"
9566 LDFLAGS="$LDFLAGS -b"
9567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9569 # The linker can only warn and ignore the option if not recognized
9570 # So say no if there are warnings
9571 if test -s conftest.err; then
9572 # Append any errors to the config.log.
9573 cat conftest.err 1>&5
9574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9576 if diff conftest.exp conftest.er2 >/dev/null; then
9577 lt_cv_prog_compiler__b=yes
9578 fi
9579 else
9580 lt_cv_prog_compiler__b=yes
9581 fi
9582 fi
9583 $RM -r conftest*
9584 LDFLAGS="$save_LDFLAGS"
f0569246 9585
6bb11ab3
L
9586fi
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9588$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 9589
6bb11ab3
L
9590if test x"$lt_cv_prog_compiler__b" = xyes; then
9591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9592else
9593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9594fi
81ecdfbb 9595
6bb11ab3
L
9596 ;;
9597 esac
9598 fi
9599 if test "$with_gnu_ld" = no; then
9600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_separator=:
9602
9603 case $host_cpu in
9604 hppa*64*|ia64*)
9605 hardcode_direct=no
9606 hardcode_shlibpath_var=no
9607 ;;
9608 *)
9609 hardcode_direct=yes
9610 hardcode_direct_absolute=yes
9611 export_dynamic_flag_spec='${wl}-E'
9612
9613 # hardcode_minus_L: Not really in the search PATH,
9614 # but as the default location of the library.
9615 hardcode_minus_L=yes
9616 ;;
9617 esac
9618 fi
9619 ;;
9620
9621 irix5* | irix6* | nonstopux*)
9622 if test "$GCC" = yes; then
9623 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'
9624 # Try to use the -exported_symbol ld option, if it does not
9625 # work, assume that -exports_file does not work either and
9626 # implicitly export all symbols.
9627 save_LDFLAGS="$LDFLAGS"
9628 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h. */
9631int foo(void) {}
b7026657 9632_ACEOF
6bb11ab3
L
9633if ac_fn_c_try_link "$LINENO"; then :
9634 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'
c906108c 9635
f0569246 9636fi
6bb11ab3
L
9637rm -f core conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9639 LDFLAGS="$save_LDFLAGS"
9640 else
9641 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'
9642 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'
9643 fi
9644 archive_cmds_need_lc='no'
9645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9646 hardcode_libdir_separator=:
9647 inherit_rpath=yes
9648 link_all_deplibs=yes
9649 ;;
9650
9651 netbsd*)
9652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9654 else
9655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9656 fi
9657 hardcode_libdir_flag_spec='-R$libdir'
9658 hardcode_direct=yes
9659 hardcode_shlibpath_var=no
9660 ;;
9661
9662 newsos6)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=yes
9665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9666 hardcode_libdir_separator=:
9667 hardcode_shlibpath_var=no
9668 ;;
9669
9670 *nto* | *qnx*)
9671 ;;
9672
9673 openbsd*)
9674 if test -f /usr/libexec/ld.so; then
9675 hardcode_direct=yes
9676 hardcode_shlibpath_var=no
9677 hardcode_direct_absolute=yes
9678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9682 export_dynamic_flag_spec='${wl}-E'
9683 else
9684 case $host_os in
9685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_libdir_flag_spec='-R$libdir'
9688 ;;
9689 *)
9690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692 ;;
9693 esac
9694 fi
9695 else
9696 ld_shlibs=no
9697 fi
9698 ;;
9699
9700 os2*)
9701 hardcode_libdir_flag_spec='-L$libdir'
9702 hardcode_minus_L=yes
9703 allow_undefined_flag=unsupported
9704 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'
9705 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9706 ;;
9707
9708 osf3*)
9709 if test "$GCC" = yes; then
9710 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9711 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'
9712 else
9713 allow_undefined_flag=' -expect_unresolved \*'
9714 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'
9715 fi
9716 archive_cmds_need_lc='no'
9717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9718 hardcode_libdir_separator=:
9719 ;;
9720
9721 osf4* | osf5*) # as osf3* with the addition of -msym flag
9722 if test "$GCC" = yes; then
9723 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9724 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'
9725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726 else
9727 allow_undefined_flag=' -expect_unresolved \*'
9728 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'
9729 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~
9730 $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'
9731
9732 # Both c and cxx compiler support -rpath directly
9733 hardcode_libdir_flag_spec='-rpath $libdir'
9734 fi
9735 archive_cmds_need_lc='no'
9736 hardcode_libdir_separator=:
9737 ;;
9738
9739 solaris*)
9740 no_undefined_flag=' -z defs'
9741 if test "$GCC" = yes; then
9742 wlarc='${wl}'
9743 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9745 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9746 else
9747 case `$CC -V 2>&1` in
9748 *"Compilers 5.0"*)
9749 wlarc=''
9750 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9753 ;;
9754 *)
9755 wlarc='${wl}'
9756 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9758 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9759 ;;
9760 esac
9761 fi
9762 hardcode_libdir_flag_spec='-R$libdir'
9763 hardcode_shlibpath_var=no
9764 case $host_os in
9765 solaris2.[0-5] | solaris2.[0-5].*) ;;
9766 *)
9767 # The compiler driver will combine and reorder linker options,
9768 # but understands `-z linker_flag'. GCC discards it without `$wl',
9769 # but is careful enough not to reorder.
9770 # Supported since Solaris 2.6 (maybe 2.5.1?)
9771 if test "$GCC" = yes; then
9772 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9773 else
9774 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9775 fi
9776 ;;
9777 esac
9778 link_all_deplibs=yes
9779 ;;
9780
9781 sunos4*)
9782 if test "x$host_vendor" = xsequent; then
9783 # Use $CC to link under sequent, because it throws in some extra .o
9784 # files that make .init and .fini sections work.
9785 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9786 else
9787 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9788 fi
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_direct=yes
9791 hardcode_minus_L=yes
9792 hardcode_shlibpath_var=no
9793 ;;
9794
9795 sysv4)
9796 case $host_vendor in
9797 sni)
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_direct=yes # is this really true???
9800 ;;
9801 siemens)
9802 ## LD is ld it makes a PLAMLIB
9803 ## CC just makes a GrossModule.
9804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9805 reload_cmds='$CC -r -o $output$reload_objs'
9806 hardcode_direct=no
9807 ;;
9808 motorola)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9811 ;;
9812 esac
9813 runpath_var='LD_RUN_PATH'
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 sysv4.3*)
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_shlibpath_var=no
9820 export_dynamic_flag_spec='-Bexport'
9821 ;;
9822
9823 sysv4*MP*)
9824 if test -d /usr/nec; then
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_shlibpath_var=no
9827 runpath_var=LD_RUN_PATH
9828 hardcode_runpath_var=yes
9829 ld_shlibs=yes
9830 fi
9831 ;;
9832
9833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9834 no_undefined_flag='${wl}-z,text'
9835 archive_cmds_need_lc=no
9836 hardcode_shlibpath_var=no
9837 runpath_var='LD_RUN_PATH'
9838
9839 if test "$GCC" = yes; then
9840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 else
9843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 fi
9846 ;;
9847
9848 sysv5* | sco3.2v5* | sco5v6*)
9849 # Note: We can NOT use -z defs as we might desire, because we do not
9850 # link with -lc, and that would cause any symbols used from libc to
9851 # always be unresolved, which means just about no library would
9852 # ever link correctly. If we're not using GNU ld we use -z text
9853 # though, which does catch some bad symbols but isn't as heavy-handed
9854 # as -z defs.
9855 no_undefined_flag='${wl}-z,text'
9856 allow_undefined_flag='${wl}-z,nodefs'
9857 archive_cmds_need_lc=no
9858 hardcode_shlibpath_var=no
9859 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9860 hardcode_libdir_separator=':'
9861 link_all_deplibs=yes
9862 export_dynamic_flag_spec='${wl}-Bexport'
9863 runpath_var='LD_RUN_PATH'
9864
9865 if test "$GCC" = yes; then
9866 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 else
9869 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871 fi
9872 ;;
9873
9874 uts4*)
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_libdir_flag_spec='-L$libdir'
9877 hardcode_shlibpath_var=no
9878 ;;
9879
9880 *)
9881 ld_shlibs=no
9882 ;;
9883 esac
9884
9885 if test x$host_vendor = xsni; then
9886 case $host in
9887 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9888 export_dynamic_flag_spec='${wl}-Blargedynsym'
9889 ;;
9890 esac
9891 fi
9892 fi
9893
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9895$as_echo "$ld_shlibs" >&6; }
9896test "$ld_shlibs" = no && can_build_shared=no
9897
9898with_gnu_ld=$with_gnu_ld
9899
9900
9901
9902
b7026657 9903
f0569246 9904
f0569246 9905
6ffe910a 9906
6ffe910a
MF
9907
9908
6ffe910a 9909
f0569246 9910
f0569246 9911
c906108c 9912
6bb11ab3
L
9913
9914#
9915# Do we need to explicitly link libc?
9916#
9917case "x$archive_cmds_need_lc" in
9918x|xyes)
9919 # Assume -lc should be added
9920 archive_cmds_need_lc=yes
9921
9922 if test "$enable_shared" = yes && test "$GCC" = yes; then
9923 case $archive_cmds in
9924 *'~'*)
9925 # FIXME: we may have to deal with multi-command sequences.
9926 ;;
9927 '$CC '*)
9928 # Test whether the compiler implicitly links with -lc since on some
9929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9930 # to ld, don't add -lc before -lgcc.
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9932$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9933if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9934 $as_echo_n "(cached) " >&6
f0569246 9935else
6bb11ab3
L
9936 $RM conftest*
9937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9938
9939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9940 (eval $ac_compile) 2>&5
9941 ac_status=$?
9942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9943 test $ac_status = 0; } 2>conftest.err; then
9944 soname=conftest
9945 lib=conftest
9946 libobjs=conftest.$ac_objext
9947 deplibs=
9948 wl=$lt_prog_compiler_wl
9949 pic_flag=$lt_prog_compiler_pic
9950 compiler_flags=-v
9951 linker_flags=-v
9952 verstring=
9953 output_objdir=.
9954 libname=conftest
9955 lt_save_allow_undefined_flag=$allow_undefined_flag
9956 allow_undefined_flag=
9957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9958 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9959 ac_status=$?
9960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9961 test $ac_status = 0; }
9962 then
9963 lt_cv_archive_cmds_need_lc=no
9964 else
9965 lt_cv_archive_cmds_need_lc=yes
9966 fi
9967 allow_undefined_flag=$lt_save_allow_undefined_flag
9968 else
9969 cat conftest.err 1>&5
9970 fi
9971 $RM conftest*
c906108c 9972
6ffe910a 9973fi
6bb11ab3
L
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9975$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9976 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9977 ;;
9978 esac
9979 fi
9980 ;;
6ffe910a 9981esac
c906108c 9982
c906108c 9983
6ffe910a 9984
c906108c 9985
81ecdfbb 9986
35695fd6 9987
35695fd6 9988
35695fd6 9989
f0569246 9990
c906108c 9991
f0569246 9992
b7026657 9993
f0569246 9994
c906108c 9995
81ecdfbb 9996
b7026657 9997
f0569246
AC
9998
9999
81ecdfbb 10000
81ecdfbb 10001
81ecdfbb
RW
10002
10003
81ecdfbb 10004
81ecdfbb 10005
f0569246
AC
10006
10007
c906108c 10008
f0569246 10009
c906108c 10010
c906108c 10011
81ecdfbb 10012
b7026657 10013
c906108c 10014
f0569246 10015
81ecdfbb 10016
f0569246 10017
c906108c 10018
c906108c 10019
b7026657 10020
81ecdfbb 10021
b7026657 10022
c906108c 10023
c906108c 10024
b7026657
AC
10025
10026
10027
10028
6ffe910a 10029
2232061b
MF
10030
10031
2232061b 10032
2232061b
MF
10033
10034
2232061b
MF
10035
10036
2232061b 10037
2232061b
MF
10038
10039
6bb11ab3
L
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10140$as_echo_n "checking dynamic linker characteristics... " >&6; }
10141
10142if test "$GCC" = yes; then
10143 case $host_os in
10144 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10145 *) lt_awk_arg="/^libraries:/" ;;
10146 esac
10147 case $host_os in
10148 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10149 *) lt_sed_strip_eq="s,=/,/,g" ;;
10150 esac
10151 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10152 case $lt_search_path_spec in
10153 *\;*)
10154 # if the path contains ";" then we assume it to be the separator
10155 # otherwise default to the standard path separator (i.e. ":") - it is
10156 # assumed that no part of a normal pathname contains ";" but that should
10157 # okay in the real world where ";" in dirpaths is itself problematic.
10158 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10159 ;;
10160 *)
10161 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10162 ;;
10163 esac
10164 # Ok, now we have the path, separated by spaces, we can step through it
10165 # and add multilib dir if necessary.
10166 lt_tmp_lt_search_path_spec=
10167 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10168 for lt_sys_path in $lt_search_path_spec; do
10169 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10171 else
10172 test -d "$lt_sys_path" && \
10173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10174 fi
10175 done
10176 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10177BEGIN {RS=" "; FS="/|\n";} {
10178 lt_foo="";
10179 lt_count=0;
10180 for (lt_i = NF; lt_i > 0; lt_i--) {
10181 if ($lt_i != "" && $lt_i != ".") {
10182 if ($lt_i == "..") {
10183 lt_count++;
10184 } else {
10185 if (lt_count == 0) {
10186 lt_foo="/" $lt_i lt_foo;
10187 } else {
10188 lt_count--;
10189 }
10190 }
10191 }
10192 }
10193 if (lt_foo != "") { lt_freq[lt_foo]++; }
10194 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10195}'`
10196 # AWK program above erroneously prepends '/' to C:/dos/paths
10197 # for these hosts.
10198 case $host_os in
10199 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10200 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10201 esac
10202 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10203else
10204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10205fi
10206library_names_spec=
10207libname_spec='lib$name'
10208soname_spec=
10209shrext_cmds=".so"
10210postinstall_cmds=
10211postuninstall_cmds=
10212finish_cmds=
10213finish_eval=
10214shlibpath_var=
10215shlibpath_overrides_runpath=unknown
10216version_type=none
10217dynamic_linker="$host_os ld.so"
10218sys_lib_dlsearch_path_spec="/lib /usr/lib"
10219need_lib_prefix=unknown
10220hardcode_into_libs=no
10221
10222# when you set need_version to no, make sure it does not cause -set_version
10223# flags to be left without arguments
10224need_version=unknown
10225
10226case $host_os in
10227aix3*)
10228 version_type=linux
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10230 shlibpath_var=LIBPATH
10231
10232 # AIX 3 has no versioning support, so we append a major version to the name.
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 ;;
10235
10236aix[4-9]*)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 hardcode_into_libs=yes
10241 if test "$host_cpu" = ia64; then
10242 # AIX 5 supports IA64
10243 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 else
10246 # With GCC up to 2.95.x, collect2 would create an import file
10247 # for dependence libraries. The import file would start with
10248 # the line `#! .'. This would cause the generated library to
10249 # depend on `.', always an invalid library. This was fixed in
10250 # development snapshots of GCC prior to 3.0.
10251 case $host_os in
10252 aix4 | aix4.[01] | aix4.[01].*)
10253 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10254 echo ' yes '
10255 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10256 :
10257 else
10258 can_build_shared=no
10259 fi
10260 ;;
10261 esac
10262 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10263 # soname into executable. Probably we can add versioning support to
10264 # collect2, so additional links can be useful in future.
10265 if test "$aix_use_runtimelinking" = yes; then
10266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10267 # instead of lib<name>.a to let people know that these are not
10268 # typical AIX shared libraries.
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 else
10271 # We preserve .a as extension for shared libraries through AIX4.2
10272 # and later when we are not doing run time linking.
10273 library_names_spec='${libname}${release}.a $libname.a'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 fi
10276 shlibpath_var=LIBPATH
10277 fi
10278 ;;
10279
10280amigaos*)
10281 case $host_cpu in
10282 powerpc)
10283 # Since July 2007 AmigaOS4 officially supports .so libraries.
10284 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 ;;
10287 m68k)
10288 library_names_spec='$libname.ixlibrary $libname.a'
10289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10290 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'
10291 ;;
10292 esac
10293 ;;
10294
10295beos*)
10296 library_names_spec='${libname}${shared_ext}'
10297 dynamic_linker="$host_os ld.so"
10298 shlibpath_var=LIBRARY_PATH
10299 ;;
10300
10301bsdi[45]*)
10302 version_type=linux
10303 need_version=no
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10310 # the default ld.so.conf also contains /usr/contrib/lib and
10311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10312 # libtool to hard-code these into programs
10313 ;;
10314
10315cygwin* | mingw* | pw32* | cegcc*)
10316 version_type=windows
10317 shrext_cmds=".dll"
10318 need_version=no
10319 need_lib_prefix=no
10320
10321 case $GCC,$host_os in
10322 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10323 library_names_spec='$libname.dll.a'
10324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10325 postinstall_cmds='base_file=`basename \${file}`~
10326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10327 dldir=$destdir/`dirname \$dlpath`~
10328 test -d \$dldir || mkdir -p \$dldir~
10329 $install_prog $dir/$dlname \$dldir/$dlname~
10330 chmod a+x \$dldir/$dlname~
10331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10333 fi'
10334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10335 dlpath=$dir/\$dldll~
10336 $RM \$dlpath'
10337 shlibpath_overrides_runpath=yes
10338
10339 case $host_os in
10340 cygwin*)
10341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10342 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10343
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10345 ;;
10346 mingw* | cegcc*)
10347 # MinGW DLLs use traditional 'lib' prefix
10348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10349 ;;
10350 pw32*)
10351 # pw32 DLLs use 'pw' prefix rather than 'lib'
10352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10353 ;;
10354 esac
10355 ;;
10356
10357 *)
10358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10359 ;;
10360 esac
10361 dynamic_linker='Win32 ld.exe'
10362 # FIXME: first we should search . and the directory the executable is in
10363 shlibpath_var=PATH
10364 ;;
10365
10366darwin* | rhapsody*)
10367 dynamic_linker="$host_os dyld"
10368 version_type=darwin
10369 need_lib_prefix=no
10370 need_version=no
10371 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10372 soname_spec='${libname}${release}${major}$shared_ext'
10373 shlibpath_overrides_runpath=yes
10374 shlibpath_var=DYLD_LIBRARY_PATH
10375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10376
10377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10379 ;;
10380
10381dgux*)
10382 version_type=linux
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 ;;
10389
10390freebsd* | dragonfly*)
10391 # DragonFly does not have aout. When/if they implement a new
10392 # versioning mechanism, adjust this.
10393 if test -x /usr/bin/objformat; then
10394 objformat=`/usr/bin/objformat`
10395 else
10396 case $host_os in
10397 freebsd[23].*) objformat=aout ;;
10398 *) objformat=elf ;;
10399 esac
10400 fi
10401 version_type=freebsd-$objformat
10402 case $version_type in
10403 freebsd-elf*)
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10405 need_version=no
10406 need_lib_prefix=no
10407 ;;
10408 freebsd-*)
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10410 need_version=yes
10411 ;;
10412 esac
10413 shlibpath_var=LD_LIBRARY_PATH
10414 case $host_os in
10415 freebsd2.*)
10416 shlibpath_overrides_runpath=yes
10417 ;;
10418 freebsd3.[01]* | freebsdelf3.[01]*)
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10421 ;;
10422 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10423 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10424 shlibpath_overrides_runpath=no
10425 hardcode_into_libs=yes
10426 ;;
10427 *) # from 4.6 on, and DragonFly
10428 shlibpath_overrides_runpath=yes
10429 hardcode_into_libs=yes
10430 ;;
10431 esac
10432 ;;
10433
6bb11ab3
L
10434haiku*)
10435 version_type=linux
10436 need_lib_prefix=no
10437 need_version=no
10438 dynamic_linker="$host_os runtime_loader"
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10444 hardcode_into_libs=yes
10445 ;;
10446
10447hpux9* | hpux10* | hpux11*)
10448 # Give a soname corresponding to the major version so that dld.sl refuses to
10449 # link against other versions.
10450 version_type=sunos
10451 need_lib_prefix=no
10452 need_version=no
10453 case $host_cpu in
10454 ia64*)
10455 shrext_cmds='.so'
10456 hardcode_into_libs=yes
10457 dynamic_linker="$host_os dld.so"
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 if test "X$HPUX_IA64_MODE" = X32; then
10463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10464 else
10465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10466 fi
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468 ;;
10469 hppa*64*)
10470 shrext_cmds='.sl'
10471 hardcode_into_libs=yes
10472 dynamic_linker="$host_os dld.sl"
10473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10479 ;;
10480 *)
10481 shrext_cmds='.sl'
10482 dynamic_linker="$host_os dld.sl"
10483 shlibpath_var=SHLIB_PATH
10484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 ;;
10488 esac
10489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10490 postinstall_cmds='chmod 555 $lib'
10491 # or fails outright, so override atomically:
10492 install_override_mode=555
10493 ;;
10494
10495interix[3-9]*)
10496 version_type=linux
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10505 ;;
10506
10507irix5* | irix6* | nonstopux*)
10508 case $host_os in
10509 nonstopux*) version_type=nonstopux ;;
10510 *)
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux
10513 else
10514 version_type=irix
10515 fi ;;
10516 esac
10517 need_lib_prefix=no
10518 need_version=no
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521 case $host_os in
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10524 ;;
10525 *)
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10534 esac
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10542 ;;
10543
10544# No shared lib support for Linux oldld, aout, or coff.
10545linux*oldld* | linux*aout* | linux*coff*)
10546 dynamic_linker=no
10547 ;;
10548
10549# This must be Linux ELF.
46f900c0 10550linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559
10560 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10561 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10562 $as_echo_n "(cached) " >&6
10563else
6bb11ab3
L
10564 lt_cv_shlibpath_overrides_runpath=no
10565 save_LDFLAGS=$LDFLAGS
10566 save_libdir=$libdir
10567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10570/* end confdefs.h. */
10571
2232061b
MF
10572int
10573main ()
10574{
10575
10576 ;
10577 return 0;
10578}
10579_ACEOF
6bb11ab3
L
10580if ac_fn_c_try_link "$LINENO"; then :
10581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10582 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10583fi
2232061b 10584fi
6bb11ab3
L
10585rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LDFLAGS=$save_LDFLAGS
10588 libdir=$save_libdir
2232061b 10589
6bb11ab3 10590fi
2232061b 10591
6bb11ab3 10592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10593
6bb11ab3
L
10594 # This implies no fast_install, which is unacceptable.
10595 # Some rework will be needed to allow for fast_install
10596 # before this can be enabled.
10597 hardcode_into_libs=yes
2232061b 10598
6bb11ab3
L
10599 # Append ld.so.conf contents to the search path
10600 if test -f /etc/ld.so.conf; then
10601 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' ' '`
10602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10603 fi
2232061b 10604
6bb11ab3
L
10605 # We used to test for /lib/ld.so.1 and disable shared libraries on
10606 # powerpc, because MkLinux only supported shared libraries with the
10607 # GNU dynamic linker. Since this was broken with cross compilers,
10608 # most powerpc-linux boxes support dynamic linking these days and
10609 # people can always --disable-shared, the test was removed, and we
10610 # assume the GNU/Linux dynamic linker is in use.
10611 dynamic_linker='GNU/Linux ld.so'
10612 ;;
10613
10614netbsd*)
10615 version_type=sunos
10616 need_lib_prefix=no
10617 need_version=no
10618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10621 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10622 else
6bb11ab3
L
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 dynamic_linker='NetBSD ld.elf_so'
10626 fi
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 ;;
10631
10632newsos6)
10633 version_type=linux
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 ;;
10638
10639*nto* | *qnx*)
10640 version_type=qnx
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 dynamic_linker='ldqnx.so'
10649 ;;
10650
10651openbsd*)
10652 version_type=sunos
10653 sys_lib_dlsearch_path_spec="/usr/lib"
10654 need_lib_prefix=no
10655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10656 case $host_os in
10657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10658 *) need_version=no ;;
10659 esac
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10664 case $host_os in
10665 openbsd2.[89] | openbsd2.[89].*)
10666 shlibpath_overrides_runpath=no
10667 ;;
10668 *)
10669 shlibpath_overrides_runpath=yes
10670 ;;
10671 esac
10672 else
10673 shlibpath_overrides_runpath=yes
10674 fi
10675 ;;
10676
10677os2*)
10678 libname_spec='$name'
10679 shrext_cmds=".dll"
10680 need_lib_prefix=no
10681 library_names_spec='$libname${shared_ext} $libname.a'
10682 dynamic_linker='OS/2 ld.exe'
10683 shlibpath_var=LIBPATH
10684 ;;
10685
10686osf3* | osf4* | osf5*)
10687 version_type=osf
10688 need_lib_prefix=no
10689 need_version=no
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10695 ;;
10696
10697rdos*)
10698 dynamic_linker=no
10699 ;;
10700
10701solaris*)
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 # ldd complains unless libraries are executable
10711 postinstall_cmds='chmod +x $lib'
10712 ;;
10713
10714sunos4*)
10715 version_type=sunos
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10720 if test "$with_gnu_ld" = yes; then
10721 need_lib_prefix=no
10722 fi
10723 need_version=yes
10724 ;;
10725
10726sysv4 | sysv4.3*)
10727 version_type=linux
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 case $host_vendor in
10732 sni)
10733 shlibpath_overrides_runpath=no
10734 need_lib_prefix=no
10735 runpath_var=LD_RUN_PATH
10736 ;;
10737 siemens)
10738 need_lib_prefix=no
10739 ;;
10740 motorola)
10741 need_lib_prefix=no
10742 need_version=no
10743 shlibpath_overrides_runpath=no
10744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10745 ;;
10746 esac
10747 ;;
10748
10749sysv4*MP*)
10750 if test -d /usr/nec ;then
10751 version_type=linux
10752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10753 soname_spec='$libname${shared_ext}.$major'
10754 shlibpath_var=LD_LIBRARY_PATH
2232061b 10755 fi
6bb11ab3
L
10756 ;;
10757
10758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10759 version_type=freebsd-elf
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 hardcode_into_libs=yes
10767 if test "$with_gnu_ld" = yes; then
10768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10769 else
10770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10771 case $host_os in
10772 sco3.2v5*)
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10774 ;;
10775 esac
10776 fi
10777 sys_lib_dlsearch_path_spec='/usr/lib'
10778 ;;
10779
10780tpf*)
10781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10782 version_type=linux
10783 need_lib_prefix=no
10784 need_version=no
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790
10791uts4*)
10792 version_type=linux
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 ;;
10797
10798*)
10799 dynamic_linker=no
10800 ;;
10801esac
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10803$as_echo "$dynamic_linker" >&6; }
10804test "$dynamic_linker" = no && can_build_shared=no
10805
10806variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10807if test "$GCC" = yes; then
10808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10809fi
2232061b 10810
6bb11ab3
L
10811if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10812 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10813fi
10814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10815 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10816fi
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
2232061b 10843
2232061b 10844
2232061b 10845
2232061b 10846
2232061b
MF
10847
10848
6ffe910a 10849
6ffe910a
MF
10850
10851
10852
10853
10854
2232061b 10855
6ffe910a
MF
10856
10857
10858
10859
6ffe910a 10860
6ffe910a 10861
6ffe910a
MF
10862
10863
6ffe910a 10864
6ffe910a 10865
6ffe910a
MF
10866
10867
5f3ef9d0 10868
5f3ef9d0
JB
10869
10870
10871
db2e4d67
MF
10872
10873
db2e4d67 10874
db2e4d67 10875
db2e4d67 10876
db2e4d67 10877
db2e4d67 10878
db2e4d67 10879
db2e4d67 10880
db2e4d67
MF
10881
10882
db2e4d67 10883
db2e4d67
MF
10884
10885
db2e4d67 10886
db2e4d67
MF
10887
10888
6ffe910a 10889
6ffe910a 10890
6ffe910a
MF
10891
10892
6ffe910a
MF
10893
10894
6ffe910a 10895
6ffe910a 10896
6ffe910a 10897
6ffe910a 10898
6ffe910a 10899
b7026657 10900
b7026657 10901
c906108c 10902
b7026657 10903
b7026657 10904
c906108c 10905
b7026657 10906
b7026657 10907
cd0fc7c3 10908
6bb11ab3
L
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10910$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10911hardcode_action=
10912if test -n "$hardcode_libdir_flag_spec" ||
10913 test -n "$runpath_var" ||
10914 test "X$hardcode_automatic" = "Xyes" ; then
b7026657 10915
6bb11ab3
L
10916 # We can hardcode non-existent directories.
10917 if test "$hardcode_direct" != no &&
10918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10919 # have to relink, otherwise we might link with an installed library
10920 # when we should be linking with a yet-to-be-installed one
10921 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10922 test "$hardcode_minus_L" != no; then
10923 # Linking always hardcodes the temporary library directory.
10924 hardcode_action=relink
10925 else
10926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10927 hardcode_action=immediate
10928 fi
10929else
10930 # We cannot hardcode anything, or else we can only hardcode existing
10931 # directories.
10932 hardcode_action=unsupported
c906108c 10933fi
6bb11ab3
L
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10935$as_echo "$hardcode_action" >&6; }
b7026657 10936
6bb11ab3
L
10937if test "$hardcode_action" = relink ||
10938 test "$inherit_rpath" = yes; then
10939 # Fast installation is not supported
10940 enable_fast_install=no
10941elif test "$shlibpath_overrides_runpath" = yes ||
10942 test "$enable_shared" = no; then
10943 # Fast installation is not necessary
10944 enable_fast_install=needless
10945fi
c906108c 10946
6bb11ab3
L
10947
10948
10949
10950
10951
10952 if test "x$enable_dlopen" != xyes; then
10953 enable_dlopen=unknown
10954 enable_dlopen_self=unknown
10955 enable_dlopen_self_static=unknown
10956else
10957 lt_cv_dlopen=no
10958 lt_cv_dlopen_libs=
10959
10960 case $host_os in
10961 beos*)
10962 lt_cv_dlopen="load_add_on"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10965 ;;
10966
10967 mingw* | pw32* | cegcc*)
10968 lt_cv_dlopen="LoadLibrary"
10969 lt_cv_dlopen_libs=
10970 ;;
10971
10972 cygwin*)
10973 lt_cv_dlopen="dlopen"
10974 lt_cv_dlopen_libs=
10975 ;;
10976
10977 darwin*)
10978 # if libdl is installed we need to link against it
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10980$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10981if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10982 $as_echo_n "(cached) " >&6
10983else
10984 ac_check_lib_save_LIBS=$LIBS
10985LIBS="-ldl $LIBS"
10986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987/* end confdefs.h. */
10988
10989/* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992#ifdef __cplusplus
10993extern "C"
10994#endif
10995char dlopen ();
10996int
10997main ()
10998{
10999return dlopen ();
11000 ;
11001 return 0;
11002}
b7026657 11003_ACEOF
6bb11ab3
L
11004if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_dl_dlopen=yes
11006else
11007 ac_cv_lib_dl_dlopen=no
11008fi
11009rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011LIBS=$ac_check_lib_save_LIBS
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11014$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11015if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11017else
11018
11019 lt_cv_dlopen="dyld"
11020 lt_cv_dlopen_libs=
11021 lt_cv_dlopen_self=yes
c906108c 11022
c906108c 11023fi
c906108c 11024
6bb11ab3 11025 ;;
c906108c 11026
6bb11ab3
L
11027 *)
11028 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11029if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
11030 lt_cv_dlopen="shl_load"
11031else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11033$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11034if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
11035 $as_echo_n "(cached) " >&6
11036else
11037 ac_check_lib_save_LIBS=$LIBS
11038LIBS="-ldld $LIBS"
11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040/* end confdefs.h. */
11041
11042/* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045#ifdef __cplusplus
11046extern "C"
11047#endif
11048char shl_load ();
11049int
11050main ()
11051{
11052return shl_load ();
11053 ;
11054 return 0;
11055}
11056_ACEOF
11057if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_dld_shl_load=yes
11059else
11060 ac_cv_lib_dld_shl_load=no
11061fi
11062rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064LIBS=$ac_check_lib_save_LIBS
11065fi
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11067$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11068if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
11069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11070else
11071 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11072if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
11073 lt_cv_dlopen="dlopen"
11074else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11076$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11077if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11078 $as_echo_n "(cached) " >&6
c906108c 11079else
b7026657 11080 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11081LIBS="-ldl $LIBS"
81ecdfbb 11082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11083/* end confdefs.h. */
c906108c 11084
81ecdfbb
RW
11085/* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
b7026657
AC
11088#ifdef __cplusplus
11089extern "C"
11090#endif
6bb11ab3 11091char dlopen ();
b7026657
AC
11092int
11093main ()
11094{
6bb11ab3 11095return dlopen ();
b7026657
AC
11096 ;
11097 return 0;
11098}
11099_ACEOF
81ecdfbb 11100if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11101 ac_cv_lib_dl_dlopen=yes
b7026657 11102else
6bb11ab3 11103 ac_cv_lib_dl_dlopen=no
b7026657 11104fi
81ecdfbb
RW
11105rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
11107LIBS=$ac_check_lib_save_LIBS
11108fi
6bb11ab3
L
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11110$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11111if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11113else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11115$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11116if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11117 $as_echo_n "(cached) " >&6
c906108c 11118else
b7026657 11119 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11120LIBS="-lsvld $LIBS"
81ecdfbb 11121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11122/* end confdefs.h. */
11123
81ecdfbb
RW
11124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
b7026657
AC
11127#ifdef __cplusplus
11128extern "C"
11129#endif
6bb11ab3 11130char dlopen ();
b7026657
AC
11131int
11132main ()
11133{
6bb11ab3 11134return dlopen ();
b7026657
AC
11135 ;
11136 return 0;
11137}
11138_ACEOF
81ecdfbb 11139if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11140 ac_cv_lib_svld_dlopen=yes
b7026657 11141else
6bb11ab3 11142 ac_cv_lib_svld_dlopen=no
b7026657 11143fi
81ecdfbb
RW
11144rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
11146LIBS=$ac_check_lib_save_LIBS
11147fi
6bb11ab3
L
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11149$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11150if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 11151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 11152else
6bb11ab3
L
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11154$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11155if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11156 $as_echo_n "(cached) " >&6
b5bd9624 11157else
6bb11ab3
L
11158 ac_check_lib_save_LIBS=$LIBS
11159LIBS="-ldld $LIBS"
81ecdfbb 11160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624
HPN
11161/* end confdefs.h. */
11162
81ecdfbb
RW
11163/* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
b5bd9624 11165 builtin and then its argument prototype would still apply. */
b5bd9624
HPN
11166#ifdef __cplusplus
11167extern "C"
11168#endif
6bb11ab3 11169char dld_link ();
81ecdfbb
RW
11170int
11171main ()
11172{
6bb11ab3 11173return dld_link ();
81ecdfbb
RW
11174 ;
11175 return 0;
11176}
b5bd9624 11177_ACEOF
6bb11ab3
L
11178if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_dld_dld_link=yes
11180else
11181 ac_cv_lib_dld_dld_link=no
11182fi
11183rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185LIBS=$ac_check_lib_save_LIBS
11186fi
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11188$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11189if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
11190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11191fi
11192
11193
11194fi
11195
11196
11197fi
11198
11199
11200fi
11201
11202
11203fi
11204
11205
11206fi
11207
11208 ;;
11209 esac
11210
11211 if test "x$lt_cv_dlopen" != xno; then
11212 enable_dlopen=yes
b5bd9624 11213 else
6bb11ab3
L
11214 enable_dlopen=no
11215 fi
11216
11217 case $lt_cv_dlopen in
11218 dlopen)
11219 save_CPPFLAGS="$CPPFLAGS"
11220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11221
11222 save_LDFLAGS="$LDFLAGS"
11223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11224
11225 save_LIBS="$LIBS"
11226 LIBS="$lt_cv_dlopen_libs $LIBS"
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11229$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11230if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
11231 $as_echo_n "(cached) " >&6
11232else
11233 if test "$cross_compiling" = yes; then :
11234 lt_cv_dlopen_self=cross
11235else
11236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11237 lt_status=$lt_dlunknown
11238 cat > conftest.$ac_ext <<_LT_EOF
a3e2cc64 11239#line 11239 "configure"
6bb11ab3
L
11240#include "confdefs.h"
11241
11242#if HAVE_DLFCN_H
11243#include <dlfcn.h>
11244#endif
11245
11246#include <stdio.h>
11247
11248#ifdef RTLD_GLOBAL
11249# define LT_DLGLOBAL RTLD_GLOBAL
11250#else
11251# ifdef DL_GLOBAL
11252# define LT_DLGLOBAL DL_GLOBAL
11253# else
11254# define LT_DLGLOBAL 0
11255# endif
11256#endif
11257
11258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11259 find out it does not work in some platform. */
11260#ifndef LT_DLLAZY_OR_NOW
11261# ifdef RTLD_LAZY
11262# define LT_DLLAZY_OR_NOW RTLD_LAZY
11263# else
11264# ifdef DL_LAZY
11265# define LT_DLLAZY_OR_NOW DL_LAZY
11266# else
11267# ifdef RTLD_NOW
11268# define LT_DLLAZY_OR_NOW RTLD_NOW
11269# else
11270# ifdef DL_NOW
11271# define LT_DLLAZY_OR_NOW DL_NOW
11272# else
11273# define LT_DLLAZY_OR_NOW 0
11274# endif
11275# endif
11276# endif
11277# endif
11278#endif
11279
11280/* When -fvisbility=hidden is used, assume the code has been annotated
11281 correspondingly for the symbols needed. */
11282#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11283void fnord () __attribute__((visibility("default")));
11284#endif
11285
11286void fnord () { int i=42; }
11287int main ()
11288{
11289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11290 int status = $lt_dlunknown;
11291
11292 if (self)
11293 {
11294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11295 else
11296 {
11297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11298 else puts (dlerror ());
11299 }
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
11304
11305 return status;
11306}
11307_LT_EOF
11308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self=no
b5bd9624 11323 fi
b5bd9624 11324fi
6bb11ab3
L
11325rm -fr conftest*
11326
11327
b5bd9624 11328fi
6bb11ab3
L
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11330$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 11331
6bb11ab3
L
11332 if test "x$lt_cv_dlopen_self" = xyes; then
11333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11335$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11336if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 11337 $as_echo_n "(cached) " >&6
b5bd9624 11338else
6bb11ab3
L
11339 if test "$cross_compiling" = yes; then :
11340 lt_cv_dlopen_self_static=cross
11341else
11342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11343 lt_status=$lt_dlunknown
11344 cat > conftest.$ac_ext <<_LT_EOF
a3e2cc64 11345#line 11345 "configure"
6bb11ab3
L
11346#include "confdefs.h"
11347
11348#if HAVE_DLFCN_H
11349#include <dlfcn.h>
11350#endif
11351
11352#include <stdio.h>
11353
11354#ifdef RTLD_GLOBAL
11355# define LT_DLGLOBAL RTLD_GLOBAL
11356#else
11357# ifdef DL_GLOBAL
11358# define LT_DLGLOBAL DL_GLOBAL
11359# else
11360# define LT_DLGLOBAL 0
11361# endif
11362#endif
11363
11364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11365 find out it does not work in some platform. */
11366#ifndef LT_DLLAZY_OR_NOW
11367# ifdef RTLD_LAZY
11368# define LT_DLLAZY_OR_NOW RTLD_LAZY
11369# else
11370# ifdef DL_LAZY
11371# define LT_DLLAZY_OR_NOW DL_LAZY
11372# else
11373# ifdef RTLD_NOW
11374# define LT_DLLAZY_OR_NOW RTLD_NOW
11375# else
11376# ifdef DL_NOW
11377# define LT_DLLAZY_OR_NOW DL_NOW
11378# else
11379# define LT_DLLAZY_OR_NOW 0
11380# endif
11381# endif
11382# endif
11383# endif
11384#endif
11385
11386/* When -fvisbility=hidden is used, assume the code has been annotated
11387 correspondingly for the symbols needed. */
11388#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11389void fnord () __attribute__((visibility("default")));
11390#endif
11391
11392void fnord () { int i=42; }
11393int main ()
11394{
11395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11396 int status = $lt_dlunknown;
11397
11398 if (self)
11399 {
11400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11401 else
11402 {
11403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11404 else puts (dlerror ());
11405 }
11406 /* dlclose (self); */
11407 }
11408 else
11409 puts (dlerror ());
11410
11411 return status;
11412}
11413_LT_EOF
11414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11415 (eval $ac_link) 2>&5
11416 ac_status=$?
11417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11418 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11419 (./conftest; exit; ) >&5 2>/dev/null
11420 lt_status=$?
11421 case x$lt_status in
11422 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11423 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11424 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11425 esac
11426 else :
11427 # compilation failed
11428 lt_cv_dlopen_self_static=no
11429 fi
b5bd9624 11430fi
6bb11ab3
L
11431rm -fr conftest*
11432
11433
b5bd9624 11434fi
6bb11ab3
L
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11436$as_echo "$lt_cv_dlopen_self_static" >&6; }
11437 fi
11438
11439 CPPFLAGS="$save_CPPFLAGS"
11440 LDFLAGS="$save_LDFLAGS"
11441 LIBS="$save_LIBS"
11442 ;;
11443 esac
11444
11445 case $lt_cv_dlopen_self in
11446 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11447 *) enable_dlopen_self=unknown ;;
11448 esac
11449
11450 case $lt_cv_dlopen_self_static in
11451 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11452 *) enable_dlopen_self_static=unknown ;;
11453 esac
11454fi
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472striplib=
11473old_striplib=
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11475$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11476if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11480$as_echo "yes" >&6; }
11481else
11482# FIXME - insert some real tests, host_os isn't really good enough
11483 case $host_os in
11484 darwin*)
11485 if test -n "$STRIP" ; then
11486 striplib="$STRIP -x"
11487 old_striplib="$STRIP -S"
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489$as_echo "yes" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
11493 fi
11494 ;;
11495 *)
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498 ;;
11499 esac
11500fi
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 # Report which library types will actually be built
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11515$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11517$as_echo "$can_build_shared" >&6; }
11518
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11520$as_echo_n "checking whether to build shared libraries... " >&6; }
11521 test "$can_build_shared" = "no" && enable_shared=no
11522
11523 # On AIX, shared libraries and static libraries use the same namespace, and
11524 # are all built from PIC.
11525 case $host_os in
11526 aix3*)
11527 test "$enable_shared" = yes && enable_static=no
11528 if test -n "$RANLIB"; then
11529 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11530 postinstall_cmds='$RANLIB $lib'
11531 fi
11532 ;;
11533
11534 aix[4-9]*)
11535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11536 test "$enable_shared" = yes && enable_static=no
11537 fi
11538 ;;
11539 esac
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11541$as_echo "$enable_shared" >&6; }
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11544$as_echo_n "checking whether to build static libraries... " >&6; }
11545 # Make sure either enable_shared or enable_static is yes.
11546 test "$enable_shared" = yes || enable_static=yes
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11548$as_echo "$enable_static" >&6; }
11549
11550
11551
11552
11553fi
11554ac_ext=c
11555ac_cpp='$CPP $CPPFLAGS'
11556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11558ac_compiler_gnu=$ac_cv_c_compiler_gnu
11559
11560CC="$lt_save_CC"
11561
11562
11563
11564
11565
11566
11567
11568
11569
b5bd9624 11570
b5bd9624 11571
b5bd9624 11572
b5bd9624 11573
6bb11ab3
L
11574 ac_config_commands="$ac_config_commands libtool"
11575
11576
11577
11578
11579# Only expand once:
11580
11581
5912fadd 11582
b5bd9624 11583
c906108c
SS
11584
11585
31e6ad7d
MF
11586
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11588$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11589 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11590if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11591 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11592else
11593 USE_MAINTAINER_MODE=no
c906108c 11594fi
31e6ad7d
MF
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11597$as_echo "$USE_MAINTAINER_MODE" >&6; }
11598 if test $USE_MAINTAINER_MODE = yes; then
11599 MAINTAINER_MODE_TRUE=
11600 MAINTAINER_MODE_FALSE='#'
c906108c 11601else
31e6ad7d
MF
11602 MAINTAINER_MODE_TRUE='#'
11603 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
11604fi
11605
31e6ad7d
MF
11606 MAINT=$MAINTAINER_MODE_TRUE
11607
11608
c906108c
SS
11609
11610
ce39bd38
MF
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11612$as_echo_n "checking for sim debug setting... " >&6; }
11613sim_debug="0"
81ecdfbb
RW
11614# Check whether --enable-sim-debug was given.
11615if test "${enable_sim_debug+set}" = set; then :
11616 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
11617 yes) sim_debug="7";;
11618 no) sim_debug="0";;
11619 *) sim_debug="($enableval)";;
c906108c 11620esac
c906108c 11621fi
ce39bd38
MF
11622if test "$sim_debug" != "0"; then
11623
11624cat >>confdefs.h <<_ACEOF
11625#define DEBUG $sim_debug
11626_ACEOF
11627
81ecdfbb
RW
11628fi
11629
ce39bd38
MF
11630cat >>confdefs.h <<_ACEOF
11631#define WITH_DEBUG $sim_debug
11632_ACEOF
11633
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11635$as_echo "$sim_debug" >&6; }
c906108c
SS
11636
11637
ce39bd38
MF
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11639$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11640sim_stdio="0"
81ecdfbb
RW
11641# Check whether --enable-sim-stdio was given.
11642if test "${enable_sim_stdio+set}" = set; then :
11643 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
11644 yes) sim_stdio="DO_USE_STDIO";;
11645 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 11646 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
c906108c 11647esac
81ecdfbb
RW
11648fi
11649
ce39bd38
MF
11650cat >>confdefs.h <<_ACEOF
11651#define WITH_STDIO $sim_stdio
11652_ACEOF
11653
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11655$as_echo "$sim_stdio" >&6; }
c906108c
SS
11656
11657
ce39bd38
MF
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11659$as_echo_n "checking for sim trace settings... " >&6; }
11660sim_trace="~TRACE_debug"
81ecdfbb
RW
11661# Check whether --enable-sim-trace was given.
11662if test "${enable_sim_trace+set}" = set; then :
11663 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
11664 yes) sim_trace="-1";;
11665 no) sim_trace="0";;
c906108c 11666 [-0-9]*)
ce39bd38 11667 sim_trace="'(${enableval})'";;
2232061b 11668 [[:lower:]]*)
c906108c
SS
11669 sim_trace=""
11670 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11671 if test x"$sim_trace" = x; then
ce39bd38 11672 sim_trace="(TRACE_$x"
c906108c
SS
11673 else
11674 sim_trace="${sim_trace}|TRACE_$x"
11675 fi
11676 done
ce39bd38 11677 sim_trace="$sim_trace)" ;;
c906108c 11678esac
81ecdfbb
RW
11679fi
11680
ce39bd38
MF
11681cat >>confdefs.h <<_ACEOF
11682#define WITH_TRACE $sim_trace
11683_ACEOF
11684
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11686$as_echo "$sim_trace" >&6; }
c906108c
SS
11687
11688
ce39bd38
MF
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11690$as_echo_n "checking for sim profile settings... " >&6; }
11691profile="1"
11692sim_profile="-1"
81ecdfbb
RW
11693# Check whether --enable-sim-profile was given.
11694if test "${enable_sim_profile+set}" = set; then :
11695 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
11696 yes) profile="1" sim_profile="-1";;
11697 no) profile="0" sim_profile="0";;
c906108c 11698 [-0-9]*)
ce39bd38 11699 profile="(${enableval})" sim_profile="(${enableval})";;
c906108c 11700 [a-z]*)
ce39bd38 11701 profile="1"
c906108c
SS
11702 sim_profile=""
11703 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11704 if test x"$sim_profile" = x; then
ce39bd38 11705 sim_profile="(PROFILE_$x"
c906108c
SS
11706 else
11707 sim_profile="${sim_profile}|PROFILE_$x"
11708 fi
11709 done
ce39bd38 11710 sim_profile="$sim_profile)" ;;
c906108c 11711esac
81ecdfbb
RW
11712fi
11713
ce39bd38
MF
11714cat >>confdefs.h <<_ACEOF
11715#define PROFILE $profile
11716_ACEOF
c906108c
SS
11717
11718
ce39bd38
MF
11719cat >>confdefs.h <<_ACEOF
11720#define WITH_PROFILE $sim_profile
11721_ACEOF
11722
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11724$as_echo "$sim_profile" >&6; }
11725
11726
11727
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
11729$as_echo_n "checking whether to enable sim asserts... " >&6; }
11730sim_assert="1"
35656e95
MF
11731# Check whether --enable-sim-assert was given.
11732if test "${enable_sim_assert+set}" = set; then :
11733 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
11734 yes) sim_assert="1";;
11735 no) sim_assert="0";;
d0ac1c44 11736 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 11737esac
35656e95
MF
11738fi
11739
ce39bd38
MF
11740cat >>confdefs.h <<_ACEOF
11741#define WITH_ASSERT $sim_assert
11742_ACEOF
11743
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
11745$as_echo "$sim_assert" >&6; }
11746
35656e95 11747
ce39bd38
MF
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11749$as_echo_n "checking default sim environment setting... " >&6; }
11750sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
11751# Check whether --enable-sim-environment was given.
11752if test "${enable_sim_environment+set}" = set; then :
11753 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
11754 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11755 user | USER) sim_environment="USER_ENVIRONMENT";;
11756 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11757 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 11758 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 11759esac
16f7876d
MF
11760fi
11761
ce39bd38
MF
11762cat >>confdefs.h <<_ACEOF
11763#define WITH_ENVIRONMENT $sim_environment
11764_ACEOF
11765
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11767$as_echo "$sim_environment" >&6; }
11768
16f7876d 11769
347fe5bb
MF
11770sim_inline="-DDEFAULT_INLINE=0"
11771# Check whether --enable-sim-inline was given.
11772if test "${enable_sim_inline+set}" = set; then :
11773 enableval=$enable_sim_inline; sim_inline=""
11774case "$enableval" in
11775 no) sim_inline="-DDEFAULT_INLINE=0";;
11776 0) sim_inline="-DDEFAULT_INLINE=0";;
11777 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11778 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11779 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11780 new_flag=""
11781 case "$x" in
11782 *_INLINE=*) new_flag="-D$x";;
11783 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11784 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11785 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11786 esac
11787 if test x"$sim_inline" = x""; then
11788 sim_inline="$new_flag"
11789 else
11790 sim_inline="$sim_inline $new_flag"
11791 fi
11792 done;;
11793esac
11794if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11795 echo "Setting inline flags = $sim_inline" 6>&1
11796fi
11797fi
11798
11799
11800
6efef468 11801
81ecdfbb
RW
11802# Check whether --with-pkgversion was given.
11803if test "${with_pkgversion+set}" = set; then :
11804 withval=$with_pkgversion; case "$withval" in
d0ac1c44 11805 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
11806 no) PKGVERSION= ;;
11807 *) PKGVERSION="($withval) " ;;
11808 esac
11809else
bf12d44e 11810 PKGVERSION="(SIM) "
6efef468 11811
81ecdfbb
RW
11812fi
11813
6efef468
JM
11814
11815
11816
11817
81ecdfbb
RW
11818# Check whether --with-bugurl was given.
11819if test "${with_bugurl+set}" = set; then :
11820 withval=$with_bugurl; case "$withval" in
d0ac1c44 11821 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
11822 no) BUGURL=
11823 ;;
11824 *) BUGURL="$withval"
11825 ;;
11826 esac
11827else
dfb856ba 11828 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 11829
81ecdfbb
RW
11830fi
11831
6efef468
JM
11832 case ${BUGURL} in
11833 "")
11834 REPORT_BUGS_TO=
11835 REPORT_BUGS_TEXI=
11836 ;;
11837 *)
11838 REPORT_BUGS_TO="<$BUGURL>"
11839 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11840 ;;
11841 esac;
11842
11843
11844
11845
11846cat >>confdefs.h <<_ACEOF
11847#define PKGVERSION "$PKGVERSION"
11848_ACEOF
11849
11850
11851cat >>confdefs.h <<_ACEOF
11852#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11853_ACEOF
11854
11855
81ecdfbb
RW
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11857$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 11858if ${ac_cv_type_signal+:} false; then :
81ecdfbb 11859 $as_echo_n "(cached) " >&6
c906108c 11860else
81ecdfbb 11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11862/* end confdefs.h. */
c906108c
SS
11863#include <sys/types.h>
11864#include <signal.h>
c906108c 11865
b7026657
AC
11866int
11867main ()
11868{
81ecdfbb 11869return *(signal (0, 0)) (0) == 1;
b7026657
AC
11870 ;
11871 return 0;
11872}
11873_ACEOF
81ecdfbb
RW
11874if ac_fn_c_try_compile "$LINENO"; then :
11875 ac_cv_type_signal=int
c906108c 11876else
81ecdfbb 11877 ac_cv_type_signal=void
c906108c 11878fi
81ecdfbb 11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11880fi
81ecdfbb
RW
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11882$as_echo "$ac_cv_type_signal" >&6; }
c906108c 11883
b7026657 11884cat >>confdefs.h <<_ACEOF
c906108c 11885#define RETSIGTYPE $ac_cv_type_signal
b7026657 11886_ACEOF
c906108c
SS
11887
11888
cd0fc7c3
SS
11889
11890
c906108c 11891
c906108c
SS
11892
11893
1ac72f06 11894wire_endian="LITTLE"
c906108c 11895default_endian=""
81ecdfbb
RW
11896# Check whether --enable-sim-endian was given.
11897if test "${enable_sim_endian+set}" = set; then :
11898 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
11899 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11900 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
c906108c 11901 yes) if test x"$wire_endian" != x; then
1ac72f06 11902 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c 11903 else
1ac72f06
MF
11904 if test x"$default_endian" != x; then
11905 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11906 else
11907 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 11908 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
11909 fi
11910 fi;;
11911 no) if test x"$default_endian" != x; then
1ac72f06 11912 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11913 else
11914 if test x"$wire_endian" != x; then
1ac72f06 11915 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
11916 else
11917 echo "No default endian for target $target" 1>&6
1ac72f06 11918 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
11919 fi
11920 fi;;
d0ac1c44 11921 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
11922esac
11923if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11924 echo "Setting endian flags = $sim_endian" 6>&1
11925fi
11926else
11927 if test x"$default_endian" != x; then
1ac72f06 11928 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11929else
11930 if test x"$wire_endian" != x; then
1ac72f06 11931 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
11932 else
11933 sim_endian=
11934 fi
11935fi
81ecdfbb
RW
11936fi
11937
c906108c
SS
11938wire_alignment="NONSTRICT_ALIGNMENT"
11939default_alignment=""
11940
81ecdfbb
RW
11941# Check whether --enable-sim-alignment was given.
11942if test "${enable_sim_alignment+set}" = set; then :
11943 enableval=$enable_sim_alignment; case "${enableval}" in
c906108c
SS
11944 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11945 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11946 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11947 yes) if test x"$wire_alignment" != x; then
11948 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11949 else
11950 if test x"$default_alignment" != x; then
11951 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11952 else
11953 echo "No hard-wired alignment for target $target" 1>&6
11954 sim_alignment="-DWITH_ALIGNMENT=0"
11955 fi
11956 fi;;
11957 no) if test x"$default_alignment" != x; then
11958 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11959 else
11960 if test x"$wire_alignment" != x; then
11961 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11962 else
11963 echo "No default alignment for target $target" 1>&6
11964 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11965 fi
11966 fi;;
d0ac1c44 11967 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
c906108c
SS
11968esac
11969if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11970 echo "Setting alignment flags = $sim_alignment" 6>&1
11971fi
11972else
11973 if test x"$default_alignment" != x; then
11974 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11975else
11976 if test x"$wire_alignment" != x; then
11977 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11978 else
11979 sim_alignment=
11980 fi
11981fi
81ecdfbb
RW
11982fi
11983
c906108c 11984
2232061b
MF
11985# Check whether --enable-werror was given.
11986if test "${enable_werror+set}" = set; then :
11987 enableval=$enable_werror; case "${enableval}" in
11988 yes | y) ERROR_ON_WARNING="yes" ;;
11989 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11990 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
11991 esac
11992fi
11993
11994
11995# Enable -Werror by default when using gcc
11996if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11997 ERROR_ON_WARNING=yes
51216631 11998fi
2232061b
MF
11999
12000WERROR_CFLAGS=""
2232061b 12001
2232061b 12002build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 12003-Wpointer-sign \
2232061b 12004-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
12005-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
12006-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12007-Wold-style-declaration -Wold-style-definition"
2232061b
MF
12008
12009# Enable -Wno-format by default when using gcc on mingw since many
12010# GCC versions complain about %I64.
12011case "${host}" in
12012 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 12013 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
12014esac
12015
81ecdfbb
RW
12016# Check whether --enable-build-warnings was given.
12017if test "${enable_build_warnings+set}" = set; then :
12018 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
12019 yes) ;;
12020 no) build_warnings="-w";;
12021 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12022 build_warnings="${build_warnings} ${t}";;
12023 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12024 build_warnings="${t} ${build_warnings}";;
12025 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12026esac
12027if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12028 echo "Setting compiler warning flags = $build_warnings" 6>&1
12029fi
81ecdfbb
RW
12030fi
12031# Check whether --enable-sim-build-warnings was given.
12032if test "${enable_sim_build_warnings+set}" = set; then :
12033 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
12034 yes) ;;
12035 no) build_warnings="-w";;
12036 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 12037 build_warnings="${build_warnings} ${t}";;
c906108c 12038 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
12039 build_warnings="${t} ${build_warnings}";;
12040 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
12041esac
12042if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
12043 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12044fi
81ecdfbb
RW
12045fi
12046WARN_CFLAGS=""
d4f3574e
SS
12047if test "x${build_warnings}" != x -a "x$GCC" = xyes
12048then
81ecdfbb
RW
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12050$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
12051 # Separate out the -Werror flag as some files just cannot be
12052 # compiled with it enabled.
12053 for w in ${build_warnings}; do
12054 case $w in
12055 -Werr*) WERROR_CFLAGS=-Werror ;;
12056 *) # Check that GCC accepts it
12057 saved_CFLAGS="$CFLAGS"
12058 CFLAGS="$CFLAGS $w"
81ecdfbb 12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12060/* end confdefs.h. */
c8cca39f 12061
b7026657
AC
12062int
12063main ()
12064{
c8cca39f 12065
b7026657
AC
12066 ;
12067 return 0;
12068}
12069_ACEOF
81ecdfbb 12070if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 12071 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 12072fi
81ecdfbb 12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
12074 CFLAGS="$saved_CFLAGS"
12075 esac
12076 done
2232061b
MF
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12078$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
12079fi
12080
12081
12082default_sim_reserved_bits="1"
81ecdfbb
RW
12083# Check whether --enable-sim-reserved-bits was given.
12084if test "${enable_sim_reserved_bits+set}" = set; then :
12085 enableval=$enable_sim_reserved_bits; case "${enableval}" in
c906108c
SS
12086 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
12087 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 12088 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
c906108c
SS
12089esac
12090if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
12091 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
12092fi
12093else
12094 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
12095fi
12096
c906108c
SS
12097wire_word_bitsize="32"
12098wire_word_msb="31"
12099wire_address_bitsize=""
12100wire_cell_bitsize=""
81ecdfbb
RW
12101# Check whether --enable-sim-bitsize was given.
12102if test "${enable_sim_bitsize+set}" = set; then :
12103 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
12104case "${enableval}" in
12105 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
12106 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
12107 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
12108 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
12109 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
12110 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
12111 else
12112 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
12113 fi ;;
12114 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
12115 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
12116 else
12117 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
12118 fi ;;
d0ac1c44 12119 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
12120esac
12121# address bitsize
12122tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
12123case x"${tmp}" in
12124 x ) ;;
12125 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
12126 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 12127 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
12128esac
12129# cell bitsize
12130tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
12131case x"${tmp}" in
12132 x ) ;;
12133 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
12134 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 12135 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
12136esac
12137if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
12138 echo "Setting bitsize flags = $sim_bitsize" 6>&1
12139fi
12140else
12141 sim_bitsize=""
12142if test x"$wire_word_bitsize" != x; then
12143 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
12144fi
12145if test x"$wire_word_msb" != x; then
12146 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
12147fi
12148if test x"$wire_address_bitsize" != x; then
12149 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
12150fi
12151if test x"$wire_cell_bitsize" != x; then
12152 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
12153fi
81ecdfbb
RW
12154fi
12155
c906108c 12156
81ecdfbb 12157if test ""; then
6ffe910a 12158 hardware=""
b7026657 12159else
6ffe910a 12160 hardware="cfi core pal glue"
b7026657 12161fi
6ffe910a 12162hardware="$hardware mn103cpu mn103int mn103tim mn103ser mn103iop"
1517bd27 12163
81ecdfbb
RW
12164sim_hw_cflags="-DWITH_HW=1"
12165sim_hw="$hardware"
12166sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 12167
81ecdfbb
RW
12168# Check whether --enable-sim-hardware was given.
12169if test "${enable_sim_hardware+set}" = set; then :
12170 enableval=$enable_sim_hardware;
30452bbe
MF
12171else
12172 enable_sim_hardware="yes"
1517bd27
MF
12173fi
12174
12175case ${enable_sim_hardware} in
64dd13df
MF
12176 yes|no) ;;
12177 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12178 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12179 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
81ecdfbb 12180esac
1517bd27 12181
64dd13df 12182if test "$enable_sim_hardware" = no; then
81ecdfbb
RW
12183 sim_hw_objs=
12184 sim_hw_cflags="-DWITH_HW=0"
12185 sim_hw=
b7026657 12186else
81ecdfbb
RW
12187 sim_hw_cflags="-DWITH_HW=1"
12188 # remove duplicates
12189 sim_hw=""
12190 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
12191 for i in $hardware ; do
12192 case " $sim_hw " in
12193 *" $i "*) ;;
12194 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12195 esac
12196 done
fb61c40a 12197 # mingw does not support sockser
fb61c40a
JS
12198 case ${host} in
12199 *mingw*) ;;
49cd1634
MF
12200 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12201 # that you instatiate. Instead, other code will call into it directly.
12202 # At some point, we should convert it over.
12203 sim_hw_objs="$sim_hw_objs dv-sockser.o"
fb61c40a
JS
12204
12205cat >>confdefs.h <<_ACEOF
12206#define HAVE_DV_SOCKSER 1
12207_ACEOF
12208
12209 ;;
12210 esac
1517bd27
MF
12211 if test x"$silent" != x"yes"; then
12212 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
fb61c40a 12213 fi
1517bd27
MF
12214 case " $hardware " in
12215 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 12216$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 12217if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
12218 $as_echo_n "(cached) " >&6
12219else
12220 ac_check_lib_save_LIBS=$LIBS
12221LIBS="-lm $LIBS"
12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h. */
12224
12225/* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231char log2 ();
12232int
12233main ()
12234{
12235return log2 ();
12236 ;
12237 return 0;
12238}
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"; then :
12241 ac_cv_lib_m_log2=yes
12242else
12243 ac_cv_lib_m_log2=no
12244fi
12245rm -f core conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247LIBS=$ac_check_lib_save_LIBS
12248fi
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12250$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 12251if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
12252 cat >>confdefs.h <<_ACEOF
12253#define HAVE_LIBM 1
12254_ACEOF
12255
12256 LIBS="-lm $LIBS"
12257
12258fi
12259;;
1517bd27
MF
12260 esac
12261fi
4399a56b 12262
81ecdfbb
RW
12263
12264for ac_func in time chmod utime fork execve execv chown
12265do :
12266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12267ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 12268if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
12269 cat >>confdefs.h <<_ACEOF
12270#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271_ACEOF
b7026657
AC
12272
12273fi
81ecdfbb
RW
12274done
12275
5cddc23a 12276for ac_header in utime.h
81ecdfbb 12277do :
5cddc23a 12278 ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
d0ac1c44 12279if test "x$ac_cv_header_utime_h" = xyes; then :
b7026657 12280 cat >>confdefs.h <<_ACEOF
5cddc23a 12281#define HAVE_UTIME_H 1
b7026657
AC
12282_ACEOF
12283
12284fi
12285
12286done
12287
12288
12289
b7026657
AC
12290cgen_breaks=""
12291if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12292cgen_breaks="break cgen_rtx_error";
12293fi
12294
81ecdfbb 12295ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 12296
81ecdfbb 12297ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 12298
81ecdfbb 12299ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 12300
81ecdfbb 12301ac_config_commands="$ac_config_commands Makefile"
38f48d72 12302
81ecdfbb 12303ac_config_commands="$ac_config_commands stamp-h"
38f48d72 12304
760b3e8b
MF
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
b7026657
AC
12317cat >confcache <<\_ACEOF
12318# This file is a shell script that caches the results of configure
12319# tests run on this system so they can be shared between configure
12320# scripts and configure runs, see configure's option --config-cache.
12321# It is not useful on other systems. If it contains results you don't
12322# want to keep, you may remove or edit it.
12323#
12324# config.status only pays attention to the cache file if you give it
12325# the --recheck option to rerun configure.
12326#
12327# `ac_cv_env_foo' variables (set or unset) will be overridden when
12328# loading this file, other *unset* `ac_cv_foo' will be assigned the
12329# following values.
12330
12331_ACEOF
12332
12333# The following way of writing the cache mishandles newlines in values,
12334# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12335# So, we kill variables containing newlines.
b7026657
AC
12336# Ultrix sh set writes to stderr and can't be redirected directly,
12337# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12338(
12339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12340 eval ac_val=\$$ac_var
12341 case $ac_val in #(
12342 *${as_nl}*)
12343 case $ac_var in #(
12344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12346 esac
12347 case $ac_var in #(
12348 _ | IFS | as_nl) ;; #(
12349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12350 *) { eval $ac_var=; unset $ac_var;} ;;
12351 esac ;;
12352 esac
12353 done
12354
b7026657 12355 (set) 2>&1 |
81ecdfbb
RW
12356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12357 *${as_nl}ac_space=\ *)
12358 # `set' does not quote correctly, so add quotes: double-quote
12359 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
12360 sed -n \
12361 "s/'/'\\\\''/g;
12362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12363 ;; #(
b7026657
AC
12364 *)
12365 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 12367 ;;
81ecdfbb
RW
12368 esac |
12369 sort
12370) |
b7026657 12371 sed '
81ecdfbb 12372 /^ac_cv_env_/b end
b7026657 12373 t clear
81ecdfbb 12374 :clear
b7026657
AC
12375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12376 t end
81ecdfbb
RW
12377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12378 :end' >>confcache
12379if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12380 if test -w "$cache_file"; then
d0ac1c44 12381 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12383$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12384 if test ! -f "$cache_file" || test -h "$cache_file"; then
12385 cat confcache >"$cache_file"
12386 else
12387 case $cache_file in #(
12388 */* | ?:*)
12389 mv -f confcache "$cache_file"$$ &&
12390 mv -f "$cache_file"$$ "$cache_file" ;; #(
12391 *)
12392 mv -f confcache "$cache_file" ;;
12393 esac
12394 fi
12395 fi
b7026657 12396 else
81ecdfbb
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12398$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
12399 fi
12400fi
12401rm -f confcache
12402
12403test "x$prefix" = xNONE && prefix=$ac_default_prefix
12404# Let make expand exec_prefix.
12405test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12406
b7026657
AC
12407DEFS=-DHAVE_CONFIG_H
12408
12409ac_libobjs=
12410ac_ltlibobjs=
d0ac1c44 12411U=
b7026657
AC
12412for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12413 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12414 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12415 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12416 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12417 # will be set to the directory where LIBOBJS objects are built.
12418 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12419 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
12420done
12421LIBOBJS=$ac_libobjs
12422
12423LTLIBOBJS=$ac_ltlibobjs
12424
12425
0cb8d851 12426
db2e4d67 12427if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 12428 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
12429Usually this means the macro was only invoked conditionally." "$LINENO" 5
12430fi
6bb11ab3 12431if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 12432 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
12433Usually this means the macro was only invoked conditionally." "$LINENO" 5
12434fi
31e6ad7d 12435if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12436 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
12437Usually this means the macro was only invoked conditionally." "$LINENO" 5
12438fi
b7026657 12439
d0ac1c44 12440: "${CONFIG_STATUS=./config.status}"
81ecdfbb 12441ac_write_fail=0
b7026657
AC
12442ac_clean_files_save=$ac_clean_files
12443ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12445$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12446as_write_fail=0
12447cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
12448#! $SHELL
12449# Generated by $as_me.
12450# Run this file to recreate the current configuration.
12451# Compiler output produced by configure, useful for debugging
12452# configure, is in config.log if it exists.
12453
12454debug=false
12455ac_cs_recheck=false
12456ac_cs_silent=false
b7026657 12457
81ecdfbb
RW
12458SHELL=\${CONFIG_SHELL-$SHELL}
12459export SHELL
12460_ASEOF
12461cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12462## -------------------- ##
12463## M4sh Initialization. ##
12464## -------------------- ##
12465
12466# Be more Bourne compatible
12467DUALCASE=1; export DUALCASE # for MKS sh
12468if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
12469 emulate sh
12470 NULLCMD=:
81ecdfbb 12471 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
12472 # is contrary to our usage. Disable this feature.
12473 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12474 setopt NO_GLOB_SUBST
12475else
12476 case `(set -o) 2>/dev/null` in #(
12477 *posix*) :
12478 set -o posix ;; #(
12479 *) :
12480 ;;
12481esac
b7026657 12482fi
b7026657 12483
81ecdfbb
RW
12484
12485as_nl='
12486'
12487export as_nl
12488# Printing a long string crashes Solaris 7 /usr/bin/printf.
12489as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12490as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12492# Prefer a ksh shell builtin over an external printf program on Solaris,
12493# but without wasting forks for bash or zsh.
12494if test -z "$BASH_VERSION$ZSH_VERSION" \
12495 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12496 as_echo='print -r --'
12497 as_echo_n='print -rn --'
12498elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12499 as_echo='printf %s\n'
12500 as_echo_n='printf %s'
12501else
12502 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12503 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12504 as_echo_n='/usr/ucb/echo -n'
12505 else
12506 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12507 as_echo_n_body='eval
12508 arg=$1;
12509 case $arg in #(
12510 *"$as_nl"*)
12511 expr "X$arg" : "X\\(.*\\)$as_nl";
12512 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12513 esac;
12514 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12515 '
12516 export as_echo_n_body
12517 as_echo_n='sh -c $as_echo_n_body as_echo'
12518 fi
12519 export as_echo_body
12520 as_echo='sh -c $as_echo_body as_echo'
12521fi
12522
12523# The user is always right.
12524if test "${PATH_SEPARATOR+set}" != set; then
12525 PATH_SEPARATOR=:
12526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12528 PATH_SEPARATOR=';'
12529 }
c906108c 12530fi
b7026657
AC
12531
12532
81ecdfbb
RW
12533# IFS
12534# We need space, tab and new line, in precisely that order. Quoting is
12535# there to prevent editors from complaining about space-tab.
12536# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12537# splitting by setting IFS to empty value.)
12538IFS=" "" $as_nl"
12539
12540# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12541as_myself=
81ecdfbb
RW
12542case $0 in #((
12543 *[\\/]* ) as_myself=$0 ;;
12544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12550 done
12551IFS=$as_save_IFS
12552
12553 ;;
12554esac
12555# We did not find ourselves, most probably we were run as `sh COMMAND'
12556# in which case we are not to be found in the path.
12557if test "x$as_myself" = x; then
12558 as_myself=$0
12559fi
12560if test ! -f "$as_myself"; then
12561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12562 exit 1
12563fi
12564
12565# Unset variables that we do not need and which cause bugs (e.g. in
12566# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12567# suppresses any "Segmentation fault" message there. '((' could
12568# trigger a bug in pdksh 5.2.14.
12569for as_var in BASH_ENV ENV MAIL MAILPATH
12570do eval test x\${$as_var+set} = xset \
12571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12572done
b7026657
AC
12573PS1='$ '
12574PS2='> '
12575PS4='+ '
12576
12577# NLS nuisances.
81ecdfbb
RW
12578LC_ALL=C
12579export LC_ALL
12580LANGUAGE=C
12581export LANGUAGE
12582
12583# CDPATH.
12584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12585
12586
d0ac1c44
SM
12587# as_fn_error STATUS ERROR [LINENO LOG_FD]
12588# ----------------------------------------
81ecdfbb
RW
12589# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12590# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12591# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
12592as_fn_error ()
12593{
d0ac1c44
SM
12594 as_status=$1; test $as_status -eq 0 && as_status=1
12595 if test "$4"; then
12596 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 12598 fi
d0ac1c44 12599 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12600 as_fn_exit $as_status
12601} # as_fn_error
12602
12603
12604# as_fn_set_status STATUS
12605# -----------------------
12606# Set $? to STATUS, without forking.
12607as_fn_set_status ()
12608{
12609 return $1
12610} # as_fn_set_status
12611
12612# as_fn_exit STATUS
12613# -----------------
12614# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12615as_fn_exit ()
12616{
12617 set +e
12618 as_fn_set_status $1
12619 exit $1
12620} # as_fn_exit
12621
12622# as_fn_unset VAR
12623# ---------------
12624# Portably unset VAR.
12625as_fn_unset ()
12626{
12627 { eval $1=; unset $1;}
12628}
12629as_unset=as_fn_unset
12630# as_fn_append VAR VALUE
12631# ----------------------
12632# Append the text in VALUE to the end of the definition contained in VAR. Take
12633# advantage of any shell optimizations that allow amortized linear growth over
12634# repeated appends, instead of the typical quadratic growth present in naive
12635# implementations.
12636if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12637 eval 'as_fn_append ()
12638 {
12639 eval $1+=\$2
12640 }'
12641else
12642 as_fn_append ()
12643 {
12644 eval $1=\$$1\$2
12645 }
12646fi # as_fn_append
12647
12648# as_fn_arith ARG...
12649# ------------------
12650# Perform arithmetic evaluation on the ARGs, and store the result in the
12651# global $as_val. Take advantage of shells that can avoid forks. The arguments
12652# must be portable across $(()) and expr.
12653if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12654 eval 'as_fn_arith ()
12655 {
12656 as_val=$(( $* ))
12657 }'
12658else
12659 as_fn_arith ()
12660 {
12661 as_val=`expr "$@" || test $? -eq 1`
12662 }
12663fi # as_fn_arith
12664
b7026657 12665
81ecdfbb
RW
12666if expr a : '\(a\)' >/dev/null 2>&1 &&
12667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
12668 as_expr=expr
12669else
12670 as_expr=false
c906108c 12671fi
b7026657 12672
81ecdfbb 12673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
12674 as_basename=basename
12675else
12676 as_basename=false
c906108c
SS
12677fi
12678
81ecdfbb
RW
12679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12680 as_dirname=dirname
12681else
12682 as_dirname=false
12683fi
c906108c 12684
81ecdfbb 12685as_me=`$as_basename -- "$0" ||
b7026657
AC
12686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12687 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12689$as_echo X/"$0" |
12690 sed '/^.*\/\([^/][^/]*\)\/*$/{
12691 s//\1/
12692 q
12693 }
12694 /^X\/\(\/\/\)$/{
12695 s//\1/
12696 q
12697 }
12698 /^X\/\(\/\).*/{
12699 s//\1/
12700 q
12701 }
12702 s/.*/./; q'`
b7026657 12703
b7026657
AC
12704# Avoid depending upon Character Ranges.
12705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12708as_cr_digits='0123456789'
12709as_cr_alnum=$as_cr_Letters$as_cr_digits
12710
81ecdfbb
RW
12711ECHO_C= ECHO_N= ECHO_T=
12712case `echo -n x` in #(((((
12713-n*)
12714 case `echo 'xy\c'` in
12715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12716 xy) ECHO_C='\c';;
12717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12718 ECHO_T=' ';;
12719 esac;;
12720*)
12721 ECHO_N='-n';;
b7026657
AC
12722esac
12723
81ecdfbb
RW
12724rm -f conf$$ conf$$.exe conf$$.file
12725if test -d conf$$.dir; then
12726 rm -f conf$$.dir/conf$$.file
c906108c 12727else
81ecdfbb
RW
12728 rm -f conf$$.dir
12729 mkdir conf$$.dir 2>/dev/null
c906108c 12730fi
81ecdfbb
RW
12731if (echo >conf$$.file) 2>/dev/null; then
12732 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 12733 as_ln_s='ln -s'
81ecdfbb
RW
12734 # ... but there are two gotchas:
12735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12737 # In both cases, we have to default to `cp -pR'.
81ecdfbb 12738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12739 as_ln_s='cp -pR'
81ecdfbb
RW
12740 elif ln conf$$.file conf$$ 2>/dev/null; then
12741 as_ln_s=ln
12742 else
d0ac1c44 12743 as_ln_s='cp -pR'
b7026657 12744 fi
b7026657 12745else
d0ac1c44 12746 as_ln_s='cp -pR'
c906108c 12747fi
81ecdfbb
RW
12748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12749rmdir conf$$.dir 2>/dev/null
12750
12751
12752# as_fn_mkdir_p
12753# -------------
12754# Create "$as_dir" as a directory, including parents if necessary.
12755as_fn_mkdir_p ()
12756{
12757
12758 case $as_dir in #(
12759 -*) as_dir=./$as_dir;;
12760 esac
12761 test -d "$as_dir" || eval $as_mkdir_p || {
12762 as_dirs=
12763 while :; do
12764 case $as_dir in #(
12765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12766 *) as_qdir=$as_dir;;
12767 esac
12768 as_dirs="'$as_qdir' $as_dirs"
12769 as_dir=`$as_dirname -- "$as_dir" ||
12770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12771 X"$as_dir" : 'X\(//\)[^/]' \| \
12772 X"$as_dir" : 'X\(//\)$' \| \
12773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12774$as_echo X"$as_dir" |
12775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12776 s//\1/
12777 q
12778 }
12779 /^X\(\/\/\)[^/].*/{
12780 s//\1/
12781 q
12782 }
12783 /^X\(\/\/\)$/{
12784 s//\1/
12785 q
12786 }
12787 /^X\(\/\).*/{
12788 s//\1/
12789 q
12790 }
12791 s/.*/./; q'`
12792 test -d "$as_dir" && break
12793 done
12794 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12795 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 12796
c906108c 12797
81ecdfbb 12798} # as_fn_mkdir_p
b7026657 12799if mkdir -p . 2>/dev/null; then
81ecdfbb 12800 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 12801else
b7026657
AC
12802 test -d ./-p && rmdir ./-p
12803 as_mkdir_p=false
c906108c 12804fi
c906108c 12805
d0ac1c44
SM
12806
12807# as_fn_executable_p FILE
12808# -----------------------
12809# Test if FILE is an executable regular file.
12810as_fn_executable_p ()
12811{
12812 test -f "$1" && test -x "$1"
12813} # as_fn_executable_p
12814as_test_x='test -x'
12815as_executable_p=as_fn_executable_p
b7026657
AC
12816
12817# Sed expression to map a string onto a valid CPP name.
12818as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12819
12820# Sed expression to map a string onto a valid variable name.
12821as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12822
12823
b7026657 12824exec 6>&1
81ecdfbb
RW
12825## ----------------------------------- ##
12826## Main body of $CONFIG_STATUS script. ##
12827## ----------------------------------- ##
12828_ASEOF
12829test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12830
12831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12832# Save the log message, to keep $0 and so on meaningful, and to
b7026657 12833# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12834# values after options handling.
12835ac_log="
b7026657 12836This file was extended by $as_me, which was
d0ac1c44 12837generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
12838
12839 CONFIG_FILES = $CONFIG_FILES
12840 CONFIG_HEADERS = $CONFIG_HEADERS
12841 CONFIG_LINKS = $CONFIG_LINKS
12842 CONFIG_COMMANDS = $CONFIG_COMMANDS
12843 $ $0 $@
12844
81ecdfbb
RW
12845on `(hostname || uname -n) 2>/dev/null | sed 1q`
12846"
12847
b7026657
AC
12848_ACEOF
12849
81ecdfbb
RW
12850case $ac_config_files in *"
12851"*) set x $ac_config_files; shift; ac_config_files=$*;;
12852esac
b7026657 12853
81ecdfbb
RW
12854case $ac_config_headers in *"
12855"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12856esac
b7026657 12857
c906108c 12858
81ecdfbb
RW
12859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12860# Files that config.status was made for.
12861config_files="$ac_config_files"
12862config_headers="$ac_config_headers"
81ecdfbb 12863config_commands="$ac_config_commands"
c906108c 12864
81ecdfbb 12865_ACEOF
c906108c 12866
81ecdfbb 12867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 12868ac_cs_usage="\
81ecdfbb
RW
12869\`$as_me' instantiates files and other configuration actions
12870from templates according to the current configuration. Unless the files
12871and actions are specified as TAGs, all are instantiated by default.
c906108c 12872
81ecdfbb 12873Usage: $0 [OPTION]... [TAG]...
c906108c 12874
b7026657 12875 -h, --help print this help, then exit
81ecdfbb 12876 -V, --version print version number and configuration settings, then exit
d0ac1c44 12877 --config print configuration, then exit
81ecdfbb
RW
12878 -q, --quiet, --silent
12879 do not print progress messages
b7026657
AC
12880 -d, --debug don't remove temporary files
12881 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12882 --file=FILE[:TEMPLATE]
12883 instantiate the configuration file FILE
12884 --header=FILE[:TEMPLATE]
12885 instantiate the configuration header FILE
b7026657
AC
12886
12887Configuration files:
12888$config_files
12889
12890Configuration headers:
12891$config_headers
12892
b7026657
AC
12893Configuration commands:
12894$config_commands
12895
81ecdfbb 12896Report bugs to the package provider."
b7026657 12897
81ecdfbb
RW
12898_ACEOF
12899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12900ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
12901ac_cs_version="\\
12902config.status
d0ac1c44
SM
12903configured by $0, generated by GNU Autoconf 2.69,
12904 with options \\"\$ac_cs_config\\"
b7026657 12905
d0ac1c44 12906Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
12907This config.status script is free software; the Free Software Foundation
12908gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12909
12910ac_pwd='$ac_pwd'
12911srcdir='$srcdir'
12912INSTALL='$INSTALL'
6bb11ab3 12913AWK='$AWK'
81ecdfbb 12914test -n "\$AWK" || AWK=awk
b7026657
AC
12915_ACEOF
12916
81ecdfbb
RW
12917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12918# The default lists apply if the user does not specify any file.
b7026657
AC
12919ac_need_defaults=:
12920while test $# != 0
12921do
12922 case $1 in
d0ac1c44 12923 --*=?*)
81ecdfbb
RW
12924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 12926 ac_shift=:
c906108c 12927 ;;
d0ac1c44
SM
12928 --*=)
12929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12930 ac_optarg=
12931 ac_shift=:
12932 ;;
81ecdfbb 12933 *)
b7026657
AC
12934 ac_option=$1
12935 ac_optarg=$2
12936 ac_shift=shift
c906108c 12937 ;;
b7026657 12938 esac
c906108c 12939
b7026657
AC
12940 case $ac_option in
12941 # Handling of the options.
b7026657
AC
12942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12943 ac_cs_recheck=: ;;
81ecdfbb
RW
12944 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12945 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12946 --config | --confi | --conf | --con | --co | --c )
12947 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 12948 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
12949 debug=: ;;
12950 --file | --fil | --fi | --f )
12951 $ac_shift
81ecdfbb
RW
12952 case $ac_optarg in
12953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12954 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
12955 esac
12956 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
12957 ac_need_defaults=false;;
12958 --header | --heade | --head | --hea )
12959 $ac_shift
81ecdfbb
RW
12960 case $ac_optarg in
12961 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12962 esac
12963 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 12964 ac_need_defaults=false;;
81ecdfbb
RW
12965 --he | --h)
12966 # Conflict between --help and --header
d0ac1c44 12967 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
12968Try \`$0 --help' for more information.";;
12969 --help | --hel | -h )
12970 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
12971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12973 ac_cs_silent=: ;;
c906108c 12974
b7026657 12975 # This is an error.
d0ac1c44 12976 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 12977Try \`$0 --help' for more information." ;;
c906108c 12978
81ecdfbb
RW
12979 *) as_fn_append ac_config_targets " $1"
12980 ac_need_defaults=false ;;
b7026657
AC
12981
12982 esac
12983 shift
12984done
12985
12986ac_configure_extra_args=
12987
12988if $ac_cs_silent; then
12989 exec 6>/dev/null
12990 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
12991fi
12992
b7026657 12993_ACEOF
81ecdfbb 12994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 12995if \$ac_cs_recheck; then
d0ac1c44 12996 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
12997 shift
12998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12999 CONFIG_SHELL='$SHELL'
13000 export CONFIG_SHELL
13001 exec "\$@"
b7026657 13002fi
c906108c 13003
b7026657 13004_ACEOF
81ecdfbb
RW
13005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13006exec 5>>config.log
13007{
13008 echo
13009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13010## Running $as_me. ##
13011_ASBOX
13012 $as_echo "$ac_log"
13013} >&5
c906108c 13014
81ecdfbb
RW
13015_ACEOF
13016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
13017#
13018# INIT-COMMANDS
13019#
13020ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
13021
6bb11ab3
L
13022
13023# The HP-UX ksh and POSIX shell print the target directory to stdout
13024# if CDPATH is set.
13025(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13026
13027sed_quote_subst='$sed_quote_subst'
13028double_quote_subst='$double_quote_subst'
13029delay_variable_subst='$delay_variable_subst'
13030macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13031macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13032enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13033enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13034pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13035enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13036SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13037ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13038host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13039host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13040host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13041build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13042build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13043build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13044SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13045Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13046GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13047EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13048FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13049LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13050NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13051LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13052max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13053ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13054exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13055lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13056lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13057lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13058reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13059reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13060OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13061deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13062file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13063AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13064AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13065STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13066RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13067old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13068old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13069old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13070lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13071CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13072CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13073compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13074GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13075lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13076lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13078lt_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"`'
13079objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13080MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13081lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13082lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13083lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13084lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13085lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13086need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13087DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13088NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13089LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13090OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13091OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13092libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13093shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13094extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13095archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13096enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13097export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13098whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13099compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13100old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13101old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13102archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13103archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13104module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13105module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13106with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13107allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13108no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13109hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13110hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13111hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13112hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13113hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13114hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13115hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13116hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13117inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13118link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13119fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13120always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13121export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13122exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13123include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13124prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13125file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13126variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13127need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13128need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13129version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13130runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13131shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13132shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13133libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13134library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13135soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13136install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13137postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13138postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13139finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13140finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13141hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13142sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13143sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13144hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13145enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13146enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13147enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13148old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13149striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13150
13151LTCC='$LTCC'
13152LTCFLAGS='$LTCFLAGS'
13153compiler='$compiler_DEFAULT'
13154
13155# A function that is used when there is no print builtin or printf.
13156func_fallback_echo ()
13157{
13158 eval 'cat <<_LTECHO_EOF
13159\$1
13160_LTECHO_EOF'
13161}
13162
13163# Quote evaled strings.
13164for var in SHELL \
13165ECHO \
13166SED \
13167GREP \
13168EGREP \
13169FGREP \
13170LD \
13171NM \
13172LN_S \
13173lt_SP2NL \
13174lt_NL2SP \
13175reload_flag \
13176OBJDUMP \
13177deplibs_check_method \
13178file_magic_cmd \
13179AR \
13180AR_FLAGS \
13181STRIP \
13182RANLIB \
13183CC \
13184CFLAGS \
13185compiler \
13186lt_cv_sys_global_symbol_pipe \
13187lt_cv_sys_global_symbol_to_cdecl \
13188lt_cv_sys_global_symbol_to_c_name_address \
13189lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13190lt_prog_compiler_no_builtin_flag \
13191lt_prog_compiler_wl \
13192lt_prog_compiler_pic \
13193lt_prog_compiler_static \
13194lt_cv_prog_compiler_c_o \
13195need_locks \
13196DSYMUTIL \
13197NMEDIT \
13198LIPO \
13199OTOOL \
13200OTOOL64 \
13201shrext_cmds \
13202export_dynamic_flag_spec \
13203whole_archive_flag_spec \
13204compiler_needs_object \
13205with_gnu_ld \
13206allow_undefined_flag \
13207no_undefined_flag \
13208hardcode_libdir_flag_spec \
13209hardcode_libdir_flag_spec_ld \
13210hardcode_libdir_separator \
13211fix_srcfile_path \
13212exclude_expsyms \
13213include_expsyms \
13214file_list_spec \
13215variables_saved_for_relink \
13216libname_spec \
13217library_names_spec \
13218soname_spec \
13219install_override_mode \
13220finish_eval \
13221old_striplib \
13222striplib; do
13223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13224 *[\\\\\\\`\\"\\\$]*)
13225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13226 ;;
13227 *)
13228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13229 ;;
13230 esac
13231done
13232
13233# Double-quote double-evaled strings.
13234for var in reload_cmds \
13235old_postinstall_cmds \
13236old_postuninstall_cmds \
13237old_archive_cmds \
13238extract_expsyms_cmds \
13239old_archive_from_new_cmds \
13240old_archive_from_expsyms_cmds \
13241archive_cmds \
13242archive_expsym_cmds \
13243module_cmds \
13244module_expsym_cmds \
13245export_symbols_cmds \
13246prelink_cmds \
13247postinstall_cmds \
13248postuninstall_cmds \
13249finish_cmds \
13250sys_lib_search_path_spec \
13251sys_lib_dlsearch_path_spec; do
13252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13253 *[\\\\\\\`\\"\\\$]*)
13254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13255 ;;
13256 *)
13257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13258 ;;
13259 esac
13260done
13261
13262ac_aux_dir='$ac_aux_dir'
13263xsi_shell='$xsi_shell'
13264lt_shell_append='$lt_shell_append'
13265
13266# See if we are running on zsh, and set the options which allow our
13267# commands through without removal of \ escapes INIT.
13268if test -n "\${ZSH_VERSION+set}" ; then
13269 setopt NO_GLOB_SUBST
13270fi
13271
13272
13273 PACKAGE='$PACKAGE'
13274 VERSION='$VERSION'
13275 TIMESTAMP='$TIMESTAMP'
13276 RM='$RM'
13277 ofile='$ofile'
13278
13279
13280
13281
81ecdfbb 13282_ACEOF
c906108c 13283
81ecdfbb 13284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 13285
81ecdfbb 13286# Handling of arguments.
b7026657 13287for ac_config_target in $ac_config_targets
c906108c 13288do
81ecdfbb
RW
13289 case $ac_config_target in
13290 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 13291 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 13292 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
13293 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13294 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13295 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13296 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13297 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13298
d0ac1c44 13299 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
13300 esac
13301done
13302
81ecdfbb 13303
b7026657
AC
13304# If the user did not use the arguments to specify the items to instantiate,
13305# then the envvar interface is used. Set only those that are not.
13306# We use the long form for the default assignment because of an extremely
13307# bizarre bug on SunOS 4.1.3.
13308if $ac_need_defaults; then
13309 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13310 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
13311 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13312fi
13313
13314# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13315# simply because there is no reason against having it here, and in addition,
b7026657 13316# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13317# Hook for its removal unless debugging.
13318# Note that there is a small window in which the directory will not be cleaned:
13319# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
13320$debug ||
13321{
d0ac1c44 13322 tmp= ac_tmp=
81ecdfbb 13323 trap 'exit_status=$?
d0ac1c44
SM
13324 : "${ac_tmp:=$tmp}"
13325 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13326' 0
13327 trap 'as_fn_exit 1' 1 2 13 15
b7026657 13328}
b7026657 13329# Create a (secure) tmp directory for tmp files.
c906108c 13330
b7026657 13331{
81ecdfbb 13332 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13333 test -d "$tmp"
b7026657
AC
13334} ||
13335{
81ecdfbb
RW
13336 tmp=./conf$$-$RANDOM
13337 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13338} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13339ac_tmp=$tmp
b7026657 13340
81ecdfbb
RW
13341# Set up the scripts for CONFIG_FILES section.
13342# No need to generate them if there are no CONFIG_FILES.
13343# This happens for instance with `./config.status config.h'.
13344if test -n "$CONFIG_FILES"; then
b7026657 13345
c906108c 13346
81ecdfbb
RW
13347ac_cr=`echo X | tr X '\015'`
13348# On cygwin, bash can eat \r inside `` if the user requested igncr.
13349# But we know of no other shell where ac_cr would be empty at this
13350# point, so we can use a bashism as a fallback.
13351if test "x$ac_cr" = x; then
13352 eval ac_cr=\$\'\\r\'
13353fi
13354ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13355if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13356 ac_cs_awk_cr='\\r'
81ecdfbb
RW
13357else
13358 ac_cs_awk_cr=$ac_cr
13359fi
b7026657 13360
d0ac1c44 13361echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
13362_ACEOF
13363
c906108c 13364
81ecdfbb
RW
13365{
13366 echo "cat >conf$$subs.awk <<_ACEOF" &&
13367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13368 echo "_ACEOF"
13369} >conf$$subs.sh ||
d0ac1c44
SM
13370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13371ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
13372ac_delim='%!_!# '
13373for ac_last_try in false false false false false :; do
13374 . ./conf$$subs.sh ||
d0ac1c44 13375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13376
13377 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13378 if test $ac_delim_n = $ac_delim_num; then
13379 break
13380 elif $ac_last_try; then
d0ac1c44 13381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 13382 else
81ecdfbb
RW
13383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13384 fi
13385done
13386rm -f conf$$subs.sh
13387
13388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13389cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
13390_ACEOF
13391sed -n '
13392h
13393s/^/S["/; s/!.*/"]=/
13394p
13395g
13396s/^[^!]*!//
13397:repl
13398t repl
13399s/'"$ac_delim"'$//
13400t delim
13401:nl
13402h
d0ac1c44 13403s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13404t more1
13405s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13406p
13407n
13408b repl
13409:more1
13410s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13411p
13412g
13413s/.\{148\}//
13414t nl
13415:delim
13416h
d0ac1c44 13417s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13418t more2
13419s/["\\]/\\&/g; s/^/"/; s/$/"/
13420p
13421b
13422:more2
13423s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13424p
13425g
13426s/.\{148\}//
13427t delim
13428' <conf$$subs.awk | sed '
13429/^[^""]/{
13430 N
13431 s/\n//
13432}
13433' >>$CONFIG_STATUS || ac_write_fail=1
13434rm -f conf$$subs.awk
13435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13436_ACAWK
d0ac1c44 13437cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
13438 for (key in S) S_is_set[key] = 1
13439 FS = "\a"
b7026657 13440
81ecdfbb
RW
13441}
13442{
13443 line = $ 0
13444 nfields = split(line, field, "@")
13445 substed = 0
13446 len = length(field[1])
13447 for (i = 2; i < nfields; i++) {
13448 key = field[i]
13449 keylen = length(key)
13450 if (S_is_set[key]) {
13451 value = S[key]
13452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13453 len += length(value) + length(field[++i])
13454 substed = 1
13455 } else
13456 len += 1 + keylen
13457 }
13458
13459 print line
13460}
c906108c 13461
81ecdfbb
RW
13462_ACAWK
13463_ACEOF
13464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13465if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13466 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 13467else
81ecdfbb 13468 cat
d0ac1c44
SM
13469fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13470 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 13471_ACEOF
b7026657 13472
d0ac1c44
SM
13473# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13474# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
13475# trailing colons and then remove the whole line if VPATH becomes empty
13476# (actually we leave an empty line to preserve line numbers).
13477if test "x$srcdir" = x.; then
d0ac1c44
SM
13478 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13479h
13480s///
13481s/^/:/
13482s/[ ]*$/:/
13483s/:\$(srcdir):/:/g
13484s/:\${srcdir}:/:/g
13485s/:@srcdir@:/:/g
13486s/^:*//
81ecdfbb 13487s/:*$//
d0ac1c44
SM
13488x
13489s/\(=[ ]*\).*/\1/
13490G
13491s/\n//
81ecdfbb
RW
13492s/^[^=]*=[ ]*$//
13493}'
13494fi
c906108c 13495
81ecdfbb
RW
13496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13497fi # test -n "$CONFIG_FILES"
c906108c 13498
81ecdfbb
RW
13499# Set up the scripts for CONFIG_HEADERS section.
13500# No need to generate them if there are no CONFIG_HEADERS.
13501# This happens for instance with `./config.status Makefile'.
13502if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13503cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
13504BEGIN {
13505_ACEOF
b7026657 13506
81ecdfbb
RW
13507# Transform confdefs.h into an awk script `defines.awk', embedded as
13508# here-document in config.status, that substitutes the proper values into
13509# config.h.in to produce config.h.
c906108c 13510
81ecdfbb
RW
13511# Create a delimiter string that does not exist in confdefs.h, to ease
13512# handling of long lines.
13513ac_delim='%!_!# '
13514for ac_last_try in false false :; do
d0ac1c44
SM
13515 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13516 if test -z "$ac_tt"; then
81ecdfbb
RW
13517 break
13518 elif $ac_last_try; then
d0ac1c44 13519 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 13520 else
81ecdfbb 13521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 13522 fi
b7026657 13523done
81ecdfbb
RW
13524
13525# For the awk script, D is an array of macro values keyed by name,
13526# likewise P contains macro parameters if any. Preserve backslash
13527# newline sequences.
13528
13529ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13530sed -n '
13531s/.\{148\}/&'"$ac_delim"'/g
13532t rset
13533:rset
13534s/^[ ]*#[ ]*define[ ][ ]*/ /
13535t def
13536d
13537:def
13538s/\\$//
13539t bsnl
13540s/["\\]/\\&/g
13541s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13542D["\1"]=" \3"/p
13543s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13544d
13545:bsnl
13546s/["\\]/\\&/g
13547s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13548D["\1"]=" \3\\\\\\n"\\/p
13549t cont
13550s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13551t cont
13552d
13553:cont
13554n
13555s/.\{148\}/&'"$ac_delim"'/g
13556t clear
13557:clear
13558s/\\$//
13559t bsnlc
13560s/["\\]/\\&/g; s/^/"/; s/$/"/p
13561d
13562:bsnlc
13563s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13564b cont
13565' <confdefs.h | sed '
13566s/'"$ac_delim"'/"\\\
13567"/g' >>$CONFIG_STATUS || ac_write_fail=1
13568
13569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570 for (key in D) D_is_set[key] = 1
13571 FS = "\a"
13572}
13573/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13574 line = \$ 0
13575 split(line, arg, " ")
13576 if (arg[1] == "#") {
13577 defundef = arg[2]
13578 mac1 = arg[3]
13579 } else {
13580 defundef = substr(arg[1], 2)
13581 mac1 = arg[2]
13582 }
13583 split(mac1, mac2, "(") #)
13584 macro = mac2[1]
13585 prefix = substr(line, 1, index(line, defundef) - 1)
13586 if (D_is_set[macro]) {
13587 # Preserve the white space surrounding the "#".
13588 print prefix "define", macro P[macro] D[macro]
13589 next
13590 } else {
13591 # Replace #undef with comments. This is necessary, for example,
13592 # in the case of _POSIX_SOURCE, which is predefined and required
13593 # on some systems where configure will not decide to define it.
13594 if (defundef == "undef") {
13595 print "/*", prefix defundef, macro, "*/"
13596 next
13597 }
13598 }
13599}
13600{ print }
13601_ACAWK
b7026657 13602_ACEOF
81ecdfbb 13603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13604 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13605fi # test -n "$CONFIG_HEADERS"
b7026657 13606
c906108c 13607
99d8e879 13608eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
13609shift
13610for ac_tag
13611do
13612 case $ac_tag in
13613 :[FHLC]) ac_mode=$ac_tag; continue;;
c906108c 13614 esac
81ecdfbb
RW
13615 case $ac_mode$ac_tag in
13616 :[FHL]*:*);;
d0ac1c44 13617 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13618 :[FH]-) ac_tag=-:-;;
13619 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13620 esac
13621 ac_save_IFS=$IFS
13622 IFS=:
13623 set x $ac_tag
13624 IFS=$ac_save_IFS
13625 shift
13626 ac_file=$1
13627 shift
c906108c 13628
81ecdfbb
RW
13629 case $ac_mode in
13630 :L) ac_source=$1;;
13631 :[FH])
13632 ac_file_inputs=
13633 for ac_f
13634 do
13635 case $ac_f in
d0ac1c44 13636 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13637 *) # Look for the file first in the build tree, then in the source tree
13638 # (if the path is not absolute). The absolute path cannot be DOS-style,
13639 # because $ac_f cannot contain `:'.
13640 test -f "$ac_f" ||
13641 case $ac_f in
13642 [\\/$]*) false;;
13643 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13644 esac ||
d0ac1c44 13645 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 13646 esac
81ecdfbb
RW
13647 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13648 as_fn_append ac_file_inputs " '$ac_f'"
13649 done
b7026657 13650
81ecdfbb
RW
13651 # Let's still pretend it is `configure' which instantiates (i.e., don't
13652 # use $as_me), people would be surprised to read:
13653 # /* config.h. Generated by config.status. */
13654 configure_input='Generated from '`
13655 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13656 `' by configure.'
13657 if test x"$ac_file" != x-; then
13658 configure_input="$ac_file. $configure_input"
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13660$as_echo "$as_me: creating $ac_file" >&6;}
13661 fi
13662 # Neutralize special characters interpreted by sed in replacement strings.
13663 case $configure_input in #(
13664 *\&* | *\|* | *\\* )
13665 ac_sed_conf_input=`$as_echo "$configure_input" |
13666 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13667 *) ac_sed_conf_input=$configure_input;;
13668 esac
b7026657 13669
81ecdfbb 13670 case $ac_tag in
d0ac1c44
SM
13671 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
13673 esac
13674 ;;
13675 esac
b7026657 13676
81ecdfbb 13677 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
13678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13679 X"$ac_file" : 'X\(//\)[^/]' \| \
13680 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13681 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13682$as_echo X"$ac_file" |
13683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13684 s//\1/
13685 q
13686 }
13687 /^X\(\/\/\)[^/].*/{
13688 s//\1/
13689 q
13690 }
13691 /^X\(\/\/\)$/{
13692 s//\1/
13693 q
13694 }
13695 /^X\(\/\).*/{
13696 s//\1/
13697 q
13698 }
13699 s/.*/./; q'`
13700 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
13701 ac_builddir=.
13702
81ecdfbb
RW
13703case "$ac_dir" in
13704.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13705*)
13706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13707 # A ".." for each directory in $ac_dir_suffix.
13708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13709 case $ac_top_builddir_sub in
13710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13712 esac ;;
13713esac
13714ac_abs_top_builddir=$ac_pwd
13715ac_abs_builddir=$ac_pwd$ac_dir_suffix
13716# for backward compatibility:
13717ac_top_builddir=$ac_top_build_prefix
b7026657
AC
13718
13719case $srcdir in
81ecdfbb 13720 .) # We are building in place.
b7026657 13721 ac_srcdir=.
81ecdfbb
RW
13722 ac_top_srcdir=$ac_top_builddir_sub
13723 ac_abs_top_srcdir=$ac_pwd ;;
13724 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 13725 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13726 ac_top_srcdir=$srcdir
13727 ac_abs_top_srcdir=$srcdir ;;
13728 *) # Relative name.
13729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13730 ac_top_srcdir=$ac_top_build_prefix$srcdir
13731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 13732esac
81ecdfbb 13733ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 13734
c906108c 13735
81ecdfbb
RW
13736 case $ac_mode in
13737 :F)
13738 #
13739 # CONFIG_FILE
13740 #
b7026657 13741
81ecdfbb
RW
13742 case $INSTALL in
13743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13744 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 13745 esac
81ecdfbb 13746_ACEOF
c906108c 13747
81ecdfbb
RW
13748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13749# If the template does not know about datarootdir, expand it.
13750# FIXME: This hack should be removed a few years after 2.60.
13751ac_datarootdir_hack=; ac_datarootdir_seen=
13752ac_sed_dataroot='
13753/datarootdir/ {
13754 p
13755 q
13756}
13757/@datadir@/p
13758/@docdir@/p
13759/@infodir@/p
13760/@localedir@/p
13761/@mandir@/p'
13762case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13763*datarootdir*) ac_datarootdir_seen=yes;;
13764*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13766$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13767_ACEOF
13768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13769 ac_datarootdir_hack='
13770 s&@datadir@&$datadir&g
13771 s&@docdir@&$docdir&g
13772 s&@infodir@&$infodir&g
13773 s&@localedir@&$localedir&g
13774 s&@mandir@&$mandir&g
13775 s&\\\${datarootdir}&$datarootdir&g' ;;
13776esac
b7026657 13777_ACEOF
b7026657 13778
81ecdfbb
RW
13779# Neutralize VPATH when `$srcdir' = `.'.
13780# Shell code in configure.ac might set extrasub.
13781# FIXME: do we really want to maintain this feature?
13782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13783ac_sed_extra="$ac_vpsub
13784$extrasub
13785_ACEOF
13786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13787:t
13788/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13789s|@configure_input@|$ac_sed_conf_input|;t t
13790s&@top_builddir@&$ac_top_builddir_sub&;t t
13791s&@top_build_prefix@&$ac_top_build_prefix&;t t
13792s&@srcdir@&$ac_srcdir&;t t
13793s&@abs_srcdir@&$ac_abs_srcdir&;t t
13794s&@top_srcdir@&$ac_top_srcdir&;t t
13795s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13796s&@builddir@&$ac_builddir&;t t
13797s&@abs_builddir@&$ac_abs_builddir&;t t
13798s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13799s&@INSTALL@&$ac_INSTALL&;t t
13800$ac_datarootdir_hack
13801"
d0ac1c44
SM
13802eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13803 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13804
13805test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13806 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13808 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13810which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13811$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13812which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13813
d0ac1c44 13814 rm -f "$ac_tmp/stdin"
81ecdfbb 13815 case $ac_file in
d0ac1c44
SM
13816 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13817 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13818 esac \
d0ac1c44 13819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13820 ;;
13821 :H)
13822 #
13823 # CONFIG_HEADER
13824 #
13825 if test x"$ac_file" != x-; then
13826 {
13827 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13829 } >"$ac_tmp/config.h" \
13830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13831 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13833$as_echo "$as_me: $ac_file is unchanged" >&6;}
13834 else
13835 rm -f "$ac_file"
d0ac1c44
SM
13836 mv "$ac_tmp/config.h" "$ac_file" \
13837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 13838 fi
b7026657 13839 else
81ecdfbb 13840 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13842 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
13843 fi
13844 ;;
b7026657 13845
81ecdfbb
RW
13846 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13847$as_echo "$as_me: executing $ac_file commands" >&6;}
13848 ;;
13849 esac
b7026657
AC
13850
13851
81ecdfbb 13852 case $ac_file$ac_mode in
db2e4d67 13853 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13854 "libtool":C)
13855
13856 # See if we are running on zsh, and set the options which allow our
13857 # commands through without removal of \ escapes.
13858 if test -n "${ZSH_VERSION+set}" ; then
13859 setopt NO_GLOB_SUBST
13860 fi
13861
13862 cfgfile="${ofile}T"
13863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13864 $RM "$cfgfile"
13865
13866 cat <<_LT_EOF >> "$cfgfile"
13867#! $SHELL
13868
13869# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13870# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13871# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13872# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13873#
13874# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13875# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13876# Written by Gordon Matzigkeit, 1996
13877#
13878# This file is part of GNU Libtool.
13879#
13880# GNU Libtool is free software; you can redistribute it and/or
13881# modify it under the terms of the GNU General Public License as
13882# published by the Free Software Foundation; either version 2 of
13883# the License, or (at your option) any later version.
13884#
13885# As a special exception to the GNU General Public License,
13886# if you distribute this file as part of a program or library that
13887# is built using GNU Libtool, you may include this file under the
13888# same distribution terms that you use for the rest of that program.
13889#
13890# GNU Libtool is distributed in the hope that it will be useful,
13891# but WITHOUT ANY WARRANTY; without even the implied warranty of
13892# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13893# GNU General Public License for more details.
13894#
13895# You should have received a copy of the GNU General Public License
13896# along with GNU Libtool; see the file COPYING. If not, a copy
13897# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13898# obtained by writing to the Free Software Foundation, Inc.,
13899# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13900
13901
13902# The names of the tagged configurations supported by this script.
13903available_tags=""
13904
13905# ### BEGIN LIBTOOL CONFIG
13906
13907# Which release of libtool.m4 was used?
13908macro_version=$macro_version
13909macro_revision=$macro_revision
13910
13911# Whether or not to build shared libraries.
13912build_libtool_libs=$enable_shared
13913
13914# Whether or not to build static libraries.
13915build_old_libs=$enable_static
13916
13917# What type of objects to build.
13918pic_mode=$pic_mode
13919
13920# Whether or not to optimize for fast installation.
13921fast_install=$enable_fast_install
13922
13923# Shell to use when invoking shell scripts.
13924SHELL=$lt_SHELL
13925
13926# An echo program that protects backslashes.
13927ECHO=$lt_ECHO
13928
13929# The host system.
13930host_alias=$host_alias
13931host=$host
13932host_os=$host_os
13933
13934# The build system.
13935build_alias=$build_alias
13936build=$build
13937build_os=$build_os
13938
13939# A sed program that does not truncate output.
13940SED=$lt_SED
13941
13942# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13943Xsed="\$SED -e 1s/^X//"
13944
13945# A grep program that handles long lines.
13946GREP=$lt_GREP
13947
13948# An ERE matcher.
13949EGREP=$lt_EGREP
13950
13951# A literal string matcher.
13952FGREP=$lt_FGREP
13953
13954# A BSD- or MS-compatible name lister.
13955NM=$lt_NM
13956
13957# Whether we need soft or hard links.
13958LN_S=$lt_LN_S
13959
13960# What is the maximum length of a command?
13961max_cmd_len=$max_cmd_len
13962
13963# Object file suffix (normally "o").
13964objext=$ac_objext
13965
13966# Executable file suffix (normally "").
13967exeext=$exeext
13968
13969# whether the shell understands "unset".
13970lt_unset=$lt_unset
13971
13972# turn spaces into newlines.
13973SP2NL=$lt_lt_SP2NL
13974
13975# turn newlines into spaces.
13976NL2SP=$lt_lt_NL2SP
13977
13978# An object symbol dumper.
13979OBJDUMP=$lt_OBJDUMP
13980
13981# Method to check whether dependent libraries are shared objects.
13982deplibs_check_method=$lt_deplibs_check_method
13983
13984# Command to use when deplibs_check_method == "file_magic".
13985file_magic_cmd=$lt_file_magic_cmd
13986
13987# The archiver.
13988AR=$lt_AR
13989AR_FLAGS=$lt_AR_FLAGS
13990
13991# A symbol stripping program.
13992STRIP=$lt_STRIP
13993
13994# Commands used to install an old-style archive.
13995RANLIB=$lt_RANLIB
13996old_postinstall_cmds=$lt_old_postinstall_cmds
13997old_postuninstall_cmds=$lt_old_postuninstall_cmds
13998
13999# Whether to use a lock for old archive extraction.
14000lock_old_archive_extraction=$lock_old_archive_extraction
14001
14002# A C compiler.
14003LTCC=$lt_CC
14004
14005# LTCC compiler flags.
14006LTCFLAGS=$lt_CFLAGS
14007
14008# Take the output of nm and produce a listing of raw symbols and C names.
14009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14010
14011# Transform the output of nm in a proper C declaration.
14012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14013
14014# Transform the output of nm in a C name address pair.
14015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14016
14017# Transform the output of nm in a C name address pair when lib prefix is needed.
14018global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14019
14020# The name of the directory that contains temporary libtool files.
14021objdir=$objdir
14022
14023# Used to examine libraries when file_magic_cmd begins with "file".
14024MAGIC_CMD=$MAGIC_CMD
14025
14026# Must we lock files when doing compilation?
14027need_locks=$lt_need_locks
14028
14029# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14030DSYMUTIL=$lt_DSYMUTIL
14031
14032# Tool to change global to local symbols on Mac OS X.
14033NMEDIT=$lt_NMEDIT
14034
14035# Tool to manipulate fat objects and archives on Mac OS X.
14036LIPO=$lt_LIPO
14037
14038# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14039OTOOL=$lt_OTOOL
14040
14041# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14042OTOOL64=$lt_OTOOL64
14043
14044# Old archive suffix (normally "a").
14045libext=$libext
14046
14047# Shared library suffix (normally ".so").
14048shrext_cmds=$lt_shrext_cmds
14049
14050# The commands to extract the exported symbol list from a shared archive.
14051extract_expsyms_cmds=$lt_extract_expsyms_cmds
14052
14053# Variables whose values should be saved in libtool wrapper scripts and
14054# restored at link time.
14055variables_saved_for_relink=$lt_variables_saved_for_relink
14056
14057# Do we need the "lib" prefix for modules?
14058need_lib_prefix=$need_lib_prefix
14059
14060# Do we need a version for libraries?
14061need_version=$need_version
14062
14063# Library versioning type.
14064version_type=$version_type
14065
14066# Shared library runtime path variable.
14067runpath_var=$runpath_var
14068
14069# Shared library path variable.
14070shlibpath_var=$shlibpath_var
14071
14072# Is shlibpath searched before the hard-coded library search path?
14073shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14074
14075# Format of library name prefix.
14076libname_spec=$lt_libname_spec
14077
14078# List of archive names. First name is the real one, the rest are links.
14079# The last name is the one that the linker finds with -lNAME
14080library_names_spec=$lt_library_names_spec
14081
14082# The coded name of the library, if different from the real name.
14083soname_spec=$lt_soname_spec
14084
14085# Permission mode override for installation of shared libraries.
14086install_override_mode=$lt_install_override_mode
14087
14088# Command to use after installation of a shared archive.
14089postinstall_cmds=$lt_postinstall_cmds
14090
14091# Command to use after uninstallation of a shared archive.
14092postuninstall_cmds=$lt_postuninstall_cmds
14093
14094# Commands used to finish a libtool library installation in a directory.
14095finish_cmds=$lt_finish_cmds
14096
14097# As "finish_cmds", except a single script fragment to be evaled but
14098# not shown.
14099finish_eval=$lt_finish_eval
14100
14101# Whether we should hardcode library paths into libraries.
14102hardcode_into_libs=$hardcode_into_libs
14103
14104# Compile-time system search path for libraries.
14105sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14106
14107# Run-time system search path for libraries.
14108sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14109
14110# Whether dlopen is supported.
14111dlopen_support=$enable_dlopen
14112
14113# Whether dlopen of programs is supported.
14114dlopen_self=$enable_dlopen_self
14115
14116# Whether dlopen of statically linked programs is supported.
14117dlopen_self_static=$enable_dlopen_self_static
14118
14119# Commands to strip libraries.
14120old_striplib=$lt_old_striplib
14121striplib=$lt_striplib
14122
14123
14124# The linker used to build libraries.
14125LD=$lt_LD
14126
14127# How to create reloadable object files.
14128reload_flag=$lt_reload_flag
14129reload_cmds=$lt_reload_cmds
14130
14131# Commands used to build an old-style archive.
14132old_archive_cmds=$lt_old_archive_cmds
14133
14134# A language specific compiler.
14135CC=$lt_compiler
14136
14137# Is the compiler the GNU compiler?
14138with_gcc=$GCC
14139
14140# Compiler flag to turn off builtin functions.
14141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14142
14143# How to pass a linker flag through the compiler.
14144wl=$lt_lt_prog_compiler_wl
14145
14146# Additional compiler flags for building library objects.
14147pic_flag=$lt_lt_prog_compiler_pic
14148
14149# Compiler flag to prevent dynamic linking.
14150link_static_flag=$lt_lt_prog_compiler_static
14151
14152# Does compiler simultaneously support -c and -o options?
14153compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14154
14155# Whether or not to add -lc for building shared libraries.
14156build_libtool_need_lc=$archive_cmds_need_lc
14157
14158# Whether or not to disallow shared libs when runtime libs are static.
14159allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14160
14161# Compiler flag to allow reflexive dlopens.
14162export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14163
14164# Compiler flag to generate shared objects directly from archives.
14165whole_archive_flag_spec=$lt_whole_archive_flag_spec
14166
14167# Whether the compiler copes with passing no objects directly.
14168compiler_needs_object=$lt_compiler_needs_object
14169
14170# Create an old-style archive from a shared archive.
14171old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14172
14173# Create a temporary old-style archive to link instead of a shared archive.
14174old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14175
14176# Commands used to build a shared archive.
14177archive_cmds=$lt_archive_cmds
14178archive_expsym_cmds=$lt_archive_expsym_cmds
14179
14180# Commands used to build a loadable module if different from building
14181# a shared archive.
14182module_cmds=$lt_module_cmds
14183module_expsym_cmds=$lt_module_expsym_cmds
14184
14185# Whether we are building with GNU ld or not.
14186with_gnu_ld=$lt_with_gnu_ld
14187
14188# Flag that allows shared libraries with undefined symbols to be built.
14189allow_undefined_flag=$lt_allow_undefined_flag
14190
14191# Flag that enforces no undefined symbols.
14192no_undefined_flag=$lt_no_undefined_flag
14193
14194# Flag to hardcode \$libdir into a binary during linking.
14195# This must work even if \$libdir does not exist
14196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14197
14198# If ld is used when linking, flag to hardcode \$libdir into a binary
14199# during linking. This must work even if \$libdir does not exist.
14200hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14201
14202# Whether we need a single "-rpath" flag with a separated argument.
14203hardcode_libdir_separator=$lt_hardcode_libdir_separator
14204
14205# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14206# DIR into the resulting binary.
14207hardcode_direct=$hardcode_direct
14208
14209# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14210# DIR into the resulting binary and the resulting library dependency is
14211# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14212# library is relocated.
14213hardcode_direct_absolute=$hardcode_direct_absolute
14214
14215# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14216# into the resulting binary.
14217hardcode_minus_L=$hardcode_minus_L
14218
14219# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14220# into the resulting binary.
14221hardcode_shlibpath_var=$hardcode_shlibpath_var
14222
14223# Set to "yes" if building a shared library automatically hardcodes DIR
14224# into the library and all subsequent libraries and executables linked
14225# against it.
14226hardcode_automatic=$hardcode_automatic
14227
14228# Set to yes if linker adds runtime paths of dependent libraries
14229# to runtime path list.
14230inherit_rpath=$inherit_rpath
14231
14232# Whether libtool must link a program against all its dependency libraries.
14233link_all_deplibs=$link_all_deplibs
14234
14235# Fix the shell variable \$srcfile for the compiler.
14236fix_srcfile_path=$lt_fix_srcfile_path
14237
14238# Set to "yes" if exported symbols are required.
14239always_export_symbols=$always_export_symbols
14240
14241# The commands to list exported symbols.
14242export_symbols_cmds=$lt_export_symbols_cmds
14243
14244# Symbols that should not be listed in the preloaded symbols.
14245exclude_expsyms=$lt_exclude_expsyms
14246
14247# Symbols that must always be exported.
14248include_expsyms=$lt_include_expsyms
14249
14250# Commands necessary for linking programs (against libraries) with templates.
14251prelink_cmds=$lt_prelink_cmds
14252
14253# Specify filename containing input files.
14254file_list_spec=$lt_file_list_spec
14255
14256# How to hardcode a shared library path into an executable.
14257hardcode_action=$hardcode_action
14258
14259# ### END LIBTOOL CONFIG
14260
14261_LT_EOF
14262
14263 case $host_os in
14264 aix3*)
14265 cat <<\_LT_EOF >> "$cfgfile"
14266# AIX sometimes has problems with the GCC collect2 program. For some
14267# reason, if we set the COLLECT_NAMES environment variable, the problems
14268# vanish in a puff of smoke.
14269if test "X${COLLECT_NAMES+set}" != Xset; then
14270 COLLECT_NAMES=
14271 export COLLECT_NAMES
14272fi
14273_LT_EOF
14274 ;;
14275 esac
14276
14277
14278ltmain="$ac_aux_dir/ltmain.sh"
14279
14280
14281 # We use sed instead of cat because bash on DJGPP gets confused if
14282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14283 # text mode, it properly converts lines to CR/LF. This bash problem
14284 # is reportedly fixed, but why not run on old versions too?
14285 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14286 || (rm -f "$cfgfile"; exit 1)
14287
14288 case $xsi_shell in
14289 yes)
14290 cat << \_LT_EOF >> "$cfgfile"
14291
14292# func_dirname file append nondir_replacement
14293# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14294# otherwise set result to NONDIR_REPLACEMENT.
14295func_dirname ()
14296{
14297 case ${1} in
14298 */*) func_dirname_result="${1%/*}${2}" ;;
14299 * ) func_dirname_result="${3}" ;;
14300 esac
14301}
14302
14303# func_basename file
14304func_basename ()
14305{
14306 func_basename_result="${1##*/}"
14307}
14308
14309# func_dirname_and_basename file append nondir_replacement
14310# perform func_basename and func_dirname in a single function
14311# call:
14312# dirname: Compute the dirname of FILE. If nonempty,
14313# add APPEND to the result, otherwise set result
14314# to NONDIR_REPLACEMENT.
14315# value returned in "$func_dirname_result"
14316# basename: Compute filename of FILE.
14317# value retuned in "$func_basename_result"
14318# Implementation must be kept synchronized with func_dirname
14319# and func_basename. For efficiency, we do not delegate to
14320# those functions but instead duplicate the functionality here.
14321func_dirname_and_basename ()
14322{
14323 case ${1} in
14324 */*) func_dirname_result="${1%/*}${2}" ;;
14325 * ) func_dirname_result="${3}" ;;
14326 esac
14327 func_basename_result="${1##*/}"
14328}
14329
14330# func_stripname prefix suffix name
14331# strip PREFIX and SUFFIX off of NAME.
14332# PREFIX and SUFFIX must not contain globbing or regex special
14333# characters, hashes, percent signs, but SUFFIX may contain a leading
14334# dot (in which case that matches only a dot).
14335func_stripname ()
14336{
14337 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14338 # positional parameters, so assign one to ordinary parameter first.
14339 func_stripname_result=${3}
14340 func_stripname_result=${func_stripname_result#"${1}"}
14341 func_stripname_result=${func_stripname_result%"${2}"}
14342}
14343
14344# func_opt_split
14345func_opt_split ()
14346{
14347 func_opt_split_opt=${1%%=*}
14348 func_opt_split_arg=${1#*=}
14349}
14350
14351# func_lo2o object
14352func_lo2o ()
14353{
14354 case ${1} in
14355 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14356 *) func_lo2o_result=${1} ;;
14357 esac
14358}
14359
14360# func_xform libobj-or-source
14361func_xform ()
14362{
14363 func_xform_result=${1%.*}.lo
14364}
14365
14366# func_arith arithmetic-term...
14367func_arith ()
14368{
14369 func_arith_result=$(( $* ))
14370}
14371
14372# func_len string
14373# STRING may not start with a hyphen.
14374func_len ()
14375{
14376 func_len_result=${#1}
14377}
14378
14379_LT_EOF
14380 ;;
14381 *) # Bourne compatible functions.
14382 cat << \_LT_EOF >> "$cfgfile"
14383
14384# func_dirname file append nondir_replacement
14385# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14386# otherwise set result to NONDIR_REPLACEMENT.
14387func_dirname ()
14388{
14389 # Extract subdirectory from the argument.
14390 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14391 if test "X$func_dirname_result" = "X${1}"; then
14392 func_dirname_result="${3}"
14393 else
14394 func_dirname_result="$func_dirname_result${2}"
14395 fi
14396}
14397
14398# func_basename file
14399func_basename ()
14400{
14401 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14402}
14403
14404
14405# func_stripname prefix suffix name
14406# strip PREFIX and SUFFIX off of NAME.
14407# PREFIX and SUFFIX must not contain globbing or regex special
14408# characters, hashes, percent signs, but SUFFIX may contain a leading
14409# dot (in which case that matches only a dot).
14410# func_strip_suffix prefix name
14411func_stripname ()
14412{
14413 case ${2} in
14414 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14415 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14416 esac
14417}
14418
14419# sed scripts:
14420my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14421my_sed_long_arg='1s/^-[^=]*=//'
14422
14423# func_opt_split
14424func_opt_split ()
14425{
14426 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14427 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14428}
14429
14430# func_lo2o object
14431func_lo2o ()
14432{
14433 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14434}
14435
14436# func_xform libobj-or-source
14437func_xform ()
14438{
14439 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14440}
14441
14442# func_arith arithmetic-term...
14443func_arith ()
14444{
14445 func_arith_result=`expr "$@"`
14446}
14447
14448# func_len string
14449# STRING may not start with a hyphen.
14450func_len ()
14451{
14452 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14453}
14454
14455_LT_EOF
14456esac
14457
14458case $lt_shell_append in
14459 yes)
14460 cat << \_LT_EOF >> "$cfgfile"
14461
14462# func_append var value
14463# Append VALUE to the end of shell variable VAR.
14464func_append ()
14465{
14466 eval "$1+=\$2"
14467}
14468_LT_EOF
14469 ;;
14470 *)
14471 cat << \_LT_EOF >> "$cfgfile"
14472
14473# func_append var value
14474# Append VALUE to the end of shell variable VAR.
14475func_append ()
14476{
14477 eval "$1=\$$1\$2"
14478}
14479
14480_LT_EOF
14481 ;;
14482 esac
14483
14484
14485 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14486 || (rm -f "$cfgfile"; exit 1)
14487
14488 mv -f "$cfgfile" "$ofile" ||
14489 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14490 chmod +x "$ofile"
14491
14492 ;;
81ecdfbb 14493 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
14494 rm -f Makesim1.tmp Makesim2.tmp Makefile
14495 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14496 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14497 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
14498 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14499 <Makefile.sim >Makefile
38f48d72 14500 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 14501 ;;
81ecdfbb
RW
14502 "stamp-h":C) echo > stamp-h ;;
14503
b7026657 14504 esac
81ecdfbb 14505done # for ac_tag
c906108c 14506
b7026657 14507
81ecdfbb 14508as_fn_exit 0
b7026657 14509_ACEOF
b7026657
AC
14510ac_clean_files=$ac_clean_files_save
14511
81ecdfbb 14512test $ac_write_fail = 0 ||
d0ac1c44 14513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 14514
b7026657
AC
14515
14516# configure is writing to config.log, and then calls config.status.
14517# config.status does its own redirection, appending to config.log.
14518# Unfortunately, on DOS this fails, as config.log is still kept open
14519# by configure, so config.status won't be able to write to it; its
14520# output is simply discarded. So we exec the FD to /dev/null,
14521# effectively closing config.log, so it can be properly (re)opened and
14522# appended to by config.status. When coming back to configure, we
14523# need to make the FD available again.
14524if test "$no_create" != yes; then
14525 ac_cs_success=:
14526 ac_config_status_args=
14527 test "$silent" = yes &&
14528 ac_config_status_args="$ac_config_status_args --quiet"
14529 exec 5>/dev/null
14530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14531 exec 5>>config.log
14532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14533 # would make configure fail if this is the last instruction.
d0ac1c44 14534 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
14535fi
14536if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14538$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 14539fi
c906108c
SS
14540
14541