]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mips/configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / mips / 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
634cgen_breaks
635mips_extra_libs
636XMKMF
637mips_igen_engine
81ecdfbb
RW
638sim_multi_obj
639sim_multi_src
640sim_multi_igen_configs
641sim_multi_flags
642sim_gen
8e394ffc
AB
643sim_micromips16_flags
644sim_micromips_flags
81ecdfbb
RW
645sim_m16_flags
646sim_igen_flags
647SIM_SUBTARGET
648REPORT_BUGS_TEXI
649REPORT_BUGS_TO
650PKGVERSION
81ecdfbb 651MAINT
31e6ad7d
MF
652MAINTAINER_MODE_FALSE
653MAINTAINER_MODE_TRUE
6bb11ab3
L
654lt_cv_dlopen_libs
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660AWK
661STRIP
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669SED
670LIBTOOL
671PLUGINS_FALSE
672PLUGINS_TRUE
aadc9410
MF
673zlibinc
674zlibdir
81ecdfbb
RW
675CATOBJEXT
676GENCAT
677INSTOBJEXT
678DATADIRNAME
679CATALOGS
680POSUB
681GMSGFMT
682XGETTEXT
683INCINTL
684LIBINTL_DEP
685LIBINTL
686USE_NLS
db2e4d67
MF
687GMAKE_FALSE
688GMAKE_TRUE
689MAKE
690CCDEPMODE
691DEPDIR
692am__leading_dot
5f3ef9d0 693PACKAGE
46f900c0 694C_DIALECT
81ecdfbb
RW
695RANLIB
696AR
697HDEFINES
698CC_FOR_BUILD
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
2232061b
MF
702EGREP
703GREP
704CPP
81ecdfbb
RW
705target_os
706target_vendor
707target_cpu
708target
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
6ffe910a
MF
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
81ecdfbb
RW
724WERROR_CFLAGS
725WARN_CFLAGS
81ecdfbb 726sim_reserved_bits
81ecdfbb
RW
727sim_inline
728sim_hw
729sim_hw_objs
730sim_hw_cflags
731sim_default_model
732sim_scache
733sim_float
81ecdfbb
RW
734sim_endian
735sim_bitsize
81ecdfbb 736sim_alignment
81ecdfbb
RW
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
b7026657 775ac_subst_files=''
81ecdfbb
RW
776ac_user_opts='
777enable_option_checking
aadc9410 778with_system_zlib
6bb11ab3
L
779enable_plugins
780enable_shared
781enable_static
782with_pic
783enable_fast_install
784with_gnu_ld
785enable_libtool_lock
81ecdfbb 786enable_maintainer_mode
81ecdfbb
RW
787enable_sim_debug
788enable_sim_stdio
789enable_sim_trace
790enable_sim_profile
35656e95 791enable_sim_assert
16f7876d 792enable_sim_environment
347fe5bb 793enable_sim_inline
81ecdfbb
RW
794with_pkgversion
795with_bugurl
81ecdfbb 796enable_sim_alignment
2232061b 797enable_werror
81ecdfbb
RW
798enable_build_warnings
799enable_sim_build_warnings
800enable_sim_reserved_bits
801enable_sim_endian
802enable_sim_bitsize
803enable_sim_float
81ecdfbb
RW
804enable_sim_hardware
805with_x
806'
807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816XMKMF'
817
c906108c
SS
818
819# Initialize some variables set by options.
b7026657
AC
820ac_init_help=
821ac_init_version=false
81ecdfbb
RW
822ac_unrecognized_opts=
823ac_unrecognized_sep=
c906108c
SS
824# The variables have the same names as the options, with
825# dashes changed to underlines.
b7026657 826cache_file=/dev/null
c906108c 827exec_prefix=NONE
c906108c 828no_create=
c906108c
SS
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
c906108c
SS
837verbose=
838x_includes=NONE
839x_libraries=NONE
b7026657
AC
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 846# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
c906108c
SS
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
c906108c
SS
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
81ecdfbb
RW
857docdir='${datarootdir}/doc/${PACKAGE}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
c906108c 866
c906108c 867ac_prev=
81ecdfbb 868ac_dashdash=
c906108c
SS
869for ac_option
870do
c906108c
SS
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
81ecdfbb 873 eval $ac_prev=\$ac_option
c906108c
SS
874 ac_prev=
875 continue
876 fi
877
81ecdfbb 878 case $ac_option in
d0ac1c44
SM
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
81ecdfbb 882 esac
c906108c
SS
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
81ecdfbb
RW
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
c906108c
SS
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 893 bindir=$ac_optarg ;;
c906108c
SS
894
895 -build | --build | --buil | --bui | --bu)
b7026657 896 ac_prev=build_alias ;;
c906108c 897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 898 build_alias=$ac_optarg ;;
c906108c
SS
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
c906108c 909
81ecdfbb 910 -datadir | --datadir | --datadi | --datad)
c906108c 911 ac_prev=datadir ;;
81ecdfbb 912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 913 datadir=$ac_optarg ;;
c906108c 914
81ecdfbb
RW
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
c906108c 922 -disable-* | --disable-*)
81ecdfbb 923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 924 # Reject names that are not valid shell variable names.
81ecdfbb 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 926 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
c906108c
SS
947
948 -enable-* | --enable-*)
81ecdfbb 949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 950 # Reject names that are not valid shell variable names.
81ecdfbb 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 952 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
c906108c 961 esac
81ecdfbb 962 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
b7026657 971 exec_prefix=$ac_optarg ;;
c906108c
SS
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
b7026657
AC
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
c906108c
SS
983
984 -host | --host | --hos | --ho)
b7026657 985 ac_prev=host_alias ;;
c906108c 986 -host=* | --host=* | --hos=* | --ho=*)
b7026657 987 host_alias=$ac_optarg ;;
c906108c 988
81ecdfbb
RW
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
c906108c
SS
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1000 includedir=$ac_optarg ;;
c906108c
SS
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1005 infodir=$ac_optarg ;;
c906108c
SS
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1010 libdir=$ac_optarg ;;
c906108c
SS
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
b7026657 1017 libexecdir=$ac_optarg ;;
c906108c 1018
81ecdfbb
RW
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
c906108c 1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1025 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1029 localstatedir=$ac_optarg ;;
c906108c
SS
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1034 mandir=$ac_optarg ;;
c906108c
SS
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1041 | --no-cr | --no-c | -n)
c906108c
SS
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1055 oldincludedir=$ac_optarg ;;
c906108c
SS
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1060 prefix=$ac_optarg ;;
c906108c
SS
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1067 program_prefix=$ac_optarg ;;
c906108c
SS
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1074 program_suffix=$ac_optarg ;;
c906108c
SS
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1091 program_transform_name=$ac_optarg ;;
c906108c 1092
81ecdfbb
RW
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
c906108c
SS
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
b7026657 1111 sbindir=$ac_optarg ;;
c906108c
SS
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
b7026657 1122 sharedstatedir=$ac_optarg ;;
c906108c
SS
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
b7026657 1127 site=$ac_optarg ;;
e514a9d6 1128
c906108c
SS
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1132 srcdir=$ac_optarg ;;
c906108c
SS
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1139 sysconfdir=$ac_optarg ;;
c906108c
SS
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1142 ac_prev=target_alias ;;
c906108c 1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1144 target_alias=$ac_optarg ;;
c906108c
SS
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
b7026657
AC
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
c906108c
SS
1151
1152 -with-* | --with-*)
81ecdfbb 1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1154 # Reject names that are not valid shell variable names.
81ecdfbb 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1156 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"with_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
c906108c 1165 esac
81ecdfbb 1166 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1167
1168 -without-* | --without-*)
81ecdfbb 1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1170 # Reject names that are not valid shell variable names.
81ecdfbb 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1172 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177"with_$ac_useropt"
1178"*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
c906108c
SS
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1193 x_includes=$ac_optarg ;;
c906108c
SS
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1200 x_libraries=$ac_optarg ;;
c906108c 1201
d0ac1c44
SM
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
c906108c
SS
1204 ;;
1205
b7026657
AC
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1212 esac
1213 eval $ac_envvar=\$ac_optarg
b7026657
AC
1214 export $ac_envvar ;;
1215
c906108c 1216 *)
b7026657 1217 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1222 ;;
1223
1224 esac
1225done
1226
1227if test -n "$ac_prev"; then
b7026657 1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1229 as_fn_error $? "missing argument to $ac_option"
c906108c 1230fi
c906108c 1231
81ecdfbb
RW
1232if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
d0ac1c44 1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1237 esac
81ecdfbb 1238fi
c906108c 1239
81ecdfbb
RW
1240# Check all directory arguments for consistency.
1241for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
c906108c 1245do
81ecdfbb
RW
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
b7026657 1254 case $ac_val in
81ecdfbb
RW
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1257 esac
d0ac1c44 1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1259done
1260
b7026657
AC
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
b7026657
AC
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275fi
c906108c 1276
b7026657
AC
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
c906108c 1281
c906108c 1282
81ecdfbb
RW
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1286 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1288 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1289
1290
c906108c
SS
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
81ecdfbb
RW
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
c906108c 1318 srcdir=$ac_confdir
81ecdfbb 1319 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1320 srcdir=..
1321 fi
1322else
1323 ac_srcdir_defaulted=no
1324fi
81ecdfbb
RW
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
d0ac1c44 1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1332 pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
c906108c 1349
b7026657
AC
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357\`configure' configures this package to adapt to many kinds of systems.
c906108c 1358
b7026657 1359Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1360
b7026657
AC
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1363
b7026657 1364Defaults for the options are specified in brackets.
c906108c 1365
b7026657
AC
1366Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
d0ac1c44 1371 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
b7026657
AC
1377Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1379 [$ac_default_prefix]
b7026657 1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1381 [PREFIX]
c906108c 1382
b7026657
AC
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
c906108c 1387
b7026657
AC
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
81ecdfbb
RW
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1410_ACEOF
1411
1412 cat <<\_ACEOF
1413
1414Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419X features:
1420 --x-includes=DIR X include files are in DIR
1421 --x-libraries=DIR X library files are in DIR
1422
1423System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427_ACEOF
c906108c 1428fi
b7026657
AC
1429
1430if test -n "$ac_init_help"; then
1431
1432 cat <<\_ACEOF
1433
1434Optional Features:
81ecdfbb 1435 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1438 --enable-plugins Enable support for plugins
6bb11ab3
L
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1444 --enable-maintainer-mode
1445 enable make rules and dependencies not useful (and
1446 sometimes confusing) to the casual installer
8d0978fb
MF
1447 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1448 itself)
1449 --enable-sim-stdio Specify whether to use stdio for console
1450 input/output
1451 --enable-sim-trace=opts Enable tracing of simulated programs
1452 --enable-sim-profile=opts
1453 Enable profiling flags
35656e95 1454 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1455 --enable-sim-environment=environment
1456 Specify mixed, user, virtual or operating
1457 environment
8d0978fb
MF
1458 --enable-sim-inline=inlines
1459 Specify which functions should be inlined
1460 --enable-sim-alignment=align
1461 Specify strict, nonstrict or forced alignment of
1462 memory accesses
2232061b
MF
1463 --enable-werror treat compile warnings as errors
1464 --enable-build-warnings enable build-time compiler warnings if gcc is used
1465 --enable-sim-build-warnings
1466 enable SIM specific build-time compiler warnings if
1467 gcc is used
8d0978fb
MF
1468 --enable-sim-reserved-bits
1469 Specify whether to check reserved bits in
1470 instruction
1471 --enable-sim-endian=endian
1472 Specify target byte endian orientation
1473 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1474 --enable-sim-float Specify that the target processor has floating point
1475 hardware
1517bd27
MF
1476 --enable-sim-hardware=LIST
1477 Specify the hardware to be included in the build.
b7026657
AC
1478
1479Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1482 --with-system-zlib use installed libz
6bb11ab3
L
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1486 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468 1487 --with-bugurl=URL Direct users to URL to report a bug
b7026657
AC
1488 --with-x use the X Window System
1489
1490Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
81ecdfbb 1495 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1497 you have headers in a nonstandard directory <include dir>
b7026657 1498 CPP C preprocessor
81ecdfbb 1499 XMKMF Path to xmkmf, Makefile generator for X Window System
b7026657
AC
1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
81ecdfbb 1504Report bugs to the package provider.
b7026657 1505_ACEOF
81ecdfbb 1506ac_status=$?
c906108c
SS
1507fi
1508
b7026657
AC
1509if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
b7026657 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
b7026657 1515 ac_builddir=.
c906108c 1516
81ecdfbb
RW
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
c906108c 1532
b7026657 1533case $srcdir in
81ecdfbb 1534 .) # We are building in place.
b7026657 1535 ac_srcdir=.
81ecdfbb
RW
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1539 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1546esac
81ecdfbb
RW
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1557 else
81ecdfbb
RW
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1561 done
1562fi
1563
81ecdfbb 1564test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1565if $ac_init_version; then
1566 cat <<\_ACEOF
81ecdfbb 1567configure
d0ac1c44 1568generated by GNU Autoconf 2.69
b7026657 1569
d0ac1c44 1570Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1571This configure script is free software; the Free Software Foundation
1572gives unlimited permission to copy, distribute and modify it.
1573_ACEOF
81ecdfbb 1574 exit
b7026657 1575fi
b7026657 1576
81ecdfbb
RW
1577## ------------------------ ##
1578## Autoconf initialization. ##
1579## ------------------------ ##
b7026657 1580
81ecdfbb
RW
1581# ac_fn_c_try_compile LINENO
1582# --------------------------
1583# Try to compile conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_compile ()
b7026657 1585{
81ecdfbb
RW
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608else
1609 $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1611
81ecdfbb
RW
1612 ac_retval=1
1613fi
d0ac1c44
SM
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
b7026657 1616
81ecdfbb 1617} # ac_fn_c_try_compile
b7026657 1618
81ecdfbb
RW
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1640 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1648
81ecdfbb
RW
1649 ac_retval=1
1650fi
d0ac1c44
SM
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
b7026657 1653
81ecdfbb
RW
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657# -------------------------------------------------------
1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659# the include files in INCLUDES and setting the cache variable VAR
1660# accordingly.
1661ac_fn_c_check_header_mongrel ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1664 if eval \${$3+:} false; then :
81ecdfbb
RW
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1667if eval \${$3+:} false; then :
81ecdfbb
RW
1668 $as_echo_n "(cached) " >&6
1669fi
1670eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673else
1674 # Is the header compilable?
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676$as_echo_n "checking $2 usability... " >&6; }
1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h. */
1679$4
1680#include <$2>
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684else
1685 ac_header_compiler=no
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689$as_echo "$ac_header_compiler" >&6; }
1690
1691# Is the header present?
1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693$as_echo_n "checking $2 presence... " >&6; }
1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696#include <$2>
1697_ACEOF
1698if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700else
1701 ac_header_preproc=no
1702fi
d0ac1c44 1703rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705$as_echo "$ac_header_preproc" >&6; }
1706
1707# So? What about this header?
1708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1730if eval \${$3+:} false; then :
81ecdfbb
RW
1731 $as_echo_n "(cached) " >&6
1732else
1733 eval "$3=\$ac_header_compiler"
1734fi
1735eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737$as_echo "$ac_res" >&6; }
1738fi
d0ac1c44 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1740
1741} # ac_fn_c_check_header_mongrel
1742
1743# ac_fn_c_try_run LINENO
1744# ----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746# that executables *can* be run.
1747ac_fn_c_try_run ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
81ecdfbb
RW
1782
1783} # ac_fn_c_try_run
1784
1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists and can be compiled using the include files in
1788# INCLUDES, setting the cache variable VAR accordingly.
1789ac_fn_c_check_header_compile ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1794if eval \${$3+:} false; then :
81ecdfbb
RW
1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804else
1805 eval "$3=no"
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808fi
1809eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
d0ac1c44 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1813
1814} # ac_fn_c_check_header_compile
1815
1816# ac_fn_c_try_link LINENO
1817# -----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded.
1819ac_fn_c_try_link ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
d0ac1c44 1843 test -x conftest$ac_exeext
81ecdfbb
RW
1844 }; then :
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851fi
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
81ecdfbb
RW
1859
1860} # ac_fn_c_try_link
1861
1862# ac_fn_c_check_func LINENO FUNC VAR
1863# ----------------------------------
1864# Tests whether FUNC exists, setting the cache variable VAR accordingly
1865ac_fn_c_check_func ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1870if eval \${$3+:} false; then :
81ecdfbb
RW
1871 $as_echo_n "(cached) " >&6
1872else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h. */
1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877#define $2 innocuous_$2
1878
1879/* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1883
1884#ifdef __STDC__
1885# include <limits.h>
1886#else
1887# include <assert.h>
1888#endif
1889
1890#undef $2
1891
1892/* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1895#ifdef __cplusplus
1896extern "C"
1897#endif
1898char $2 ();
1899/* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902#if defined __stub_$2 || defined __stub___$2
1903choke me
1904#endif
1905
1906int
1907main ()
1908{
1909return $2 ();
1910 ;
1911 return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_link "$LINENO"; then :
1915 eval "$3=yes"
1916else
1917 eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1921fi
1922eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; }
d0ac1c44 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1926
1927} # ac_fn_c_check_func
936df756
MF
1928
1929# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1930# ----------------------------------------------------
1931# Tries to find if the field MEMBER exists in type AGGR, after including
1932# INCLUDES, setting cache variable VAR accordingly.
1933ac_fn_c_check_member ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1937$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1938if eval \${$4+:} false; then :
936df756
MF
1939 $as_echo_n "(cached) " >&6
1940else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943$5
1944int
1945main ()
1946{
1947static $2 ac_aggr;
1948if (ac_aggr.$3)
1949return 0;
1950 ;
1951 return 0;
1952}
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955 eval "$4=yes"
1956else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$5
1960int
1961main ()
1962{
1963static $2 ac_aggr;
1964if (sizeof ac_aggr.$3)
1965return 0;
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$4=yes"
1972else
1973 eval "$4=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978fi
1979eval ac_res=\$$4
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
d0ac1c44 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1983
1984} # ac_fn_c_check_member
1985
1986# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1987# -------------------------------------------
1988# Tests whether TYPE exists after having included INCLUDES, setting cache
1989# variable VAR accordingly.
1990ac_fn_c_check_type ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1995if eval \${$3+:} false; then :
936df756
MF
1996 $as_echo_n "(cached) " >&6
1997else
1998 eval "$3=no"
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002int
2003main ()
2004{
2005if (sizeof ($2))
2006 return 0;
2007 ;
2008 return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$4
2015int
2016main ()
2017{
2018if (sizeof (($2)))
2019 return 0;
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025
2026else
2027 eval "$3=yes"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
d0ac1c44 2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
2037
2038} # ac_fn_c_check_type
81ecdfbb
RW
2039cat >config.log <<_ACEOF
2040This file contains any messages produced by compilers while
2041running configure, to aid debugging if configure makes a mistake.
2042
2043It was created by $as_me, which was
d0ac1c44 2044generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2045
2046 $ $0 $@
2047
2048_ACEOF
2049exec 5>>config.log
2050{
2051cat <<_ASUNAME
2052## --------- ##
2053## Platform. ##
2054## --------- ##
2055
2056hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060uname -v = `(uname -v) 2>/dev/null || echo unknown`
2061
2062/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2064
2065/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2066/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2067/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2069/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2070/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2071/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2072
2073_ASUNAME
2074
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 $as_echo "PATH: $as_dir"
2081 done
2082IFS=$as_save_IFS
2083
2084} >&5
2085
2086cat >&5 <<_ACEOF
b7026657
AC
2087
2088
2089## ----------- ##
2090## Core tests. ##
2091## ----------- ##
2092
2093_ACEOF
2094
2095
2096# Keep a trace of the command line.
2097# Strip out --no-create and --no-recursion so they do not pile up.
2098# Strip out --silent because we don't want to record it for future runs.
2099# Also quote any args containing shell meta-characters.
2100# Make two passes to allow for proper duplicate-argument suppression.
2101ac_configure_args=
2102ac_configure_args0=
2103ac_configure_args1=
b7026657
AC
2104ac_must_keep_next=false
2105for ac_pass in 1 2
2106do
2107 for ac_arg
2108 do
2109 case $ac_arg in
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2113 continue ;;
81ecdfbb
RW
2114 *\'*)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2116 esac
2117 case $ac_pass in
81ecdfbb 2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2119 2)
81ecdfbb 2120 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2123 else
2124 case $ac_arg in
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131 esac
2132 ;;
2133 -* ) ac_must_keep_next=true ;;
2134 esac
2135 fi
81ecdfbb 2136 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2137 ;;
2138 esac
2139 done
2140done
81ecdfbb
RW
2141{ ac_configure_args0=; unset ac_configure_args0;}
2142{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2143
2144# When interrupted or exit'd, cleanup temporary files, and complete
2145# config.log. We remove comments because anyway the quotes in there
2146# would cause problems or look ugly.
81ecdfbb
RW
2147# WARNING: Use '\'' to represent an apostrophe within the trap.
2148# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2149trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2151 {
2152 echo
2153
d0ac1c44 2154 $as_echo "## ---------------- ##
b7026657 2155## Cache variables. ##
d0ac1c44 2156## ---------------- ##"
b7026657
AC
2157 echo
2158 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2159(
2160 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in #(
2163 *${as_nl}*)
2164 case $ac_var in #(
2165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2167 esac
2168 case $ac_var in #(
2169 _ | IFS | as_nl) ;; #(
2170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171 *) { eval $ac_var=; unset $ac_var;} ;;
2172 esac ;;
2173 esac
2174 done
b7026657 2175 (set) 2>&1 |
81ecdfbb
RW
2176 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177 *${as_nl}ac_space=\ *)
b7026657 2178 sed -n \
81ecdfbb
RW
2179 "s/'\''/'\''\\\\'\'''\''/g;
2180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2181 ;; #(
b7026657 2182 *)
81ecdfbb 2183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2184 ;;
81ecdfbb
RW
2185 esac |
2186 sort
2187)
b7026657
AC
2188 echo
2189
d0ac1c44 2190 $as_echo "## ----------------- ##
b7026657 2191## Output variables. ##
d0ac1c44 2192## ----------------- ##"
b7026657
AC
2193 echo
2194 for ac_var in $ac_subst_vars
2195 do
81ecdfbb
RW
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2201 done | sort
2202 echo
2203
2204 if test -n "$ac_subst_files"; then
d0ac1c44 2205 $as_echo "## ------------------- ##
81ecdfbb 2206## File substitutions. ##
d0ac1c44 2207## ------------------- ##"
b7026657
AC
2208 echo
2209 for ac_var in $ac_subst_files
2210 do
81ecdfbb
RW
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2216 done | sort
2217 echo
2218 fi
2219
2220 if test -s confdefs.h; then
d0ac1c44 2221 $as_echo "## ----------- ##
b7026657 2222## confdefs.h. ##
d0ac1c44 2223## ----------- ##"
b7026657 2224 echo
81ecdfbb 2225 cat confdefs.h
b7026657
AC
2226 echo
2227 fi
2228 test "$ac_signal" != 0 &&
81ecdfbb
RW
2229 $as_echo "$as_me: caught signal $ac_signal"
2230 $as_echo "$as_me: exit $exit_status"
b7026657 2231 } >&5
81ecdfbb
RW
2232 rm -f core *.core core.conftest.* &&
2233 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2234 exit $exit_status
81ecdfbb 2235' 0
b7026657 2236for ac_signal in 1 2 13 15; do
81ecdfbb 2237 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2238done
2239ac_signal=0
2240
2241# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2242rm -f -r conftest* confdefs.h
2243
2244$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2245
2246# Predefined preprocessor variables.
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_NAME "$PACKAGE_NAME"
2250_ACEOF
2251
b7026657
AC
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254_ACEOF
2255
b7026657
AC
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_VERSION "$PACKAGE_VERSION"
2258_ACEOF
2259
b7026657
AC
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_STRING "$PACKAGE_STRING"
2262_ACEOF
2263
b7026657
AC
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266_ACEOF
2267
81ecdfbb
RW
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_URL "$PACKAGE_URL"
2270_ACEOF
2271
b7026657
AC
2272
2273# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2274# Prefer an explicitly selected file to automatically selected ones.
2275ac_site_file1=NONE
2276ac_site_file2=NONE
2277if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2278 # We do not want a PATH search for config.site.
2279 case $CONFIG_SITE in #((
2280 -*) ac_site_file1=./$CONFIG_SITE;;
2281 */*) ac_site_file1=$CONFIG_SITE;;
2282 *) ac_site_file1=./$CONFIG_SITE;;
2283 esac
81ecdfbb
RW
2284elif test "x$prefix" != xNONE; then
2285 ac_site_file1=$prefix/share/config.site
2286 ac_site_file2=$prefix/etc/config.site
2287else
2288 ac_site_file1=$ac_default_prefix/share/config.site
2289 ac_site_file2=$ac_default_prefix/etc/config.site
2290fi
2291for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2292do
2293 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2294 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2297 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2298 . "$ac_site_file" \
2299 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301as_fn_error $? "failed to load site script $ac_site_file
2302See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2303 fi
2304done
2305
2306if test -r "$cache_file"; then
d0ac1c44
SM
2307 # Some versions of bash will fail to source /dev/null (special files
2308 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2309 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2311$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2312 case $cache_file in
81ecdfbb
RW
2313 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2314 *) . "./$cache_file";;
b7026657
AC
2315 esac
2316 fi
c906108c 2317else
81ecdfbb
RW
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2319$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2320 >$cache_file
2321fi
2322
2323# Check that the precious variables saved in the cache have kept the same
2324# value.
2325ac_cache_corrupted=false
81ecdfbb 2326for ac_var in $ac_precious_vars; do
b7026657
AC
2327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2331 case $ac_old_set,$ac_new_set in
2332 set,)
81ecdfbb
RW
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2335 ac_cache_corrupted=: ;;
2336 ,set)
81ecdfbb
RW
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2339 ac_cache_corrupted=: ;;
2340 ,);;
2341 *)
2342 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2343 # differences in whitespace do not lead to failure.
2344 ac_old_val_w=`echo x $ac_old_val`
2345 ac_new_val_w=`echo x $ac_new_val`
2346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349 ac_cache_corrupted=:
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353 eval $ac_var=\$ac_old_val
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2356$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2358$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2359 fi;;
2360 esac
2361 # Pass precious variables to config.status.
2362 if test "$ac_new_set" = set; then
2363 case $ac_new_val in
81ecdfbb 2364 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2365 *) ac_arg=$ac_var=$ac_new_val ;;
2366 esac
2367 case " $ac_configure_args " in
2368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2370 esac
2371 fi
2372done
2373if $ac_cache_corrupted; then
81ecdfbb
RW
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2378 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2379fi
81ecdfbb
RW
2380## -------------------- ##
2381## Main body of script. ##
2382## -------------------- ##
b7026657
AC
2383
2384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390
35695fd6
AC
2391# This file contains common code used by all simulators.
2392#
2393# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2394# directory. It is intended to be invoked before any target specific stuff.
2395# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2396# It is intended to be invoked last.
2397#
50df264d 2398# See README-HACKING for more details.
35695fd6 2399
d6416cdc
RW
2400# Include global overrides and fixes for Autoconf.
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
d6416cdc 2423
d6416cdc
RW
2424
2425
2426
2427
2428
2429
35695fd6
AC
2430
2431
2432
db2e4d67 2433
5c887dd5
JB
2434
2435
6bb11ab3 2436# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2437#
6bb11ab3
L
2438# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2439# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2440# Written by Gordon Matzigkeit, 1996
2441#
2442# This file is free software; the Free Software Foundation gives
2443# unlimited permission to copy and/or distribute it, with or without
2444# modifications, as long as this notice is preserved.
db2e4d67 2445
db2e4d67 2446
db2e4d67 2447
6bb11ab3 2448# serial 56 LT_INIT
db2e4d67
MF
2449
2450
6bb11ab3
L
2451# LT_PREREQ(VERSION)
2452# ------------------
2453# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2454
db2e4d67
MF
2455
2456
6bb11ab3
L
2457# _LT_CHECK_BUILDDIR
2458# ------------------
2459# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2460
2461
35695fd6 2462
6bb11ab3
L
2463# LT_INIT([OPTIONS])
2464# ------------------
2465# LT_INIT
35695fd6 2466
6bb11ab3
L
2467# Old names:
2468# This is what autoupdate's m4 run will expand. It fires
2469# the warning (with _au_warn_XXX), outputs it into the
2470# updated configure.ac (with AC_DIAGNOSE), and then outputs
2471# the replacement expansion.
35695fd6
AC
2472
2473
6bb11ab3
L
2474# This is an auxiliary macro that is also run when
2475# autoupdate runs m4. It simply calls m4_warning, but
2476# we need a wrapper so that each warning is emitted only
2477# once. We break the quoting in m4_warning's argument in
2478# order to expand this macro's arguments, not AU_DEFUN's.
35695fd6
AC
2479
2480
6bb11ab3
L
2481# Finally, this is the expansion that is picked up by
2482# autoconf. It tells the user to run autoupdate, and
2483# then outputs the replacement expansion. We do not care
2484# about autoupdate's warning because that contains
2485# information on what to do *after* running autoupdate.
35695fd6 2486
6bb11ab3
L
2487# This is what autoupdate's m4 run will expand. It fires
2488# the warning (with _au_warn_XXX), outputs it into the
2489# updated configure.ac (with AC_DIAGNOSE), and then outputs
2490# the replacement expansion.
35695fd6
AC
2491
2492
6bb11ab3
L
2493# This is an auxiliary macro that is also run when
2494# autoupdate runs m4. It simply calls m4_warning, but
2495# we need a wrapper so that each warning is emitted only
2496# once. We break the quoting in m4_warning's argument in
2497# order to expand this macro's arguments, not AU_DEFUN's.
35695fd6
AC
2498
2499
6bb11ab3
L
2500# Finally, this is the expansion that is picked up by
2501# autoconf. It tells the user to run autoupdate, and
2502# then outputs the replacement expansion. We do not care
2503# about autoupdate's warning because that contains
2504# information on what to do *after* running autoupdate.
35695fd6
AC
2505
2506
2507
6bb11ab3
L
2508# _LT_CC_BASENAME(CC)
2509# -------------------
2510# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35695fd6
AC
2511
2512
2513
6bb11ab3
L
2514# _LT_FILEUTILS_DEFAULTS
2515# ----------------------
2516# It is okay to use these file commands and assume they have been set
2517# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2518# _LT_FILEUTILS_DEFAULTS
35695fd6
AC
2519
2520
6bb11ab3
L
2521# _LT_SETUP
2522# ---------
2523# _LT_SETUP
35695fd6
AC
2524
2525
6bb11ab3
L
2526# _LT_PREPARE_SED_QUOTE_VARS
2527# --------------------------
2528# Define a few sed substitution that help us do robust quoting.
35695fd6
AC
2529
2530
6bb11ab3
L
2531# _LT_PROG_LTMAIN
2532# ---------------
2533# Note that this code is called both from `configure', and `config.status'
2534# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2535# `config.status' has no value for ac_aux_dir unless we are using Automake,
2536# so we pass a copy along to make sure it has a sensible value anyway.
2537# _LT_PROG_LTMAIN
35695fd6
AC
2538
2539
6bb11ab3
L
2540## ------------------------------------- ##
2541## Accumulate code for creating libtool. ##
2542## ------------------------------------- ##
35695fd6 2543
6bb11ab3
L
2544# So that we can recreate a full libtool script including additional
2545# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2546# in macros and then make a single call at the end using the `libtool'
2547# label.
35695fd6
AC
2548
2549
6bb11ab3
L
2550# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2551# ----------------------------------------
2552# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
35695fd6
AC
2553
2554
6bb11ab3 2555# Initialize.
35695fd6
AC
2556
2557
2558
6bb11ab3
L
2559# _LT_CONFIG_LIBTOOL([COMMANDS])
2560# ------------------------------
2561# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
35695fd6
AC
2562
2563
6bb11ab3 2564# Initialize.
35695fd6
AC
2565
2566
2567
6bb11ab3
L
2568# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2569# -----------------------------------------------------
35695fd6 2570
5912fadd
JB
2571
2572
6bb11ab3
L
2573# _LT_FORMAT_COMMENT([COMMENT])
2574# -----------------------------
2575# Add leading comment marks to the start of each line, and a trailing
2576# full-stop to the whole comment if one is not present already.
5912fadd
JB
2577
2578
35695fd6
AC
2579
2580
6bb11ab3
L
2581## ------------------------ ##
2582## FIXME: Eliminate VARNAME ##
2583## ------------------------ ##
35695fd6
AC
2584
2585
6bb11ab3
L
2586# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2587# -------------------------------------------------------------------
2588# CONFIGNAME is the name given to the value in the libtool script.
2589# VARNAME is the (base) name used in the configure script.
2590# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2591# VARNAME. Any other value will be used directly.
35695fd6 2592
35695fd6
AC
2593
2594
6bb11ab3
L
2595# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2596# --------------------------------------------------------
35695fd6
AC
2597
2598
2599
6bb11ab3
L
2600# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2601# ------------------------------------------------
35695fd6
AC
2602
2603
2604
6bb11ab3
L
2605# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2606# ---------------------------------------------------------
35695fd6
AC
2607
2608
2609
6bb11ab3
L
2610# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2611# --------------------------------------------------
35695fd6
AC
2612
2613
2614
6bb11ab3
L
2615# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2616# ---------------------------------------------------
35695fd6
AC
2617
2618
2619
6bb11ab3
L
2620# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2621# ---------------------------------------------------
35695fd6
AC
2622
2623
2624
2625
6bb11ab3
L
2626# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2627# ------------------------------------------------
35695fd6
AC
2628
2629
2630
2631
6bb11ab3
L
2632# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2633# ------------------------------------
2634# Quote a variable value, and forward it to `config.status' so that its
2635# declaration there will have the same value as in `configure'. VARNAME
2636# must have a single quote delimited value for this to work.
35695fd6
AC
2637
2638
2639
6bb11ab3
L
2640# _LT_CONFIG_STATUS_DECLARATIONS
2641# ------------------------------
2642# We delimit libtool config variables with single quotes, so when
2643# we write them to config.status, we have to be sure to quote all
2644# embedded single quotes properly. In configure, this macro expands
2645# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2646#
2647# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
35695fd6
AC
2648
2649
2650
6bb11ab3
L
2651# _LT_LIBTOOL_TAGS
2652# ----------------
2653# Output comment and list of tags supported by the script
35695fd6
AC
2654
2655
2656
6bb11ab3
L
2657# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2658# -----------------------------------
2659# Extract the dictionary values for VARNAME (optionally with TAG) and
2660# expand to a commented shell variable setting:
2661#
2662# # Some comment about what VAR is for.
2663# visible_name=$lt_internal_name
35695fd6
AC
2664
2665
35695fd6 2666
6bb11ab3
L
2667# _LT_LIBTOOL_CONFIG_VARS
2668# -----------------------
2669# Produce commented declarations of non-tagged libtool config variables
2670# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2671# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2672# section) are produced by _LT_LIBTOOL_TAG_VARS.
35695fd6
AC
2673
2674
6efef468 2675
6bb11ab3
L
2676# _LT_LIBTOOL_TAG_VARS(TAG)
2677# -------------------------
6efef468
JM
2678
2679
2680
6bb11ab3
L
2681# _LT_TAGVAR(VARNAME, [TAGNAME])
2682# ------------------------------
6efef468
JM
2683
2684
2685
6bb11ab3
L
2686# _LT_CONFIG_COMMANDS
2687# -------------------
2688# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2689# variables for single and double quote escaping we saved from calls
2690# to _LT_DECL, we can put quote escaped variables declarations
2691# into `config.status', and then the shell code to quote escape them in
2692# for loops in `config.status'. Finally, any additional code accumulated
2693# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2694#_LT_CONFIG_COMMANDS
2695
2696
2697# Initialize.
2698
2699
2700# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2701# ------------------------------------
2702# Generate a child script FILE with all initialization necessary to
2703# reuse the environment learned by the parent script, and make the
2704# file executable. If COMMENT is supplied, it is inserted after the
2705# `#!' sequence but before initialization text begins. After this
2706# macro, additional text can be appended to FILE to form the body of
2707# the child script. The macro ends with non-zero status if the
2708# file could not be fully written (such as if the disk is full).
2709# _LT_GENERATED_FILE_INIT
2710
2711# LT_OUTPUT
2712# ---------
2713# This macro allows early generation of the libtool script (before
2714# AC_OUTPUT is called), incase it is used in configure for compilation
2715# tests.
2716# LT_OUTPUT
2717
2718
2719# _LT_CONFIG(TAG)
2720# ---------------
2721# If TAG is the built-in tag, create an initial libtool script with a
2722# default configuration from the untagged config vars. Otherwise add code
2723# to config.status for appending the configuration named by TAG from the
2724# matching tagged config vars.
2725# _LT_CONFIG
6efef468
JM
2726
2727
6bb11ab3
L
2728# LT_SUPPORTED_TAG(TAG)
2729# ---------------------
2730# Trace this macro to discover what tags are supported by the libtool
2731# --tag option, using:
2732# autoconf --trace 'LT_SUPPORTED_TAG:$1'
6efef468 2733
6efef468 2734
6efef468 2735
6bb11ab3 2736# C support is built-in for now
6efef468 2737
6efef468
JM
2738
2739
2740
6bb11ab3
L
2741# LT_LANG(LANG)
2742# -------------
2743# Enable libtool support for the given language if not already enabled.
2744# LT_LANG
6efef468
JM
2745
2746
6bb11ab3
L
2747# _LT_LANG(LANGNAME)
2748# ------------------
2749# _LT_LANG
6efef468
JM
2750
2751
6bb11ab3
L
2752# _LT_LANG_DEFAULT_CONFIG
2753# -----------------------
2754# _LT_LANG_DEFAULT_CONFIG
6efef468 2755
6bb11ab3
L
2756# Obsolete macros:
2757# This is what autoupdate's m4 run will expand. It fires
2758# the warning (with _au_warn_XXX), outputs it into the
2759# updated configure.ac (with AC_DIAGNOSE), and then outputs
2760# the replacement expansion.
6efef468 2761
6efef468 2762
6bb11ab3
L
2763# This is an auxiliary macro that is also run when
2764# autoupdate runs m4. It simply calls m4_warning, but
2765# we need a wrapper so that each warning is emitted only
2766# once. We break the quoting in m4_warning's argument in
2767# order to expand this macro's arguments, not AU_DEFUN's.
6efef468 2768
6efef468 2769
6bb11ab3
L
2770# Finally, this is the expansion that is picked up by
2771# autoconf. It tells the user to run autoupdate, and
2772# then outputs the replacement expansion. We do not care
2773# about autoupdate's warning because that contains
2774# information on what to do *after* running autoupdate.
6efef468 2775
6bb11ab3
L
2776# This is what autoupdate's m4 run will expand. It fires
2777# the warning (with _au_warn_XXX), outputs it into the
2778# updated configure.ac (with AC_DIAGNOSE), and then outputs
2779# the replacement expansion.
6efef468
JM
2780
2781
6bb11ab3
L
2782# This is an auxiliary macro that is also run when
2783# autoupdate runs m4. It simply calls m4_warning, but
2784# we need a wrapper so that each warning is emitted only
2785# once. We break the quoting in m4_warning's argument in
2786# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2787
2788
6bb11ab3
L
2789# Finally, this is the expansion that is picked up by
2790# autoconf. It tells the user to run autoupdate, and
2791# then outputs the replacement expansion. We do not care
2792# about autoupdate's warning because that contains
2793# information on what to do *after* running autoupdate.
6efef468 2794
6bb11ab3
L
2795# This is what autoupdate's m4 run will expand. It fires
2796# the warning (with _au_warn_XXX), outputs it into the
2797# updated configure.ac (with AC_DIAGNOSE), and then outputs
2798# the replacement expansion.
6efef468
JM
2799
2800
6bb11ab3
L
2801# This is an auxiliary macro that is also run when
2802# autoupdate runs m4. It simply calls m4_warning, but
2803# we need a wrapper so that each warning is emitted only
2804# once. We break the quoting in m4_warning's argument in
2805# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2806
2807
6bb11ab3
L
2808# Finally, this is the expansion that is picked up by
2809# autoconf. It tells the user to run autoupdate, and
2810# then outputs the replacement expansion. We do not care
2811# about autoupdate's warning because that contains
2812# information on what to do *after* running autoupdate.
6efef468 2813
6bb11ab3
L
2814# This is what autoupdate's m4 run will expand. It fires
2815# the warning (with _au_warn_XXX), outputs it into the
2816# updated configure.ac (with AC_DIAGNOSE), and then outputs
2817# the replacement expansion.
6efef468
JM
2818
2819
6bb11ab3
L
2820# This is an auxiliary macro that is also run when
2821# autoupdate runs m4. It simply calls m4_warning, but
2822# we need a wrapper so that each warning is emitted only
2823# once. We break the quoting in m4_warning's argument in
2824# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2825
2826
6bb11ab3
L
2827# Finally, this is the expansion that is picked up by
2828# autoconf. It tells the user to run autoupdate, and
2829# then outputs the replacement expansion. We do not care
2830# about autoupdate's warning because that contains
2831# information on what to do *after* running autoupdate.
6efef468 2832
6bb11ab3
L
2833# This is what autoupdate's m4 run will expand. It fires
2834# the warning (with _au_warn_XXX), outputs it into the
2835# updated configure.ac (with AC_DIAGNOSE), and then outputs
2836# the replacement expansion.
6efef468
JM
2837
2838
6bb11ab3
L
2839# This is an auxiliary macro that is also run when
2840# autoupdate runs m4. It simply calls m4_warning, but
2841# we need a wrapper so that each warning is emitted only
2842# once. We break the quoting in m4_warning's argument in
2843# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2844
2845
6bb11ab3
L
2846# Finally, this is the expansion that is picked up by
2847# autoconf. It tells the user to run autoupdate, and
2848# then outputs the replacement expansion. We do not care
2849# about autoupdate's warning because that contains
2850# information on what to do *after* running autoupdate.
6efef468 2851
35695fd6 2852
b7026657 2853
6bb11ab3
L
2854# _LT_TAG_COMPILER
2855# ----------------
2856# _LT_TAG_COMPILER
35695fd6
AC
2857
2858
6bb11ab3
L
2859# _LT_COMPILER_BOILERPLATE
2860# ------------------------
2861# Check for compiler boilerplate output or warnings with
2862# the simple compiler test code.
2863# _LT_COMPILER_BOILERPLATE
f0569246 2864
f0569246 2865
6bb11ab3
L
2866# _LT_LINKER_BOILERPLATE
2867# ----------------------
2868# Check for linker boilerplate output or warnings with
2869# the simple link test code.
2870# _LT_LINKER_BOILERPLATE
b7026657 2871
6bb11ab3
L
2872# _LT_REQUIRED_DARWIN_CHECKS
2873# -------------------------
81ecdfbb 2874
b7026657 2875
b7026657 2876
6bb11ab3
L
2877# _LT_DARWIN_LINKER_FEATURES
2878# --------------------------
2879# Checks for linker and compiler features on darwin
b7026657 2880
b7026657 2881
6bb11ab3
L
2882# _LT_SYS_MODULE_PATH_AIX
2883# -----------------------
2884# Links a minimal program and checks the executable
2885# for the system default hardcoded library path. In most cases,
2886# this is /usr/lib:/lib, but when the MPI compilers are used
2887# the location of the communication and MPI libs are included too.
2888# If we don't find anything, use the default library path according
2889# to the aix ld manual.
2890# _LT_SYS_MODULE_PATH_AIX
b7026657 2891
b7026657 2892
6bb11ab3
L
2893# _LT_SHELL_INIT(ARG)
2894# -------------------
2895# _LT_SHELL_INIT
b7026657 2896
f0569246 2897
81ecdfbb 2898
6bb11ab3
L
2899# _LT_PROG_ECHO_BACKSLASH
2900# -----------------------
2901# Find how we can fake an echo command that does not interpret backslash.
2902# In particular, with Autoconf 2.60 or later we add some code to the start
2903# of the generated configure script which will find a shell with a builtin
2904# printf (which we can use as an echo command).
2905# _LT_PROG_ECHO_BACKSLASH
f0569246 2906
b7026657 2907
6bb11ab3
L
2908# _LT_ENABLE_LOCK
2909# ---------------
2910# _LT_ENABLE_LOCK
81ecdfbb 2911
b7026657 2912
6bb11ab3
L
2913# _LT_CMD_OLD_ARCHIVE
2914# -------------------
2915# _LT_CMD_OLD_ARCHIVE
f0569246 2916
81ecdfbb 2917
6bb11ab3
L
2918# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2919# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2920# ----------------------------------------------------------------
2921# Check whether the given compiler option works
2922# _LT_COMPILER_OPTION
b7026657 2923
6bb11ab3
L
2924# Old name:
2925# This is what autoupdate's m4 run will expand. It fires
2926# the warning (with _au_warn_XXX), outputs it into the
2927# updated configure.ac (with AC_DIAGNOSE), and then outputs
2928# the replacement expansion.
b7026657 2929
b7026657 2930
6bb11ab3
L
2931# This is an auxiliary macro that is also run when
2932# autoupdate runs m4. It simply calls m4_warning, but
2933# we need a wrapper so that each warning is emitted only
2934# once. We break the quoting in m4_warning's argument in
2935# order to expand this macro's arguments, not AU_DEFUN's.
f0569246 2936
f0569246 2937
6bb11ab3
L
2938# Finally, this is the expansion that is picked up by
2939# autoconf. It tells the user to run autoupdate, and
2940# then outputs the replacement expansion. We do not care
2941# about autoupdate's warning because that contains
2942# information on what to do *after* running autoupdate.
f0569246 2943
f0569246 2944
f0569246 2945
6bb11ab3
L
2946# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2947# [ACTION-SUCCESS], [ACTION-FAILURE])
2948# ----------------------------------------------------
2949# Check whether the given linker option works
2950# _LT_LINKER_OPTION
81ecdfbb 2951
6bb11ab3
L
2952# Old name:
2953# This is what autoupdate's m4 run will expand. It fires
2954# the warning (with _au_warn_XXX), outputs it into the
2955# updated configure.ac (with AC_DIAGNOSE), and then outputs
2956# the replacement expansion.
81ecdfbb 2957
81ecdfbb 2958
6bb11ab3
L
2959# This is an auxiliary macro that is also run when
2960# autoupdate runs m4. It simply calls m4_warning, but
2961# we need a wrapper so that each warning is emitted only
2962# once. We break the quoting in m4_warning's argument in
2963# order to expand this macro's arguments, not AU_DEFUN's.
81ecdfbb 2964
f0569246 2965
6bb11ab3
L
2966# Finally, this is the expansion that is picked up by
2967# autoconf. It tells the user to run autoupdate, and
2968# then outputs the replacement expansion. We do not care
2969# about autoupdate's warning because that contains
2970# information on what to do *after* running autoupdate.
2971
2972
2973
2974# LT_CMD_MAX_LEN
2975#---------------
2976# LT_CMD_MAX_LEN
2977
2978# Old name:
2979# This is what autoupdate's m4 run will expand. It fires
2980# the warning (with _au_warn_XXX), outputs it into the
2981# updated configure.ac (with AC_DIAGNOSE), and then outputs
2982# the replacement expansion.
2983
2984
2985# This is an auxiliary macro that is also run when
2986# autoupdate runs m4. It simply calls m4_warning, but
2987# we need a wrapper so that each warning is emitted only
2988# once. We break the quoting in m4_warning's argument in
2989# order to expand this macro's arguments, not AU_DEFUN's.
2990
2991
2992# Finally, this is the expansion that is picked up by
2993# autoconf. It tells the user to run autoupdate, and
2994# then outputs the replacement expansion. We do not care
2995# about autoupdate's warning because that contains
2996# information on what to do *after* running autoupdate.
2997
2998
2999
3000# _LT_HEADER_DLFCN
3001# ----------------
3002# _LT_HEADER_DLFCN
3003
3004
3005# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3006# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3007# ----------------------------------------------------------------
3008# _LT_TRY_DLOPEN_SELF
3009
3010
3011# LT_SYS_DLOPEN_SELF
3012# ------------------
3013# LT_SYS_DLOPEN_SELF
3014
3015# Old name:
3016# This is what autoupdate's m4 run will expand. It fires
3017# the warning (with _au_warn_XXX), outputs it into the
3018# updated configure.ac (with AC_DIAGNOSE), and then outputs
3019# the replacement expansion.
3020
3021
3022# This is an auxiliary macro that is also run when
3023# autoupdate runs m4. It simply calls m4_warning, but
3024# we need a wrapper so that each warning is emitted only
3025# once. We break the quoting in m4_warning's argument in
3026# order to expand this macro's arguments, not AU_DEFUN's.
3027
3028
3029# Finally, this is the expansion that is picked up by
3030# autoconf. It tells the user to run autoupdate, and
3031# then outputs the replacement expansion. We do not care
3032# about autoupdate's warning because that contains
3033# information on what to do *after* running autoupdate.
3034
3035
3036
3037# _LT_COMPILER_C_O([TAGNAME])
3038# ---------------------------
3039# Check to see if options -c and -o are simultaneously supported by compiler.
3040# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3041# _LT_COMPILER_C_O
3042
3043
3044# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3045# ----------------------------------
3046# Check to see if we can do hard links to lock some files if needed
3047# _LT_COMPILER_FILE_LOCKS
3048
3049
3050# _LT_CHECK_OBJDIR
3051# ----------------
3052# _LT_CHECK_OBJDIR
3053
3054
3055# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3056# --------------------------------------
3057# Check hardcoding attributes.
3058# _LT_LINKER_HARDCODE_LIBPATH
3059
3060
3061# _LT_CMD_STRIPLIB
3062# ----------------
3063# _LT_CMD_STRIPLIB
3064
3065
3066# _LT_SYS_DYNAMIC_LINKER([TAG])
3067# -----------------------------
3068# PORTME Fill in your ld.so characteristics
3069# _LT_SYS_DYNAMIC_LINKER
3070
3071
3072# _LT_PATH_TOOL_PREFIX(TOOL)
3073# --------------------------
3074# find a file program which can recognize shared library
3075# _LT_PATH_TOOL_PREFIX
3076
3077# Old name:
3078# This is what autoupdate's m4 run will expand. It fires
3079# the warning (with _au_warn_XXX), outputs it into the
3080# updated configure.ac (with AC_DIAGNOSE), and then outputs
3081# the replacement expansion.
3082
3083
3084# This is an auxiliary macro that is also run when
3085# autoupdate runs m4. It simply calls m4_warning, but
3086# we need a wrapper so that each warning is emitted only
3087# once. We break the quoting in m4_warning's argument in
3088# order to expand this macro's arguments, not AU_DEFUN's.
3089
3090
3091# Finally, this is the expansion that is picked up by
3092# autoconf. It tells the user to run autoupdate, and
3093# then outputs the replacement expansion. We do not care
3094# about autoupdate's warning because that contains
3095# information on what to do *after* running autoupdate.
3096
3097
3098
3099# _LT_PATH_MAGIC
3100# --------------
3101# find a file program which can recognize a shared library
3102# _LT_PATH_MAGIC
3103
3104
3105# LT_PATH_LD
3106# ----------
3107# find the pathname to the GNU or non-GNU linker
3108# LT_PATH_LD
3109
3110# Old names:
3111# This is what autoupdate's m4 run will expand. It fires
3112# the warning (with _au_warn_XXX), outputs it into the
3113# updated configure.ac (with AC_DIAGNOSE), and then outputs
3114# the replacement expansion.
3115
3116
3117# This is an auxiliary macro that is also run when
3118# autoupdate runs m4. It simply calls m4_warning, but
3119# we need a wrapper so that each warning is emitted only
3120# once. We break the quoting in m4_warning's argument in
3121# order to expand this macro's arguments, not AU_DEFUN's.
3122
3123
3124# Finally, this is the expansion that is picked up by
3125# autoconf. It tells the user to run autoupdate, and
3126# then outputs the replacement expansion. We do not care
3127# about autoupdate's warning because that contains
3128# information on what to do *after* running autoupdate.
3129
3130# This is what autoupdate's m4 run will expand. It fires
3131# the warning (with _au_warn_XXX), outputs it into the
3132# updated configure.ac (with AC_DIAGNOSE), and then outputs
3133# the replacement expansion.
3134
3135
3136# This is an auxiliary macro that is also run when
3137# autoupdate runs m4. It simply calls m4_warning, but
3138# we need a wrapper so that each warning is emitted only
3139# once. We break the quoting in m4_warning's argument in
3140# order to expand this macro's arguments, not AU_DEFUN's.
3141
3142
3143# Finally, this is the expansion that is picked up by
3144# autoconf. It tells the user to run autoupdate, and
3145# then outputs the replacement expansion. We do not care
3146# about autoupdate's warning because that contains
3147# information on what to do *after* running autoupdate.
3148
3149
3150
3151# _LT_PATH_LD_GNU
3152#- --------------
3153# _LT_PATH_LD_GNU
3154
3155
3156# _LT_CMD_RELOAD
3157# --------------
3158# find reload flag for linker
3159# -- PORTME Some linkers may need a different reload flag.
3160# _LT_CMD_RELOAD
3161
3162
3163# _LT_CHECK_MAGIC_METHOD
3164# ----------------------
3165# how to check for library dependencies
3166# -- PORTME fill in with the dynamic library characteristics
3167# _LT_CHECK_MAGIC_METHOD
3168
3169
3170# LT_PATH_NM
3171# ----------
3172# find the pathname to a BSD- or MS-compatible name lister
3173# LT_PATH_NM
3174
3175# Old names:
3176# This is what autoupdate's m4 run will expand. It fires
3177# the warning (with _au_warn_XXX), outputs it into the
3178# updated configure.ac (with AC_DIAGNOSE), and then outputs
3179# the replacement expansion.
3180
3181
3182# This is an auxiliary macro that is also run when
3183# autoupdate runs m4. It simply calls m4_warning, but
3184# we need a wrapper so that each warning is emitted only
3185# once. We break the quoting in m4_warning's argument in
3186# order to expand this macro's arguments, not AU_DEFUN's.
3187
3188
3189# Finally, this is the expansion that is picked up by
3190# autoconf. It tells the user to run autoupdate, and
3191# then outputs the replacement expansion. We do not care
3192# about autoupdate's warning because that contains
3193# information on what to do *after* running autoupdate.
3194
3195# This is what autoupdate's m4 run will expand. It fires
3196# the warning (with _au_warn_XXX), outputs it into the
3197# updated configure.ac (with AC_DIAGNOSE), and then outputs
3198# the replacement expansion.
3199
3200
3201# This is an auxiliary macro that is also run when
3202# autoupdate runs m4. It simply calls m4_warning, but
3203# we need a wrapper so that each warning is emitted only
3204# once. We break the quoting in m4_warning's argument in
3205# order to expand this macro's arguments, not AU_DEFUN's.
3206
3207
3208# Finally, this is the expansion that is picked up by
3209# autoconf. It tells the user to run autoupdate, and
3210# then outputs the replacement expansion. We do not care
3211# about autoupdate's warning because that contains
3212# information on what to do *after* running autoupdate.
3213
3214
3215
3216# LT_LIB_M
3217# --------
3218# check for math library
3219# LT_LIB_M
3220
3221# Old name:
3222# This is what autoupdate's m4 run will expand. It fires
3223# the warning (with _au_warn_XXX), outputs it into the
3224# updated configure.ac (with AC_DIAGNOSE), and then outputs
3225# the replacement expansion.
3226
3227
3228# This is an auxiliary macro that is also run when
3229# autoupdate runs m4. It simply calls m4_warning, but
3230# we need a wrapper so that each warning is emitted only
3231# once. We break the quoting in m4_warning's argument in
3232# order to expand this macro's arguments, not AU_DEFUN's.
3233
3234
3235# Finally, this is the expansion that is picked up by
3236# autoconf. It tells the user to run autoupdate, and
3237# then outputs the replacement expansion. We do not care
3238# about autoupdate's warning because that contains
3239# information on what to do *after* running autoupdate.
3240
3241
3242
3243# _LT_COMPILER_NO_RTTI([TAGNAME])
3244# -------------------------------
3245# _LT_COMPILER_NO_RTTI
3246
3247
3248# _LT_CMD_GLOBAL_SYMBOLS
3249# ----------------------
3250 # _LT_CMD_GLOBAL_SYMBOLS
3251
3252
3253# _LT_COMPILER_PIC([TAGNAME])
3254# ---------------------------
3255# _LT_COMPILER_PIC
3256
3257
3258# _LT_LINKER_SHLIBS([TAGNAME])
3259# ----------------------------
3260# See if the linker supports building shared libraries.
3261# _LT_LINKER_SHLIBS
3262
3263
3264# _LT_LANG_C_CONFIG([TAG])
3265# ------------------------
3266# Ensure that the configuration variables for a C compiler are suitably
3267# defined. These variables are subsequently used by _LT_CONFIG to write
3268# the compiler configuration to `libtool'.
3269# _LT_LANG_C_CONFIG
3270
3271
3272# _LT_LANG_CXX_CONFIG([TAG])
3273# --------------------------
3274# Ensure that the configuration variables for a C++ compiler are suitably
3275# defined. These variables are subsequently used by _LT_CONFIG to write
3276# the compiler configuration to `libtool'.
3277# _LT_LANG_CXX_CONFIG
3278
3279
3280# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3281# ---------------------------------
3282# Figure out "hidden" library dependencies from verbose
3283# compiler output when linking a shared library.
3284# Parse the compiler output and extract the necessary
3285# objects, libraries and library flags.
3286# _LT_SYS_HIDDEN_LIBDEPS
3287
3288
3289# _LT_LANG_F77_CONFIG([TAG])
3290# --------------------------
3291# Ensure that the configuration variables for a Fortran 77 compiler are
3292# suitably defined. These variables are subsequently used by _LT_CONFIG
3293# to write the compiler configuration to `libtool'.
3294# _LT_LANG_F77_CONFIG
3295
3296
3297# _LT_LANG_FC_CONFIG([TAG])
3298# -------------------------
3299# Ensure that the configuration variables for a Fortran compiler are
3300# suitably defined. These variables are subsequently used by _LT_CONFIG
3301# to write the compiler configuration to `libtool'.
3302# _LT_LANG_FC_CONFIG
3303
3304
3305# _LT_LANG_GCJ_CONFIG([TAG])
3306# --------------------------
3307# Ensure that the configuration variables for the GNU Java Compiler compiler
3308# are suitably defined. These variables are subsequently used by _LT_CONFIG
3309# to write the compiler configuration to `libtool'.
3310# _LT_LANG_GCJ_CONFIG
3311
3312
3313# _LT_LANG_RC_CONFIG([TAG])
3314# -------------------------
3315# Ensure that the configuration variables for the Windows resource compiler
3316# are suitably defined. These variables are subsequently used by _LT_CONFIG
3317# to write the compiler configuration to `libtool'.
3318# _LT_LANG_RC_CONFIG
3319
3320
3321# LT_PROG_GCJ
3322# -----------
3323
3324
3325# Old name:
3326# This is what autoupdate's m4 run will expand. It fires
3327# the warning (with _au_warn_XXX), outputs it into the
3328# updated configure.ac (with AC_DIAGNOSE), and then outputs
3329# the replacement expansion.
3330
3331
3332# This is an auxiliary macro that is also run when
3333# autoupdate runs m4. It simply calls m4_warning, but
3334# we need a wrapper so that each warning is emitted only
3335# once. We break the quoting in m4_warning's argument in
3336# order to expand this macro's arguments, not AU_DEFUN's.
3337
3338
3339# Finally, this is the expansion that is picked up by
3340# autoconf. It tells the user to run autoupdate, and
3341# then outputs the replacement expansion. We do not care
3342# about autoupdate's warning because that contains
3343# information on what to do *after* running autoupdate.
3344
3345
3346
3347# LT_PROG_RC
3348# ----------
3349
3350
3351# Old name:
3352# This is what autoupdate's m4 run will expand. It fires
3353# the warning (with _au_warn_XXX), outputs it into the
3354# updated configure.ac (with AC_DIAGNOSE), and then outputs
3355# the replacement expansion.
3356
3357
3358# This is an auxiliary macro that is also run when
3359# autoupdate runs m4. It simply calls m4_warning, but
3360# we need a wrapper so that each warning is emitted only
3361# once. We break the quoting in m4_warning's argument in
3362# order to expand this macro's arguments, not AU_DEFUN's.
3363
3364
3365# Finally, this is the expansion that is picked up by
3366# autoconf. It tells the user to run autoupdate, and
3367# then outputs the replacement expansion. We do not care
3368# about autoupdate's warning because that contains
3369# information on what to do *after* running autoupdate.
3370
3371
3372
3373# _LT_DECL_EGREP
3374# --------------
3375# If we don't have a new enough Autoconf to choose the best grep
3376# available, choose the one first in the user's PATH.
3377
3378
3379
3380# _LT_DECL_OBJDUMP
3381# --------------
3382# If we don't have a new enough Autoconf to choose the best objdump
3383# available, choose the one first in the user's PATH.
3384
3385
3386
3387# _LT_DECL_SED
3388# ------------
3389# Check for a fully-functional sed program, that truncates
3390# as few characters as possible. Prefer GNU sed if found.
3391# _LT_DECL_SED
3392
3393#m4_ifndef
3394
3395# Old name:
3396# This is what autoupdate's m4 run will expand. It fires
3397# the warning (with _au_warn_XXX), outputs it into the
3398# updated configure.ac (with AC_DIAGNOSE), and then outputs
3399# the replacement expansion.
3400
3401
3402# This is an auxiliary macro that is also run when
3403# autoupdate runs m4. It simply calls m4_warning, but
3404# we need a wrapper so that each warning is emitted only
3405# once. We break the quoting in m4_warning's argument in
3406# order to expand this macro's arguments, not AU_DEFUN's.
3407
3408
3409# Finally, this is the expansion that is picked up by
3410# autoconf. It tells the user to run autoupdate, and
3411# then outputs the replacement expansion. We do not care
3412# about autoupdate's warning because that contains
3413# information on what to do *after* running autoupdate.
3414
3415
3416
3417# _LT_CHECK_SHELL_FEATURES
3418# ------------------------
3419# Find out whether the shell is Bourne or XSI compatible,
3420# or has some other useful features.
3421# _LT_CHECK_SHELL_FEATURES
3422
3423
3424# _LT_PROG_XSI_SHELLFNS
3425# ---------------------
3426# Bourne and XSI compatible variants of some useful shell functions.
3427
3428
3429# Helper functions for option handling. -*- Autoconf -*-
3430#
3431# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3432# Inc.
3433# Written by Gary V. Vaughan, 2004
3434#
3435# This file is free software; the Free Software Foundation gives
3436# unlimited permission to copy and/or distribute it, with or without
3437# modifications, as long as this notice is preserved.
3438
3439# serial 6 ltoptions.m4
3440
3441# This is to help aclocal find these macros, as it can't see m4_define.
3442
3443
3444
3445# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3446# ------------------------------------------
3447
3448
3449
3450# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3451# ---------------------------------------
3452# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3453# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3454# saved as a flag.
3455
3456
3457
3458# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3459# ------------------------------------------------------------
3460# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3461
3462
3463
3464# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3465# -------------------------------------------------------
3466# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3467# are set.
3468
3469
3470
3471# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3472# ----------------------------------------
3473# OPTION-LIST is a space-separated list of Libtool options associated
3474# with MACRO-NAME. If any OPTION has a matching handler declared with
3475# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3476# the unknown option and exit.
3477# _LT_SET_OPTIONS
3478
3479
3480## --------------------------------- ##
3481## Macros to handle LT_INIT options. ##
3482## --------------------------------- ##
3483
3484# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3485# -----------------------------------------
3486
3487
3488
3489# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3490# -----------------------------------------------
3491# LT_OPTION_DEFINE
3492
3493
3494# dlopen
3495# ------
3496
3497
3498# This is what autoupdate's m4 run will expand. It fires
3499# the warning (with _au_warn_XXX), outputs it into the
3500# updated configure.ac (with AC_DIAGNOSE), and then outputs
3501# the replacement expansion.
3502
3503
3504# This is an auxiliary macro that is also run when
3505# autoupdate runs m4. It simply calls m4_warning, but
3506# we need a wrapper so that each warning is emitted only
3507# once. We break the quoting in m4_warning's argument in
3508# order to expand this macro's arguments, not AU_DEFUN's.
3509
3510
3511# Finally, this is the expansion that is picked up by
3512# autoconf. It tells the user to run autoupdate, and
3513# then outputs the replacement expansion. We do not care
3514# about autoupdate's warning because that contains
3515# information on what to do *after* running autoupdate.
3516
3517
3518
3519
3520# win32-dll
3521# ---------
3522# Declare package support for building win32 dll's.
3523# win32-dll
3524
3525# This is what autoupdate's m4 run will expand. It fires
3526# the warning (with _au_warn_XXX), outputs it into the
3527# updated configure.ac (with AC_DIAGNOSE), and then outputs
3528# the replacement expansion.
3529
3530
3531# This is an auxiliary macro that is also run when
3532# autoupdate runs m4. It simply calls m4_warning, but
3533# we need a wrapper so that each warning is emitted only
3534# once. We break the quoting in m4_warning's argument in
3535# order to expand this macro's arguments, not AU_DEFUN's.
3536
3537
3538# Finally, this is the expansion that is picked up by
3539# autoconf. It tells the user to run autoupdate, and
3540# then outputs the replacement expansion. We do not care
3541# about autoupdate's warning because that contains
3542# information on what to do *after* running autoupdate.
3543
3544
3545
3546
3547# _LT_ENABLE_SHARED([DEFAULT])
3548# ----------------------------
3549# implement the --enable-shared flag, and supports the `shared' and
3550# `disable-shared' LT_INIT options.
3551# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3552# _LT_ENABLE_SHARED
3553
3554
3555
3556
3557# Old names:
3558
3559
3560
3561
3562# This is what autoupdate's m4 run will expand. It fires
3563# the warning (with _au_warn_XXX), outputs it into the
3564# updated configure.ac (with AC_DIAGNOSE), and then outputs
3565# the replacement expansion.
3566
3567
3568# This is an auxiliary macro that is also run when
3569# autoupdate runs m4. It simply calls m4_warning, but
3570# we need a wrapper so that each warning is emitted only
3571# once. We break the quoting in m4_warning's argument in
3572# order to expand this macro's arguments, not AU_DEFUN's.
3573
3574
3575# Finally, this is the expansion that is picked up by
3576# autoconf. It tells the user to run autoupdate, and
3577# then outputs the replacement expansion. We do not care
3578# about autoupdate's warning because that contains
3579# information on what to do *after* running autoupdate.
3580
3581# This is what autoupdate's m4 run will expand. It fires
3582# the warning (with _au_warn_XXX), outputs it into the
3583# updated configure.ac (with AC_DIAGNOSE), and then outputs
3584# the replacement expansion.
3585
3586
3587# This is an auxiliary macro that is also run when
3588# autoupdate runs m4. It simply calls m4_warning, but
3589# we need a wrapper so that each warning is emitted only
3590# once. We break the quoting in m4_warning's argument in
3591# order to expand this macro's arguments, not AU_DEFUN's.
3592
3593
3594# Finally, this is the expansion that is picked up by
3595# autoconf. It tells the user to run autoupdate, and
3596# then outputs the replacement expansion. We do not care
3597# about autoupdate's warning because that contains
3598# information on what to do *after* running autoupdate.
3599
3600
3601
3602
3603
3604# _LT_ENABLE_STATIC([DEFAULT])
3605# ----------------------------
3606# implement the --enable-static flag, and support the `static' and
3607# `disable-static' LT_INIT options.
3608# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3609# _LT_ENABLE_STATIC
3610
3611
3612
3613
3614# Old names:
3615
3616
3617
3618
3619# This is what autoupdate's m4 run will expand. It fires
3620# the warning (with _au_warn_XXX), outputs it into the
3621# updated configure.ac (with AC_DIAGNOSE), and then outputs
3622# the replacement expansion.
3623
3624
3625# This is an auxiliary macro that is also run when
3626# autoupdate runs m4. It simply calls m4_warning, but
3627# we need a wrapper so that each warning is emitted only
3628# once. We break the quoting in m4_warning's argument in
3629# order to expand this macro's arguments, not AU_DEFUN's.
3630
3631
3632# Finally, this is the expansion that is picked up by
3633# autoconf. It tells the user to run autoupdate, and
3634# then outputs the replacement expansion. We do not care
3635# about autoupdate's warning because that contains
3636# information on what to do *after* running autoupdate.
3637
3638# This is what autoupdate's m4 run will expand. It fires
3639# the warning (with _au_warn_XXX), outputs it into the
3640# updated configure.ac (with AC_DIAGNOSE), and then outputs
3641# the replacement expansion.
3642
3643
3644# This is an auxiliary macro that is also run when
3645# autoupdate runs m4. It simply calls m4_warning, but
3646# we need a wrapper so that each warning is emitted only
3647# once. We break the quoting in m4_warning's argument in
3648# order to expand this macro's arguments, not AU_DEFUN's.
3649
3650
3651# Finally, this is the expansion that is picked up by
3652# autoconf. It tells the user to run autoupdate, and
3653# then outputs the replacement expansion. We do not care
3654# about autoupdate's warning because that contains
3655# information on what to do *after* running autoupdate.
3656
3657
3658
3659
3660
3661# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3662# ----------------------------------
3663# implement the --enable-fast-install flag, and support the `fast-install'
3664# and `disable-fast-install' LT_INIT options.
3665# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3666# _LT_ENABLE_FAST_INSTALL
3667
3668
3669
3670
3671# Old names:
3672# This is what autoupdate's m4 run will expand. It fires
3673# the warning (with _au_warn_XXX), outputs it into the
3674# updated configure.ac (with AC_DIAGNOSE), and then outputs
3675# the replacement expansion.
3676
3677
3678# This is an auxiliary macro that is also run when
3679# autoupdate runs m4. It simply calls m4_warning, but
3680# we need a wrapper so that each warning is emitted only
3681# once. We break the quoting in m4_warning's argument in
3682# order to expand this macro's arguments, not AU_DEFUN's.
3683
3684
3685# Finally, this is the expansion that is picked up by
3686# autoconf. It tells the user to run autoupdate, and
3687# then outputs the replacement expansion. We do not care
3688# about autoupdate's warning because that contains
3689# information on what to do *after* running autoupdate.
3690
3691
3692# This is what autoupdate's m4 run will expand. It fires
3693# the warning (with _au_warn_XXX), outputs it into the
3694# updated configure.ac (with AC_DIAGNOSE), and then outputs
3695# the replacement expansion.
3696
3697
3698# This is an auxiliary macro that is also run when
3699# autoupdate runs m4. It simply calls m4_warning, but
3700# we need a wrapper so that each warning is emitted only
3701# once. We break the quoting in m4_warning's argument in
3702# order to expand this macro's arguments, not AU_DEFUN's.
3703
3704
3705# Finally, this is the expansion that is picked up by
3706# autoconf. It tells the user to run autoupdate, and
3707# then outputs the replacement expansion. We do not care
3708# about autoupdate's warning because that contains
3709# information on what to do *after* running autoupdate.
3710
3711
3712
3713
3714# _LT_WITH_PIC([MODE])
3715# --------------------
3716# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3717# LT_INIT options.
3718# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3719# _LT_WITH_PIC
3720
3721
3722
3723
3724# Old name:
3725# This is what autoupdate's m4 run will expand. It fires
3726# the warning (with _au_warn_XXX), outputs it into the
3727# updated configure.ac (with AC_DIAGNOSE), and then outputs
3728# the replacement expansion.
3729
3730
3731# This is an auxiliary macro that is also run when
3732# autoupdate runs m4. It simply calls m4_warning, but
3733# we need a wrapper so that each warning is emitted only
3734# once. We break the quoting in m4_warning's argument in
3735# order to expand this macro's arguments, not AU_DEFUN's.
3736
3737
3738# Finally, this is the expansion that is picked up by
3739# autoconf. It tells the user to run autoupdate, and
3740# then outputs the replacement expansion. We do not care
3741# about autoupdate's warning because that contains
3742# information on what to do *after* running autoupdate.
3743
3744
3745
3746## ----------------- ##
3747## LTDL_INIT Options ##
3748## ----------------- ##
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3760#
3761# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3762# Written by Gary V. Vaughan, 2004
3763#
3764# This file is free software; the Free Software Foundation gives
3765# unlimited permission to copy and/or distribute it, with or without
3766# modifications, as long as this notice is preserved.
3767
3768# serial 6 ltsugar.m4
3769
3770# This is to help aclocal find these macros, as it can't see m4_define.
3771
3772
3773
3774# lt_join(SEP, ARG1, [ARG2...])
3775# -----------------------------
3776# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3777# associated separator.
3778# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3779# versions in m4sugar had bugs.
3780
3781
3782
3783
3784# lt_car(LIST)
3785# lt_cdr(LIST)
3786# ------------
3787# Manipulate m4 lists.
3788# These macros are necessary as long as will still need to support
3789# Autoconf-2.59 which quotes differently.
3790
3791
3792
3793
3794
3795# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3796# ------------------------------------------
3797# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3798# Note that neither SEPARATOR nor STRING are expanded; they are appended
3799# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3800# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3801# than defined and empty).
3802#
3803# This macro is needed until we can rely on Autoconf 2.62, since earlier
3804# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3805
3806
3807
3808
3809# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3810# ----------------------------------------------------------
3811# Produce a SEP delimited list of all paired combinations of elements of
3812# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3813# has the form PREFIXmINFIXSUFFIXn.
3814# Needed until we can rely on m4_combine added in Autoconf 2.62.
3815
3816
3817
3818# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3819# -----------------------------------------------------------------------
3820# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3821# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3822
3823
3824
3825# lt_dict_add(DICT, KEY, VALUE)
3826# -----------------------------
3827
3828
3829
3830# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3831# --------------------------------------------
3832
3833
3834
3835# lt_dict_fetch(DICT, KEY, [SUBKEY])
3836# ----------------------------------
3837
3838
3839
3840# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3841# -----------------------------------------------------------------
3842
3843
3844
3845# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3846# --------------------------------------------------------------
3847
3848
3849# ltversion.m4 -- version numbers -*- Autoconf -*-
3850#
3851# Copyright (C) 2004 Free Software Foundation, Inc.
3852# Written by Scott James Remnant, 2004
3853#
3854# This file is free software; the Free Software Foundation gives
3855# unlimited permission to copy and/or distribute it, with or without
3856# modifications, as long as this notice is preserved.
3857
3858# Generated from ltversion.in.
3859
3860# serial 3134 ltversion.m4
3861# This file is part of GNU Libtool
3862
3863
3864
3865
3866
3867
3868# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3869#
3870# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3871# Written by Scott James Remnant, 2004.
3872#
3873# This file is free software; the Free Software Foundation gives
3874# unlimited permission to copy and/or distribute it, with or without
3875# modifications, as long as this notice is preserved.
3876
3877# serial 4 lt~obsolete.m4
3878
3879# These exist entirely to fool aclocal when bootstrapping libtool.
3880#
3881# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3882# which have later been changed to m4_define as they aren't part of the
3883# exported API, or moved to Autoconf or Automake where they belong.
3884#
3885# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3886# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3887# using a macro with the same name in our local m4/libtool.m4 it'll
3888# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3889# and doesn't know about Autoconf macros at all.)
3890#
3891# So we provide this file, which has a silly filename so it's always
3892# included after everything else. This provides aclocal with the
3893# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3894# because those macros already exist, or will be overwritten later.
3895# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3896#
3897# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3898# Yes, that means every name once taken will need to remain here until
3899# we give up compatibility with versions before 1.7, at which point
3900# we need to keep only those names which we still refer to.
3901
3902# This is to help aclocal find these macros, as it can't see m4_define.
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967## -*- Autoconf -*-
3968
3969# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3970# Free Software Foundation, Inc.
3971#
3972# This file is free software; the Free Software Foundation
3973# gives unlimited permission to copy and/or distribute it,
3974# with or without modifications, as long as this notice is preserved.
3975
3976# serial 8
3977
3978# Based on depend.m4 from automake 1.9, modified for standalone use in
3979# an environment where GNU make is required.
3980
3981# ZW_PROG_COMPILER_DEPENDENCIES
3982# -----------------------------
3983# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3984# sets fooDEPMODE accordingly. Cache-variable compatible with
3985# original; not side-effect compatible. As the users of this macro
3986# may require accurate dependencies for correct builds, it does *not*
3987# honor --disable-dependency-checking, and failure to detect a usable
3988# method is an error. depcomp is assumed to be located in
3989# $ac_aux_dir.
3990#
3991# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3992
3993
3994
3995# AM_SET_DEPDIR
3996# -------------
3997# Choose a directory name for dependency files.
3998
3999
4000# ZW_CREATE_DEPDIR
4001# ----------------
4002# As AM_SET_DEPDIR, but also create the directory at config.status time.
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
6bb11ab3
L
4044
4045
4046
4047
4048
6bb11ab3
L
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
6bb11ab3
L
4064
4065
4066
4067
4068
4069# intl sister-directory configuration rules.
4070#
4071
4072# The idea behind this macro is that there's no need to repeat all the
4073# autoconf probes done by the intl directory - it's already done them
4074# for us. In fact, there's no need even to look at the cache for the
4075# answers. All we need to do is nab a few pieces of information.
4076# The intl directory is set up to make this easy, by generating a
4077# small file which can be sourced as a shell script; then we produce
4078# the necessary substitutions and definitions for this directory.
4079
4080
4081
4082# Autoconf M4 include file defining utility macros for complex Canadian
4083# cross builds.
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093####
4094# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4095# or AC_INIT.
4096# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4097
4098####
4099# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4100# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4101
4102
4103####
4104# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4105# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4106
4107
4108
4109# Backported from Autoconf 2.5x; can go away when and if
4110# we switch. Put the OS path separator in $PATH_SEPARATOR.
4111
4112
4113
4114
37f980dc
SM
4115
4116
4117
4118
6bb11ab3
L
4119# ACX_HAVE_GCC_FOR_TARGET
4120# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4121
4122
4123# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4124# Searching for installed target binutils. We need to take extra care,
4125# else we may find the wrong assembler, linker, etc., and lose.
4126#
4127# First try --with-build-time-tools, if specified.
4128#
4129# For build != host, we ask the installed GCC for the name of the tool it
4130# uses, and accept it if it is an absolute path. This is because the
4131# only good choice for a compiler is the same GCC version that is being
4132# installed (or we couldn't make target libraries), and we assume that
4133# on the host system we'll have not only the same GCC version, but also
4134# the same binutils version.
4135#
4136# For build == host, search the same directories that the installed
4137# compiler will search. We used to do this for the assembler, linker,
4138# and nm only; for simplicity of configuration, however, we extend this
4139# criterion to tools (such as ar and ranlib) that are never invoked by
4140# the compiler, to avoid mismatches.
4141#
4142# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4143# if build == target. This makes the most sense only when bootstrapping,
4144# but we also do so when build != host. In this case, we hope that the
4145# build and host systems will have similar contents of MD_EXEC_PREFIX.
4146#
4147# If we do not find a suitable binary, then try the user's path.
4148
4149
4150###
4151# AC_PROG_CPP_WERROR
4152# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4153# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4154# For now, using this also overrides header checks to use only the
4155# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4156# bit harder from here).
4157# Eventually autoconf will default to checking headers with the compiler
4158# instead, and we'll have to do this differently.
4159
4160# AC_PROG_CPP_WERROR
4161
4162# Test for GNAT.
4163# We require the gnatbind & gnatmake programs, as well as a compiler driver
4164# that understands Ada. We use the user's CC setting, already found, and
4165# possibly add $1 to the command-line parameters.
4166#
4167# Sets the shell variable have_gnat to yes or no as appropriate, and
4168# substitutes GNATBIND and GNATMAKE.
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4201set dummy ${ac_tool_prefix}gcc; ac_word=$2
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4204if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4205 $as_echo_n "(cached) " >&6
4206else
4207 if test -n "$CC"; then
4208 ac_cv_prog_CC="$CC" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4217 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222 done
4223IFS=$as_save_IFS
4224
4225fi
4226fi
4227CC=$ac_cv_prog_CC
4228if test -n "$CC"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4230$as_echo "$CC" >&6; }
4231else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233$as_echo "no" >&6; }
4234fi
4235
4236
4237fi
4238if test -z "$ac_cv_prog_CC"; then
4239 ac_ct_CC=$CC
4240 # Extract the first word of "gcc", so it can be a program name with args.
4241set dummy gcc; ac_word=$2
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4244if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4245 $as_echo_n "(cached) " >&6
4246else
4247 if test -n "$ac_ct_CC"; then
4248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4257 ac_cv_prog_ac_ct_CC="gcc"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261done
4262 done
4263IFS=$as_save_IFS
4264
4265fi
4266fi
4267ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268if test -n "$ac_ct_CC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4270$as_echo "$ac_ct_CC" >&6; }
4271else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274fi
4275
4276 if test "x$ac_ct_CC" = x; then
4277 CC=""
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280yes:)
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283ac_tool_warned=yes ;;
4284esac
4285 CC=$ac_ct_CC
4286 fi
4287else
4288 CC="$ac_cv_prog_CC"
4289fi
4290
4291if test -z "$CC"; then
4292 if test -n "$ac_tool_prefix"; then
4293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4294set dummy ${ac_tool_prefix}cc; ac_word=$2
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4297if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4298 $as_echo_n "(cached) " >&6
4299else
4300 if test -n "$CC"; then
4301 ac_cv_prog_CC="$CC" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4310 ac_cv_prog_CC="${ac_tool_prefix}cc"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314done
4315 done
4316IFS=$as_save_IFS
4317
4318fi
4319fi
4320CC=$ac_cv_prog_CC
4321if test -n "$CC"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4323$as_echo "$CC" >&6; }
4324else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326$as_echo "no" >&6; }
4327fi
4328
4329
4330 fi
4331fi
4332if test -z "$CC"; then
4333 # Extract the first word of "cc", so it can be a program name with args.
4334set dummy cc; ac_word=$2
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4337if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4338 $as_echo_n "(cached) " >&6
4339else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342else
4343 ac_prog_rejected=no
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4352 ac_prog_rejected=yes
4353 continue
4354 fi
4355 ac_cv_prog_CC="cc"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360 done
4361IFS=$as_save_IFS
4362
4363if test $ac_prog_rejected = yes; then
4364 # We found a bogon in the path, so make sure we never use it.
4365 set dummy $ac_cv_prog_CC
4366 shift
4367 if test $# != 0; then
4368 # We chose a different compiler from the bogus one.
4369 # However, it has the same basename, so the bogon will be chosen
4370 # first if we set CC to just the basename; use the full file name.
4371 shift
4372 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4373 fi
4374fi
4375fi
4376fi
4377CC=$ac_cv_prog_CC
4378if test -n "$CC"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380$as_echo "$CC" >&6; }
4381else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383$as_echo "no" >&6; }
4384fi
4385
4386
4387fi
4388if test -z "$CC"; then
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog in cl.exe
4391 do
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4396if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4397 $as_echo_n "(cached) " >&6
4398else
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414 done
4415IFS=$as_save_IFS
4416
4417fi
4418fi
4419CC=$ac_cv_prog_CC
4420if test -n "$CC"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4422$as_echo "$CC" >&6; }
4423else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425$as_echo "no" >&6; }
4426fi
4427
4428
4429 test -n "$CC" && break
4430 done
4431fi
4432if test -z "$CC"; then
4433 ac_ct_CC=$CC
4434 for ac_prog in cl.exe
4435do
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437set dummy $ac_prog; ac_word=$2
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4440if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4441 $as_echo_n "(cached) " >&6
4442else
4443 if test -n "$ac_ct_CC"; then
4444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4453 ac_cv_prog_ac_ct_CC="$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
4458 done
4459IFS=$as_save_IFS
4460
4461fi
4462fi
4463ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464if test -n "$ac_ct_CC"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4466$as_echo "$ac_ct_CC" >&6; }
4467else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469$as_echo "no" >&6; }
4470fi
4471
4472
4473 test -n "$ac_ct_CC" && break
4474done
4475
4476 if test "x$ac_ct_CC" = x; then
4477 CC=""
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480yes:)
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483ac_tool_warned=yes ;;
4484esac
4485 CC=$ac_ct_CC
4486 fi
4487fi
4488
4489fi
4490
4491
4492test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4494as_fn_error $? "no acceptable C compiler found in \$PATH
4495See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4496
4497# Provide some information about the compiler.
4498$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4499set X $ac_compile
4500ac_compiler=$2
4501for ac_option in --version -v -V -qversion; do
4502 { { ac_try="$ac_compiler $ac_option >&5"
4503case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506esac
4507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508$as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4510 ac_status=$?
4511 if test -s conftest.err; then
4512 sed '10a\
4513... rest of stderr output deleted ...
4514 10q' conftest.err >conftest.er1
4515 cat conftest.er1 >&5
6bb11ab3 4516 fi
d0ac1c44 4517 rm -f conftest.er1 conftest.err
6bb11ab3
L
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520done
4521
4522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h. */
4524
4525int
4526main ()
4527{
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533ac_clean_files_save=$ac_clean_files
d0ac1c44 4534ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
4535# Try to create an executable without -o first, disregard a.out.
4536# It will help us diagnose broken compilers, and finding out an intuition
4537# of exeext.
d0ac1c44
SM
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4539$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
4540ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4541
4542# The possible output files:
4543ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4544
4545ac_rmfiles=
4546for ac_file in $ac_files
4547do
4548 case $ac_file in
4549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4551 esac
4552done
4553rm -f $ac_rmfiles
4554
4555if { { ac_try="$ac_link_default"
4556case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559esac
4560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561$as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_link_default") 2>&5
4563 ac_status=$?
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
4566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4567# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4568# in a Makefile. We should not override ac_cv_exeext if it was cached,
4569# so that the user can short-circuit this test for compilers unknown to
4570# Autoconf.
4571for ac_file in $ac_files ''
4572do
4573 test -f "$ac_file" || continue
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4576 ;;
4577 [ab].out )
4578 # We found the default executable, but exeext='' is most
4579 # certainly right.
4580 break;;
4581 *.* )
4582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4583 then :; else
4584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4585 fi
4586 # We set ac_cv_exeext here because the later test for it is not
4587 # safe: cross compilers may not add the suffix if given an `-o'
4588 # argument, so we may need to know it at that point already.
4589 # Even if this section looks crufty: it has the advantage of
4590 # actually working.
4591 break;;
4592 * )
4593 break;;
4594 esac
4595done
4596test "$ac_cv_exeext" = no && ac_cv_exeext=
4597
4598else
4599 ac_file=''
4600fi
6bb11ab3 4601if test -z "$ac_file"; then :
d0ac1c44
SM
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4609as_fn_error 77 "C compiler cannot create executables
4610See \`config.log' for more details" "$LINENO" 5; }
4611else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613$as_echo "yes" >&6; }
6bb11ab3 4614fi
d0ac1c44
SM
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4616$as_echo_n "checking for C compiler default output file name... " >&6; }
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4618$as_echo "$ac_file" >&6; }
6bb11ab3
L
4619ac_exeext=$ac_cv_exeext
4620
d0ac1c44 4621rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 4622ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4624$as_echo_n "checking for suffix of executables... " >&6; }
4625if { { ac_try="$ac_link"
4626case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4629esac
4630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4631$as_echo "$ac_try_echo"; } >&5
4632 (eval "$ac_link") 2>&5
4633 ac_status=$?
4634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }; then :
4636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4637# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4638# work properly (i.e., refer to `conftest.exe'), while it won't with
4639# `rm'.
4640for ac_file in conftest.exe conftest conftest.*; do
4641 test -f "$ac_file" || continue
4642 case $ac_file in
4643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4645 break;;
4646 * ) break;;
4647 esac
4648done
4649else
4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4652as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4653See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 4654fi
d0ac1c44 4655rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4657$as_echo "$ac_cv_exeext" >&6; }
4658
4659rm -f conftest.$ac_ext
4660EXEEXT=$ac_cv_exeext
4661ac_exeext=$EXEEXT
d0ac1c44
SM
4662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h. */
4664#include <stdio.h>
4665int
4666main ()
4667{
4668FILE *f = fopen ("conftest.out", "w");
4669 return ferror (f) || fclose (f) != 0;
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675ac_clean_files="$ac_clean_files conftest.out"
4676# Check that the compiler produces executables we can run. If not, either
4677# the compiler is broken, or we cross compile.
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4679$as_echo_n "checking whether we are cross compiling... " >&6; }
4680if test "$cross_compiling" != yes; then
4681 { { ac_try="$ac_link"
4682case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685esac
4686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4687$as_echo "$ac_try_echo"; } >&5
4688 (eval "$ac_link") 2>&5
4689 ac_status=$?
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; }
4692 if { ac_try='./conftest$ac_cv_exeext'
4693 { { case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
4697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4698$as_echo "$ac_try_echo"; } >&5
4699 (eval "$ac_try") 2>&5
4700 ac_status=$?
4701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4702 test $ac_status = 0; }; }; then
4703 cross_compiling=no
4704 else
4705 if test "$cross_compiling" = maybe; then
4706 cross_compiling=yes
4707 else
4708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710as_fn_error $? "cannot run C compiled programs.
4711If you meant to cross compile, use \`--host'.
4712See \`config.log' for more details" "$LINENO" 5; }
4713 fi
4714 fi
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4717$as_echo "$cross_compiling" >&6; }
4718
4719rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4720ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4722$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4723if ${ac_cv_objext+:} false; then :
6bb11ab3
L
4724 $as_echo_n "(cached) " >&6
4725else
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h. */
4728
4729int
4730main ()
4731{
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737rm -f conftest.o conftest.obj
4738if { { ac_try="$ac_compile"
4739case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
4743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4744$as_echo "$ac_try_echo"; } >&5
4745 (eval "$ac_compile") 2>&5
4746 ac_status=$?
4747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4748 test $ac_status = 0; }; then :
4749 for ac_file in conftest.o conftest.obj conftest.*; do
4750 test -f "$ac_file" || continue;
4751 case $ac_file in
4752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4753 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4754 break;;
4755 esac
4756done
4757else
4758 $as_echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4763as_fn_error $? "cannot compute suffix of object files: cannot compile
4764See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4765fi
4766rm -f conftest.$ac_cv_objext conftest.$ac_ext
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4769$as_echo "$ac_cv_objext" >&6; }
4770OBJEXT=$ac_cv_objext
4771ac_objext=$OBJEXT
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4773$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4774if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
4775 $as_echo_n "(cached) " >&6
4776else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783#ifndef __GNUC__
4784 choke me
4785#endif
4786
4787 ;
4788 return 0;
4789}
4790_ACEOF
4791if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_compiler_gnu=yes
4793else
4794 ac_compiler_gnu=no
4795fi
4796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797ac_cv_c_compiler_gnu=$ac_compiler_gnu
4798
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4801$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4802if test $ac_compiler_gnu = yes; then
4803 GCC=yes
4804else
4805 GCC=
4806fi
4807ac_test_CFLAGS=${CFLAGS+set}
4808ac_save_CFLAGS=$CFLAGS
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4810$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4811if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
4812 $as_echo_n "(cached) " >&6
4813else
4814 ac_save_c_werror_flag=$ac_c_werror_flag
4815 ac_c_werror_flag=yes
4816 ac_cv_prog_cc_g=no
4817 CFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h. */
4820
4821int
4822main ()
4823{
4824
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_g=yes
4831else
4832 CFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h. */
4835
4836int
4837main ()
4838{
4839
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844if ac_fn_c_try_compile "$LINENO"; then :
4845
4846else
4847 ac_c_werror_flag=$ac_save_c_werror_flag
4848 CFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851
4852int
4853main ()
4854{
4855
4856 ;
4857 return 0;
4858}
4859_ACEOF
4860if ac_fn_c_try_compile "$LINENO"; then :
4861 ac_cv_prog_cc_g=yes
4862fi
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866fi
4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_c_werror_flag=$ac_save_c_werror_flag
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4871$as_echo "$ac_cv_prog_cc_g" >&6; }
4872if test "$ac_test_CFLAGS" = set; then
4873 CFLAGS=$ac_save_CFLAGS
4874elif test $ac_cv_prog_cc_g = yes; then
4875 if test "$GCC" = yes; then
4876 CFLAGS="-g -O2"
4877 else
4878 CFLAGS="-g"
4879 fi
4880else
4881 if test "$GCC" = yes; then
4882 CFLAGS="-O2"
4883 else
4884 CFLAGS=
4885 fi
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4888$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4889if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
4890 $as_echo_n "(cached) " >&6
4891else
4892 ac_cv_prog_cc_c89=no
4893ac_save_CC=$CC
4894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895/* end confdefs.h. */
4896#include <stdarg.h>
4897#include <stdio.h>
d0ac1c44 4898struct stat;
6bb11ab3
L
4899/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4900struct buf { int x; };
4901FILE * (*rcsopen) (struct buf *, struct stat *, int);
4902static char *e (p, i)
4903 char **p;
4904 int i;
4905{
4906 return p[i];
4907}
4908static char *f (char * (*g) (char **, int), char **p, ...)
4909{
4910 char *s;
4911 va_list v;
4912 va_start (v,p);
4913 s = g (p, va_arg (v,int));
4914 va_end (v);
4915 return s;
4916}
4917
4918/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4919 function prototypes and stuff, but not '\xHH' hex character constants.
4920 These don't provoke an error unfortunately, instead are silently treated
4921 as 'x'. The following induces an error, until -std is added to get
4922 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4923 array size at least. It's necessary to write '\x00'==0 to get something
4924 that's true only with -std. */
4925int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4926
4927/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4928 inside strings and character constants. */
4929#define FOO(x) 'x'
4930int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4931
4932int test (int i, double x);
4933struct s1 {int (*f) (int a);};
4934struct s2 {int (*f) (double a);};
4935int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4936int argc;
4937char **argv;
4938int
4939main ()
4940{
4941return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4947 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4948do
4949 CC="$ac_save_CC $ac_arg"
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 ac_cv_prog_cc_c89=$ac_arg
4952fi
4953rm -f core conftest.err conftest.$ac_objext
4954 test "x$ac_cv_prog_cc_c89" != "xno" && break
4955done
4956rm -f conftest.$ac_ext
4957CC=$ac_save_CC
4958
4959fi
4960# AC_CACHE_VAL
4961case "x$ac_cv_prog_cc_c89" in
4962 x)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4964$as_echo "none needed" >&6; } ;;
4965 xno)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4967$as_echo "unsupported" >&6; } ;;
4968 *)
4969 CC="$CC $ac_cv_prog_cc_c89"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4971$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4972esac
4973if test "x$ac_cv_prog_cc_c89" != xno; then :
4974
4975fi
4976
4977ac_ext=c
4978ac_cpp='$CPP $CPPFLAGS'
4979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983ac_aux_dir=
4984for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
4985 if test -f "$ac_dir/install-sh"; then
4986 ac_aux_dir=$ac_dir
4987 ac_install_sh="$ac_aux_dir/install-sh -c"
4988 break
4989 elif test -f "$ac_dir/install.sh"; then
4990 ac_aux_dir=$ac_dir
4991 ac_install_sh="$ac_aux_dir/install.sh -c"
4992 break
4993 elif test -f "$ac_dir/shtool"; then
4994 ac_aux_dir=$ac_dir
4995 ac_install_sh="$ac_aux_dir/shtool install -c"
4996 break
4997 fi
6bb11ab3
L
4998done
4999if test -z "$ac_aux_dir"; then
d0ac1c44 5000 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
5001fi
5002
5003# These three variables are undocumented and unsupported,
5004# and are intended to be withdrawn in a future Autoconf release.
5005# They can cause serious problems if a builder's source tree is in a directory
5006# whose full name contains unusual characters.
5007ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5008ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5009ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5010
5011
5012# Make sure we can run config.sub.
5013$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 5014 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5017$as_echo_n "checking build system type... " >&6; }
d0ac1c44 5018if ${ac_cv_build+:} false; then :
6bb11ab3
L
5019 $as_echo_n "(cached) " >&6
5020else
5021 ac_build_alias=$build_alias
5022test "x$ac_build_alias" = x &&
5023 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5024test "x$ac_build_alias" = x &&
d0ac1c44 5025 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 5026ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 5027 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
5028
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5031$as_echo "$ac_cv_build" >&6; }
5032case $ac_cv_build in
5033*-*-*) ;;
d0ac1c44 5034*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
5035esac
5036build=$ac_cv_build
5037ac_save_IFS=$IFS; IFS='-'
5038set x $ac_cv_build
5039shift
5040build_cpu=$1
5041build_vendor=$2
5042shift; shift
5043# Remember, the first character of IFS is used to create $*,
5044# except with old shells:
5045build_os=$*
5046IFS=$ac_save_IFS
5047case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5048
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5051$as_echo_n "checking host system type... " >&6; }
d0ac1c44 5052if ${ac_cv_host+:} false; then :
6bb11ab3
L
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test "x$host_alias" = x; then
5056 ac_cv_host=$ac_cv_build
5057else
5058 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
5060fi
5061
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5064$as_echo "$ac_cv_host" >&6; }
5065case $ac_cv_host in
5066*-*-*) ;;
d0ac1c44 5067*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
5068esac
5069host=$ac_cv_host
5070ac_save_IFS=$IFS; IFS='-'
5071set x $ac_cv_host
5072shift
5073host_cpu=$1
5074host_vendor=$2
5075shift; shift
5076# Remember, the first character of IFS is used to create $*,
5077# except with old shells:
5078host_os=$*
5079IFS=$ac_save_IFS
5080case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5081
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5084$as_echo_n "checking target system type... " >&6; }
d0ac1c44 5085if ${ac_cv_target+:} false; then :
6bb11ab3
L
5086 $as_echo_n "(cached) " >&6
5087else
5088 if test "x$target_alias" = x; then
5089 ac_cv_target=$ac_cv_host
5090else
5091 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 5092 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
5093fi
5094
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5097$as_echo "$ac_cv_target" >&6; }
5098case $ac_cv_target in
5099*-*-*) ;;
d0ac1c44 5100*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
5101esac
5102target=$ac_cv_target
5103ac_save_IFS=$IFS; IFS='-'
5104set x $ac_cv_target
5105shift
5106target_cpu=$1
5107target_vendor=$2
5108shift; shift
5109# Remember, the first character of IFS is used to create $*,
5110# except with old shells:
5111target_os=$*
5112IFS=$ac_save_IFS
5113case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5114
5115
5116# The aliases save the names the user supplied, while $host etc.
5117# will get canonicalized.
5118test -n "$target_alias" &&
5119 test "$program_prefix$program_suffix$program_transform_name" = \
5120 NONENONEs,x,x, &&
5121 program_prefix=${target_alias}-
5122
5123ac_ext=c
5124ac_cpp='$CPP $CPPFLAGS'
5125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5129$as_echo_n "checking how to run the C preprocessor... " >&6; }
5130# On Suns, sometimes $CPP names a directory.
5131if test -n "$CPP" && test -d "$CPP"; then
5132 CPP=
5133fi
5134if test -z "$CPP"; then
d0ac1c44 5135 if ${ac_cv_prog_CPP+:} false; then :
6bb11ab3
L
5136 $as_echo_n "(cached) " >&6
5137else
5138 # Double quotes because CPP needs to be expanded
5139 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5140 do
5141 ac_preproc_ok=false
5142for ac_c_preproc_warn_flag in '' yes
5143do
5144 # Use a header file that comes with gcc, so configuring glibc
5145 # with a fresh cross-compiler works.
5146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 # <limits.h> exists even on freestanding compilers.
5148 # On the NeXT, cc -E runs the code through the compiler's parser,
5149 # not just through cpp. "Syntax error" is here to catch this case.
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h. */
5152#ifdef __STDC__
5153# include <limits.h>
5154#else
5155# include <assert.h>
5156#endif
5157 Syntax error
5158_ACEOF
5159if ac_fn_c_try_cpp "$LINENO"; then :
5160
5161else
5162 # Broken: fails on valid input.
5163continue
5164fi
d0ac1c44 5165rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5166
5167 # OK, works on sane cases. Now check whether nonexistent headers
5168 # can be detected and how.
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h. */
5171#include <ac_nonexistent.h>
5172_ACEOF
5173if ac_fn_c_try_cpp "$LINENO"; then :
5174 # Broken: success on invalid input.
5175continue
5176else
5177 # Passes both tests.
5178ac_preproc_ok=:
5179break
5180fi
d0ac1c44 5181rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5182
5183done
5184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5185rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5186if $ac_preproc_ok; then :
5187 break
5188fi
5189
5190 done
5191 ac_cv_prog_CPP=$CPP
5192
5193fi
5194 CPP=$ac_cv_prog_CPP
5195else
5196 ac_cv_prog_CPP=$CPP
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5199$as_echo "$CPP" >&6; }
5200ac_preproc_ok=false
5201for ac_c_preproc_warn_flag in '' yes
5202do
5203 # Use a header file that comes with gcc, so configuring glibc
5204 # with a fresh cross-compiler works.
5205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5206 # <limits.h> exists even on freestanding compilers.
5207 # On the NeXT, cc -E runs the code through the compiler's parser,
5208 # not just through cpp. "Syntax error" is here to catch this case.
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h. */
5211#ifdef __STDC__
5212# include <limits.h>
5213#else
5214# include <assert.h>
5215#endif
5216 Syntax error
5217_ACEOF
5218if ac_fn_c_try_cpp "$LINENO"; then :
5219
5220else
5221 # Broken: fails on valid input.
5222continue
5223fi
d0ac1c44 5224rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5225
5226 # OK, works on sane cases. Now check whether nonexistent headers
5227 # can be detected and how.
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h. */
5230#include <ac_nonexistent.h>
5231_ACEOF
5232if ac_fn_c_try_cpp "$LINENO"; then :
5233 # Broken: success on invalid input.
5234continue
5235else
5236 # Passes both tests.
5237ac_preproc_ok=:
5238break
5239fi
d0ac1c44 5240rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5241
5242done
5243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5244rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5245if $ac_preproc_ok; then :
5246
5247else
5248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5250as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5251See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
5252fi
5253
5254ac_ext=c
5255ac_cpp='$CPP $CPPFLAGS'
5256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_c_compiler_gnu
5259
5260
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5262$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5263if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
5264 $as_echo_n "(cached) " >&6
5265else
5266 if test -z "$GREP"; then
5267 ac_path_GREP_found=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_prog in grep ggrep; do
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5277 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
5278# Check for GNU ac_path_GREP and select it if it is found.
5279 # Check for GNU $ac_path_GREP
5280case `"$ac_path_GREP" --version 2>&1` in
5281*GNU*)
5282 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5283*)
5284 ac_count=0
5285 $as_echo_n 0123456789 >"conftest.in"
5286 while :
5287 do
5288 cat "conftest.in" "conftest.in" >"conftest.tmp"
5289 mv "conftest.tmp" "conftest.in"
5290 cp "conftest.in" "conftest.nl"
5291 $as_echo 'GREP' >> "conftest.nl"
5292 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5294 as_fn_arith $ac_count + 1 && ac_count=$as_val
5295 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5296 # Best one so far, save it but keep looking for a better one
5297 ac_cv_path_GREP="$ac_path_GREP"
5298 ac_path_GREP_max=$ac_count
5299 fi
5300 # 10*(2^10) chars as input seems more than enough
5301 test $ac_count -gt 10 && break
5302 done
5303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5304esac
5305
5306 $ac_path_GREP_found && break 3
5307 done
5308 done
5309 done
5310IFS=$as_save_IFS
5311 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5312 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5313 fi
5314else
5315 ac_cv_path_GREP=$GREP
5316fi
5317
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5320$as_echo "$ac_cv_path_GREP" >&6; }
5321 GREP="$ac_cv_path_GREP"
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5325$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5326if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
5327 $as_echo_n "(cached) " >&6
5328else
5329 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5330 then ac_cv_path_EGREP="$GREP -E"
5331 else
5332 if test -z "$EGREP"; then
5333 ac_path_EGREP_found=false
5334 # Loop through the user's path and test for each of PROGNAME-LIST
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5337do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_prog in egrep; do
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5343 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
5344# Check for GNU ac_path_EGREP and select it if it is found.
5345 # Check for GNU $ac_path_EGREP
5346case `"$ac_path_EGREP" --version 2>&1` in
5347*GNU*)
5348 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5349*)
5350 ac_count=0
5351 $as_echo_n 0123456789 >"conftest.in"
5352 while :
5353 do
5354 cat "conftest.in" "conftest.in" >"conftest.tmp"
5355 mv "conftest.tmp" "conftest.in"
5356 cp "conftest.in" "conftest.nl"
5357 $as_echo 'EGREP' >> "conftest.nl"
5358 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5360 as_fn_arith $ac_count + 1 && ac_count=$as_val
5361 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5362 # Best one so far, save it but keep looking for a better one
5363 ac_cv_path_EGREP="$ac_path_EGREP"
5364 ac_path_EGREP_max=$ac_count
5365 fi
5366 # 10*(2^10) chars as input seems more than enough
5367 test $ac_count -gt 10 && break
5368 done
5369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5370esac
5371
5372 $ac_path_EGREP_found && break 3
5373 done
5374 done
5375 done
5376IFS=$as_save_IFS
5377 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5378 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5379 fi
5380else
5381 ac_cv_path_EGREP=$EGREP
5382fi
5383
5384 fi
5385fi
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5387$as_echo "$ac_cv_path_EGREP" >&6; }
5388 EGREP="$ac_cv_path_EGREP"
5389
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5392$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5393if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
5394 $as_echo_n "(cached) " >&6
5395else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h. */
5398#include <stdlib.h>
5399#include <stdarg.h>
5400#include <string.h>
5401#include <float.h>
5402
5403int
5404main ()
5405{
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_header_stdc=yes
5413else
5414 ac_cv_header_stdc=no
5415fi
5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417
5418if test $ac_cv_header_stdc = yes; then
5419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h. */
5422#include <string.h>
5423
5424_ACEOF
5425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "memchr" >/dev/null 2>&1; then :
5427
5428else
5429 ac_cv_header_stdc=no
5430fi
5431rm -f conftest*
5432
5433fi
5434
5435if test $ac_cv_header_stdc = yes; then
5436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <stdlib.h>
5440
5441_ACEOF
5442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5443 $EGREP "free" >/dev/null 2>&1; then :
5444
5445else
5446 ac_cv_header_stdc=no
5447fi
5448rm -f conftest*
5449
5450fi
5451
5452if test $ac_cv_header_stdc = yes; then
5453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5454 if test "$cross_compiling" = yes; then :
5455 :
5456else
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h. */
5459#include <ctype.h>
5460#include <stdlib.h>
5461#if ((' ' & 0x0FF) == 0x020)
5462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5464#else
5465# define ISLOWER(c) \
5466 (('a' <= (c) && (c) <= 'i') \
5467 || ('j' <= (c) && (c) <= 'r') \
5468 || ('s' <= (c) && (c) <= 'z'))
5469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5470#endif
5471
5472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5473int
5474main ()
5475{
5476 int i;
5477 for (i = 0; i < 256; i++)
5478 if (XOR (islower (i), ISLOWER (i))
5479 || toupper (i) != TOUPPER (i))
5480 return 2;
5481 return 0;
5482}
5483_ACEOF
5484if ac_fn_c_try_run "$LINENO"; then :
5485
5486else
5487 ac_cv_header_stdc=no
5488fi
5489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5490 conftest.$ac_objext conftest.beam conftest.$ac_ext
5491fi
5492
5493fi
5494fi
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5496$as_echo "$ac_cv_header_stdc" >&6; }
5497if test $ac_cv_header_stdc = yes; then
5498
5499$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5500
5501fi
5502
5503# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5504for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5505 inttypes.h stdint.h unistd.h
5506do :
5507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5508ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5509"
d0ac1c44 5510if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
5511 cat >>confdefs.h <<_ACEOF
5512#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5513_ACEOF
5514
5515fi
5516
5517done
5518
5519
5520
5521 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5522if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
5523 MINIX=yes
5524else
5525 MINIX=
5526fi
5527
5528
5529 if test "$MINIX" = yes; then
5530
5531$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5532
5533
5534$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5535
5536
5537$as_echo "#define _MINIX 1" >>confdefs.h
5538
5539 fi
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5543$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5544if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
5545 $as_echo_n "(cached) " >&6
5546else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h. */
5549
d0ac1c44
SM
5550# define __EXTENSIONS__ 1
5551 $ac_includes_default
6bb11ab3
L
5552int
5553main ()
5554{
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
5561 ac_cv_safe_to_define___extensions__=yes
5562else
5563 ac_cv_safe_to_define___extensions__=no
5564fi
5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5568$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5569 test $ac_cv_safe_to_define___extensions__ = yes &&
5570 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5571
5572 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5573
5574 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5575
5576 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5577
5578 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5579
5580
5581test "$program_prefix" != NONE &&
5582 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5583# Use a double $ so make ignores it.
5584test "$program_suffix" != NONE &&
5585 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5586# Double any \ or $.
5587# By default was `s,x,x', remove it if useless.
5588ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5589program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5590
5591# Find a good install program. We prefer a C program (faster),
5592# so one script is as good as another. But avoid the broken or
5593# incompatible versions:
5594# SysV /etc/install, /usr/sbin/install
5595# SunOS /usr/etc/install
5596# IRIX /sbin/install
5597# AIX /bin/install
5598# AmigaOS /C/install, which installs bootblocks on floppy discs
5599# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5600# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5601# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5602# OS/2's system install, which has a completely different semantic
5603# ./install, which can be erroneously created by make from ./install.sh.
5604# Reject install programs that cannot install multiple files.
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5606$as_echo_n "checking for a BSD-compatible install... " >&6; }
5607if test -z "$INSTALL"; then
d0ac1c44 5608if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
5609 $as_echo_n "(cached) " >&6
5610else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 # Account for people who put trailing slashes in PATH elements.
5617case $as_dir/ in #((
5618 ./ | .// | /[cC]/* | \
5619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5621 /usr/ucb/* ) ;;
5622 *)
5623 # OSF1 and SCO ODT 3.0 have their own names for install.
5624 # Don't use installbsd from OSF since it installs stuff as root
5625 # by default.
5626 for ac_prog in ginstall scoinst install; do
5627 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5628 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
5629 if test $ac_prog = install &&
5630 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5631 # AIX install. It has an incompatible calling convention.
5632 :
5633 elif test $ac_prog = install &&
5634 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5635 # program-specific install script used by HP pwplus--don't use.
5636 :
5637 else
5638 rm -rf conftest.one conftest.two conftest.dir
5639 echo one > conftest.one
5640 echo two > conftest.two
5641 mkdir conftest.dir
5642 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5643 test -s conftest.one && test -s conftest.two &&
5644 test -s conftest.dir/conftest.one &&
5645 test -s conftest.dir/conftest.two
5646 then
5647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5648 break 3
5649 fi
5650 fi
5651 fi
5652 done
5653 done
5654 ;;
5655esac
5656
5657 done
5658IFS=$as_save_IFS
5659
5660rm -rf conftest.one conftest.two conftest.dir
5661
5662fi
5663 if test "${ac_cv_path_install+set}" = set; then
5664 INSTALL=$ac_cv_path_install
5665 else
5666 # As a last resort, use the slow shell script. Don't cache a
5667 # value for INSTALL within a source directory, because that will
5668 # break other packages using the cache if that directory is
5669 # removed, or if the value is a relative name.
5670 INSTALL=$ac_install_sh
5671 fi
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5674$as_echo "$INSTALL" >&6; }
5675
5676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5677# It thinks the first close brace ends the variable substitution.
5678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5679
5680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5681
5682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5683
5684rm -rf .tst 2>/dev/null
5685mkdir .tst 2>/dev/null
5686if test -d .tst; then
5687 am__leading_dot=.
5688else
5689 am__leading_dot=_
5690fi
5691rmdir .tst 2>/dev/null
5692
5693DEPDIR="${am__leading_dot}deps"
5694
5695case `pwd` in
5696 *\ * | *\ *)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5698$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5699esac
5700
5701
5702
5703macro_version='2.2.7a'
5704macro_revision='1.3134'
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718ltmain="$ac_aux_dir/ltmain.sh"
5719
5720# Backslashify metacharacters that are still active within
5721# double-quoted strings.
5722sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5723
5724# Same as above, but do not quote variable references.
5725double_quote_subst='s/\(["`\\]\)/\\\1/g'
5726
5727# Sed substitution to delay expansion of an escaped shell variable in a
5728# double_quote_subst'ed string.
5729delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5730
5731# Sed substitution to delay expansion of an escaped single quote.
5732delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5733
5734# Sed substitution to avoid accidental globbing in evaled expressions
5735no_glob_subst='s/\*/\\\*/g'
5736
5737ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5738ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5739ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5742$as_echo_n "checking how to print strings... " >&6; }
5743# Test print first, because it will be a builtin if present.
5744if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5745 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5746 ECHO='print -r --'
5747elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5748 ECHO='printf %s\n'
5749else
5750 # Use this function as a fallback that always works.
5751 func_fallback_echo ()
5752 {
5753 eval 'cat <<_LTECHO_EOF
5754$1
5755_LTECHO_EOF'
5756 }
5757 ECHO='func_fallback_echo'
5758fi
5759
5760# func_echo_all arg...
5761# Invoke $ECHO with all args, space-separated.
5762func_echo_all ()
5763{
5764 $ECHO ""
5765}
5766
5767case "$ECHO" in
5768 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5769$as_echo "printf" >&6; } ;;
5770 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5771$as_echo "print -r" >&6; } ;;
5772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5773$as_echo "cat" >&6; } ;;
5774esac
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5790$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5791if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
5792 $as_echo_n "(cached) " >&6
5793else
5794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5795 for ac_i in 1 2 3 4 5 6 7; do
5796 ac_script="$ac_script$as_nl$ac_script"
5797 done
5798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5799 { ac_script=; unset ac_script;}
5800 if test -z "$SED"; then
5801 ac_path_SED_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in sed gsed; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5811 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
5812# Check for GNU ac_path_SED and select it if it is found.
5813 # Check for GNU $ac_path_SED
5814case `"$ac_path_SED" --version 2>&1` in
5815*GNU*)
5816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5817*)
5818 ac_count=0
5819 $as_echo_n 0123456789 >"conftest.in"
5820 while :
5821 do
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo '' >> "conftest.nl"
5826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_SED_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_SED="$ac_path_SED"
5832 ac_path_SED_max=$ac_count
5833 fi
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5836 done
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838esac
5839
5840 $ac_path_SED_found && break 3
5841 done
5842 done
5843 done
5844IFS=$as_save_IFS
5845 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
5847 fi
5848else
5849 ac_cv_path_SED=$SED
5850fi
5851
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5854$as_echo "$ac_cv_path_SED" >&6; }
5855 SED="$ac_cv_path_SED"
5856 rm -f conftest.sed
5857
5858test -z "$SED" && SED=sed
5859Xsed="$SED -e 1s/^X//"
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5872$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5873if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
5874 $as_echo_n "(cached) " >&6
5875else
5876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5877 then ac_cv_path_FGREP="$GREP -F"
5878 else
5879 if test -z "$FGREP"; then
5880 ac_path_FGREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in fgrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5890 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
5891# Check for GNU ac_path_FGREP and select it if it is found.
5892 # Check for GNU $ac_path_FGREP
5893case `"$ac_path_FGREP" --version 2>&1` in
5894*GNU*)
5895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5896*)
5897 ac_count=0
5898 $as_echo_n 0123456789 >"conftest.in"
5899 while :
5900 do
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 $as_echo 'FGREP' >> "conftest.nl"
5905 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 as_fn_arith $ac_count + 1 && ac_count=$as_val
5908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_FGREP="$ac_path_FGREP"
5911 ac_path_FGREP_max=$ac_count
5912 fi
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5915 done
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917esac
5918
5919 $ac_path_FGREP_found && break 3
5920 done
5921 done
5922 done
5923IFS=$as_save_IFS
5924 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5925 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5926 fi
5927else
5928 ac_cv_path_FGREP=$FGREP
5929fi
5930
5931 fi
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5934$as_echo "$ac_cv_path_FGREP" >&6; }
5935 FGREP="$ac_cv_path_FGREP"
5936
5937
5938test -z "$GREP" && GREP=grep
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958# Check whether --with-gnu-ld was given.
5959if test "${with_gnu_ld+set}" = set; then :
5960 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5961else
5962 with_gnu_ld=no
5963fi
5964
5965ac_prog=ld
5966if test "$GCC" = yes; then
5967 # Check if gcc -print-prog-name=ld gives a path.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5969$as_echo_n "checking for ld used by $CC... " >&6; }
5970 case $host in
5971 *-*-mingw*)
5972 # gcc leaves a trailing carriage return which upsets mingw
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5974 *)
5975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5976 esac
5977 case $ac_prog in
5978 # Accept absolute paths.
5979 [\\/]* | ?:[\\/]*)
5980 re_direlt='/[^/][^/]*/\.\./'
5981 # Canonicalize the pathname of ld
5982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5985 done
5986 test -z "$LD" && LD="$ac_prog"
5987 ;;
5988 "")
5989 # If it fails, then pretend we aren't using GCC.
5990 ac_prog=ld
5991 ;;
5992 *)
5993 # If it is relative, then search for the first ld in PATH.
5994 with_gnu_ld=unknown
5995 ;;
5996 esac
5997elif test "$with_gnu_ld" = yes; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5999$as_echo_n "checking for GNU ld... " >&6; }
6000else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6002$as_echo_n "checking for non-GNU ld... " >&6; }
6003fi
d0ac1c44 6004if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
6005 $as_echo_n "(cached) " >&6
6006else
6007 if test -z "$LD"; then
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 for ac_dir in $PATH; do
6010 IFS="$lt_save_ifs"
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6013 lt_cv_path_LD="$ac_dir/$ac_prog"
6014 # Check to see if the program is GNU ld. I'd rather use --version,
6015 # but apparently some variants of GNU ld only accept -v.
6016 # Break only if it was the GNU/non-GNU ld that we prefer.
6017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6018 *GNU* | *'with BFD'*)
6019 test "$with_gnu_ld" != no && break
6020 ;;
6021 *)
6022 test "$with_gnu_ld" != yes && break
6023 ;;
6024 esac
6025 fi
6026 done
6027 IFS="$lt_save_ifs"
6028else
6029 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6030fi
6031fi
6032
6033LD="$lt_cv_path_LD"
6034if test -n "$LD"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6036$as_echo "$LD" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
d0ac1c44 6041test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6043$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 6044if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
6045 $as_echo_n "(cached) " >&6
6046else
6047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048case `$LD -v 2>&1 </dev/null` in
6049*GNU* | *'with BFD'*)
6050 lt_cv_prog_gnu_ld=yes
6051 ;;
6052*)
6053 lt_cv_prog_gnu_ld=no
6054 ;;
6055esac
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6058$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6059with_gnu_ld=$lt_cv_prog_gnu_ld
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6070$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6071if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
6072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$NM"; then
6075 # Let the user override the test.
6076 lt_cv_path_NM="$NM"
6077else
6078 lt_nm_to_check="${ac_tool_prefix}nm"
6079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6080 lt_nm_to_check="$lt_nm_to_check nm"
6081 fi
6082 for lt_tmp_nm in $lt_nm_to_check; do
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6085 IFS="$lt_save_ifs"
6086 test -z "$ac_dir" && ac_dir=.
6087 tmp_nm="$ac_dir/$lt_tmp_nm"
6088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
6092 # Tru64's nm complains that /dev/null is an invalid object file
6093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6094 */dev/null* | *'Invalid file or object type'*)
6095 lt_cv_path_NM="$tmp_nm -B"
6096 break
6097 ;;
6098 *)
6099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6100 */dev/null*)
6101 lt_cv_path_NM="$tmp_nm -p"
6102 break
6103 ;;
6104 *)
6105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6106 continue # so that we can try to find one that supports BSD flags
6107 ;;
6108 esac
6109 ;;
6110 esac
6111 fi
6112 done
6113 IFS="$lt_save_ifs"
6114 done
6115 : ${lt_cv_path_NM=no}
6116fi
6117fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119$as_echo "$lt_cv_path_NM" >&6; }
6120if test "$lt_cv_path_NM" != "no"; then
6121 NM="$lt_cv_path_NM"
6122else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6129 do
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6134if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
6135 $as_echo_n "(cached) " >&6
6136else
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152 done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157DUMPBIN=$ac_cv_prog_DUMPBIN
6158if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6160$as_echo "$DUMPBIN" >&6; }
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167 test -n "$DUMPBIN" && break
6168 done
6169fi
6170if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link -dump"
6173do
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175set dummy $ac_prog; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6178if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
6179 $as_echo_n "(cached) " >&6
6180else
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196 done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6204$as_echo "$ac_ct_DUMPBIN" >&6; }
6205else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211 test -n "$ac_ct_DUMPBIN" && break
6212done
6213
6214 if test "x$ac_ct_DUMPBIN" = x; then
6215 DUMPBIN=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223 DUMPBIN=$ac_ct_DUMPBIN
6224 fi
6225fi
6226
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6228 *COFF*)
6229 DUMPBIN="$DUMPBIN -symbols"
6230 ;;
6231 *)
6232 DUMPBIN=:
6233 ;;
6234 esac
6235 fi
6236
6237 if test "$DUMPBIN" != ":"; then
6238 NM="$DUMPBIN"
6239 fi
6240fi
6241test -z "$NM" && NM=nm
6242
6243
6244
6245
6246
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6249$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6250if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
6251 $as_echo_n "(cached) " >&6
6252else
6253 lt_cv_nm_interface="BSD nm"
6254 echo "int some_variable = 0;" > conftest.$ac_ext
6255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin"
6265 fi
6266 rm -f conftest*
6267fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6269$as_echo "$lt_cv_nm_interface" >&6; }
6270
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6272$as_echo_n "checking whether ln -s works... " >&6; }
6273LN_S=$as_ln_s
6274if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6276$as_echo "yes" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6279$as_echo "no, using $LN_S" >&6; }
6280fi
6281
6282# find the maximum length of command line arguments
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6284$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6285if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
6286 $as_echo_n "(cached) " >&6
6287else
6288 i=0
6289 teststring="ABCD"
6290
6291 case $build_os in
6292 msdosdjgpp*)
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6298 ;;
6299
6300 gnu*)
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6305 ;;
6306
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6316 ;;
6317
6318 mint*)
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6321 ;;
6322
6323 amigaos*)
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6327 ;;
6328
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335 else
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6337 fi
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341 ;;
6342
6343 interix*)
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6346 ;;
6347
6348 osf*)
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6354 #
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358 esac
6359 fi
6360 ;;
6361 sco3.2v5*)
6362 lt_cv_sys_max_cmd_len=102400
6363 ;;
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368 else
6369 lt_cv_sys_max_cmd_len=32768
6370 fi
6371 ;;
6372 *)
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377 else
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6382 done
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6386 # we can't tell.
6387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6390 do
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6396 teststring=
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6401 fi
6402 ;;
6403 esac
6404
6405fi
6406
6407if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412$as_echo "none" >&6; }
6413fi
6414max_cmd_len=$lt_cv_sys_max_cmd_len
6415
6416
6417
6418
6419
6420
6421: ${CP="cp -f"}
6422: ${MV="mv -f"}
6423: ${RM="rm -f"}
6424
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6426$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6427# Try some XSI features
6428xsi_shell=no
6429( _lt_dummy="a/b/c"
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6431 = c,a/b,, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6434 && xsi_shell=yes
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436$as_echo "$xsi_shell" >&6; }
6437
6438
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6441lt_shell_append=no
6442( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6443 >/dev/null 2>&1 \
6444 && lt_shell_append=yes
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446$as_echo "$lt_shell_append" >&6; }
6447
6448
6449if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6450 lt_unset=unset
6451else
6452 lt_unset=false
6453fi
6454
6455
6456
6457
6458
6459# test EBCDIC or ASCII
6460case `echo X|tr X '\101'` in
6461 A) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL='tr \040 \012'
6464 lt_NL2SP='tr \015\012 \040\040'
6465 ;;
6466 *) # EBCDIC based system
6467 lt_SP2NL='tr \100 \n'
6468 lt_NL2SP='tr \r\n \100\100'
6469 ;;
6470esac
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6482if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
6483 $as_echo_n "(cached) " >&6
6484else
6485 lt_cv_ld_reload_flag='-r'
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488$as_echo "$lt_cv_ld_reload_flag" >&6; }
6489reload_flag=$lt_cv_ld_reload_flag
6490case $reload_flag in
6491"" | " "*) ;;
6492*) reload_flag=" $reload_flag" ;;
6493esac
6494reload_cmds='$LD$reload_flag -o $output$reload_objs'
6495case $host_os in
6496 darwin*)
6497 if test "$GCC" = yes; then
6498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6499 else
6500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6501 fi
6502 ;;
6503esac
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}objdump; ac_word=$2
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6518if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
6519 $as_echo_n "(cached) " >&6
6520else
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536 done
6537IFS=$as_save_IFS
6538
6539fi
6540fi
6541OBJDUMP=$ac_cv_prog_OBJDUMP
6542if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544$as_echo "$OBJDUMP" >&6; }
6545else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
6548fi
6549
6550
6551fi
6552if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555set dummy objdump; ac_word=$2
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6558if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
6559 $as_echo_n "(cached) " >&6
6560else
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6563else
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575done
6576 done
6577IFS=$as_save_IFS
6578
6579fi
6580fi
6581ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6582if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584$as_echo "$ac_ct_OBJDUMP" >&6; }
6585else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
6588fi
6589
6590 if test "x$ac_ct_OBJDUMP" = x; then
6591 OBJDUMP="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594yes:)
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597ac_tool_warned=yes ;;
6598esac
6599 OBJDUMP=$ac_ct_OBJDUMP
6600 fi
6601else
6602 OBJDUMP="$ac_cv_prog_OBJDUMP"
6603fi
6604
6605test -z "$OBJDUMP" && OBJDUMP=objdump
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6617if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
6618 $as_echo_n "(cached) " >&6
6619else
6620 lt_cv_file_magic_cmd='$MAGIC_CMD'
6621lt_cv_file_magic_test_file=
6622lt_cv_deplibs_check_method='unknown'
6623# Need to set the preceding variable on all platforms that support
6624# interlibrary dependencies.
6625# 'none' -- dependencies not supported.
6626# `unknown' -- same as none, but documents that we really don't know.
6627# 'pass_all' -- all dependencies passed with no checks.
6628# 'test_compile' -- check by making test program.
6629# 'file_magic [[regex]]' -- check by looking for files in library path
6630# which responds to the $file_magic_cmd with a given extended regex.
6631# If you have `file' or equivalent on your system and you're not sure
6632# whether `pass_all' will *always* work, you probably want this one.
6633
6634case $host_os in
6635aix[4-9]*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639beos*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642
6643bsdi[45]*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file=/shlib/libc.so
6647 ;;
6648
6649cygwin*)
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6653 ;;
6654
6655mingw* | pw32*)
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd='func_win32_libid'
6663 else
6664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd='$OBJDUMP -f'
6666 fi
6667 ;;
6668
6669cegcc*)
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd='$OBJDUMP -f'
6673 ;;
6674
6675darwin* | rhapsody*)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678
6679freebsd* | dragonfly*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681 case $host_cpu in
6682 i*86 )
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd=/usr/bin/file
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6688 ;;
6689 esac
6690 else
6691 lt_cv_deplibs_check_method=pass_all
6692 fi
6693 ;;
6694
6695gnu*)
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
6699haiku*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703hpux10.20* | hpux11*)
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 case $host_cpu in
6706 ia64*)
6707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6709 ;;
6710 hppa*64*)
6711 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]'
6712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6713 ;;
6714 *)
6715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6717 ;;
6718 esac
6719 ;;
6720
6721interix[3-9]*)
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6724 ;;
6725
6726irix5* | irix6* | nonstopux*)
6727 case $LD in
6728 *-32|*"-32 ") libmagic=32-bit;;
6729 *-n32|*"-n32 ") libmagic=N32;;
6730 *-64|*"-64 ") libmagic=64-bit;;
6731 *) libmagic=never-match;;
6732 esac
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736# This must be Linux ELF.
6737linux* | k*bsd*-gnu | kopensolaris*-gnu)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740
6741netbsd*)
6742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744 else
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6746 fi
6747 ;;
6748
6749newos6*)
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd=/usr/bin/file
6752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6753 ;;
6754
6755*nto* | *qnx*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758
6759openbsd*)
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6764 fi
6765 ;;
6766
6767osf3* | osf4* | osf5*)
6768 lt_cv_deplibs_check_method=pass_all
6769 ;;
6770
6771rdos*)
6772 lt_cv_deplibs_check_method=pass_all
6773 ;;
6774
6775solaris*)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778
6779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782
6783sysv4 | sysv4.3*)
6784 case $host_vendor in
6785 motorola)
6786 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]'
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6788 ;;
6789 ncr)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792 sequent)
6793 lt_cv_file_magic_cmd='/bin/file'
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6795 ;;
6796 sni)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file=/lib/libc.so
6800 ;;
6801 siemens)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804 pc)
6805 lt_cv_deplibs_check_method=pass_all
6806 ;;
6807 esac
6808 ;;
6809
6810tpf*)
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
6813esac
6814
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817$as_echo "$lt_cv_deplibs_check_method" >&6; }
6818file_magic_cmd=$lt_cv_file_magic_cmd
6819deplibs_check_method=$lt_cv_deplibs_check_method
6820test -z "$deplibs_check_method" && deplibs_check_method=unknown
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
68ed2854
MF
6833plugin_option=
6834plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6835for plugin in $plugin_names; do
6836 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6837 if test x$plugin_so = x$plugin; then
6838 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6839 fi
6840 if test x$plugin_so != x$plugin; then
6841 plugin_option="--plugin $plugin_so"
6842 break
6843 fi
6844done
6845
6bb11ab3
L
6846if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}ar; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6851if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
6852 $as_echo_n "(cached) " >&6
6853else
6854 if test -n "$AR"; then
6855 ac_cv_prog_AR="$AR" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6864 ac_cv_prog_AR="${ac_tool_prefix}ar"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874AR=$ac_cv_prog_AR
6875if test -n "$AR"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6877$as_echo "$AR" >&6; }
6878else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883
6884fi
6885if test -z "$ac_cv_prog_AR"; then
6886 ac_ct_AR=$AR
6887 # Extract the first word of "ar", so it can be a program name with args.
6888set dummy ar; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6891if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
6892 $as_echo_n "(cached) " >&6
6893else
6894 if test -n "$ac_ct_AR"; then
6895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6904 ac_cv_prog_ac_ct_AR="ar"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909 done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_AR=$ac_cv_prog_ac_ct_AR
6915if test -n "$ac_ct_AR"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6917$as_echo "$ac_ct_AR" >&6; }
6918else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923 if test "x$ac_ct_AR" = x; then
6924 AR="false"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927yes:)
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930ac_tool_warned=yes ;;
6931esac
6932 AR=$ac_ct_AR
6933 fi
6934else
6935 AR="$ac_cv_prog_AR"
6936fi
6937
6938test -z "$AR" && AR=ar
68ed2854
MF
6939if test -n "$plugin_option"; then
6940 if $AR --help 2>&1 | grep -q "\--plugin"; then
6941 AR="$AR $plugin_option"
6942 fi
6943fi
6bb11ab3
L
6944test -z "$AR_FLAGS" && AR_FLAGS=cru
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956if test -n "$ac_tool_prefix"; then
6957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6958set dummy ${ac_tool_prefix}strip; ac_word=$2
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6961if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
6962 $as_echo_n "(cached) " >&6
6963else
6964 if test -n "$STRIP"; then
6965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978done
6979 done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984STRIP=$ac_cv_prog_STRIP
6985if test -n "$STRIP"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6987$as_echo "$STRIP" >&6; }
6988else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993
6994fi
6995if test -z "$ac_cv_prog_STRIP"; then
6996 ac_ct_STRIP=$STRIP
6997 # Extract the first word of "strip", so it can be a program name with args.
6998set dummy strip; ac_word=$2
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7001if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
7002 $as_echo_n "(cached) " >&6
7003else
7004 if test -n "$ac_ct_STRIP"; then
7005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7006else
7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7014 ac_cv_prog_ac_ct_STRIP="strip"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018done
7019 done
7020IFS=$as_save_IFS
7021
7022fi
7023fi
7024ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7025if test -n "$ac_ct_STRIP"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7027$as_echo "$ac_ct_STRIP" >&6; }
7028else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030$as_echo "no" >&6; }
7031fi
7032
7033 if test "x$ac_ct_STRIP" = x; then
7034 STRIP=":"
7035 else
7036 case $cross_compiling:$ac_tool_warned in
7037yes:)
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040ac_tool_warned=yes ;;
7041esac
7042 STRIP=$ac_ct_STRIP
7043 fi
7044else
7045 STRIP="$ac_cv_prog_STRIP"
7046fi
7047
7048test -z "$STRIP" && STRIP=:
7049
7050
7051
7052
7053
7054
7055if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7060if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
7061 $as_echo_n "(cached) " >&6
7062else
7063 if test -n "$RANLIB"; then
7064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7073 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078 done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083RANLIB=$ac_cv_prog_RANLIB
7084if test -n "$RANLIB"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7086$as_echo "$RANLIB" >&6; }
7087else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092
7093fi
7094if test -z "$ac_cv_prog_RANLIB"; then
7095 ac_ct_RANLIB=$RANLIB
7096 # Extract the first word of "ranlib", so it can be a program name with args.
7097set dummy ranlib; ac_word=$2
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7100if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
7101 $as_echo_n "(cached) " >&6
7102else
7103 if test -n "$ac_ct_RANLIB"; then
7104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7113 ac_cv_prog_ac_ct_RANLIB="ranlib"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118 done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7124if test -n "$ac_ct_RANLIB"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7126$as_echo "$ac_ct_RANLIB" >&6; }
7127else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132 if test "x$ac_ct_RANLIB" = x; then
7133 RANLIB=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141 RANLIB=$ac_ct_RANLIB
7142 fi
7143else
7144 RANLIB="$ac_cv_prog_RANLIB"
7145fi
7146
7147test -z "$RANLIB" && RANLIB=:
68ed2854
MF
7148if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7149 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7150 RANLIB="$RANLIB $plugin_option"
7151 fi
7152fi
6bb11ab3
L
7153
7154
7155
7156
7157
7158
7159# Determine commands to create old-style static archives.
7160old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7161old_postinstall_cmds='chmod 644 $oldlib'
7162old_postuninstall_cmds=
7163
7164if test -n "$RANLIB"; then
7165 case $host_os in
7166 openbsd*)
7167 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7168 ;;
7169 *)
7170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7171 ;;
7172 esac
7173 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7174fi
7175
7176case $host_os in
7177 darwin*)
7178 lock_old_archive_extraction=yes ;;
7179 *)
7180 lock_old_archive_extraction=no ;;
7181esac
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203for ac_prog in gawk mawk nawk awk
7204do
7205 # Extract the first word of "$ac_prog", so it can be a program name with args.
7206set dummy $ac_prog; ac_word=$2
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7209if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
7210 $as_echo_n "(cached) " >&6
7211else
7212 if test -n "$AWK"; then
7213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7214else
7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7222 ac_cv_prog_AWK="$ac_prog"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226done
7227 done
7228IFS=$as_save_IFS
7229
7230fi
7231fi
7232AWK=$ac_cv_prog_AWK
7233if test -n "$AWK"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7235$as_echo "$AWK" >&6; }
7236else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238$as_echo "no" >&6; }
7239fi
7240
7241
7242 test -n "$AWK" && break
7243done
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263# If no C compiler was specified, use CC.
7264LTCC=${LTCC-"$CC"}
7265
7266# If no C compiler flags were specified, use CFLAGS.
7267LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7268
7269# Allow CC to be a program name with arguments.
7270compiler=$CC
7271
7272
7273# Check for command to grab the raw symbol name followed by C symbol from nm.
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7275$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7276if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
7277 $as_echo_n "(cached) " >&6
7278else
7279
7280# These are sane defaults that work on at least a few old systems.
7281# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7282
7283# Character class describing NM global symbol codes.
7284symcode='[BCDEGRST]'
7285
7286# Regexp to match symbols that can be accessed directly from C.
7287sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7288
7289# Define system-specific variables.
7290case $host_os in
7291aix*)
7292 symcode='[BCDT]'
7293 ;;
7294cygwin* | mingw* | pw32* | cegcc*)
7295 symcode='[ABCDGISTW]'
7296 ;;
7297hpux*)
7298 if test "$host_cpu" = ia64; then
7299 symcode='[ABCDEGRST]'
7300 fi
7301 ;;
7302irix* | nonstopux*)
7303 symcode='[BCDEGRST]'
7304 ;;
7305osf*)
7306 symcode='[BCDEGQRST]'
7307 ;;
7308solaris*)
7309 symcode='[BDRT]'
7310 ;;
7311sco3.2v5*)
7312 symcode='[DT]'
7313 ;;
7314sysv4.2uw2*)
7315 symcode='[DT]'
7316 ;;
7317sysv5* | sco5v6* | unixware* | OpenUNIX*)
7318 symcode='[ABDT]'
7319 ;;
7320sysv4)
7321 symcode='[DFNSTU]'
7322 ;;
7323esac
7324
7325# If we're using GNU nm, then use its standard symbol codes.
7326case `$NM -V 2>&1` in
7327*GNU* | *'with BFD'*)
7328 symcode='[ABCDGIRSTW]' ;;
7329esac
7330
7331# Transform an extracted symbol line into a proper C declaration.
7332# Some systems (esp. on ia64) link data and code symbols differently,
7333# so use this general approach.
7334lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7335
7336# Transform an extracted symbol line into symbol name and symbol address
7337lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7338lt_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'"
7339
7340# Handle CRLF in mingw tool chain
7341opt_cr=
7342case $build_os in
7343mingw*)
7344 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7345 ;;
7346esac
7347
7348# Try without a prefix underscore, then with it.
7349for ac_symprfx in "" "_"; do
7350
7351 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7352 symxfrm="\\1 $ac_symprfx\\2 \\2"
7353
7354 # Write the raw and C identifiers.
7355 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7356 # Fake it for dumpbin and say T for any non-static function
7357 # and D for any global variable.
7358 # Also find C++ and __fastcall symbols from MSVC++,
7359 # which start with @ or ?.
7360 lt_cv_sys_global_symbol_pipe="$AWK '"\
7361" {last_section=section; section=\$ 3};"\
7362" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7363" \$ 0!~/External *\|/{next};"\
7364" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7365" {if(hide[section]) next};"\
7366" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7367" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7368" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7369" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7370" ' prfx=^$ac_symprfx"
7371 else
7372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7373 fi
7374
7375 # Check to see that the pipe works correctly.
7376 pipe_works=no
7377
7378 rm -f conftest*
7379 cat > conftest.$ac_ext <<_LT_EOF
7380#ifdef __cplusplus
7381extern "C" {
7382#endif
7383char nm_test_var;
7384void nm_test_func(void);
7385void nm_test_func(void){}
7386#ifdef __cplusplus
7387}
7388#endif
7389int main(){nm_test_var='a';nm_test_func();return(0);}
7390_LT_EOF
7391
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 # Now try to grab the symbols.
7398 nlist=conftest.nm
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7400 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; } && test -s "$nlist"; then
7404 # Try sorting and uniquifying the output.
7405 if sort "$nlist" | uniq > "$nlist"T; then
7406 mv -f "$nlist"T "$nlist"
7407 else
7408 rm -f "$nlist"T
7409 fi
7410
7411 # Make sure that we snagged all the symbols we need.
7412 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7413 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7414 cat <<_LT_EOF > conftest.$ac_ext
7415#ifdef __cplusplus
7416extern "C" {
7417#endif
7418
7419_LT_EOF
7420 # Now generate the symbol file.
7421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7422
7423 cat <<_LT_EOF >> conftest.$ac_ext
7424
7425/* The mapping between symbol names and symbols. */
7426const struct {
7427 const char *name;
7428 void *address;
7429}
7430lt__PROGRAM__LTX_preloaded_symbols[] =
7431{
7432 { "@PROGRAM@", (void *) 0 },
7433_LT_EOF
7434 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7435 cat <<\_LT_EOF >> conftest.$ac_ext
7436 {0, (void *) 0}
7437};
7438
7439/* This works around a problem in FreeBSD linker */
7440#ifdef FREEBSD_WORKAROUND
7441static const void *lt_preloaded_setup() {
7442 return lt__PROGRAM__LTX_preloaded_symbols;
7443}
7444#endif
7445
7446#ifdef __cplusplus
7447}
7448#endif
7449_LT_EOF
7450 # Now try linking the two files.
7451 mv conftest.$ac_objext conftstm.$ac_objext
7452 lt_save_LIBS="$LIBS"
7453 lt_save_CFLAGS="$CFLAGS"
7454 LIBS="conftstm.$ac_objext"
7455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7457 (eval $ac_link) 2>&5
7458 ac_status=$?
7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7461 pipe_works=yes
7462 fi
7463 LIBS="$lt_save_LIBS"
7464 CFLAGS="$lt_save_CFLAGS"
7465 else
7466 echo "cannot find nm_test_func in $nlist" >&5
7467 fi
7468 else
7469 echo "cannot find nm_test_var in $nlist" >&5
7470 fi
7471 else
7472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7473 fi
7474 else
7475 echo "$progname: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7477 fi
7478 rm -rf conftest* conftst*
7479
7480 # Do not use the global_symbol_pipe unless it works.
7481 if test "$pipe_works" = yes; then
7482 break
7483 else
7484 lt_cv_sys_global_symbol_pipe=
7485 fi
7486done
7487
7488fi
7489
7490if test -z "$lt_cv_sys_global_symbol_pipe"; then
7491 lt_cv_sys_global_symbol_to_cdecl=
7492fi
7493if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7495$as_echo "failed" >&6; }
7496else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7498$as_echo "ok" >&6; }
7499fi
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522# Check whether --enable-libtool-lock was given.
7523if test "${enable_libtool_lock+set}" = set; then :
7524 enableval=$enable_libtool_lock;
7525fi
7526
7527test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7528
7529# Some flags need to be propagated to the compiler or linker for good
7530# libtool support.
7531case $host in
7532ia64-*-hpux*)
7533 # Find out which ABI we are using.
7534 echo 'int i;' > conftest.$ac_ext
7535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7536 (eval $ac_compile) 2>&5
7537 ac_status=$?
7538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539 test $ac_status = 0; }; then
7540 case `/usr/bin/file conftest.$ac_objext` in
7541 *ELF-32*)
7542 HPUX_IA64_MODE="32"
7543 ;;
7544 *ELF-64*)
7545 HPUX_IA64_MODE="64"
7546 ;;
7547 esac
7548 fi
7549 rm -rf conftest*
7550 ;;
7551*-*-irix6*)
7552 # Find out which ABI we are using.
7553 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7555 (eval $ac_compile) 2>&5
7556 ac_status=$?
7557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558 test $ac_status = 0; }; then
7559 if test "$lt_cv_prog_gnu_ld" = yes; then
7560 case `/usr/bin/file conftest.$ac_objext` in
7561 *32-bit*)
7562 LD="${LD-ld} -melf32bsmip"
7563 ;;
7564 *N32*)
7565 LD="${LD-ld} -melf32bmipn32"
7566 ;;
7567 *64-bit*)
7568 LD="${LD-ld} -melf64bmip"
7569 ;;
7570 esac
7571 else
7572 case `/usr/bin/file conftest.$ac_objext` in
7573 *32-bit*)
7574 LD="${LD-ld} -32"
7575 ;;
7576 *N32*)
7577 LD="${LD-ld} -n32"
7578 ;;
7579 *64-bit*)
7580 LD="${LD-ld} -64"
7581 ;;
7582 esac
7583 fi
7584 fi
7585 rm -rf conftest*
7586 ;;
7587
bf3d9781 7588x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
7589s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7590 # Find out which ABI we are using.
7591 echo 'int i;' > conftest.$ac_ext
7592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7593 (eval $ac_compile) 2>&5
7594 ac_status=$?
7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; then
7597 case `/usr/bin/file conftest.o` in
7598 *32-bit*)
7599 case $host in
7600 x86_64-*kfreebsd*-gnu)
7601 LD="${LD-ld} -m elf_i386_fbsd"
7602 ;;
7603 x86_64-*linux*)
7604 case `/usr/bin/file conftest.o` in
7605 *x86-64*)
7606 LD="${LD-ld} -m elf32_x86_64"
7607 ;;
7608 *)
7609 LD="${LD-ld} -m elf_i386"
7610 ;;
7611 esac
7612 ;;
bf3d9781
AM
7613 powerpc64le-*linux*)
7614 LD="${LD-ld} -m elf32lppclinux"
7615 ;;
7616 powerpc64-*linux*)
6bb11ab3
L
7617 LD="${LD-ld} -m elf32ppclinux"
7618 ;;
7619 s390x-*linux*)
7620 LD="${LD-ld} -m elf_s390"
7621 ;;
7622 sparc64-*linux*)
7623 LD="${LD-ld} -m elf32_sparc"
7624 ;;
7625 esac
7626 ;;
7627 *64-bit*)
7628 case $host in
7629 x86_64-*kfreebsd*-gnu)
7630 LD="${LD-ld} -m elf_x86_64_fbsd"
7631 ;;
7632 x86_64-*linux*)
7633 LD="${LD-ld} -m elf_x86_64"
7634 ;;
bf3d9781
AM
7635 powerpcle-*linux*)
7636 LD="${LD-ld} -m elf64lppc"
7637 ;;
7638 powerpc-*linux*)
6bb11ab3
L
7639 LD="${LD-ld} -m elf64ppc"
7640 ;;
7641 s390*-*linux*|s390*-*tpf*)
7642 LD="${LD-ld} -m elf64_s390"
7643 ;;
7644 sparc*-*linux*)
7645 LD="${LD-ld} -m elf64_sparc"
7646 ;;
7647 esac
7648 ;;
7649 esac
7650 fi
7651 rm -rf conftest*
7652 ;;
7653
7654*-*-sco3.2v5*)
7655 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7656 SAVE_CFLAGS="$CFLAGS"
7657 CFLAGS="$CFLAGS -belf"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7659$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7660if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
7661 $as_echo_n "(cached) " >&6
7662else
7663 ac_ext=c
7664ac_cpp='$CPP $CPPFLAGS'
7665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h. */
7671
7672int
7673main ()
7674{
7675
7676 ;
7677 return 0;
7678}
7679_ACEOF
7680if ac_fn_c_try_link "$LINENO"; then :
7681 lt_cv_cc_needs_belf=yes
7682else
7683 lt_cv_cc_needs_belf=no
7684fi
7685rm -f core conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 ac_ext=c
7688ac_cpp='$CPP $CPPFLAGS'
7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693fi
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7695$as_echo "$lt_cv_cc_needs_belf" >&6; }
7696 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7697 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7698 CFLAGS="$SAVE_CFLAGS"
7699 fi
7700 ;;
7701sparc*-*solaris*)
7702 # Find out which ABI we are using.
7703 echo 'int i;' > conftest.$ac_ext
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705 (eval $ac_compile) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.o` in
7710 *64-bit*)
7711 case $lt_cv_prog_gnu_ld in
7712 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7713 *)
7714 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7715 LD="${LD-ld} -64"
7716 fi
7717 ;;
7718 esac
7719 ;;
7720 esac
7721 fi
7722 rm -rf conftest*
7723 ;;
7724esac
7725
7726need_locks="$enable_libtool_lock"
7727
7728
7729 case $host_os in
7730 rhapsody* | darwin*)
7731 if test -n "$ac_tool_prefix"; then
7732 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7736if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
7737 $as_echo_n "(cached) " >&6
7738else
7739 if test -n "$DSYMUTIL"; then
7740 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7741else
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7749 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753done
7754 done
7755IFS=$as_save_IFS
7756
7757fi
7758fi
7759DSYMUTIL=$ac_cv_prog_DSYMUTIL
7760if test -n "$DSYMUTIL"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7762$as_echo "$DSYMUTIL" >&6; }
7763else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
7766fi
7767
7768
7769fi
7770if test -z "$ac_cv_prog_DSYMUTIL"; then
7771 ac_ct_DSYMUTIL=$DSYMUTIL
7772 # Extract the first word of "dsymutil", so it can be a program name with args.
7773set dummy dsymutil; ac_word=$2
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7776if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
7777 $as_echo_n "(cached) " >&6
7778else
7779 if test -n "$ac_ct_DSYMUTIL"; then
7780 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7789 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793done
7794 done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7800if test -n "$ac_ct_DSYMUTIL"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7802$as_echo "$ac_ct_DSYMUTIL" >&6; }
7803else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806fi
7807
7808 if test "x$ac_ct_DSYMUTIL" = x; then
7809 DSYMUTIL=":"
7810 else
7811 case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817 DSYMUTIL=$ac_ct_DSYMUTIL
7818 fi
7819else
7820 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7821fi
7822
7823 if test -n "$ac_tool_prefix"; then
7824 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7825set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7828if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
7829 $as_echo_n "(cached) " >&6
7830else
7831 if test -n "$NMEDIT"; then
7832 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7841 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846 done
7847IFS=$as_save_IFS
7848
7849fi
7850fi
7851NMEDIT=$ac_cv_prog_NMEDIT
7852if test -n "$NMEDIT"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7854$as_echo "$NMEDIT" >&6; }
7855else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860
7861fi
7862if test -z "$ac_cv_prog_NMEDIT"; then
7863 ac_ct_NMEDIT=$NMEDIT
7864 # Extract the first word of "nmedit", so it can be a program name with args.
7865set dummy nmedit; ac_word=$2
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7868if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
7869 $as_echo_n "(cached) " >&6
7870else
7871 if test -n "$ac_ct_NMEDIT"; then
7872 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7881 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885done
7886 done
7887IFS=$as_save_IFS
7888
7889fi
7890fi
7891ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7892if test -n "$ac_ct_NMEDIT"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7894$as_echo "$ac_ct_NMEDIT" >&6; }
7895else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900 if test "x$ac_ct_NMEDIT" = x; then
7901 NMEDIT=":"
7902 else
7903 case $cross_compiling:$ac_tool_warned in
7904yes:)
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907ac_tool_warned=yes ;;
7908esac
7909 NMEDIT=$ac_ct_NMEDIT
7910 fi
7911else
7912 NMEDIT="$ac_cv_prog_NMEDIT"
7913fi
7914
7915 if test -n "$ac_tool_prefix"; then
7916 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7917set dummy ${ac_tool_prefix}lipo; ac_word=$2
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7920if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
7921 $as_echo_n "(cached) " >&6
7922else
7923 if test -n "$LIPO"; then
7924 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7925else
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7933 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937done
7938 done
7939IFS=$as_save_IFS
7940
7941fi
7942fi
7943LIPO=$ac_cv_prog_LIPO
7944if test -n "$LIPO"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7946$as_echo "$LIPO" >&6; }
7947else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949$as_echo "no" >&6; }
7950fi
7951
7952
7953fi
7954if test -z "$ac_cv_prog_LIPO"; then
7955 ac_ct_LIPO=$LIPO
7956 # Extract the first word of "lipo", so it can be a program name with args.
7957set dummy lipo; ac_word=$2
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7960if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
7961 $as_echo_n "(cached) " >&6
7962else
7963 if test -n "$ac_ct_LIPO"; then
7964 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7973 ac_cv_prog_ac_ct_LIPO="lipo"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978 done
7979IFS=$as_save_IFS
7980
7981fi
7982fi
7983ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7984if test -n "$ac_ct_LIPO"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7986$as_echo "$ac_ct_LIPO" >&6; }
7987else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991
7992 if test "x$ac_ct_LIPO" = x; then
7993 LIPO=":"
7994 else
7995 case $cross_compiling:$ac_tool_warned in
7996yes:)
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999ac_tool_warned=yes ;;
8000esac
8001 LIPO=$ac_ct_LIPO
8002 fi
8003else
8004 LIPO="$ac_cv_prog_LIPO"
8005fi
8006
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8009set dummy ${ac_tool_prefix}otool; ac_word=$2
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8012if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
8013 $as_echo_n "(cached) " >&6
8014else
8015 if test -n "$OTOOL"; then
8016 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8017else
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8025 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030 done
8031IFS=$as_save_IFS
8032
8033fi
8034fi
8035OTOOL=$ac_cv_prog_OTOOL
8036if test -n "$OTOOL"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8038$as_echo "$OTOOL" >&6; }
8039else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
8042fi
8043
8044
8045fi
8046if test -z "$ac_cv_prog_OTOOL"; then
8047 ac_ct_OTOOL=$OTOOL
8048 # Extract the first word of "otool", so it can be a program name with args.
8049set dummy otool; ac_word=$2
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8052if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
8053 $as_echo_n "(cached) " >&6
8054else
8055 if test -n "$ac_ct_OTOOL"; then
8056 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8065 ac_cv_prog_ac_ct_OTOOL="otool"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069done
8070 done
8071IFS=$as_save_IFS
8072
8073fi
8074fi
8075ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8076if test -n "$ac_ct_OTOOL"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8078$as_echo "$ac_ct_OTOOL" >&6; }
8079else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082fi
8083
8084 if test "x$ac_ct_OTOOL" = x; then
8085 OTOOL=":"
8086 else
8087 case $cross_compiling:$ac_tool_warned in
8088yes:)
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8091ac_tool_warned=yes ;;
8092esac
8093 OTOOL=$ac_ct_OTOOL
8094 fi
8095else
8096 OTOOL="$ac_cv_prog_OTOOL"
8097fi
8098
8099 if test -n "$ac_tool_prefix"; then
8100 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8101set dummy ${ac_tool_prefix}otool64; ac_word=$2
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8104if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
8105 $as_echo_n "(cached) " >&6
8106else
8107 if test -n "$OTOOL64"; then
8108 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8117 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121done
8122 done
8123IFS=$as_save_IFS
8124
8125fi
8126fi
8127OTOOL64=$ac_cv_prog_OTOOL64
8128if test -n "$OTOOL64"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8130$as_echo "$OTOOL64" >&6; }
8131else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133$as_echo "no" >&6; }
8134fi
8135
8136
8137fi
8138if test -z "$ac_cv_prog_OTOOL64"; then
8139 ac_ct_OTOOL64=$OTOOL64
8140 # Extract the first word of "otool64", so it can be a program name with args.
8141set dummy otool64; ac_word=$2
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8144if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
8145 $as_echo_n "(cached) " >&6
8146else
8147 if test -n "$ac_ct_OTOOL64"; then
8148 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8157 ac_cv_prog_ac_ct_OTOOL64="otool64"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161done
8162 done
8163IFS=$as_save_IFS
8164
8165fi
8166fi
8167ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8168if test -n "$ac_ct_OTOOL64"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8170$as_echo "$ac_ct_OTOOL64" >&6; }
8171else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
8174fi
8175
8176 if test "x$ac_ct_OTOOL64" = x; then
8177 OTOOL64=":"
8178 else
8179 case $cross_compiling:$ac_tool_warned in
8180yes:)
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8183ac_tool_warned=yes ;;
8184esac
8185 OTOOL64=$ac_ct_OTOOL64
8186 fi
8187else
8188 OTOOL64="$ac_cv_prog_OTOOL64"
8189fi
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8218$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8219if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
8220 $as_echo_n "(cached) " >&6
8221else
8222 lt_cv_apple_cc_single_mod=no
8223 if test -z "${LT_MULTI_MODULE}"; then
8224 # By default we will add the -single_module flag. You can override
8225 # by either setting the environment variable LT_MULTI_MODULE
8226 # non-empty at configure time, or by adding -multi_module to the
8227 # link flags.
8228 rm -rf libconftest.dylib*
8229 echo "int foo(void){return 1;}" > conftest.c
8230 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8231-dynamiclib -Wl,-single_module conftest.c" >&5
8232 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8233 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8234 _lt_result=$?
8235 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8236 lt_cv_apple_cc_single_mod=yes
8237 else
8238 cat conftest.err >&5
8239 fi
8240 rm -rf libconftest.dylib*
8241 rm -f conftest.*
8242 fi
8243fi
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8245$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8247$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8248if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
8249 $as_echo_n "(cached) " >&6
8250else
8251 lt_cv_ld_exported_symbols_list=no
8252 save_LDFLAGS=$LDFLAGS
8253 echo "_main" > conftest.sym
8254 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256/* end confdefs.h. */
8257
8258int
8259main ()
8260{
8261
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266if ac_fn_c_try_link "$LINENO"; then :
8267 lt_cv_ld_exported_symbols_list=yes
8268else
8269 lt_cv_ld_exported_symbols_list=no
8270fi
8271rm -f core conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8273 LDFLAGS="$save_LDFLAGS"
8274
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8277$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8279$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8280if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
8281 $as_echo_n "(cached) " >&6
8282else
8283 lt_cv_ld_force_load=no
8284 cat > conftest.c << _LT_EOF
8285int forced_loaded() { return 2;}
8286_LT_EOF
8287 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8288 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8289 echo "$AR cru libconftest.a conftest.o" >&5
8290 $AR cru libconftest.a conftest.o 2>&5
8291 cat > conftest.c << _LT_EOF
8292int main() { return 0;}
8293_LT_EOF
8294 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8295 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8296 _lt_result=$?
8297 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8298 lt_cv_ld_force_load=yes
8299 else
8300 cat conftest.err >&5
8301 fi
8302 rm -f conftest.err libconftest.a conftest conftest.c
8303 rm -rf conftest.dSYM
8304
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8307$as_echo "$lt_cv_ld_force_load" >&6; }
8308 case $host_os in
8309 rhapsody* | darwin1.[012])
8310 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8311 darwin1.*)
8312 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8313 darwin*) # darwin 5.x on
8314 # if running on 10.5 or later, the deployment target defaults
8315 # to the OS version, if on x86, and 10.4, the deployment
8316 # target defaults to 10.4. Don't you love it?
8317 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8318 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8319 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 8320 10.[012][,.]*)
6bb11ab3
L
8321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8322 10.*)
8323 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8324 esac
8325 ;;
8326 esac
8327 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8328 _lt_dar_single_mod='$single_module'
8329 fi
8330 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8331 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8332 else
8333 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8334 fi
8335 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8336 _lt_dsymutil='~$DSYMUTIL $lib || :'
8337 else
8338 _lt_dsymutil=
8339 fi
8340 ;;
8341 esac
8342
8343for ac_header in dlfcn.h
8344do :
8345 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8346"
d0ac1c44 8347if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
8348 cat >>confdefs.h <<_ACEOF
8349#define HAVE_DLFCN_H 1
8350_ACEOF
8351
8352fi
8353
8354done
8355
8356
8357
8358# autoconf.info says this should be called right after AC_INIT.
8359ac_config_headers="$ac_config_headers config.h:config.in"
8360
8361
8362
0cb8d851
MF
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8364$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 8365if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
8366 $as_echo_n "(cached) " >&6
8367else
8368 ac_cv_c_bigendian=unknown
8369 # See if we're dealing with a universal compiler.
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h. */
8372#ifndef __APPLE_CC__
8373 not a universal capable compiler
8374 #endif
8375 typedef int dummy;
8376
8377_ACEOF
8378if ac_fn_c_try_compile "$LINENO"; then :
8379
8380 # Check for potential -arch flags. It is not universal unless
8381 # there are at least two -arch flags with different values.
8382 ac_arch=
8383 ac_prev=
8384 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8385 if test -n "$ac_prev"; then
8386 case $ac_word in
8387 i?86 | x86_64 | ppc | ppc64)
8388 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8389 ac_arch=$ac_word
8390 else
8391 ac_cv_c_bigendian=universal
8392 break
8393 fi
8394 ;;
8395 esac
8396 ac_prev=
8397 elif test "x$ac_word" = "x-arch"; then
8398 ac_prev=arch
8399 fi
8400 done
8401fi
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 if test $ac_cv_c_bigendian = unknown; then
8404 # See if sys/param.h defines the BYTE_ORDER macro.
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406/* end confdefs.h. */
8407#include <sys/types.h>
8408 #include <sys/param.h>
8409
8410int
8411main ()
8412{
8413#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8414 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8415 && LITTLE_ENDIAN)
8416 bogus endian macros
8417 #endif
8418
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_compile "$LINENO"; then :
8424 # It does; now see whether it defined to BIG_ENDIAN or not.
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h. */
8427#include <sys/types.h>
8428 #include <sys/param.h>
8429
8430int
8431main ()
8432{
8433#if BYTE_ORDER != BIG_ENDIAN
8434 not big endian
8435 #endif
8436
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441if ac_fn_c_try_compile "$LINENO"; then :
8442 ac_cv_c_bigendian=yes
8443else
8444 ac_cv_c_bigendian=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447fi
8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 if test $ac_cv_c_bigendian = unknown; then
8451 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454#include <limits.h>
8455
8456int
8457main ()
8458{
8459#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8460 bogus endian macros
8461 #endif
8462
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467if ac_fn_c_try_compile "$LINENO"; then :
8468 # It does; now see whether it defined to _BIG_ENDIAN or not.
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h. */
8471#include <limits.h>
8472
8473int
8474main ()
8475{
8476#ifndef _BIG_ENDIAN
8477 not big endian
8478 #endif
8479
8480 ;
8481 return 0;
8482}
8483_ACEOF
8484if ac_fn_c_try_compile "$LINENO"; then :
8485 ac_cv_c_bigendian=yes
8486else
8487 ac_cv_c_bigendian=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490fi
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 if test $ac_cv_c_bigendian = unknown; then
8494 # Compile a test program.
8495 if test "$cross_compiling" = yes; then :
8496 # Try to guess by grepping values from an object file.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h. */
8499short int ascii_mm[] =
8500 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8501 short int ascii_ii[] =
8502 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8503 int use_ascii (int i) {
8504 return ascii_mm[i] + ascii_ii[i];
8505 }
8506 short int ebcdic_ii[] =
8507 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8508 short int ebcdic_mm[] =
8509 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8510 int use_ebcdic (int i) {
8511 return ebcdic_mm[i] + ebcdic_ii[i];
8512 }
8513 extern int foo;
8514
8515int
8516main ()
8517{
8518return use_ascii (foo) == use_ebcdic (foo);
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_compile "$LINENO"; then :
8524 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8525 ac_cv_c_bigendian=yes
8526 fi
8527 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8528 if test "$ac_cv_c_bigendian" = unknown; then
8529 ac_cv_c_bigendian=no
8530 else
8531 # finding both strings is unlikely to happen, but who knows?
8532 ac_cv_c_bigendian=unknown
8533 fi
8534 fi
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h. */
8540$ac_includes_default
8541int
8542main ()
8543{
8544
8545 /* Are we little or big endian? From Harbison&Steele. */
8546 union
8547 {
8548 long int l;
8549 char c[sizeof (long int)];
8550 } u;
8551 u.l = 1;
8552 return u.c[sizeof (long int) - 1] == 1;
8553
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_run "$LINENO"; then :
8559 ac_cv_c_bigendian=no
8560else
8561 ac_cv_c_bigendian=yes
8562fi
8563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8564 conftest.$ac_objext conftest.beam conftest.$ac_ext
8565fi
8566
8567 fi
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8570$as_echo "$ac_cv_c_bigendian" >&6; }
8571 case $ac_cv_c_bigendian in #(
8572 yes)
8573 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8574;; #(
8575 no)
8576 ;; #(
8577 universal)
8578
8579$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8580
8581 ;; #(
8582 *)
d0ac1c44 8583 as_fn_error $? "unknown endianness
0cb8d851
MF
8584 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8585 esac
8586
6bb11ab3
L
8587
8588
8589
8590# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
8591if test -z "$CC_FOR_BUILD"; then
8592 if test "x$cross_compiling" = "xno"; then
8593 CC_FOR_BUILD='$(CC)'
8594 else
8595 CC_FOR_BUILD=gcc
8596 fi
6bb11ab3
L
8597fi
8598
8599
8600
8601
8602AR=${AR-ar}
8603
8604if test -n "$ac_tool_prefix"; then
8605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8606set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8609if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
8610 $as_echo_n "(cached) " >&6
8611else
8612 if test -n "$RANLIB"; then
8613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8614else
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626done
8627 done
8628IFS=$as_save_IFS
8629
8630fi
8631fi
8632RANLIB=$ac_cv_prog_RANLIB
8633if test -n "$RANLIB"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8635$as_echo "$RANLIB" >&6; }
8636else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
8639fi
8640
8641
8642fi
8643if test -z "$ac_cv_prog_RANLIB"; then
8644 ac_ct_RANLIB=$RANLIB
8645 # Extract the first word of "ranlib", so it can be a program name with args.
8646set dummy ranlib; ac_word=$2
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8649if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
8650 $as_echo_n "(cached) " >&6
8651else
8652 if test -n "$ac_ct_RANLIB"; then
8653 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8654else
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8662 ac_cv_prog_ac_ct_RANLIB="ranlib"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666done
8667 done
8668IFS=$as_save_IFS
8669
8670fi
8671fi
8672ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8673if test -n "$ac_ct_RANLIB"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8675$as_echo "$ac_ct_RANLIB" >&6; }
8676else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
8679fi
8680
8681 if test "x$ac_ct_RANLIB" = x; then
8682 RANLIB=":"
8683 else
8684 case $cross_compiling:$ac_tool_warned in
8685yes:)
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688ac_tool_warned=yes ;;
8689esac
8690 RANLIB=$ac_ct_RANLIB
8691 fi
8692else
8693 RANLIB="$ac_cv_prog_RANLIB"
8694fi
8695
8696
46f900c0
MF
8697# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
8698# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
8699# is C99. So handle it ourselves.
8700:
8701C_DIALECT=
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
8703$as_echo_n "checking whether C11 is supported by default... " >&6; }
8704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h. */
8706
8707#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8708# error "C11 support not found"
8709#endif
8710
8711_ACEOF
8712if ac_fn_c_try_compile "$LINENO"; then :
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8714$as_echo "yes" >&6; }
8715else
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718$as_echo "no" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
8720$as_echo_n "checking for -std=c11 support... " >&6; }
8721 ac_save_CC="$CC"
8722 CC="$CC -std=c11"
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h. */
8725
8726#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8727# error "C11 support not found"
8728#endif
8729
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"; then :
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8734$as_echo "yes" >&6; }
8735 CC="$ac_save_CC"
8736 C_DIALECT="-std=c11"
8737
8738else
8739 as_fn_error $? "C11 is required" "$LINENO" 5
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744
8745
6bb11ab3
L
8746# Some of the common include files depend on bfd.h, and bfd.h checks
8747# that config.h is included first by testing that the PACKAGE macro
8748# is defined.
8749PACKAGE=sim
8750
8751cat >>confdefs.h <<_ACEOF
8752#define PACKAGE "$PACKAGE"
8753_ACEOF
8754
8755
8756
8757# Dependency checking.
8758ac_config_commands="$ac_config_commands depdir"
8759
8760
8761depcc="$CC" am_compiler_list=
8762
8763am_depcomp=$ac_aux_dir/depcomp
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8765$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 8766if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
8767 $as_echo_n "(cached) " >&6
8768else
8769 if test -f "$am_depcomp"; then
8770 # We make a subdir and do the tests there. Otherwise we can end up
8771 # making bogus files that we don't know about and never remove. For
8772 # instance it was reported that on HP-UX the gcc test will end up
8773 # making a dummy file named `D' -- because `-MD' means `put the output
8774 # in D'.
8775 mkdir conftest.dir
8776 # Copy depcomp to subdir because otherwise we won't find it if we're
8777 # using a relative directory.
8778 cp "$am_depcomp" conftest.dir
8779 cd conftest.dir
8780 # We will build objects and dependencies in a subdirectory because
8781 # it helps to detect inapplicable dependency modes. For instance
8782 # both Tru64's cc and ICC support -MD to output dependencies as a
8783 # side effect of compilation, but ICC will put the dependencies in
8784 # the current directory while Tru64 will put them in the object
8785 # directory.
8786 mkdir sub
8787
8788 am_cv_CC_dependencies_compiler_type=none
8789 if test "$am_compiler_list" = ""; then
8790 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8791 fi
8792 for depmode in $am_compiler_list; do
8793 if test $depmode = none; then break; fi
8794
8795 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8796 # Setup a source with many dependencies, because some compilers
8797 # like to wrap large dependency lists on column 80 (with \), and
8798 # we should not choose a depcomp mode which is confused by this.
8799 #
8800 # We need to recreate these files for each test, as the compiler may
8801 # overwrite some of them when testing with obscure command lines.
8802 # This happens at least with the AIX C compiler.
8803 : > sub/conftest.c
8804 for i in 1 2 3 4 5 6; do
8805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8807 # Solaris 8's {/usr,}/bin/sh.
8808 touch sub/conftst$i.h
8809 done
8810 echo "include sub/conftest.Po" > confmf
8811
8812 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8813 # mode. It turns out that the SunPro C++ compiler does not properly
8814 # handle `-M -o', and we need to detect this.
8815 depcmd="depmode=$depmode \
8816 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8818 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8819 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8820 if env $depcmd > conftest.err 2>&1 &&
8821 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8822 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8823 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8824 # icc doesn't choke on unknown options, it will just issue warnings
8825 # or remarks (even with -Werror). So we grep stderr for any message
8826 # that says an option was ignored or not supported.
8827 # When given -MP, icc 7.0 and 7.1 complain thusly:
8828 # icc: Command line warning: ignoring option '-M'; no argument required
8829 # The diagnosis changed in icc 8.0:
8830 # icc: Command line remark: option '-MP' not supported
8831 if (grep 'ignoring option' conftest.err ||
8832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8833 am_cv_CC_dependencies_compiler_type=$depmode
8834 $as_echo "$as_me:$LINENO: success" >&5
8835 break
8836 fi
8837 fi
8838 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8839 sed -e 's/^/| /' < conftest.err >&5
8840 done
8841
8842 cd ..
8843 rm -rf conftest.dir
8844else
8845 am_cv_CC_dependencies_compiler_type=none
8846fi
8847
8848fi
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8851if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 8852then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
8853else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8854
8855fi
8856
8857
8858# Check for the 'make' the user wants to use.
8859for ac_prog in make
8860do
8861 # Extract the first word of "$ac_prog", so it can be a program name with args.
8862set dummy $ac_prog; ac_word=$2
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8865if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
8866 $as_echo_n "(cached) " >&6
8867else
8868 if test -n "$MAKE"; then
8869 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8870else
8871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8878 ac_cv_prog_MAKE="$ac_prog"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882done
8883 done
8884IFS=$as_save_IFS
8885
8886fi
8887fi
8888MAKE=$ac_cv_prog_MAKE
8889if test -n "$MAKE"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8891$as_echo "$MAKE" >&6; }
8892else
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894$as_echo "no" >&6; }
8895fi
8896
8897
8898 test -n "$MAKE" && break
8899done
8900
8901MAKE_IS_GNU=
8902case "`$MAKE --version 2>&1 | sed 1q`" in
8903 *GNU*)
8904 MAKE_IS_GNU=yes
8905 ;;
8906esac
8907 if test "$MAKE_IS_GNU" = yes; then
8908 GMAKE_TRUE=
8909 GMAKE_FALSE='#'
8910else
8911 GMAKE_TRUE='#'
8912 GMAKE_FALSE=
8913fi
8914
8915
8916ALL_LINGUAS=
8917# If we haven't got the data from the intl directory,
8918# assume NLS is disabled.
8919USE_NLS=no
8920LIBINTL=
8921LIBINTL_DEP=
8922INCINTL=
8923XGETTEXT=
8924GMSGFMT=
8925POSUB=
8926
8927if test -f ../../intl/config.intl; then
8928 . ../../intl/config.intl
8929fi
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8931$as_echo_n "checking whether NLS is requested... " >&6; }
8932if test x"$USE_NLS" != xyes; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
8935else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8937$as_echo "yes" >&6; }
8938
8939$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8940
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8943$as_echo_n "checking for catalogs to be installed... " >&6; }
8944 # Look for .po and .gmo files in the source directory.
8945 CATALOGS=
8946 XLINGUAS=
8947 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8948 # If there aren't any .gmo files the shell will give us the
8949 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8950 # weeded out.
8951 case "$cat" in *\**)
8952 continue;;
8953 esac
8954 # The quadruple backslash is collapsed to a double backslash
8955 # by the backticks, then collapsed again by the double quotes,
8956 # leaving us with one backslash in the sed expression (right
8957 # before the dot that mustn't act as a wildcard).
8958 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8959 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8960 # The user is allowed to set LINGUAS to a list of languages to
8961 # install catalogs for. If it's empty that means "all of them."
8962 if test "x$LINGUAS" = x; then
8963 CATALOGS="$CATALOGS $cat"
8964 XLINGUAS="$XLINGUAS $lang"
8965 else
8966 case "$LINGUAS" in *$lang*)
8967 CATALOGS="$CATALOGS $cat"
8968 XLINGUAS="$XLINGUAS $lang"
8969 ;;
8970 esac
8971 fi
8972 done
8973 LINGUAS="$XLINGUAS"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8975$as_echo "$LINGUAS" >&6; }
8976
8977
8978 DATADIRNAME=share
8979
8980 INSTOBJEXT=.mo
8981
8982 GENCAT=gencat
8983
8984 CATOBJEXT=.gmo
8985
8986fi
8987
8988# Check for common headers.
68ed2854
MF
8989# NB: You can assume C11 headers exist.
8990for ac_header in unistd.h
6bb11ab3 8991do :
68ed2854
MF
8992 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
8993if test "x$ac_cv_header_unistd_h" = xyes; then :
6bb11ab3 8994 cat >>confdefs.h <<_ACEOF
68ed2854 8995#define HAVE_UNISTD_H 1
6bb11ab3
L
8996_ACEOF
8997
8998fi
8999
9000done
9001
936df756 9002for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
9003do :
9004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9005ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9006if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
9007 cat >>confdefs.h <<_ACEOF
9008#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009_ACEOF
9010
9011fi
9012
9013done
9014
9015for ac_header in fcntl.h fpu_control.h
9016do :
9017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9018ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9019if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
9020 cat >>confdefs.h <<_ACEOF
9021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9022_ACEOF
9023
9024fi
9025
9026done
9027
68ed2854 9028for ac_header in dlfcn.h sys/stat.h
6bb11ab3
L
9029do :
9030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 9032if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
9033 cat >>confdefs.h <<_ACEOF
9034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035_ACEOF
9036
9037fi
9038
9039done
9040
9041for ac_func in getrusage time sigaction __setfpucw
9042do :
9043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9044ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 9045if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
9046 cat >>confdefs.h <<_ACEOF
9047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9048_ACEOF
9049
9050fi
9051done
9052
936df756
MF
9053for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
9054do :
9055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 9057if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
9058 cat >>confdefs.h <<_ACEOF
9059#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9060_ACEOF
9061
9062fi
9063done
9064
9065ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
9066#include <sys/types.h>
9067#endif
9068#ifdef HAVE_SYS_STAT_H
9069#include <sys/stat.h>
9070#endif
9071"
d0ac1c44 9072if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
9073
9074cat >>confdefs.h <<_ACEOF
9075#define HAVE_STRUCT_STAT_ST_DEV 1
9076_ACEOF
9077
9078
9079fi
9080ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
9081#include <sys/types.h>
9082#endif
9083#ifdef HAVE_SYS_STAT_H
9084#include <sys/stat.h>
9085#endif
9086"
d0ac1c44 9087if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
9088
9089cat >>confdefs.h <<_ACEOF
9090#define HAVE_STRUCT_STAT_ST_INO 1
9091_ACEOF
9092
9093
9094fi
9095ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9096#include <sys/types.h>
9097#endif
9098#ifdef HAVE_SYS_STAT_H
9099#include <sys/stat.h>
9100#endif
9101"
d0ac1c44 9102if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
9103
9104cat >>confdefs.h <<_ACEOF
9105#define HAVE_STRUCT_STAT_ST_MODE 1
9106_ACEOF
9107
9108
9109fi
9110ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9111#include <sys/types.h>
9112#endif
9113#ifdef HAVE_SYS_STAT_H
9114#include <sys/stat.h>
9115#endif
9116"
d0ac1c44 9117if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
9118
9119cat >>confdefs.h <<_ACEOF
9120#define HAVE_STRUCT_STAT_ST_NLINK 1
9121_ACEOF
9122
9123
9124fi
9125ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9126#include <sys/types.h>
9127#endif
9128#ifdef HAVE_SYS_STAT_H
9129#include <sys/stat.h>
9130#endif
9131"
d0ac1c44 9132if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
9133
9134cat >>confdefs.h <<_ACEOF
9135#define HAVE_STRUCT_STAT_ST_UID 1
9136_ACEOF
9137
9138
9139fi
9140ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9141#include <sys/types.h>
9142#endif
9143#ifdef HAVE_SYS_STAT_H
9144#include <sys/stat.h>
9145#endif
9146"
d0ac1c44 9147if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
9148
9149cat >>confdefs.h <<_ACEOF
9150#define HAVE_STRUCT_STAT_ST_GID 1
9151_ACEOF
9152
9153
9154fi
9155ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9156#include <sys/types.h>
9157#endif
9158#ifdef HAVE_SYS_STAT_H
9159#include <sys/stat.h>
9160#endif
9161"
d0ac1c44 9162if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
9163
9164cat >>confdefs.h <<_ACEOF
9165#define HAVE_STRUCT_STAT_ST_RDEV 1
9166_ACEOF
9167
9168
9169fi
9170ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9171#include <sys/types.h>
9172#endif
9173#ifdef HAVE_SYS_STAT_H
9174#include <sys/stat.h>
9175#endif
9176"
d0ac1c44 9177if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
9178
9179cat >>confdefs.h <<_ACEOF
9180#define HAVE_STRUCT_STAT_ST_SIZE 1
9181_ACEOF
9182
9183
9184fi
9185ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9186#include <sys/types.h>
9187#endif
9188#ifdef HAVE_SYS_STAT_H
9189#include <sys/stat.h>
9190#endif
9191"
d0ac1c44 9192if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
9193
9194cat >>confdefs.h <<_ACEOF
9195#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9196_ACEOF
9197
9198
9199fi
9200ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9201#include <sys/types.h>
9202#endif
9203#ifdef HAVE_SYS_STAT_H
9204#include <sys/stat.h>
9205#endif
9206"
d0ac1c44 9207if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
9208
9209cat >>confdefs.h <<_ACEOF
9210#define HAVE_STRUCT_STAT_ST_BLOCKS 1
9211_ACEOF
9212
9213
9214fi
9215ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9216#include <sys/types.h>
9217#endif
9218#ifdef HAVE_SYS_STAT_H
9219#include <sys/stat.h>
9220#endif
9221"
d0ac1c44 9222if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
9223
9224cat >>confdefs.h <<_ACEOF
9225#define HAVE_STRUCT_STAT_ST_ATIME 1
9226_ACEOF
9227
9228
9229fi
9230ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9231#include <sys/types.h>
9232#endif
9233#ifdef HAVE_SYS_STAT_H
9234#include <sys/stat.h>
9235#endif
9236"
d0ac1c44 9237if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
9238
9239cat >>confdefs.h <<_ACEOF
9240#define HAVE_STRUCT_STAT_ST_MTIME 1
9241_ACEOF
9242
9243
9244fi
9245ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9246#include <sys/types.h>
9247#endif
9248#ifdef HAVE_SYS_STAT_H
9249#include <sys/stat.h>
9250#endif
9251"
d0ac1c44 9252if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
9253
9254cat >>confdefs.h <<_ACEOF
9255#define HAVE_STRUCT_STAT_ST_CTIME 1
9256_ACEOF
9257
9258
9259fi
9260
9261ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9262#include <sys/socket.h>
9263
9264"
d0ac1c44 9265if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
9266
9267cat >>confdefs.h <<_ACEOF
9268#define HAVE_SOCKLEN_T 1
9269_ACEOF
9270
9271
9272fi
9273
6bb11ab3
L
9274
9275# Check for socket libraries
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9277$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 9278if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
9279 $as_echo_n "(cached) " >&6
9280else
9281 ac_check_lib_save_LIBS=$LIBS
9282LIBS="-lsocket $LIBS"
9283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h. */
9285
9286/* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
9289#ifdef __cplusplus
9290extern "C"
9291#endif
9292char bind ();
9293int
9294main ()
9295{
9296return bind ();
9297 ;
9298 return 0;
9299}
9300_ACEOF
9301if ac_fn_c_try_link "$LINENO"; then :
9302 ac_cv_lib_socket_bind=yes
9303else
9304 ac_cv_lib_socket_bind=no
9305fi
9306rm -f core conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
9308LIBS=$ac_check_lib_save_LIBS
9309fi
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9311$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 9312if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
9313 cat >>confdefs.h <<_ACEOF
9314#define HAVE_LIBSOCKET 1
9315_ACEOF
9316
9317 LIBS="-lsocket $LIBS"
9318
9319fi
9320
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9322$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 9323if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
9324 $as_echo_n "(cached) " >&6
9325else
9326 ac_check_lib_save_LIBS=$LIBS
9327LIBS="-lnsl $LIBS"
9328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329/* end confdefs.h. */
9330
9331/* Override any GCC internal prototype to avoid an error.
9332 Use char because int might match the return type of a GCC
9333 builtin and then its argument prototype would still apply. */
9334#ifdef __cplusplus
9335extern "C"
9336#endif
9337char gethostbyname ();
9338int
9339main ()
9340{
9341return gethostbyname ();
9342 ;
9343 return 0;
9344}
9345_ACEOF
9346if ac_fn_c_try_link "$LINENO"; then :
9347 ac_cv_lib_nsl_gethostbyname=yes
9348else
9349 ac_cv_lib_nsl_gethostbyname=no
9350fi
9351rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353LIBS=$ac_check_lib_save_LIBS
9354fi
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9356$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 9357if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
9358 cat >>confdefs.h <<_ACEOF
9359#define HAVE_LIBNSL 1
9360_ACEOF
9361
9362 LIBS="-lnsl $LIBS"
9363
9364fi
9365
9366
9367# BFD conditionally uses zlib, so we must link it in if libbfd does, by
9368# using the same condition.
9369
aadc9410 9370 # Use the system's zlib library.
7fed4b0b
L
9371 zlibdir="-L\$(top_builddir)/../zlib"
9372 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 9373
aadc9410
MF
9374# Check whether --with-system-zlib was given.
9375if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
9376 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9377 zlibdir=
9378 zlibinc=
9379 fi
6bb11ab3
L
9380
9381fi
9382
6bb11ab3 9383
6bb11ab3 9384
6bb11ab3
L
9385
9386
9387# BFD uses libdl when when plugins enabled.
9388
faa743bb
RM
9389 maybe_plugins=no
9390 for ac_header in dlfcn.h
9391do :
9392 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9393"
d0ac1c44 9394if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
9395 cat >>confdefs.h <<_ACEOF
9396#define HAVE_DLFCN_H 1
9397_ACEOF
9398 maybe_plugins=yes
9399fi
9400
9401done
9402
9403 for ac_header in windows.h
9404do :
9405 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9406"
d0ac1c44 9407if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
9408 cat >>confdefs.h <<_ACEOF
9409#define HAVE_WINDOWS_H 1
9410_ACEOF
9411 maybe_plugins=yes
9412fi
9413
9414done
9415
9416
9417 # Check whether --enable-plugins was given.
6bb11ab3
L
9418if test "${enable_plugins+set}" = set; then :
9419 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
9420 no) plugins=no ;;
9421 *) plugins=yes
9422 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 9423 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
9424 fi ;;
9425 esac
6bb11ab3 9426else
faa743bb
RM
9427 plugins=$maybe_plugins
9428
6bb11ab3
L
9429fi
9430
2974be62 9431 if test "$plugins" = "yes"; then
37f980dc
SM
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9433$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 9434if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9435 $as_echo_n "(cached) " >&6
9436else
9437 ac_func_search_save_LIBS=$LIBS
9438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439/* end confdefs.h. */
9440
9441/* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
9444#ifdef __cplusplus
9445extern "C"
9446#endif
37f980dc 9447char dlsym ();
2974be62
AM
9448int
9449main ()
9450{
37f980dc 9451return dlsym ();
2974be62
AM
9452 ;
9453 return 0;
9454}
9455_ACEOF
9456for ac_lib in '' dl; do
9457 if test -z "$ac_lib"; then
9458 ac_res="none required"
9459 else
9460 ac_res=-l$ac_lib
9461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9462 fi
9463 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 9464 ac_cv_search_dlsym=$ac_res
2974be62
AM
9465fi
9466rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext
d0ac1c44 9468 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9469 break
9470fi
9471done
d0ac1c44 9472if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9473
9474else
37f980dc 9475 ac_cv_search_dlsym=no
2974be62
AM
9476fi
9477rm conftest.$ac_ext
9478LIBS=$ac_func_search_save_LIBS
9479fi
37f980dc
SM
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9481$as_echo "$ac_cv_search_dlsym" >&6; }
9482ac_res=$ac_cv_search_dlsym
2974be62
AM
9483if test "$ac_res" != no; then :
9484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9485
9486fi
9487
9488 fi
6bb11ab3
L
9489
9490 if test "$plugins" = yes; then
9491 PLUGINS_TRUE=
9492 PLUGINS_FALSE='#'
9493else
9494 PLUGINS_TRUE='#'
9495 PLUGINS_FALSE=
9496fi
9497
9498
9499
9500
9501
9502# Set options
9503enable_dlopen=yes
9504
9505
9506
9507
9508 enable_win32_dll=no
9509
9510
9511 # Check whether --enable-shared was given.
9512if test "${enable_shared+set}" = set; then :
9513 enableval=$enable_shared; p=${PACKAGE-default}
9514 case $enableval in
9515 yes) enable_shared=yes ;;
9516 no) enable_shared=no ;;
9517 *)
9518 enable_shared=no
9519 # Look at the argument we got. We use all the common list separators.
9520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9521 for pkg in $enableval; do
9522 IFS="$lt_save_ifs"
9523 if test "X$pkg" = "X$p"; then
9524 enable_shared=yes
9525 fi
9526 done
9527 IFS="$lt_save_ifs"
9528 ;;
9529 esac
9530else
9531 enable_shared=yes
9532fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 # Check whether --enable-static was given.
9543if test "${enable_static+set}" = set; then :
9544 enableval=$enable_static; p=${PACKAGE-default}
9545 case $enableval in
9546 yes) enable_static=yes ;;
9547 no) enable_static=no ;;
9548 *)
9549 enable_static=no
9550 # Look at the argument we got. We use all the common list separators.
9551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9552 for pkg in $enableval; do
9553 IFS="$lt_save_ifs"
9554 if test "X$pkg" = "X$p"; then
9555 enable_static=yes
9556 fi
9557 done
9558 IFS="$lt_save_ifs"
9559 ;;
9560 esac
9561else
9562 enable_static=yes
9563fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574# Check whether --with-pic was given.
9575if test "${with_pic+set}" = set; then :
9576 withval=$with_pic; pic_mode="$withval"
9577else
9578 pic_mode=default
9579fi
9580
9581
9582test -z "$pic_mode" && pic_mode=default
9583
9584
9585
9586
9587
9588
9589
9590 # Check whether --enable-fast-install was given.
9591if test "${enable_fast_install+set}" = set; then :
9592 enableval=$enable_fast_install; p=${PACKAGE-default}
9593 case $enableval in
9594 yes) enable_fast_install=yes ;;
9595 no) enable_fast_install=no ;;
9596 *)
9597 enable_fast_install=no
9598 # Look at the argument we got. We use all the common list separators.
9599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9600 for pkg in $enableval; do
9601 IFS="$lt_save_ifs"
9602 if test "X$pkg" = "X$p"; then
9603 enable_fast_install=yes
9604 fi
9605 done
9606 IFS="$lt_save_ifs"
9607 ;;
9608 esac
9609else
9610 enable_fast_install=yes
9611fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623# This can be used to rebuild libtool when needed
9624LIBTOOL_DEPS="$ltmain"
9625
9626# Always use our own libtool.
9627LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654test -z "$LN_S" && LN_S="ln -s"
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669if test -n "${ZSH_VERSION+set}" ; then
9670 setopt NO_GLOB_SUBST
9671fi
9672
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9674$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 9675if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
9676 $as_echo_n "(cached) " >&6
9677else
9678 rm -f .libs 2>/dev/null
9679mkdir .libs 2>/dev/null
9680if test -d .libs; then
9681 lt_cv_objdir=.libs
9682else
9683 # MS-DOS does not allow filenames that begin with a dot.
9684 lt_cv_objdir=_libs
9685fi
9686rmdir .libs 2>/dev/null
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9689$as_echo "$lt_cv_objdir" >&6; }
9690objdir=$lt_cv_objdir
9691
9692
9693
9694
9695
9696cat >>confdefs.h <<_ACEOF
9697#define LT_OBJDIR "$lt_cv_objdir/"
9698_ACEOF
9699
9700
9701
9702
9703case $host_os in
9704aix3*)
9705 # AIX sometimes has problems with the GCC collect2 program. For some
9706 # reason, if we set the COLLECT_NAMES environment variable, the problems
9707 # vanish in a puff of smoke.
9708 if test "X${COLLECT_NAMES+set}" != Xset; then
9709 COLLECT_NAMES=
9710 export COLLECT_NAMES
9711 fi
9712 ;;
9713esac
9714
9715# Global variables:
9716ofile=libtool
9717can_build_shared=yes
9718
9719# All known linkers require a `.a' archive for static linking (except MSVC,
9720# which needs '.lib').
9721libext=a
9722
9723with_gnu_ld="$lt_cv_prog_gnu_ld"
9724
9725old_CC="$CC"
9726old_CFLAGS="$CFLAGS"
9727
9728# Set sane defaults for various variables
9729test -z "$CC" && CC=cc
9730test -z "$LTCC" && LTCC=$CC
9731test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9732test -z "$LD" && LD=ld
9733test -z "$ac_objext" && ac_objext=o
9734
9735for cc_temp in $compiler""; do
9736 case $cc_temp in
9737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9739 \-*) ;;
9740 *) break;;
9741 esac
9742done
9743cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9744
9745
9746# Only perform the check for file, if the check method requires it
9747test -z "$MAGIC_CMD" && MAGIC_CMD=file
9748case $deplibs_check_method in
9749file_magic*)
9750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9752$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 9753if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9754 $as_echo_n "(cached) " >&6
9755else
9756 case $MAGIC_CMD in
9757[\\/*] | ?:[\\/]*)
9758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9759 ;;
9760*)
9761 lt_save_MAGIC_CMD="$MAGIC_CMD"
9762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9764 for ac_dir in $ac_dummy; do
9765 IFS="$lt_save_ifs"
9766 test -z "$ac_dir" && ac_dir=.
9767 if test -f $ac_dir/${ac_tool_prefix}file; then
9768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9769 if test -n "$file_magic_test_file"; then
9770 case $deplibs_check_method in
9771 "file_magic "*)
9772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9775 $EGREP "$file_magic_regex" > /dev/null; then
9776 :
9777 else
9778 cat <<_LT_EOF 1>&2
9779
9780*** Warning: the command libtool uses to detect shared libraries,
9781*** $file_magic_cmd, produces output that libtool cannot recognize.
9782*** The result is that libtool may fail to recognize shared libraries
9783*** as such. This will affect the creation of libtool libraries that
9784*** depend on shared libraries, but programs linked with such libtool
9785*** libraries will work regardless of this problem. Nevertheless, you
9786*** may want to report the problem to your system manager and/or to
9787*** bug-libtool@gnu.org
9788
9789_LT_EOF
9790 fi ;;
9791 esac
9792 fi
9793 break
9794 fi
9795 done
9796 IFS="$lt_save_ifs"
9797 MAGIC_CMD="$lt_save_MAGIC_CMD"
9798 ;;
9799esac
f0569246 9800fi
f0569246 9801
6bb11ab3
L
9802MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9803if test -n "$MAGIC_CMD"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9805$as_echo "$MAGIC_CMD" >&6; }
9806else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
9809fi
9810
9811
9812
9813
9814
9815if test -z "$lt_cv_path_MAGIC_CMD"; then
9816 if test -n "$ac_tool_prefix"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9818$as_echo_n "checking for file... " >&6; }
d0ac1c44 9819if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9820 $as_echo_n "(cached) " >&6
9821else
9822 case $MAGIC_CMD in
9823[\\/*] | ?:[\\/]*)
9824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9825 ;;
9826*)
9827 lt_save_MAGIC_CMD="$MAGIC_CMD"
9828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9830 for ac_dir in $ac_dummy; do
9831 IFS="$lt_save_ifs"
9832 test -z "$ac_dir" && ac_dir=.
9833 if test -f $ac_dir/file; then
9834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9835 if test -n "$file_magic_test_file"; then
9836 case $deplibs_check_method in
9837 "file_magic "*)
9838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9841 $EGREP "$file_magic_regex" > /dev/null; then
9842 :
9843 else
9844 cat <<_LT_EOF 1>&2
9845
9846*** Warning: the command libtool uses to detect shared libraries,
9847*** $file_magic_cmd, produces output that libtool cannot recognize.
9848*** The result is that libtool may fail to recognize shared libraries
9849*** as such. This will affect the creation of libtool libraries that
9850*** depend on shared libraries, but programs linked with such libtool
9851*** libraries will work regardless of this problem. Nevertheless, you
9852*** may want to report the problem to your system manager and/or to
9853*** bug-libtool@gnu.org
9854
9855_LT_EOF
9856 fi ;;
9857 esac
9858 fi
9859 break
9860 fi
9861 done
9862 IFS="$lt_save_ifs"
9863 MAGIC_CMD="$lt_save_MAGIC_CMD"
9864 ;;
81ecdfbb 9865esac
6bb11ab3
L
9866fi
9867
9868MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9869if test -n "$MAGIC_CMD"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9871$as_echo "$MAGIC_CMD" >&6; }
9872else
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874$as_echo "no" >&6; }
9875fi
9876
9877
f0569246 9878 else
6bb11ab3 9879 MAGIC_CMD=:
f0569246
AC
9880 fi
9881fi
81ecdfbb 9882
6bb11ab3
L
9883 fi
9884 ;;
81ecdfbb 9885esac
6bb11ab3
L
9886
9887# Use C for the default configuration in the libtool script
9888
9889lt_save_CC="$CC"
9890ac_ext=c
9891ac_cpp='$CPP $CPPFLAGS'
9892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9894ac_compiler_gnu=$ac_cv_c_compiler_gnu
9895
9896
9897# Source file extension for C test sources.
9898ac_ext=c
9899
9900# Object file extension for compiled C test sources.
9901objext=o
9902objext=$objext
9903
9904# Code to be used in simple compile tests
9905lt_simple_compile_test_code="int some_variable = 0;"
9906
9907# Code to be used in simple link tests
9908lt_simple_link_test_code='int main(){return(0);}'
9909
9910
9911
9912
9913
9914
9915
9916# If no C compiler was specified, use CC.
9917LTCC=${LTCC-"$CC"}
9918
9919# If no C compiler flags were specified, use CFLAGS.
9920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9921
9922# Allow CC to be a program name with arguments.
9923compiler=$CC
9924
9925# Save the default compiler, since it gets overwritten when the other
9926# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9927compiler_DEFAULT=$CC
9928
9929# save warnings/boilerplate of simple test code
9930ac_outfile=conftest.$ac_objext
9931echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9932eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9933_lt_compiler_boilerplate=`cat conftest.err`
9934$RM conftest*
9935
9936ac_outfile=conftest.$ac_objext
9937echo "$lt_simple_link_test_code" >conftest.$ac_ext
9938eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9939_lt_linker_boilerplate=`cat conftest.err`
9940$RM -r conftest*
9941
9942
9943## CAVEAT EMPTOR:
9944## There is no encapsulation within the following macros, do not change
9945## the running order or otherwise move them around unless you know exactly
9946## what you are doing...
9947if test -n "$compiler"; then
9948
9949lt_prog_compiler_no_builtin_flag=
9950
9951if test "$GCC" = yes; then
9952 case $cc_basename in
9953 nvcc*)
9954 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9955 *)
9956 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 9957 esac
6bb11ab3
L
9958
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9960$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9961if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 9962 $as_echo_n "(cached) " >&6
f0569246 9963else
6bb11ab3
L
9964 lt_cv_prog_compiler_rtti_exceptions=no
9965 ac_outfile=conftest.$ac_objext
9966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9967 lt_compiler_flag="-fno-rtti -fno-exceptions"
9968 # Insert the option either (1) after the last *FLAGS variable, or
9969 # (2) before a word containing "conftest.", or (3) at the end.
9970 # Note that $ac_compile itself does not contain backslashes and begins
9971 # with a dollar sign (not a hyphen), so the echo should work correctly.
9972 # The option is referenced via a variable to avoid confusing sed.
9973 lt_compile=`echo "$ac_compile" | $SED \
9974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9976 -e 's:$: $lt_compiler_flag:'`
9977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9978 (eval "$lt_compile" 2>conftest.err)
9979 ac_status=$?
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 if (exit $ac_status) && test -s "$ac_outfile"; then
9983 # The compiler can only warn and ignore the option if not recognized
9984 # So say no if there are warnings other than the usual output.
9985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9988 lt_cv_prog_compiler_rtti_exceptions=yes
9989 fi
9990 fi
9991 $RM conftest*
9992
f0569246 9993fi
6bb11ab3
L
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9995$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9996
9997if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9999else
10000 :
10001fi
10002
10003fi
10004
10005
10006
10007
10008
10009
10010 lt_prog_compiler_wl=
10011lt_prog_compiler_pic=
10012lt_prog_compiler_static=
10013
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10015$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10016
10017 if test "$GCC" = yes; then
10018 lt_prog_compiler_wl='-Wl,'
10019 lt_prog_compiler_static='-static'
10020
10021 case $host_os in
10022 aix*)
10023 # All AIX code is PIC.
10024 if test "$host_cpu" = ia64; then
10025 # AIX 5 now supports IA64 processor
10026 lt_prog_compiler_static='-Bstatic'
10027 fi
10028 lt_prog_compiler_pic='-fPIC'
10029 ;;
10030
10031 amigaos*)
10032 case $host_cpu in
10033 powerpc)
10034 # see comment about AmigaOS4 .so support
10035 lt_prog_compiler_pic='-fPIC'
10036 ;;
10037 m68k)
10038 # FIXME: we need at least 68020 code to build shared libraries, but
10039 # adding the `-m68020' flag to GCC prevents building anything better,
10040 # like `-m68040'.
10041 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10042 ;;
10043 esac
10044 ;;
10045
10046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10047 # PIC is the default for these OSes.
10048 ;;
10049
10050 mingw* | cygwin* | pw32* | os2* | cegcc*)
10051 # This hack is so that the source file can tell whether it is being
10052 # built for inclusion in a dll (and should export symbols for example).
10053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10054 # (--disable-auto-import) libraries
10055 lt_prog_compiler_pic='-DDLL_EXPORT'
10056 ;;
10057
10058 darwin* | rhapsody*)
10059 # PIC is the default on this platform
10060 # Common symbols not allowed in MH_DYLIB files
10061 lt_prog_compiler_pic='-fno-common'
10062 ;;
10063
10064 haiku*)
10065 # PIC is the default for Haiku.
10066 # The "-static" flag exists, but is broken.
10067 lt_prog_compiler_static=
10068 ;;
10069
10070 hpux*)
10071 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10072 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10073 # sets the default TLS model and affects inlining.
10074 case $host_cpu in
10075 hppa*64*)
10076 # +Z the default
10077 ;;
10078 *)
10079 lt_prog_compiler_pic='-fPIC'
10080 ;;
10081 esac
10082 ;;
10083
10084 interix[3-9]*)
10085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10086 # Instead, we relocate shared libraries at runtime.
10087 ;;
10088
10089 msdosdjgpp*)
10090 # Just because we use GCC doesn't mean we suddenly get shared libraries
10091 # on systems that don't support them.
10092 lt_prog_compiler_can_build_shared=no
10093 enable_shared=no
10094 ;;
10095
10096 *nto* | *qnx*)
10097 # QNX uses GNU C++, but need to define -shared option too, otherwise
10098 # it will coredump.
10099 lt_prog_compiler_pic='-fPIC -shared'
10100 ;;
10101
10102 sysv4*MP*)
10103 if test -d /usr/nec; then
10104 lt_prog_compiler_pic=-Kconform_pic
10105 fi
10106 ;;
10107
10108 *)
10109 lt_prog_compiler_pic='-fPIC'
10110 ;;
10111 esac
10112
10113 case $cc_basename in
10114 nvcc*) # Cuda Compiler Driver 2.2
10115 lt_prog_compiler_wl='-Xlinker '
10116 lt_prog_compiler_pic='-Xcompiler -fPIC'
10117 ;;
10118 esac
10119 else
10120 # PORTME Check for flag to pass linker flags through the system compiler.
10121 case $host_os in
10122 aix*)
10123 lt_prog_compiler_wl='-Wl,'
10124 if test "$host_cpu" = ia64; then
10125 # AIX 5 now supports IA64 processor
10126 lt_prog_compiler_static='-Bstatic'
10127 else
10128 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10129 fi
10130 ;;
10131
10132 mingw* | cygwin* | pw32* | os2* | cegcc*)
10133 # This hack is so that the source file can tell whether it is being
10134 # built for inclusion in a dll (and should export symbols for example).
10135 lt_prog_compiler_pic='-DDLL_EXPORT'
10136 ;;
10137
10138 hpux9* | hpux10* | hpux11*)
10139 lt_prog_compiler_wl='-Wl,'
10140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10141 # not for PA HP-UX.
10142 case $host_cpu in
10143 hppa*64*|ia64*)
10144 # +Z the default
10145 ;;
10146 *)
10147 lt_prog_compiler_pic='+Z'
10148 ;;
10149 esac
10150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10151 lt_prog_compiler_static='${wl}-a ${wl}archive'
10152 ;;
10153
10154 irix5* | irix6* | nonstopux*)
10155 lt_prog_compiler_wl='-Wl,'
10156 # PIC (with -KPIC) is the default.
10157 lt_prog_compiler_static='-non_shared'
10158 ;;
10159
10160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10161 case $cc_basename in
10162 # old Intel for x86_64 which still supported -KPIC.
10163 ecc*)
10164 lt_prog_compiler_wl='-Wl,'
10165 lt_prog_compiler_pic='-KPIC'
10166 lt_prog_compiler_static='-static'
10167 ;;
10168 # icc used to be incompatible with GCC.
10169 # ICC 10 doesn't accept -KPIC any more.
10170 icc* | ifort*)
10171 lt_prog_compiler_wl='-Wl,'
10172 lt_prog_compiler_pic='-fPIC'
10173 lt_prog_compiler_static='-static'
10174 ;;
10175 # Lahey Fortran 8.1.
10176 lf95*)
10177 lt_prog_compiler_wl='-Wl,'
10178 lt_prog_compiler_pic='--shared'
10179 lt_prog_compiler_static='--static'
10180 ;;
10181 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10182 # Portland Group compilers (*not* the Pentium gcc compiler,
10183 # which looks to be a dead project)
10184 lt_prog_compiler_wl='-Wl,'
10185 lt_prog_compiler_pic='-fpic'
10186 lt_prog_compiler_static='-Bstatic'
10187 ;;
10188 ccc*)
10189 lt_prog_compiler_wl='-Wl,'
10190 # All Alpha code is PIC.
10191 lt_prog_compiler_static='-non_shared'
10192 ;;
10193 xl* | bgxl* | bgf* | mpixl*)
10194 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10195 lt_prog_compiler_wl='-Wl,'
10196 lt_prog_compiler_pic='-qpic'
10197 lt_prog_compiler_static='-qstaticlink'
10198 ;;
10199 *)
10200 case `$CC -V 2>&1 | sed 5q` in
10201 *Sun\ F* | *Sun*Fortran*)
10202 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10203 lt_prog_compiler_pic='-KPIC'
10204 lt_prog_compiler_static='-Bstatic'
10205 lt_prog_compiler_wl=''
10206 ;;
10207 *Sun\ C*)
10208 # Sun C 5.9
10209 lt_prog_compiler_pic='-KPIC'
10210 lt_prog_compiler_static='-Bstatic'
10211 lt_prog_compiler_wl='-Wl,'
10212 ;;
10213 esac
10214 ;;
10215 esac
10216 ;;
10217
10218 newsos6)
10219 lt_prog_compiler_pic='-KPIC'
10220 lt_prog_compiler_static='-Bstatic'
10221 ;;
10222
10223 *nto* | *qnx*)
10224 # QNX uses GNU C++, but need to define -shared option too, otherwise
10225 # it will coredump.
10226 lt_prog_compiler_pic='-fPIC -shared'
10227 ;;
10228
10229 osf3* | osf4* | osf5*)
10230 lt_prog_compiler_wl='-Wl,'
10231 # All OSF/1 code is PIC.
10232 lt_prog_compiler_static='-non_shared'
10233 ;;
10234
10235 rdos*)
10236 lt_prog_compiler_static='-non_shared'
10237 ;;
10238
10239 solaris*)
10240 lt_prog_compiler_pic='-KPIC'
10241 lt_prog_compiler_static='-Bstatic'
10242 case $cc_basename in
10243 f77* | f90* | f95*)
10244 lt_prog_compiler_wl='-Qoption ld ';;
10245 *)
10246 lt_prog_compiler_wl='-Wl,';;
10247 esac
10248 ;;
10249
10250 sunos4*)
10251 lt_prog_compiler_wl='-Qoption ld '
10252 lt_prog_compiler_pic='-PIC'
10253 lt_prog_compiler_static='-Bstatic'
10254 ;;
f0569246 10255
6bb11ab3
L
10256 sysv4 | sysv4.2uw2* | sysv4.3*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-KPIC'
10259 lt_prog_compiler_static='-Bstatic'
10260 ;;
f0569246 10261
6bb11ab3
L
10262 sysv4*MP*)
10263 if test -d /usr/nec ;then
10264 lt_prog_compiler_pic='-Kconform_pic'
10265 lt_prog_compiler_static='-Bstatic'
10266 fi
10267 ;;
f0569246 10268
6bb11ab3
L
10269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10270 lt_prog_compiler_wl='-Wl,'
10271 lt_prog_compiler_pic='-KPIC'
10272 lt_prog_compiler_static='-Bstatic'
10273 ;;
10274
10275 unicos*)
10276 lt_prog_compiler_wl='-Wl,'
10277 lt_prog_compiler_can_build_shared=no
10278 ;;
10279
10280 uts4*)
10281 lt_prog_compiler_pic='-pic'
10282 lt_prog_compiler_static='-Bstatic'
10283 ;;
10284
10285 *)
10286 lt_prog_compiler_can_build_shared=no
10287 ;;
10288 esac
10289 fi
10290
10291case $host_os in
10292 # For platforms which do not support PIC, -DPIC is meaningless:
10293 *djgpp*)
10294 lt_prog_compiler_pic=
10295 ;;
10296 *)
10297 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10298 ;;
81ecdfbb 10299esac
6bb11ab3
L
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10301$as_echo "$lt_prog_compiler_pic" >&6; }
10302
10303
10304
10305
10306
10307
10308#
10309# Check to make sure the PIC flag actually works.
10310#
10311if test -n "$lt_prog_compiler_pic"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10313$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 10314if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 10315 $as_echo_n "(cached) " >&6
b7026657 10316else
6bb11ab3
L
10317 lt_cv_prog_compiler_pic_works=no
10318 ac_outfile=conftest.$ac_objext
10319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10320 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10321 # Insert the option either (1) after the last *FLAGS variable, or
10322 # (2) before a word containing "conftest.", or (3) at the end.
10323 # Note that $ac_compile itself does not contain backslashes and begins
10324 # with a dollar sign (not a hyphen), so the echo should work correctly.
10325 # The option is referenced via a variable to avoid confusing sed.
10326 lt_compile=`echo "$ac_compile" | $SED \
10327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10329 -e 's:$: $lt_compiler_flag:'`
10330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10331 (eval "$lt_compile" 2>conftest.err)
10332 ac_status=$?
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 if (exit $ac_status) && test -s "$ac_outfile"; then
10336 # The compiler can only warn and ignore the option if not recognized
10337 # So say no if there are warnings other than the usual output.
10338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10341 lt_cv_prog_compiler_pic_works=yes
10342 fi
10343 fi
10344 $RM conftest*
b7026657 10345
b7026657 10346fi
6bb11ab3
L
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10348$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10349
10350if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10351 case $lt_prog_compiler_pic in
10352 "" | " "*) ;;
10353 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10354 esac
10355else
10356 lt_prog_compiler_pic=
10357 lt_prog_compiler_can_build_shared=no
f0569246 10358fi
6bb11ab3
L
10359
10360fi
10361
10362
10363
10364
10365
10366
10367#
10368# Check to make sure the static flag actually works.
10369#
10370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 10373if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 10374 $as_echo_n "(cached) " >&6
f0569246 10375else
6bb11ab3
L
10376 lt_cv_prog_compiler_static_works=no
10377 save_LDFLAGS="$LDFLAGS"
10378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10381 # The linker can only warn and ignore the option if not recognized
10382 # So say no if there are warnings
10383 if test -s conftest.err; then
10384 # Append any errors to the config.log.
10385 cat conftest.err 1>&5
10386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10388 if diff conftest.exp conftest.er2 >/dev/null; then
10389 lt_cv_prog_compiler_static_works=yes
10390 fi
10391 else
10392 lt_cv_prog_compiler_static_works=yes
10393 fi
10394 fi
10395 $RM -r conftest*
10396 LDFLAGS="$save_LDFLAGS"
f0569246 10397
6bb11ab3
L
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10400$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 10401
6bb11ab3
L
10402if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10403 :
f0569246 10404else
6bb11ab3 10405 lt_prog_compiler_static=
f0569246 10406fi
b7026657 10407
6bb11ab3
L
10408
10409
10410
10411
10412
10413
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10416if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 10417 $as_echo_n "(cached) " >&6
81ecdfbb 10418else
6bb11ab3
L
10419 lt_cv_prog_compiler_c_o=no
10420 $RM -r conftest 2>/dev/null
10421 mkdir conftest
10422 cd conftest
10423 mkdir out
10424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10425
10426 lt_compiler_flag="-o out/conftest2.$ac_objext"
10427 # Insert the option either (1) after the last *FLAGS variable, or
10428 # (2) before a word containing "conftest.", or (3) at the end.
10429 # Note that $ac_compile itself does not contain backslashes and begins
10430 # with a dollar sign (not a hyphen), so the echo should work correctly.
10431 lt_compile=`echo "$ac_compile" | $SED \
10432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10434 -e 's:$: $lt_compiler_flag:'`
10435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10436 (eval "$lt_compile" 2>out/conftest.err)
10437 ac_status=$?
10438 cat out/conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10441 then
10442 # The compiler can only warn and ignore the option if not recognized
10443 # So say no if there are warnings
10444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10447 lt_cv_prog_compiler_c_o=yes
10448 fi
10449 fi
10450 chmod u+w . 2>&5
10451 $RM conftest*
10452 # SGI C++ compiler will create directory out/ii_files/ for
10453 # template instantiation
10454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10455 $RM out/* && rmdir out
10456 cd ..
10457 $RM -r conftest
10458 $RM conftest*
10459
81ecdfbb 10460fi
6bb11ab3
L
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10462$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10463
10464
10465
10466
10467
10468
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10471if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
10472 $as_echo_n "(cached) " >&6
10473else
6bb11ab3
L
10474 lt_cv_prog_compiler_c_o=no
10475 $RM -r conftest 2>/dev/null
10476 mkdir conftest
10477 cd conftest
10478 mkdir out
10479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481 lt_compiler_flag="-o out/conftest2.$ac_objext"
10482 # Insert the option either (1) after the last *FLAGS variable, or
10483 # (2) before a word containing "conftest.", or (3) at the end.
10484 # Note that $ac_compile itself does not contain backslashes and begins
10485 # with a dollar sign (not a hyphen), so the echo should work correctly.
10486 lt_compile=`echo "$ac_compile" | $SED \
10487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10489 -e 's:$: $lt_compiler_flag:'`
10490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10491 (eval "$lt_compile" 2>out/conftest.err)
10492 ac_status=$?
10493 cat out/conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10496 then
10497 # The compiler can only warn and ignore the option if not recognized
10498 # So say no if there are warnings
10499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10502 lt_cv_prog_compiler_c_o=yes
10503 fi
10504 fi
10505 chmod u+w . 2>&5
10506 $RM conftest*
10507 # SGI C++ compiler will create directory out/ii_files/ for
10508 # template instantiation
10509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10510 $RM out/* && rmdir out
10511 cd ..
10512 $RM -r conftest
10513 $RM conftest*
10514
10515fi
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10517$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10518
10519
10520
10521
10522hard_links="nottested"
10523if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10524 # do not overwrite the value of need_locks provided by the user
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10526$as_echo_n "checking if we can lock with hard links... " >&6; }
10527 hard_links=yes
10528 $RM conftest*
10529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10530 touch conftest.a
10531 ln conftest.a conftest.b 2>&5 || hard_links=no
10532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10534$as_echo "$hard_links" >&6; }
10535 if test "$hard_links" = no; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10537$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10538 need_locks=warn
10539 fi
10540else
10541 need_locks=no
10542fi
10543
10544
10545
10546
10547
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10550$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10551
10552 runpath_var=
10553 allow_undefined_flag=
10554 always_export_symbols=no
10555 archive_cmds=
10556 archive_expsym_cmds=
10557 compiler_needs_object=no
10558 enable_shared_with_static_runtimes=no
10559 export_dynamic_flag_spec=
10560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10561 hardcode_automatic=no
10562 hardcode_direct=no
10563 hardcode_direct_absolute=no
10564 hardcode_libdir_flag_spec=
10565 hardcode_libdir_flag_spec_ld=
10566 hardcode_libdir_separator=
10567 hardcode_minus_L=no
10568 hardcode_shlibpath_var=unsupported
10569 inherit_rpath=no
10570 link_all_deplibs=unknown
10571 module_cmds=
10572 module_expsym_cmds=
10573 old_archive_from_new_cmds=
10574 old_archive_from_expsyms_cmds=
10575 thread_safe_flag_spec=
10576 whole_archive_flag_spec=
10577 # include_expsyms should be a list of space-separated symbols to be *always*
10578 # included in the symbol list
10579 include_expsyms=
10580 # exclude_expsyms can be an extended regexp of symbols to exclude
10581 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10582 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10583 # as well as any symbol that contains `d'.
10584 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10586 # platforms (ab)use it in PIC code, but their linkers get confused if
10587 # the symbol is explicitly referenced. Since portable code cannot
10588 # rely on this symbol name, it's probably fine to never include it in
10589 # preloaded symbol tables.
10590 # Exclude shared library initialization/finalization symbols.
10591 extract_expsyms_cmds=
10592
10593 case $host_os in
10594 cygwin* | mingw* | pw32* | cegcc*)
10595 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10596 # When not using gcc, we currently assume that we are using
10597 # Microsoft Visual C++.
10598 if test "$GCC" != yes; then
10599 with_gnu_ld=no
10600 fi
10601 ;;
10602 interix*)
10603 # we just hope/assume this is gcc and not c89 (= MSVC++)
10604 with_gnu_ld=yes
10605 ;;
10606 openbsd*)
10607 with_gnu_ld=no
10608 ;;
10609 esac
f0569246 10610
6bb11ab3
L
10611 ld_shlibs=yes
10612
10613 # On some targets, GNU ld is compatible enough with the native linker
10614 # that we're better off using the native interface for both.
10615 lt_use_gnu_ld_interface=no
10616 if test "$with_gnu_ld" = yes; then
10617 case $host_os in
10618 aix*)
10619 # The AIX port of GNU ld has always aspired to compatibility
10620 # with the native linker. However, as the warning in the GNU ld
10621 # block says, versions before 2.19.5* couldn't really create working
10622 # shared libraries, regardless of the interface used.
10623 case `$LD -v 2>&1` in
10624 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10625 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10626 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10627 *)
10628 lt_use_gnu_ld_interface=yes
10629 ;;
10630 esac
10631 ;;
10632 *)
10633 lt_use_gnu_ld_interface=yes
10634 ;;
10635 esac
10636 fi
f0569246 10637
6bb11ab3
L
10638 if test "$lt_use_gnu_ld_interface" = yes; then
10639 # If archive_cmds runs LD, not CC, wlarc should be empty
10640 wlarc='${wl}'
10641
10642 # Set some defaults for GNU ld with shared library support. These
10643 # are reset later if shared libraries are not supported. Putting them
10644 # here allows them to be overridden if necessary.
10645 runpath_var=LD_RUN_PATH
10646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10647 export_dynamic_flag_spec='${wl}--export-dynamic'
10648 # ancient GNU ld didn't support --whole-archive et. al.
10649 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10650 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10651 else
10652 whole_archive_flag_spec=
10653 fi
10654 supports_anon_versioning=no
10655 case `$LD -v 2>&1` in
10656 *GNU\ gold*) supports_anon_versioning=yes ;;
10657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10660 *\ 2.11.*) ;; # other 2.11 versions
10661 *) supports_anon_versioning=yes ;;
10662 esac
10663
10664 # See if GNU ld supports shared libraries.
10665 case $host_os in
10666 aix[3-9]*)
10667 # On AIX/PPC, the GNU linker is very broken
10668 if test "$host_cpu" != ia64; then
10669 ld_shlibs=no
10670 cat <<_LT_EOF 1>&2
10671
10672*** Warning: the GNU linker, at least up to release 2.19, is reported
10673*** to be unable to reliably create shared libraries on AIX.
10674*** Therefore, libtool is disabling shared libraries support. If you
10675*** really care for shared libraries, you may want to install binutils
10676*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10677*** You will then need to restart the configuration process.
10678
10679_LT_EOF
10680 fi
10681 ;;
10682
10683 amigaos*)
10684 case $host_cpu in
10685 powerpc)
10686 # see comment about AmigaOS4 .so support
10687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10688 archive_expsym_cmds=''
10689 ;;
10690 m68k)
10691 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)'
10692 hardcode_libdir_flag_spec='-L$libdir'
10693 hardcode_minus_L=yes
10694 ;;
10695 esac
10696 ;;
10697
10698 beos*)
10699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10700 allow_undefined_flag=unsupported
10701 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10702 # support --undefined. This deserves some investigation. FIXME
10703 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704 else
10705 ld_shlibs=no
10706 fi
10707 ;;
10708
10709 cygwin* | mingw* | pw32* | cegcc*)
10710 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10711 # as there is no search path for DLLs.
10712 hardcode_libdir_flag_spec='-L$libdir'
10713 export_dynamic_flag_spec='${wl}--export-all-symbols'
10714 allow_undefined_flag=unsupported
10715 always_export_symbols=no
10716 enable_shared_with_static_runtimes=yes
10717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10718
10719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10721 # If the export-symbols file already is a .def file (1st line
10722 # is EXPORTS), use it as is; otherwise, prepend...
10723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10724 cp $export_symbols $output_objdir/$soname.def;
10725 else
10726 echo EXPORTS > $output_objdir/$soname.def;
10727 cat $export_symbols >> $output_objdir/$soname.def;
10728 fi~
10729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10730 else
10731 ld_shlibs=no
10732 fi
10733 ;;
10734
10735 haiku*)
10736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737 link_all_deplibs=yes
10738 ;;
10739
10740 interix[3-9]*)
10741 hardcode_direct=no
10742 hardcode_shlibpath_var=no
10743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10744 export_dynamic_flag_spec='${wl}-E'
10745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10746 # Instead, shared libraries are loaded at an image base (0x10000000 by
10747 # default) and relocated if they conflict, which is a slow very memory
10748 # consuming and fragmenting process. To avoid this, we pick a random,
10749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10752 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'
10753 ;;
10754
10755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10756 tmp_diet=no
10757 if test "$host_os" = linux-dietlibc; then
10758 case $cc_basename in
10759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10760 esac
10761 fi
10762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10763 && test "$tmp_diet" = no
10764 then
5cddc23a 10765 tmp_addflag=' $pic_flag'
6bb11ab3
L
10766 tmp_sharedflag='-shared'
10767 case $cc_basename,$host_cpu in
10768 pgcc*) # Portland Group C compiler
10769 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'
10770 tmp_addflag=' $pic_flag'
10771 ;;
10772 pgf77* | pgf90* | pgf95* | pgfortran*)
10773 # Portland Group f77 and f90 compilers
10774 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'
10775 tmp_addflag=' $pic_flag -Mnomain' ;;
10776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10777 tmp_addflag=' -i_dynamic' ;;
10778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10779 tmp_addflag=' -i_dynamic -nofor_main' ;;
10780 ifc* | ifort*) # Intel Fortran compiler
10781 tmp_addflag=' -nofor_main' ;;
10782 lf95*) # Lahey Fortran 8.1
10783 whole_archive_flag_spec=
10784 tmp_sharedflag='--shared' ;;
10785 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10786 tmp_sharedflag='-qmkshrobj'
10787 tmp_addflag= ;;
10788 nvcc*) # Cuda Compiler Driver 2.2
10789 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'
10790 compiler_needs_object=yes
10791 ;;
10792 esac
10793 case `$CC -V 2>&1 | sed 5q` in
10794 *Sun\ C*) # Sun C 5.9
10795 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'
10796 compiler_needs_object=yes
10797 tmp_sharedflag='-G' ;;
10798 *Sun\ F*) # Sun Fortran 8.3
10799 tmp_sharedflag='-G' ;;
10800 esac
10801 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10802
10803 if test "x$supports_anon_versioning" = xyes; then
10804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10806 echo "local: *; };" >> $output_objdir/$libname.ver~
10807 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10808 fi
10809
10810 case $cc_basename in
10811 xlf* | bgf* | bgxlf* | mpixlf*)
10812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10814 hardcode_libdir_flag_spec=
10815 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10816 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10817 if test "x$supports_anon_versioning" = xyes; then
10818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10820 echo "local: *; };" >> $output_objdir/$libname.ver~
10821 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10822 fi
10823 ;;
10824 esac
10825 else
10826 ld_shlibs=no
10827 fi
10828 ;;
10829
10830 netbsd*)
10831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10832 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10833 wlarc=
10834 else
10835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10837 fi
10838 ;;
10839
10840 solaris*)
10841 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10842 ld_shlibs=no
10843 cat <<_LT_EOF 1>&2
10844
10845*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10846*** create shared libraries on Solaris systems. Therefore, libtool
10847*** is disabling shared libraries support. We urge you to upgrade GNU
10848*** binutils to release 2.9.1 or newer. Another option is to modify
10849*** your PATH or compiler configuration so that the native linker is
10850*** used, and then restart.
10851
10852_LT_EOF
10853 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10856 else
10857 ld_shlibs=no
10858 fi
10859 ;;
10860
10861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10862 case `$LD -v 2>&1` in
10863 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10864 ld_shlibs=no
10865 cat <<_LT_EOF 1>&2
10866
10867*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10868*** reliably create shared libraries on SCO systems. Therefore, libtool
10869*** is disabling shared libraries support. We urge you to upgrade GNU
10870*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10871*** your PATH or compiler configuration so that the native linker is
10872*** used, and then restart.
10873
10874_LT_EOF
10875 ;;
10876 *)
10877 # For security reasons, it is highly recommended that you always
10878 # use absolute paths for naming shared libraries, and exclude the
10879 # DT_RUNPATH tag from executables and libraries. But doing so
10880 # requires that you compile everything twice, which is a pain.
10881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10885 else
10886 ld_shlibs=no
10887 fi
10888 ;;
10889 esac
10890 ;;
10891
10892 sunos4*)
10893 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10894 wlarc=
10895 hardcode_direct=yes
10896 hardcode_shlibpath_var=no
10897 ;;
10898
10899 *)
10900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10903 else
10904 ld_shlibs=no
10905 fi
10906 ;;
10907 esac
10908
10909 if test "$ld_shlibs" = no; then
10910 runpath_var=
10911 hardcode_libdir_flag_spec=
10912 export_dynamic_flag_spec=
10913 whole_archive_flag_spec=
10914 fi
10915 else
10916 # PORTME fill in a description of your system's linker (not GNU ld)
10917 case $host_os in
10918 aix3*)
10919 allow_undefined_flag=unsupported
10920 always_export_symbols=yes
10921 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'
10922 # Note: this linker hardcodes the directories in LIBPATH if there
10923 # are no directories specified by -L.
10924 hardcode_minus_L=yes
10925 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10926 # Neither direct hardcoding nor static linking is supported with a
10927 # broken collect2.
10928 hardcode_direct=unsupported
10929 fi
10930 ;;
10931
10932 aix[4-9]*)
10933 if test "$host_cpu" = ia64; then
10934 # On IA64, the linker does run time linking by default, so we don't
10935 # have to do anything special.
10936 aix_use_runtimelinking=no
10937 exp_sym_flag='-Bexport'
10938 no_entry_flag=""
10939 else
10940 # If we're using GNU nm, then we don't want the "-C" option.
10941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10942 # Also, AIX nm treats weak defined symbols like other global
10943 # defined symbols, whereas GNU nm marks them as "W".
10944 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10945 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'
10946 else
5c887dd5 10947 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
10948 fi
10949 aix_use_runtimelinking=no
10950
10951 # Test if we are trying to use run time linking or normal
10952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10953 # need to do runtime linking.
10954 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10955 for ld_flag in $LDFLAGS; do
10956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10957 aix_use_runtimelinking=yes
10958 break
10959 fi
10960 done
10961 ;;
10962 esac
10963
10964 exp_sym_flag='-bexport'
10965 no_entry_flag='-bnoentry'
10966 fi
10967
10968 # When large executables or shared objects are built, AIX ld can
10969 # have problems creating the table of contents. If linking a library
10970 # or program results in "error TOC overflow" add -mminimal-toc to
10971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10973
10974 archive_cmds=''
10975 hardcode_direct=yes
10976 hardcode_direct_absolute=yes
10977 hardcode_libdir_separator=':'
10978 link_all_deplibs=yes
10979 file_list_spec='${wl}-f,'
10980
10981 if test "$GCC" = yes; then
10982 case $host_os in aix4.[012]|aix4.[012].*)
10983 # We only want to do this on AIX 4.2 and lower, the check
10984 # below for broken collect2 doesn't work under 4.3+
10985 collect2name=`${CC} -print-prog-name=collect2`
10986 if test -f "$collect2name" &&
10987 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10988 then
10989 # We have reworked collect2
10990 :
10991 else
10992 # We have old collect2
10993 hardcode_direct=unsupported
10994 # It fails to find uninstalled libraries when the uninstalled
10995 # path is not listed in the libpath. Setting hardcode_minus_L
10996 # to unsupported forces relinking
10997 hardcode_minus_L=yes
10998 hardcode_libdir_flag_spec='-L$libdir'
10999 hardcode_libdir_separator=
11000 fi
11001 ;;
11002 esac
11003 shared_flag='-shared'
11004 if test "$aix_use_runtimelinking" = yes; then
11005 shared_flag="$shared_flag "'${wl}-G'
11006 fi
11007 else
11008 # not using gcc
11009 if test "$host_cpu" = ia64; then
11010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11011 # chokes on -Wl,-G. The following line is correct:
11012 shared_flag='-G'
11013 else
11014 if test "$aix_use_runtimelinking" = yes; then
11015 shared_flag='${wl}-G'
11016 else
11017 shared_flag='${wl}-bM:SRE'
11018 fi
11019 fi
11020 fi
11021
11022 export_dynamic_flag_spec='${wl}-bexpall'
11023 # It seems that -bexpall does not export symbols beginning with
11024 # underscore (_), so it is better to generate a list of symbols to export.
11025 always_export_symbols=yes
11026 if test "$aix_use_runtimelinking" = yes; then
11027 # Warning - without using the other runtime loading flags (-brtl),
11028 # -berok will link without error, but may produce a broken library.
11029 allow_undefined_flag='-berok'
11030 # Determine the default libpath from the value encoded in an
11031 # empty executable.
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
11033/* end confdefs.h. */
11034
11035int
11036main ()
11037{
11038
11039 ;
11040 return 0;
11041}
11042_ACEOF
6bb11ab3 11043if ac_fn_c_try_link "$LINENO"; then :
81ecdfbb 11044
6bb11ab3
L
11045lt_aix_libpath_sed='
11046 /Import File Strings/,/^$/ {
11047 /^0/ {
11048 s/^0 *\(.*\)$/\1/
11049 p
11050 }
11051 }'
11052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11053# Check for a 64-bit object if we didn't find anything.
11054if test -z "$aix_libpath"; then
11055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11056fi
11057fi
11058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11061
11062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11063 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"
11064 else
11065 if test "$host_cpu" = ia64; then
11066 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11067 allow_undefined_flag="-z nodefs"
11068 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"
11069 else
11070 # Determine the default libpath from the value encoded in an
11071 # empty executable.
81ecdfbb
RW
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h. */
11074
11075int
11076main ()
11077{
b7026657 11078
81ecdfbb
RW
11079 ;
11080 return 0;
11081}
11082_ACEOF
6bb11ab3
L
11083if ac_fn_c_try_link "$LINENO"; then :
11084
11085lt_aix_libpath_sed='
11086 /Import File Strings/,/^$/ {
11087 /^0/ {
11088 s/^0 *\(.*\)$/\1/
11089 p
11090 }
11091 }'
11092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11093# Check for a 64-bit object if we didn't find anything.
11094if test -z "$aix_libpath"; then
11095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
f0569246 11096fi
81ecdfbb 11097fi
6bb11ab3
L
11098rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11101
11102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11103 # Warning - without using the other run time loading flags,
11104 # -berok will link without error, but may produce a broken library.
11105 no_undefined_flag=' ${wl}-bernotok'
11106 allow_undefined_flag=' ${wl}-berok'
11107 if test "$with_gnu_ld" = yes; then
11108 # We only use this code for GNU lds that support --whole-archive.
11109 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11110 else
11111 # Exported symbols can be pulled into shared objects from archives
11112 whole_archive_flag_spec='$convenience'
11113 fi
11114 archive_cmds_need_lc=yes
11115 # This is similar to how AIX traditionally builds its shared libraries.
11116 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'
11117 fi
11118 fi
11119 ;;
11120
11121 amigaos*)
11122 case $host_cpu in
11123 powerpc)
11124 # see comment about AmigaOS4 .so support
11125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11126 archive_expsym_cmds=''
11127 ;;
11128 m68k)
11129 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)'
11130 hardcode_libdir_flag_spec='-L$libdir'
11131 hardcode_minus_L=yes
11132 ;;
11133 esac
11134 ;;
11135
11136 bsdi[45]*)
11137 export_dynamic_flag_spec=-rdynamic
11138 ;;
11139
11140 cygwin* | mingw* | pw32* | cegcc*)
11141 # When not using gcc, we currently assume that we are using
11142 # Microsoft Visual C++.
11143 # hardcode_libdir_flag_spec is actually meaningless, as there is
11144 # no search path for DLLs.
11145 hardcode_libdir_flag_spec=' '
11146 allow_undefined_flag=unsupported
11147 # Tell ltmain to make .lib files, not .a files.
11148 libext=lib
11149 # Tell ltmain to make .dll files, not .so files.
11150 shrext_cmds=".dll"
11151 # FIXME: Setting linknames here is a bad hack.
11152 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11153 # The linker will automatically build a .lib file if we build a DLL.
11154 old_archive_from_new_cmds='true'
11155 # FIXME: Should let the user specify the lib program.
11156 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11157 fix_srcfile_path='`cygpath -w "$srcfile"`'
11158 enable_shared_with_static_runtimes=yes
11159 ;;
11160
11161 darwin* | rhapsody*)
11162
11163
11164 archive_cmds_need_lc=no
11165 hardcode_direct=no
11166 hardcode_automatic=yes
11167 hardcode_shlibpath_var=unsupported
11168 if test "$lt_cv_ld_force_load" = "yes"; then
11169 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 11170 else
6bb11ab3 11171 whole_archive_flag_spec=''
f0569246 11172 fi
6bb11ab3
L
11173 link_all_deplibs=yes
11174 allow_undefined_flag="$_lt_dar_allow_undefined"
11175 case $cc_basename in
11176 ifort*) _lt_dar_can_shared=yes ;;
11177 *) _lt_dar_can_shared=$GCC ;;
11178 esac
11179 if test "$_lt_dar_can_shared" = "yes"; then
11180 output_verbose_link_cmd=func_echo_all
11181 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11182 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11183 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}"
11184 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}"
11185
f0569246 11186 else
6bb11ab3 11187 ld_shlibs=no
f0569246 11188 fi
6bb11ab3
L
11189
11190 ;;
11191
11192 dgux*)
11193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194 hardcode_libdir_flag_spec='-L$libdir'
11195 hardcode_shlibpath_var=no
11196 ;;
11197
11198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11199 # support. Future versions do this automatically, but an explicit c++rt0.o
11200 # does not break anything, and helps significantly (at the cost of a little
11201 # extra space).
11202 freebsd2.2*)
11203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11204 hardcode_libdir_flag_spec='-R$libdir'
11205 hardcode_direct=yes
11206 hardcode_shlibpath_var=no
11207 ;;
11208
11209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11210 freebsd2.*)
11211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11212 hardcode_direct=yes
11213 hardcode_minus_L=yes
11214 hardcode_shlibpath_var=no
11215 ;;
11216
11217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11218 freebsd* | dragonfly*)
11219 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11220 hardcode_libdir_flag_spec='-R$libdir'
11221 hardcode_direct=yes
11222 hardcode_shlibpath_var=no
11223 ;;
11224
11225 hpux9*)
11226 if test "$GCC" = yes; then
11227 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'
11228 else
11229 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'
11230 fi
11231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11232 hardcode_libdir_separator=:
11233 hardcode_direct=yes
11234
11235 # hardcode_minus_L: Not really in the search PATH,
11236 # but as the default location of the library.
11237 hardcode_minus_L=yes
11238 export_dynamic_flag_spec='${wl}-E'
11239 ;;
11240
11241 hpux10*)
11242 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11244 else
11245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11246 fi
11247 if test "$with_gnu_ld" = no; then
11248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11249 hardcode_libdir_flag_spec_ld='+b $libdir'
11250 hardcode_libdir_separator=:
11251 hardcode_direct=yes
11252 hardcode_direct_absolute=yes
11253 export_dynamic_flag_spec='${wl}-E'
11254 # hardcode_minus_L: Not really in the search PATH,
11255 # but as the default location of the library.
11256 hardcode_minus_L=yes
11257 fi
11258 ;;
11259
11260 hpux11*)
11261 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11262 case $host_cpu in
11263 hppa*64*)
11264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 ;;
11266 ia64*)
11267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11268 ;;
11269 *)
11270 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11271 ;;
11272 esac
11273 else
11274 case $host_cpu in
11275 hppa*64*)
11276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 ;;
11278 ia64*)
11279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11280 ;;
11281 *)
11282
11283 # Older versions of the 11.00 compiler do not understand -b yet
11284 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11286$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 11287if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 11288 $as_echo_n "(cached) " >&6
f0569246 11289else
6bb11ab3
L
11290 lt_cv_prog_compiler__b=no
11291 save_LDFLAGS="$LDFLAGS"
11292 LDFLAGS="$LDFLAGS -b"
11293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11295 # The linker can only warn and ignore the option if not recognized
11296 # So say no if there are warnings
11297 if test -s conftest.err; then
11298 # Append any errors to the config.log.
11299 cat conftest.err 1>&5
11300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11302 if diff conftest.exp conftest.er2 >/dev/null; then
11303 lt_cv_prog_compiler__b=yes
11304 fi
11305 else
11306 lt_cv_prog_compiler__b=yes
11307 fi
11308 fi
11309 $RM -r conftest*
11310 LDFLAGS="$save_LDFLAGS"
f0569246 11311
6bb11ab3
L
11312fi
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11314$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 11315
6bb11ab3
L
11316if test x"$lt_cv_prog_compiler__b" = xyes; then
11317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11318else
11319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11320fi
81ecdfbb 11321
6bb11ab3
L
11322 ;;
11323 esac
11324 fi
11325 if test "$with_gnu_ld" = no; then
11326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11327 hardcode_libdir_separator=:
11328
11329 case $host_cpu in
11330 hppa*64*|ia64*)
11331 hardcode_direct=no
11332 hardcode_shlibpath_var=no
11333 ;;
11334 *)
11335 hardcode_direct=yes
11336 hardcode_direct_absolute=yes
11337 export_dynamic_flag_spec='${wl}-E'
11338
11339 # hardcode_minus_L: Not really in the search PATH,
11340 # but as the default location of the library.
11341 hardcode_minus_L=yes
11342 ;;
11343 esac
11344 fi
11345 ;;
11346
11347 irix5* | irix6* | nonstopux*)
11348 if test "$GCC" = yes; then
11349 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'
11350 # Try to use the -exported_symbol ld option, if it does not
11351 # work, assume that -exports_file does not work either and
11352 # implicitly export all symbols.
11353 save_LDFLAGS="$LDFLAGS"
11354 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356/* end confdefs.h. */
11357int foo(void) {}
b7026657 11358_ACEOF
6bb11ab3
L
11359if ac_fn_c_try_link "$LINENO"; then :
11360 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 11361
f0569246 11362fi
6bb11ab3
L
11363rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 LDFLAGS="$save_LDFLAGS"
11366 else
11367 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'
11368 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'
11369 fi
11370 archive_cmds_need_lc='no'
11371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11372 hardcode_libdir_separator=:
11373 inherit_rpath=yes
11374 link_all_deplibs=yes
11375 ;;
11376
11377 netbsd*)
11378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11380 else
11381 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11382 fi
11383 hardcode_libdir_flag_spec='-R$libdir'
11384 hardcode_direct=yes
11385 hardcode_shlibpath_var=no
11386 ;;
11387
11388 newsos6)
11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390 hardcode_direct=yes
11391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11392 hardcode_libdir_separator=:
11393 hardcode_shlibpath_var=no
11394 ;;
11395
11396 *nto* | *qnx*)
11397 ;;
11398
11399 openbsd*)
11400 if test -f /usr/libexec/ld.so; then
11401 hardcode_direct=yes
11402 hardcode_shlibpath_var=no
11403 hardcode_direct_absolute=yes
11404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11407 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11408 export_dynamic_flag_spec='${wl}-E'
11409 else
11410 case $host_os in
11411 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11413 hardcode_libdir_flag_spec='-R$libdir'
11414 ;;
11415 *)
11416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11418 ;;
11419 esac
11420 fi
11421 else
11422 ld_shlibs=no
11423 fi
11424 ;;
11425
11426 os2*)
11427 hardcode_libdir_flag_spec='-L$libdir'
11428 hardcode_minus_L=yes
11429 allow_undefined_flag=unsupported
11430 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'
11431 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11432 ;;
11433
11434 osf3*)
11435 if test "$GCC" = yes; then
11436 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11437 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'
11438 else
11439 allow_undefined_flag=' -expect_unresolved \*'
11440 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'
11441 fi
11442 archive_cmds_need_lc='no'
11443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11444 hardcode_libdir_separator=:
11445 ;;
11446
11447 osf4* | osf5*) # as osf3* with the addition of -msym flag
11448 if test "$GCC" = yes; then
11449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11450 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'
11451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11452 else
11453 allow_undefined_flag=' -expect_unresolved \*'
11454 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'
11455 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~
11456 $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'
11457
11458 # Both c and cxx compiler support -rpath directly
11459 hardcode_libdir_flag_spec='-rpath $libdir'
11460 fi
11461 archive_cmds_need_lc='no'
11462 hardcode_libdir_separator=:
11463 ;;
11464
11465 solaris*)
11466 no_undefined_flag=' -z defs'
11467 if test "$GCC" = yes; then
11468 wlarc='${wl}'
11469 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11470 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11471 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11472 else
11473 case `$CC -V 2>&1` in
11474 *"Compilers 5.0"*)
11475 wlarc=''
11476 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11479 ;;
11480 *)
11481 wlarc='${wl}'
11482 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11484 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11485 ;;
11486 esac
11487 fi
11488 hardcode_libdir_flag_spec='-R$libdir'
11489 hardcode_shlibpath_var=no
11490 case $host_os in
11491 solaris2.[0-5] | solaris2.[0-5].*) ;;
11492 *)
11493 # The compiler driver will combine and reorder linker options,
11494 # but understands `-z linker_flag'. GCC discards it without `$wl',
11495 # but is careful enough not to reorder.
11496 # Supported since Solaris 2.6 (maybe 2.5.1?)
11497 if test "$GCC" = yes; then
11498 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11499 else
11500 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11501 fi
11502 ;;
11503 esac
11504 link_all_deplibs=yes
11505 ;;
11506
11507 sunos4*)
11508 if test "x$host_vendor" = xsequent; then
11509 # Use $CC to link under sequent, because it throws in some extra .o
11510 # files that make .init and .fini sections work.
11511 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11512 else
11513 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11514 fi
11515 hardcode_libdir_flag_spec='-L$libdir'
11516 hardcode_direct=yes
11517 hardcode_minus_L=yes
11518 hardcode_shlibpath_var=no
11519 ;;
11520
11521 sysv4)
11522 case $host_vendor in
11523 sni)
11524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11525 hardcode_direct=yes # is this really true???
11526 ;;
11527 siemens)
11528 ## LD is ld it makes a PLAMLIB
11529 ## CC just makes a GrossModule.
11530 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11531 reload_cmds='$CC -r -o $output$reload_objs'
11532 hardcode_direct=no
11533 ;;
11534 motorola)
11535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11536 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11537 ;;
11538 esac
11539 runpath_var='LD_RUN_PATH'
11540 hardcode_shlibpath_var=no
11541 ;;
11542
11543 sysv4.3*)
11544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11545 hardcode_shlibpath_var=no
11546 export_dynamic_flag_spec='-Bexport'
11547 ;;
11548
11549 sysv4*MP*)
11550 if test -d /usr/nec; then
11551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11552 hardcode_shlibpath_var=no
11553 runpath_var=LD_RUN_PATH
11554 hardcode_runpath_var=yes
11555 ld_shlibs=yes
11556 fi
11557 ;;
11558
11559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11560 no_undefined_flag='${wl}-z,text'
11561 archive_cmds_need_lc=no
11562 hardcode_shlibpath_var=no
11563 runpath_var='LD_RUN_PATH'
11564
11565 if test "$GCC" = yes; then
11566 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 else
11569 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11571 fi
11572 ;;
11573
11574 sysv5* | sco3.2v5* | sco5v6*)
11575 # Note: We can NOT use -z defs as we might desire, because we do not
11576 # link with -lc, and that would cause any symbols used from libc to
11577 # always be unresolved, which means just about no library would
11578 # ever link correctly. If we're not using GNU ld we use -z text
11579 # though, which does catch some bad symbols but isn't as heavy-handed
11580 # as -z defs.
11581 no_undefined_flag='${wl}-z,text'
11582 allow_undefined_flag='${wl}-z,nodefs'
11583 archive_cmds_need_lc=no
11584 hardcode_shlibpath_var=no
11585 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11586 hardcode_libdir_separator=':'
11587 link_all_deplibs=yes
11588 export_dynamic_flag_spec='${wl}-Bexport'
11589 runpath_var='LD_RUN_PATH'
11590
11591 if test "$GCC" = yes; then
11592 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11594 else
11595 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 fi
11598 ;;
11599
11600 uts4*)
11601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11602 hardcode_libdir_flag_spec='-L$libdir'
11603 hardcode_shlibpath_var=no
11604 ;;
11605
11606 *)
11607 ld_shlibs=no
11608 ;;
11609 esac
11610
11611 if test x$host_vendor = xsni; then
11612 case $host in
11613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11614 export_dynamic_flag_spec='${wl}-Blargedynsym'
11615 ;;
11616 esac
11617 fi
11618 fi
11619
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11621$as_echo "$ld_shlibs" >&6; }
11622test "$ld_shlibs" = no && can_build_shared=no
11623
11624with_gnu_ld=$with_gnu_ld
11625
11626
11627
11628
11629
f0569246 11630
b7026657 11631
f0569246 11632
6ffe910a 11633
6ffe910a
MF
11634
11635
6ffe910a 11636
f0569246 11637
f0569246 11638
c906108c 11639
6bb11ab3
L
11640#
11641# Do we need to explicitly link libc?
11642#
11643case "x$archive_cmds_need_lc" in
11644x|xyes)
11645 # Assume -lc should be added
11646 archive_cmds_need_lc=yes
11647
11648 if test "$enable_shared" = yes && test "$GCC" = yes; then
11649 case $archive_cmds in
11650 *'~'*)
11651 # FIXME: we may have to deal with multi-command sequences.
11652 ;;
11653 '$CC '*)
11654 # Test whether the compiler implicitly links with -lc since on some
11655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11656 # to ld, don't add -lc before -lgcc.
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11658$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 11659if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 11660 $as_echo_n "(cached) " >&6
f0569246 11661else
6bb11ab3
L
11662 $RM conftest*
11663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11664
11665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11666 (eval $ac_compile) 2>&5
11667 ac_status=$?
11668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669 test $ac_status = 0; } 2>conftest.err; then
11670 soname=conftest
11671 lib=conftest
11672 libobjs=conftest.$ac_objext
11673 deplibs=
11674 wl=$lt_prog_compiler_wl
11675 pic_flag=$lt_prog_compiler_pic
11676 compiler_flags=-v
11677 linker_flags=-v
11678 verstring=
11679 output_objdir=.
11680 libname=conftest
11681 lt_save_allow_undefined_flag=$allow_undefined_flag
11682 allow_undefined_flag=
11683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11684 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11685 ac_status=$?
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; }
11688 then
11689 lt_cv_archive_cmds_need_lc=no
11690 else
11691 lt_cv_archive_cmds_need_lc=yes
11692 fi
11693 allow_undefined_flag=$lt_save_allow_undefined_flag
11694 else
11695 cat conftest.err 1>&5
11696 fi
11697 $RM conftest*
c906108c 11698
6ffe910a 11699fi
6bb11ab3
L
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11701$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11702 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11703 ;;
11704 esac
11705 fi
11706 ;;
6ffe910a 11707esac
c906108c 11708
c906108c 11709
6ffe910a 11710
c906108c 11711
81ecdfbb 11712
35695fd6 11713
35695fd6 11714
35695fd6 11715
f0569246 11716
c906108c 11717
f0569246 11718
b7026657 11719
f0569246 11720
c906108c 11721
81ecdfbb 11722
b7026657 11723
f0569246
AC
11724
11725
81ecdfbb 11726
81ecdfbb 11727
81ecdfbb
RW
11728
11729
81ecdfbb 11730
81ecdfbb 11731
f0569246
AC
11732
11733
c906108c 11734
f0569246 11735
c906108c 11736
c906108c 11737
81ecdfbb 11738
b7026657 11739
c906108c 11740
f0569246 11741
81ecdfbb 11742
f0569246 11743
c906108c 11744
c906108c 11745
b7026657 11746
81ecdfbb 11747
b7026657 11748
c906108c 11749
c906108c 11750
b7026657
AC
11751
11752
11753
11754
6ffe910a 11755
2232061b
MF
11756
11757
2232061b 11758
2232061b
MF
11759
11760
2232061b
MF
11761
11762
2232061b 11763
6bb11ab3
L
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11866$as_echo_n "checking dynamic linker characteristics... " >&6; }
11867
11868if test "$GCC" = yes; then
11869 case $host_os in
11870 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11871 *) lt_awk_arg="/^libraries:/" ;;
11872 esac
11873 case $host_os in
11874 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11875 *) lt_sed_strip_eq="s,=/,/,g" ;;
11876 esac
11877 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11878 case $lt_search_path_spec in
11879 *\;*)
11880 # if the path contains ";" then we assume it to be the separator
11881 # otherwise default to the standard path separator (i.e. ":") - it is
11882 # assumed that no part of a normal pathname contains ";" but that should
11883 # okay in the real world where ";" in dirpaths is itself problematic.
11884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11885 ;;
11886 *)
11887 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11888 ;;
11889 esac
11890 # Ok, now we have the path, separated by spaces, we can step through it
11891 # and add multilib dir if necessary.
11892 lt_tmp_lt_search_path_spec=
11893 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11894 for lt_sys_path in $lt_search_path_spec; do
11895 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11897 else
11898 test -d "$lt_sys_path" && \
11899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11900 fi
11901 done
11902 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11903BEGIN {RS=" "; FS="/|\n";} {
11904 lt_foo="";
11905 lt_count=0;
11906 for (lt_i = NF; lt_i > 0; lt_i--) {
11907 if ($lt_i != "" && $lt_i != ".") {
11908 if ($lt_i == "..") {
11909 lt_count++;
11910 } else {
11911 if (lt_count == 0) {
11912 lt_foo="/" $lt_i lt_foo;
11913 } else {
11914 lt_count--;
11915 }
11916 }
11917 }
11918 }
11919 if (lt_foo != "") { lt_freq[lt_foo]++; }
11920 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11921}'`
11922 # AWK program above erroneously prepends '/' to C:/dos/paths
11923 # for these hosts.
11924 case $host_os in
11925 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11926 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11927 esac
11928 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11929else
11930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11931fi
11932library_names_spec=
11933libname_spec='lib$name'
11934soname_spec=
11935shrext_cmds=".so"
11936postinstall_cmds=
11937postuninstall_cmds=
11938finish_cmds=
11939finish_eval=
11940shlibpath_var=
11941shlibpath_overrides_runpath=unknown
11942version_type=none
11943dynamic_linker="$host_os ld.so"
11944sys_lib_dlsearch_path_spec="/lib /usr/lib"
11945need_lib_prefix=unknown
11946hardcode_into_libs=no
11947
11948# when you set need_version to no, make sure it does not cause -set_version
11949# flags to be left without arguments
11950need_version=unknown
11951
11952case $host_os in
11953aix3*)
11954 version_type=linux
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11956 shlibpath_var=LIBPATH
11957
11958 # AIX 3 has no versioning support, so we append a major version to the name.
11959 soname_spec='${libname}${release}${shared_ext}$major'
11960 ;;
11961
11962aix[4-9]*)
11963 version_type=linux
11964 need_lib_prefix=no
11965 need_version=no
11966 hardcode_into_libs=yes
11967 if test "$host_cpu" = ia64; then
11968 # AIX 5 supports IA64
11969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 else
11972 # With GCC up to 2.95.x, collect2 would create an import file
11973 # for dependence libraries. The import file would start with
11974 # the line `#! .'. This would cause the generated library to
11975 # depend on `.', always an invalid library. This was fixed in
11976 # development snapshots of GCC prior to 3.0.
11977 case $host_os in
11978 aix4 | aix4.[01] | aix4.[01].*)
11979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11980 echo ' yes '
11981 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11982 :
11983 else
11984 can_build_shared=no
11985 fi
11986 ;;
11987 esac
11988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11989 # soname into executable. Probably we can add versioning support to
11990 # collect2, so additional links can be useful in future.
11991 if test "$aix_use_runtimelinking" = yes; then
11992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11993 # instead of lib<name>.a to let people know that these are not
11994 # typical AIX shared libraries.
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11996 else
11997 # We preserve .a as extension for shared libraries through AIX4.2
11998 # and later when we are not doing run time linking.
11999 library_names_spec='${libname}${release}.a $libname.a'
12000 soname_spec='${libname}${release}${shared_ext}$major'
12001 fi
12002 shlibpath_var=LIBPATH
2232061b 12003 fi
6bb11ab3
L
12004 ;;
12005
12006amigaos*)
12007 case $host_cpu in
12008 powerpc)
12009 # Since July 2007 AmigaOS4 officially supports .so libraries.
12010 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012 ;;
12013 m68k)
12014 library_names_spec='$libname.ixlibrary $libname.a'
12015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12016 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'
12017 ;;
12018 esac
12019 ;;
12020
12021beos*)
12022 library_names_spec='${libname}${shared_ext}'
12023 dynamic_linker="$host_os ld.so"
12024 shlibpath_var=LIBRARY_PATH
12025 ;;
12026
12027bsdi[45]*)
12028 version_type=linux
12029 need_version=no
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12035 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12036 # the default ld.so.conf also contains /usr/contrib/lib and
12037 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12038 # libtool to hard-code these into programs
12039 ;;
12040
12041cygwin* | mingw* | pw32* | cegcc*)
12042 version_type=windows
12043 shrext_cmds=".dll"
12044 need_version=no
12045 need_lib_prefix=no
12046
12047 case $GCC,$host_os in
12048 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12049 library_names_spec='$libname.dll.a'
12050 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12051 postinstall_cmds='base_file=`basename \${file}`~
12052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12053 dldir=$destdir/`dirname \$dlpath`~
12054 test -d \$dldir || mkdir -p \$dldir~
12055 $install_prog $dir/$dlname \$dldir/$dlname~
12056 chmod a+x \$dldir/$dlname~
12057 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12058 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12059 fi'
12060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12061 dlpath=$dir/\$dldll~
12062 $RM \$dlpath'
12063 shlibpath_overrides_runpath=yes
12064
12065 case $host_os in
12066 cygwin*)
12067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12069
12070 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12071 ;;
12072 mingw* | cegcc*)
12073 # MinGW DLLs use traditional 'lib' prefix
12074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12075 ;;
12076 pw32*)
12077 # pw32 DLLs use 'pw' prefix rather than 'lib'
12078 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12079 ;;
12080 esac
12081 ;;
2232061b 12082
6bb11ab3
L
12083 *)
12084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12085 ;;
12086 esac
12087 dynamic_linker='Win32 ld.exe'
12088 # FIXME: first we should search . and the directory the executable is in
12089 shlibpath_var=PATH
12090 ;;
12091
12092darwin* | rhapsody*)
12093 dynamic_linker="$host_os dyld"
12094 version_type=darwin
12095 need_lib_prefix=no
12096 need_version=no
12097 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12098 soname_spec='${libname}${release}${major}$shared_ext'
12099 shlibpath_overrides_runpath=yes
12100 shlibpath_var=DYLD_LIBRARY_PATH
12101 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12102
12103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12104 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12105 ;;
12106
12107dgux*)
12108 version_type=linux
12109 need_lib_prefix=no
12110 need_version=no
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 shlibpath_var=LD_LIBRARY_PATH
12114 ;;
12115
12116freebsd* | dragonfly*)
12117 # DragonFly does not have aout. When/if they implement a new
12118 # versioning mechanism, adjust this.
12119 if test -x /usr/bin/objformat; then
12120 objformat=`/usr/bin/objformat`
12121 else
12122 case $host_os in
12123 freebsd[23].*) objformat=aout ;;
12124 *) objformat=elf ;;
12125 esac
12126 fi
12127 version_type=freebsd-$objformat
12128 case $version_type in
12129 freebsd-elf*)
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12131 need_version=no
12132 need_lib_prefix=no
12133 ;;
12134 freebsd-*)
12135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12136 need_version=yes
12137 ;;
12138 esac
12139 shlibpath_var=LD_LIBRARY_PATH
12140 case $host_os in
12141 freebsd2.*)
12142 shlibpath_overrides_runpath=yes
12143 ;;
12144 freebsd3.[01]* | freebsdelf3.[01]*)
12145 shlibpath_overrides_runpath=yes
12146 hardcode_into_libs=yes
12147 ;;
12148 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12149 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12150 shlibpath_overrides_runpath=no
12151 hardcode_into_libs=yes
12152 ;;
12153 *) # from 4.6 on, and DragonFly
12154 shlibpath_overrides_runpath=yes
12155 hardcode_into_libs=yes
12156 ;;
12157 esac
12158 ;;
12159
6bb11ab3
L
12160haiku*)
12161 version_type=linux
12162 need_lib_prefix=no
12163 need_version=no
12164 dynamic_linker="$host_os runtime_loader"
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 shlibpath_var=LIBRARY_PATH
12168 shlibpath_overrides_runpath=yes
12169 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12170 hardcode_into_libs=yes
12171 ;;
12172
12173hpux9* | hpux10* | hpux11*)
12174 # Give a soname corresponding to the major version so that dld.sl refuses to
12175 # link against other versions.
12176 version_type=sunos
12177 need_lib_prefix=no
12178 need_version=no
12179 case $host_cpu in
12180 ia64*)
12181 shrext_cmds='.so'
12182 hardcode_into_libs=yes
12183 dynamic_linker="$host_os dld.so"
12184 shlibpath_var=LD_LIBRARY_PATH
12185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187 soname_spec='${libname}${release}${shared_ext}$major'
12188 if test "X$HPUX_IA64_MODE" = X32; then
12189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12190 else
12191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12192 fi
12193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12194 ;;
12195 hppa*64*)
12196 shrext_cmds='.sl'
12197 hardcode_into_libs=yes
12198 dynamic_linker="$host_os dld.sl"
12199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202 soname_spec='${libname}${release}${shared_ext}$major'
12203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12205 ;;
12206 *)
12207 shrext_cmds='.sl'
12208 dynamic_linker="$host_os dld.sl"
12209 shlibpath_var=SHLIB_PATH
12210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 soname_spec='${libname}${release}${shared_ext}$major'
12213 ;;
12214 esac
12215 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12216 postinstall_cmds='chmod 555 $lib'
12217 # or fails outright, so override atomically:
12218 install_override_mode=555
12219 ;;
12220
12221interix[3-9]*)
12222 version_type=linux
12223 need_lib_prefix=no
12224 need_version=no
12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12226 soname_spec='${libname}${release}${shared_ext}$major'
12227 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12228 shlibpath_var=LD_LIBRARY_PATH
12229 shlibpath_overrides_runpath=no
12230 hardcode_into_libs=yes
12231 ;;
12232
12233irix5* | irix6* | nonstopux*)
12234 case $host_os in
12235 nonstopux*) version_type=nonstopux ;;
12236 *)
12237 if test "$lt_cv_prog_gnu_ld" = yes; then
12238 version_type=linux
12239 else
12240 version_type=irix
12241 fi ;;
12242 esac
12243 need_lib_prefix=no
12244 need_version=no
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12247 case $host_os in
12248 irix5* | nonstopux*)
12249 libsuff= shlibsuff=
12250 ;;
12251 *)
12252 case $LD in # libtool.m4 will add one of these switches to LD
12253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12254 libsuff= shlibsuff= libmagic=32-bit;;
12255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12256 libsuff=32 shlibsuff=N32 libmagic=N32;;
12257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12259 *) libsuff= shlibsuff= libmagic=never-match;;
12260 esac
12261 ;;
12262 esac
12263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12264 shlibpath_overrides_runpath=no
12265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12267 hardcode_into_libs=yes
12268 ;;
12269
12270# No shared lib support for Linux oldld, aout, or coff.
12271linux*oldld* | linux*aout* | linux*coff*)
12272 dynamic_linker=no
12273 ;;
12274
12275# This must be Linux ELF.
46f900c0 12276linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
12277 version_type=linux
12278 need_lib_prefix=no
12279 need_version=no
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=no
12285
12286 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 12287 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
12288 $as_echo_n "(cached) " >&6
12289else
6bb11ab3
L
12290 lt_cv_shlibpath_overrides_runpath=no
12291 save_LDFLAGS=$LDFLAGS
12292 save_libdir=$libdir
12293 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12294 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
12296/* end confdefs.h. */
12297
2232061b
MF
12298int
12299main ()
12300{
12301
12302 ;
12303 return 0;
12304}
12305_ACEOF
6bb11ab3
L
12306if ac_fn_c_try_link "$LINENO"; then :
12307 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12308 lt_cv_shlibpath_overrides_runpath=yes
2232061b 12309fi
2232061b 12310fi
6bb11ab3
L
12311rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LDFLAGS=$save_LDFLAGS
12314 libdir=$save_libdir
2232061b 12315
6bb11ab3 12316fi
2232061b 12317
6bb11ab3 12318 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 12319
6bb11ab3
L
12320 # This implies no fast_install, which is unacceptable.
12321 # Some rework will be needed to allow for fast_install
12322 # before this can be enabled.
12323 hardcode_into_libs=yes
2232061b 12324
6bb11ab3
L
12325 # Append ld.so.conf contents to the search path
12326 if test -f /etc/ld.so.conf; then
12327 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' ' '`
12328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12329 fi
12330
12331 # We used to test for /lib/ld.so.1 and disable shared libraries on
12332 # powerpc, because MkLinux only supported shared libraries with the
12333 # GNU dynamic linker. Since this was broken with cross compilers,
12334 # most powerpc-linux boxes support dynamic linking these days and
12335 # people can always --disable-shared, the test was removed, and we
12336 # assume the GNU/Linux dynamic linker is in use.
12337 dynamic_linker='GNU/Linux ld.so'
12338 ;;
12339
12340netbsd*)
12341 version_type=sunos
12342 need_lib_prefix=no
12343 need_version=no
12344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12347 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 12348 else
6bb11ab3
L
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12351 dynamic_linker='NetBSD ld.elf_so'
12352 fi
12353 shlibpath_var=LD_LIBRARY_PATH
12354 shlibpath_overrides_runpath=yes
12355 hardcode_into_libs=yes
12356 ;;
12357
12358newsos6)
12359 version_type=linux
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=yes
12363 ;;
12364
12365*nto* | *qnx*)
12366 version_type=qnx
12367 need_lib_prefix=no
12368 need_version=no
12369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12370 soname_spec='${libname}${release}${shared_ext}$major'
12371 shlibpath_var=LD_LIBRARY_PATH
12372 shlibpath_overrides_runpath=no
12373 hardcode_into_libs=yes
12374 dynamic_linker='ldqnx.so'
12375 ;;
12376
12377openbsd*)
12378 version_type=sunos
12379 sys_lib_dlsearch_path_spec="/usr/lib"
12380 need_lib_prefix=no
12381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12382 case $host_os in
12383 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12384 *) need_version=no ;;
12385 esac
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12388 shlibpath_var=LD_LIBRARY_PATH
12389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12390 case $host_os in
12391 openbsd2.[89] | openbsd2.[89].*)
12392 shlibpath_overrides_runpath=no
12393 ;;
12394 *)
12395 shlibpath_overrides_runpath=yes
12396 ;;
12397 esac
12398 else
12399 shlibpath_overrides_runpath=yes
12400 fi
12401 ;;
12402
12403os2*)
12404 libname_spec='$name'
12405 shrext_cmds=".dll"
12406 need_lib_prefix=no
12407 library_names_spec='$libname${shared_ext} $libname.a'
12408 dynamic_linker='OS/2 ld.exe'
12409 shlibpath_var=LIBPATH
12410 ;;
12411
12412osf3* | osf4* | osf5*)
12413 version_type=osf
12414 need_lib_prefix=no
12415 need_version=no
12416 soname_spec='${libname}${release}${shared_ext}$major'
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12421 ;;
12422
12423rdos*)
12424 dynamic_linker=no
12425 ;;
12426
12427solaris*)
12428 version_type=linux
12429 need_lib_prefix=no
12430 need_version=no
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432 soname_spec='${libname}${release}${shared_ext}$major'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=yes
12435 hardcode_into_libs=yes
12436 # ldd complains unless libraries are executable
12437 postinstall_cmds='chmod +x $lib'
12438 ;;
12439
12440sunos4*)
12441 version_type=sunos
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12444 shlibpath_var=LD_LIBRARY_PATH
12445 shlibpath_overrides_runpath=yes
12446 if test "$with_gnu_ld" = yes; then
12447 need_lib_prefix=no
12448 fi
12449 need_version=yes
12450 ;;
12451
12452sysv4 | sysv4.3*)
12453 version_type=linux
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 case $host_vendor in
12458 sni)
12459 shlibpath_overrides_runpath=no
12460 need_lib_prefix=no
12461 runpath_var=LD_RUN_PATH
12462 ;;
12463 siemens)
12464 need_lib_prefix=no
12465 ;;
12466 motorola)
12467 need_lib_prefix=no
12468 need_version=no
12469 shlibpath_overrides_runpath=no
12470 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12471 ;;
12472 esac
12473 ;;
12474
12475sysv4*MP*)
12476 if test -d /usr/nec ;then
12477 version_type=linux
12478 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12479 soname_spec='$libname${shared_ext}.$major'
12480 shlibpath_var=LD_LIBRARY_PATH
12481 fi
12482 ;;
12483
12484sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12485 version_type=freebsd-elf
12486 need_lib_prefix=no
12487 need_version=no
12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12489 soname_spec='${libname}${release}${shared_ext}$major'
12490 shlibpath_var=LD_LIBRARY_PATH
12491 shlibpath_overrides_runpath=yes
12492 hardcode_into_libs=yes
12493 if test "$with_gnu_ld" = yes; then
12494 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12495 else
12496 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12497 case $host_os in
12498 sco3.2v5*)
12499 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12500 ;;
12501 esac
2232061b 12502 fi
6bb11ab3
L
12503 sys_lib_dlsearch_path_spec='/usr/lib'
12504 ;;
12505
12506tpf*)
12507 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12508 version_type=linux
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=no
12514 hardcode_into_libs=yes
12515 ;;
12516
12517uts4*)
12518 version_type=linux
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12520 soname_spec='${libname}${release}${shared_ext}$major'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 ;;
12523
12524*)
12525 dynamic_linker=no
12526 ;;
12527esac
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12529$as_echo "$dynamic_linker" >&6; }
12530test "$dynamic_linker" = no && can_build_shared=no
12531
12532variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12533if test "$GCC" = yes; then
12534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 12535fi
2232061b 12536
6bb11ab3
L
12537if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12538 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12539fi
12540if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12541 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12542fi
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
2232061b 12566
2232061b 12567
2232061b 12568
2232061b 12569
2232061b
MF
12570
12571
6ffe910a 12572
6ffe910a
MF
12573
12574
12575
12576
12577
2232061b 12578
6ffe910a
MF
12579
12580
12581
12582
6ffe910a 12583
6ffe910a 12584
6ffe910a
MF
12585
12586
6ffe910a 12587
6ffe910a 12588
6ffe910a
MF
12589
12590
5f3ef9d0 12591
5f3ef9d0
JB
12592
12593
12594
db2e4d67
MF
12595
12596
db2e4d67 12597
db2e4d67 12598
db2e4d67 12599
db2e4d67 12600
db2e4d67 12601
db2e4d67 12602
db2e4d67 12603
db2e4d67
MF
12604
12605
db2e4d67 12606
db2e4d67
MF
12607
12608
db2e4d67 12609
db2e4d67
MF
12610
12611
6ffe910a 12612
6ffe910a 12613
6ffe910a
MF
12614
12615
6ffe910a
MF
12616
12617
6ffe910a 12618
6ffe910a 12619
6ffe910a 12620
6ffe910a 12621
6ffe910a 12622
35695fd6 12623
35695fd6 12624
35695fd6 12625
b7026657 12626
b7026657 12627
c906108c 12628
b7026657 12629
b7026657 12630
c906108c 12631
b7026657 12632
6bb11ab3
L
12633
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12636$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12637hardcode_action=
12638if test -n "$hardcode_libdir_flag_spec" ||
12639 test -n "$runpath_var" ||
12640 test "X$hardcode_automatic" = "Xyes" ; then
12641
12642 # We can hardcode non-existent directories.
12643 if test "$hardcode_direct" != no &&
12644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12645 # have to relink, otherwise we might link with an installed library
12646 # when we should be linking with a yet-to-be-installed one
12647 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12648 test "$hardcode_minus_L" != no; then
12649 # Linking always hardcodes the temporary library directory.
12650 hardcode_action=relink
12651 else
12652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12653 hardcode_action=immediate
12654 fi
12655else
12656 # We cannot hardcode anything, or else we can only hardcode existing
12657 # directories.
12658 hardcode_action=unsupported
12659fi
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12661$as_echo "$hardcode_action" >&6; }
12662
12663if test "$hardcode_action" = relink ||
12664 test "$inherit_rpath" = yes; then
12665 # Fast installation is not supported
12666 enable_fast_install=no
12667elif test "$shlibpath_overrides_runpath" = yes ||
12668 test "$enable_shared" = no; then
12669 # Fast installation is not necessary
12670 enable_fast_install=needless
c906108c 12671fi
b7026657 12672
c906108c 12673
6bb11ab3
L
12674
12675
12676
12677
12678 if test "x$enable_dlopen" != xyes; then
12679 enable_dlopen=unknown
12680 enable_dlopen_self=unknown
12681 enable_dlopen_self_static=unknown
12682else
12683 lt_cv_dlopen=no
12684 lt_cv_dlopen_libs=
12685
12686 case $host_os in
12687 beos*)
12688 lt_cv_dlopen="load_add_on"
12689 lt_cv_dlopen_libs=
12690 lt_cv_dlopen_self=yes
12691 ;;
12692
12693 mingw* | pw32* | cegcc*)
12694 lt_cv_dlopen="LoadLibrary"
12695 lt_cv_dlopen_libs=
12696 ;;
12697
12698 cygwin*)
12699 lt_cv_dlopen="dlopen"
12700 lt_cv_dlopen_libs=
12701 ;;
12702
12703 darwin*)
12704 # if libdl is installed we need to link against it
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12706$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12707if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
12708 $as_echo_n "(cached) " >&6
12709else
12710 ac_check_lib_save_LIBS=$LIBS
12711LIBS="-ldl $LIBS"
12712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h. */
12714
12715/* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12718#ifdef __cplusplus
12719extern "C"
12720#endif
12721char dlopen ();
12722int
12723main ()
12724{
12725return dlopen ();
12726 ;
12727 return 0;
12728}
b7026657 12729_ACEOF
6bb11ab3
L
12730if ac_fn_c_try_link "$LINENO"; then :
12731 ac_cv_lib_dl_dlopen=yes
12732else
12733 ac_cv_lib_dl_dlopen=no
12734fi
12735rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737LIBS=$ac_check_lib_save_LIBS
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12740$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12741if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12743else
12744
12745 lt_cv_dlopen="dyld"
12746 lt_cv_dlopen_libs=
12747 lt_cv_dlopen_self=yes
c906108c 12748
c906108c 12749fi
c906108c 12750
6bb11ab3 12751 ;;
c906108c 12752
6bb11ab3
L
12753 *)
12754 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 12755if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
12756 lt_cv_dlopen="shl_load"
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12759$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 12760if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
12761 $as_echo_n "(cached) " >&6
12762else
12763 ac_check_lib_save_LIBS=$LIBS
12764LIBS="-ldld $LIBS"
12765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766/* end confdefs.h. */
12767
12768/* Override any GCC internal prototype to avoid an error.
12769 Use char because int might match the return type of a GCC
12770 builtin and then its argument prototype would still apply. */
12771#ifdef __cplusplus
12772extern "C"
12773#endif
12774char shl_load ();
12775int
12776main ()
12777{
12778return shl_load ();
12779 ;
12780 return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_link "$LINENO"; then :
12784 ac_cv_lib_dld_shl_load=yes
12785else
12786 ac_cv_lib_dld_shl_load=no
12787fi
12788rm -f core conftest.err conftest.$ac_objext \
12789 conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12793$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 12794if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
12795 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12796else
12797 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 12798if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
12799 lt_cv_dlopen="dlopen"
12800else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12802$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12803if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 12804 $as_echo_n "(cached) " >&6
c906108c 12805else
b7026657 12806 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12807LIBS="-ldl $LIBS"
81ecdfbb 12808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12809/* end confdefs.h. */
12810
81ecdfbb
RW
12811/* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
b7026657
AC
12814#ifdef __cplusplus
12815extern "C"
12816#endif
6bb11ab3 12817char dlopen ();
b7026657
AC
12818int
12819main ()
12820{
6bb11ab3 12821return dlopen ();
b7026657
AC
12822 ;
12823 return 0;
12824}
12825_ACEOF
81ecdfbb 12826if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12827 ac_cv_lib_dl_dlopen=yes
b7026657 12828else
6bb11ab3 12829 ac_cv_lib_dl_dlopen=no
b7026657 12830fi
81ecdfbb
RW
12831rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12833LIBS=$ac_check_lib_save_LIBS
12834fi
6bb11ab3
L
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12836$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12837if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12839else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12841$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 12842if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 12843 $as_echo_n "(cached) " >&6
c906108c 12844else
b7026657 12845 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12846LIBS="-lsvld $LIBS"
81ecdfbb 12847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12848/* end confdefs.h. */
12849
81ecdfbb
RW
12850/* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
b7026657
AC
12853#ifdef __cplusplus
12854extern "C"
12855#endif
6bb11ab3 12856char dlopen ();
b7026657
AC
12857int
12858main ()
12859{
6bb11ab3 12860return dlopen ();
b7026657
AC
12861 ;
12862 return 0;
12863}
12864_ACEOF
81ecdfbb 12865if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12866 ac_cv_lib_svld_dlopen=yes
b7026657 12867else
6bb11ab3 12868 ac_cv_lib_svld_dlopen=no
b7026657 12869fi
81ecdfbb
RW
12870rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12872LIBS=$ac_check_lib_save_LIBS
12873fi
6bb11ab3
L
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12875$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 12876if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 12877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 12878else
6bb11ab3
L
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12880$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 12881if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb
RW
12882 $as_echo_n "(cached) " >&6
12883else
6bb11ab3
L
12884 ac_check_lib_save_LIBS=$LIBS
12885LIBS="-ldld $LIBS"
81ecdfbb 12886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624 12887/* end confdefs.h. */
81ecdfbb
RW
12888
12889/* Override any GCC internal prototype to avoid an error.
12890 Use char because int might match the return type of a GCC
12891 builtin and then its argument prototype would still apply. */
12892#ifdef __cplusplus
12893extern "C"
12894#endif
6bb11ab3 12895char dld_link ();
81ecdfbb
RW
12896int
12897main ()
12898{
6bb11ab3 12899return dld_link ();
81ecdfbb
RW
12900 ;
12901 return 0;
12902}
b5bd9624 12903_ACEOF
6bb11ab3
L
12904if ac_fn_c_try_link "$LINENO"; then :
12905 ac_cv_lib_dld_dld_link=yes
12906else
12907 ac_cv_lib_dld_dld_link=no
12908fi
12909rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911LIBS=$ac_check_lib_save_LIBS
12912fi
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12914$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 12915if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
12916 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12917fi
12918
12919
12920fi
12921
12922
12923fi
12924
12925
12926fi
12927
12928
12929fi
12930
12931
12932fi
12933
12934 ;;
12935 esac
12936
12937 if test "x$lt_cv_dlopen" != xno; then
12938 enable_dlopen=yes
b5bd9624 12939 else
6bb11ab3
L
12940 enable_dlopen=no
12941 fi
12942
12943 case $lt_cv_dlopen in
12944 dlopen)
12945 save_CPPFLAGS="$CPPFLAGS"
12946 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12947
12948 save_LDFLAGS="$LDFLAGS"
12949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12950
12951 save_LIBS="$LIBS"
12952 LIBS="$lt_cv_dlopen_libs $LIBS"
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12955$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12956if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
12957 $as_echo_n "(cached) " >&6
12958else
12959 if test "$cross_compiling" = yes; then :
12960 lt_cv_dlopen_self=cross
12961else
12962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12963 lt_status=$lt_dlunknown
12964 cat > conftest.$ac_ext <<_LT_EOF
68ed2854 12965#line 12965 "configure"
6bb11ab3
L
12966#include "confdefs.h"
12967
12968#if HAVE_DLFCN_H
12969#include <dlfcn.h>
12970#endif
12971
12972#include <stdio.h>
12973
12974#ifdef RTLD_GLOBAL
12975# define LT_DLGLOBAL RTLD_GLOBAL
12976#else
12977# ifdef DL_GLOBAL
12978# define LT_DLGLOBAL DL_GLOBAL
12979# else
12980# define LT_DLGLOBAL 0
12981# endif
12982#endif
12983
12984/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12985 find out it does not work in some platform. */
12986#ifndef LT_DLLAZY_OR_NOW
12987# ifdef RTLD_LAZY
12988# define LT_DLLAZY_OR_NOW RTLD_LAZY
12989# else
12990# ifdef DL_LAZY
12991# define LT_DLLAZY_OR_NOW DL_LAZY
12992# else
12993# ifdef RTLD_NOW
12994# define LT_DLLAZY_OR_NOW RTLD_NOW
12995# else
12996# ifdef DL_NOW
12997# define LT_DLLAZY_OR_NOW DL_NOW
12998# else
12999# define LT_DLLAZY_OR_NOW 0
13000# endif
13001# endif
13002# endif
13003# endif
13004#endif
13005
13006/* When -fvisbility=hidden is used, assume the code has been annotated
13007 correspondingly for the symbols needed. */
13008#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13009void fnord () __attribute__((visibility("default")));
13010#endif
13011
13012void fnord () { int i=42; }
13013int main ()
13014{
13015 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016 int status = $lt_dlunknown;
13017
13018 if (self)
13019 {
13020 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13021 else
13022 {
13023 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13024 else puts (dlerror ());
13025 }
13026 /* dlclose (self); */
13027 }
13028 else
13029 puts (dlerror ());
13030
13031 return status;
13032}
13033_LT_EOF
13034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13035 (eval $ac_link) 2>&5
13036 ac_status=$?
13037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13039 (./conftest; exit; ) >&5 2>/dev/null
13040 lt_status=$?
13041 case x$lt_status in
13042 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13043 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13044 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13045 esac
13046 else :
13047 # compilation failed
13048 lt_cv_dlopen_self=no
b5bd9624 13049 fi
b5bd9624 13050fi
6bb11ab3
L
13051rm -fr conftest*
13052
13053
b5bd9624 13054fi
6bb11ab3
L
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13056$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 13057
6bb11ab3
L
13058 if test "x$lt_cv_dlopen_self" = xyes; then
13059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13061$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 13062if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 13063 $as_echo_n "(cached) " >&6
b5bd9624 13064else
6bb11ab3
L
13065 if test "$cross_compiling" = yes; then :
13066 lt_cv_dlopen_self_static=cross
13067else
13068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13069 lt_status=$lt_dlunknown
13070 cat > conftest.$ac_ext <<_LT_EOF
68ed2854 13071#line 13071 "configure"
6bb11ab3
L
13072#include "confdefs.h"
13073
13074#if HAVE_DLFCN_H
13075#include <dlfcn.h>
13076#endif
13077
13078#include <stdio.h>
13079
13080#ifdef RTLD_GLOBAL
13081# define LT_DLGLOBAL RTLD_GLOBAL
13082#else
13083# ifdef DL_GLOBAL
13084# define LT_DLGLOBAL DL_GLOBAL
13085# else
13086# define LT_DLGLOBAL 0
13087# endif
13088#endif
13089
13090/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13091 find out it does not work in some platform. */
13092#ifndef LT_DLLAZY_OR_NOW
13093# ifdef RTLD_LAZY
13094# define LT_DLLAZY_OR_NOW RTLD_LAZY
13095# else
13096# ifdef DL_LAZY
13097# define LT_DLLAZY_OR_NOW DL_LAZY
13098# else
13099# ifdef RTLD_NOW
13100# define LT_DLLAZY_OR_NOW RTLD_NOW
13101# else
13102# ifdef DL_NOW
13103# define LT_DLLAZY_OR_NOW DL_NOW
13104# else
13105# define LT_DLLAZY_OR_NOW 0
13106# endif
13107# endif
13108# endif
13109# endif
13110#endif
13111
13112/* When -fvisbility=hidden is used, assume the code has been annotated
13113 correspondingly for the symbols needed. */
13114#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13115void fnord () __attribute__((visibility("default")));
13116#endif
13117
13118void fnord () { int i=42; }
13119int main ()
13120{
13121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13122 int status = $lt_dlunknown;
13123
13124 if (self)
13125 {
13126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13127 else
13128 {
13129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13130 else puts (dlerror ());
13131 }
13132 /* dlclose (self); */
13133 }
13134 else
13135 puts (dlerror ());
13136
13137 return status;
13138}
13139_LT_EOF
13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13141 (eval $ac_link) 2>&5
13142 ac_status=$?
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13145 (./conftest; exit; ) >&5 2>/dev/null
13146 lt_status=$?
13147 case x$lt_status in
13148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13150 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13151 esac
13152 else :
13153 # compilation failed
13154 lt_cv_dlopen_self_static=no
13155 fi
b5bd9624 13156fi
6bb11ab3
L
13157rm -fr conftest*
13158
13159
b5bd9624 13160fi
6bb11ab3
L
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13162$as_echo "$lt_cv_dlopen_self_static" >&6; }
13163 fi
13164
13165 CPPFLAGS="$save_CPPFLAGS"
13166 LDFLAGS="$save_LDFLAGS"
13167 LIBS="$save_LIBS"
13168 ;;
13169 esac
13170
13171 case $lt_cv_dlopen_self in
13172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13173 *) enable_dlopen_self=unknown ;;
13174 esac
13175
13176 case $lt_cv_dlopen_self_static in
13177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13178 *) enable_dlopen_self_static=unknown ;;
13179 esac
13180fi
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198striplib=
13199old_striplib=
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13201$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13202if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13203 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13204 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13206$as_echo "yes" >&6; }
13207else
13208# FIXME - insert some real tests, host_os isn't really good enough
13209 case $host_os in
13210 darwin*)
13211 if test -n "$STRIP" ; then
13212 striplib="$STRIP -x"
13213 old_striplib="$STRIP -S"
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215$as_echo "yes" >&6; }
13216 else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218$as_echo "no" >&6; }
13219 fi
13220 ;;
13221 *)
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
13224 ;;
13225 esac
13226fi
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239 # Report which library types will actually be built
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13241$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13243$as_echo "$can_build_shared" >&6; }
13244
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13246$as_echo_n "checking whether to build shared libraries... " >&6; }
13247 test "$can_build_shared" = "no" && enable_shared=no
13248
13249 # On AIX, shared libraries and static libraries use the same namespace, and
13250 # are all built from PIC.
13251 case $host_os in
13252 aix3*)
13253 test "$enable_shared" = yes && enable_static=no
13254 if test -n "$RANLIB"; then
13255 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13256 postinstall_cmds='$RANLIB $lib'
13257 fi
13258 ;;
13259
13260 aix[4-9]*)
13261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13262 test "$enable_shared" = yes && enable_static=no
13263 fi
13264 ;;
13265 esac
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13267$as_echo "$enable_shared" >&6; }
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13270$as_echo_n "checking whether to build static libraries... " >&6; }
13271 # Make sure either enable_shared or enable_static is yes.
13272 test "$enable_shared" = yes || enable_static=yes
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13274$as_echo "$enable_static" >&6; }
13275
13276
13277
13278
13279fi
13280ac_ext=c
13281ac_cpp='$CPP $CPPFLAGS'
13282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285
13286CC="$lt_save_CC"
13287
13288
13289
13290
13291
13292
13293
13294
13295
b5bd9624 13296
b5bd9624 13297
b5bd9624 13298
b5bd9624 13299
6bb11ab3
L
13300 ac_config_commands="$ac_config_commands libtool"
13301
13302
13303
13304
13305# Only expand once:
13306
13307
5912fadd 13308
b5bd9624 13309
c906108c
SS
13310. ${srcdir}/../../bfd/configure.host
13311
13312
13313
31e6ad7d
MF
13314
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13316$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13317 # Check whether --enable-maintainer-mode was given.
81ecdfbb 13318if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
13319 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13320else
13321 USE_MAINTAINER_MODE=no
c906108c 13322fi
31e6ad7d
MF
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13325$as_echo "$USE_MAINTAINER_MODE" >&6; }
13326 if test $USE_MAINTAINER_MODE = yes; then
13327 MAINTAINER_MODE_TRUE=
13328 MAINTAINER_MODE_FALSE='#'
c906108c 13329else
31e6ad7d
MF
13330 MAINTAINER_MODE_TRUE='#'
13331 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
13332fi
13333
31e6ad7d
MF
13334 MAINT=$MAINTAINER_MODE_TRUE
13335
13336
c906108c
SS
13337
13338
ce39bd38
MF
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13340$as_echo_n "checking for sim debug setting... " >&6; }
13341sim_debug="0"
81ecdfbb
RW
13342# Check whether --enable-sim-debug was given.
13343if test "${enable_sim_debug+set}" = set; then :
13344 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
13345 yes) sim_debug="7";;
13346 no) sim_debug="0";;
13347 *) sim_debug="($enableval)";;
c906108c 13348esac
c906108c 13349fi
ce39bd38
MF
13350if test "$sim_debug" != "0"; then
13351
13352cat >>confdefs.h <<_ACEOF
13353#define DEBUG $sim_debug
13354_ACEOF
13355
81ecdfbb
RW
13356fi
13357
ce39bd38
MF
13358cat >>confdefs.h <<_ACEOF
13359#define WITH_DEBUG $sim_debug
13360_ACEOF
13361
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13363$as_echo "$sim_debug" >&6; }
c906108c
SS
13364
13365
ce39bd38
MF
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13367$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13368sim_stdio="0"
81ecdfbb
RW
13369# Check whether --enable-sim-stdio was given.
13370if test "${enable_sim_stdio+set}" = set; then :
13371 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
13372 yes) sim_stdio="DO_USE_STDIO";;
13373 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 13374 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
c906108c 13375esac
81ecdfbb
RW
13376fi
13377
ce39bd38
MF
13378cat >>confdefs.h <<_ACEOF
13379#define WITH_STDIO $sim_stdio
13380_ACEOF
13381
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13383$as_echo "$sim_stdio" >&6; }
c906108c
SS
13384
13385
ce39bd38
MF
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13387$as_echo_n "checking for sim trace settings... " >&6; }
13388sim_trace="~TRACE_debug"
81ecdfbb
RW
13389# Check whether --enable-sim-trace was given.
13390if test "${enable_sim_trace+set}" = set; then :
13391 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
13392 yes) sim_trace="-1";;
13393 no) sim_trace="0";;
c906108c 13394 [-0-9]*)
ce39bd38 13395 sim_trace="'(${enableval})'";;
2232061b 13396 [[:lower:]]*)
c906108c
SS
13397 sim_trace=""
13398 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13399 if test x"$sim_trace" = x; then
ce39bd38 13400 sim_trace="(TRACE_$x"
c906108c
SS
13401 else
13402 sim_trace="${sim_trace}|TRACE_$x"
13403 fi
13404 done
ce39bd38 13405 sim_trace="$sim_trace)" ;;
c906108c 13406esac
81ecdfbb
RW
13407fi
13408
ce39bd38
MF
13409cat >>confdefs.h <<_ACEOF
13410#define WITH_TRACE $sim_trace
13411_ACEOF
13412
13413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13414$as_echo "$sim_trace" >&6; }
c906108c
SS
13415
13416
ce39bd38
MF
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13418$as_echo_n "checking for sim profile settings... " >&6; }
13419profile="1"
13420sim_profile="-1"
81ecdfbb
RW
13421# Check whether --enable-sim-profile was given.
13422if test "${enable_sim_profile+set}" = set; then :
13423 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
13424 yes) profile="1" sim_profile="-1";;
13425 no) profile="0" sim_profile="0";;
c906108c 13426 [-0-9]*)
ce39bd38 13427 profile="(${enableval})" sim_profile="(${enableval})";;
c906108c 13428 [a-z]*)
ce39bd38 13429 profile="1"
c906108c
SS
13430 sim_profile=""
13431 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13432 if test x"$sim_profile" = x; then
ce39bd38 13433 sim_profile="(PROFILE_$x"
c906108c
SS
13434 else
13435 sim_profile="${sim_profile}|PROFILE_$x"
13436 fi
13437 done
ce39bd38 13438 sim_profile="$sim_profile)" ;;
c906108c 13439esac
81ecdfbb
RW
13440fi
13441
ce39bd38
MF
13442cat >>confdefs.h <<_ACEOF
13443#define PROFILE $profile
13444_ACEOF
c906108c
SS
13445
13446
ce39bd38
MF
13447cat >>confdefs.h <<_ACEOF
13448#define WITH_PROFILE $sim_profile
13449_ACEOF
13450
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13452$as_echo "$sim_profile" >&6; }
13453
13454
13455
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13457$as_echo_n "checking whether to enable sim asserts... " >&6; }
13458sim_assert="1"
35656e95
MF
13459# Check whether --enable-sim-assert was given.
13460if test "${enable_sim_assert+set}" = set; then :
13461 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
13462 yes) sim_assert="1";;
13463 no) sim_assert="0";;
d0ac1c44 13464 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 13465esac
35656e95
MF
13466fi
13467
ce39bd38
MF
13468cat >>confdefs.h <<_ACEOF
13469#define WITH_ASSERT $sim_assert
13470_ACEOF
13471
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13473$as_echo "$sim_assert" >&6; }
13474
35656e95 13475
ce39bd38
MF
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13477$as_echo_n "checking default sim environment setting... " >&6; }
13478sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
13479# Check whether --enable-sim-environment was given.
13480if test "${enable_sim_environment+set}" = set; then :
13481 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
13482 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13483 user | USER) sim_environment="USER_ENVIRONMENT";;
13484 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13485 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 13486 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 13487esac
16f7876d
MF
13488fi
13489
ce39bd38
MF
13490cat >>confdefs.h <<_ACEOF
13491#define WITH_ENVIRONMENT $sim_environment
13492_ACEOF
13493
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13495$as_echo "$sim_environment" >&6; }
13496
16f7876d 13497
347fe5bb
MF
13498sim_inline="-DDEFAULT_INLINE=0"
13499# Check whether --enable-sim-inline was given.
13500if test "${enable_sim_inline+set}" = set; then :
13501 enableval=$enable_sim_inline; sim_inline=""
13502case "$enableval" in
13503 no) sim_inline="-DDEFAULT_INLINE=0";;
13504 0) sim_inline="-DDEFAULT_INLINE=0";;
13505 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13506 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13507 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13508 new_flag=""
13509 case "$x" in
13510 *_INLINE=*) new_flag="-D$x";;
13511 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13512 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13513 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13514 esac
13515 if test x"$sim_inline" = x""; then
13516 sim_inline="$new_flag"
13517 else
13518 sim_inline="$sim_inline $new_flag"
13519 fi
13520 done;;
13521esac
13522if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13523 echo "Setting inline flags = $sim_inline" 6>&1
13524fi
13525fi
13526
13527
13528
6efef468 13529
81ecdfbb
RW
13530# Check whether --with-pkgversion was given.
13531if test "${with_pkgversion+set}" = set; then :
13532 withval=$with_pkgversion; case "$withval" in
d0ac1c44 13533 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
13534 no) PKGVERSION= ;;
13535 *) PKGVERSION="($withval) " ;;
13536 esac
13537else
bf12d44e 13538 PKGVERSION="(SIM) "
6efef468 13539
81ecdfbb
RW
13540fi
13541
6efef468
JM
13542
13543
13544
13545
81ecdfbb
RW
13546# Check whether --with-bugurl was given.
13547if test "${with_bugurl+set}" = set; then :
13548 withval=$with_bugurl; case "$withval" in
d0ac1c44 13549 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
13550 no) BUGURL=
13551 ;;
13552 *) BUGURL="$withval"
13553 ;;
13554 esac
13555else
dfb856ba 13556 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 13557
81ecdfbb
RW
13558fi
13559
6efef468
JM
13560 case ${BUGURL} in
13561 "")
13562 REPORT_BUGS_TO=
13563 REPORT_BUGS_TEXI=
13564 ;;
13565 *)
13566 REPORT_BUGS_TO="<$BUGURL>"
13567 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13568 ;;
13569 esac;
13570
13571
13572
13573
13574cat >>confdefs.h <<_ACEOF
13575#define PKGVERSION "$PKGVERSION"
13576_ACEOF
13577
13578
13579cat >>confdefs.h <<_ACEOF
13580#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13581_ACEOF
13582
13583
81ecdfbb
RW
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13585$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 13586if ${ac_cv_type_signal+:} false; then :
81ecdfbb 13587 $as_echo_n "(cached) " >&6
c906108c 13588else
81ecdfbb 13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 13590/* end confdefs.h. */
c906108c
SS
13591#include <sys/types.h>
13592#include <signal.h>
c906108c 13593
b7026657
AC
13594int
13595main ()
13596{
81ecdfbb 13597return *(signal (0, 0)) (0) == 1;
b7026657
AC
13598 ;
13599 return 0;
13600}
13601_ACEOF
81ecdfbb
RW
13602if ac_fn_c_try_compile "$LINENO"; then :
13603 ac_cv_type_signal=int
c906108c 13604else
81ecdfbb 13605 ac_cv_type_signal=void
c906108c 13606fi
81ecdfbb 13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13608fi
81ecdfbb
RW
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13610$as_echo "$ac_cv_type_signal" >&6; }
c906108c 13611
b7026657 13612cat >>confdefs.h <<_ACEOF
c906108c 13613#define RETSIGTYPE $ac_cv_type_signal
b7026657 13614_ACEOF
c906108c
SS
13615
13616
cd0fc7c3
SS
13617
13618
c906108c 13619
c906108c
SS
13620
13621
c906108c
SS
13622wire_alignment="NONSTRICT_ALIGNMENT"
13623default_alignment=""
13624
81ecdfbb
RW
13625# Check whether --enable-sim-alignment was given.
13626if test "${enable_sim_alignment+set}" = set; then :
13627 enableval=$enable_sim_alignment; case "${enableval}" in
c906108c
SS
13628 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
13629 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
13630 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
13631 yes) if test x"$wire_alignment" != x; then
13632 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13633 else
13634 if test x"$default_alignment" != x; then
13635 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
13636 else
13637 echo "No hard-wired alignment for target $target" 1>&6
13638 sim_alignment="-DWITH_ALIGNMENT=0"
13639 fi
13640 fi;;
13641 no) if test x"$default_alignment" != x; then
13642 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13643 else
13644 if test x"$wire_alignment" != x; then
13645 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
13646 else
13647 echo "No default alignment for target $target" 1>&6
13648 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
13649 fi
13650 fi;;
d0ac1c44 13651 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
c906108c
SS
13652esac
13653if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
13654 echo "Setting alignment flags = $sim_alignment" 6>&1
13655fi
13656else
13657 if test x"$default_alignment" != x; then
13658 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13659else
13660 if test x"$wire_alignment" != x; then
13661 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13662 else
13663 sim_alignment=
13664 fi
13665fi
81ecdfbb
RW
13666fi
13667
c906108c 13668
2232061b
MF
13669# Check whether --enable-werror was given.
13670if test "${enable_werror+set}" = set; then :
13671 enableval=$enable_werror; case "${enableval}" in
13672 yes | y) ERROR_ON_WARNING="yes" ;;
13673 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 13674 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
13675 esac
13676fi
13677
13678
13679# Enable -Werror by default when using gcc
13680if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13681 ERROR_ON_WARNING=yes
51216631 13682fi
2232061b
MF
13683
13684WERROR_CFLAGS=""
2232061b 13685
2232061b 13686build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 13687-Wpointer-sign \
2232061b 13688-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
13689-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13690-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13691-Wold-style-declaration -Wold-style-definition"
2232061b
MF
13692
13693# Enable -Wno-format by default when using gcc on mingw since many
13694# GCC versions complain about %I64.
13695case "${host}" in
13696 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 13697 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
13698esac
13699
81ecdfbb
RW
13700# Check whether --enable-build-warnings was given.
13701if test "${enable_build_warnings+set}" = set; then :
13702 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
13703 yes) ;;
13704 no) build_warnings="-w";;
13705 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13706 build_warnings="${build_warnings} ${t}";;
13707 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13708 build_warnings="${t} ${build_warnings}";;
13709 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13710esac
13711if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13712 echo "Setting compiler warning flags = $build_warnings" 6>&1
13713fi
81ecdfbb
RW
13714fi
13715# Check whether --enable-sim-build-warnings was given.
13716if test "${enable_sim_build_warnings+set}" = set; then :
13717 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
13718 yes) ;;
13719 no) build_warnings="-w";;
13720 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 13721 build_warnings="${build_warnings} ${t}";;
c906108c 13722 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
13723 build_warnings="${t} ${build_warnings}";;
13724 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
13725esac
13726if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
13727 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13728fi
81ecdfbb
RW
13729fi
13730WARN_CFLAGS=""
d4f3574e
SS
13731if test "x${build_warnings}" != x -a "x$GCC" = xyes
13732then
81ecdfbb
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13734$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
13735 # Separate out the -Werror flag as some files just cannot be
13736 # compiled with it enabled.
13737 for w in ${build_warnings}; do
13738 case $w in
13739 -Werr*) WERROR_CFLAGS=-Werror ;;
13740 *) # Check that GCC accepts it
13741 saved_CFLAGS="$CFLAGS"
13742 CFLAGS="$CFLAGS $w"
81ecdfbb 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 13744/* end confdefs.h. */
c8cca39f 13745
b7026657
AC
13746int
13747main ()
13748{
c8cca39f 13749
b7026657
AC
13750 ;
13751 return 0;
13752}
13753_ACEOF
81ecdfbb 13754if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 13755 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 13756fi
81ecdfbb 13757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
13758 CFLAGS="$saved_CFLAGS"
13759 esac
13760 done
2232061b
MF
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13762$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
13763fi
13764
13765
e6c674b8 13766default_sim_reserved_bits="1"
81ecdfbb
RW
13767# Check whether --enable-sim-reserved-bits was given.
13768if test "${enable_sim_reserved_bits+set}" = set; then :
13769 enableval=$enable_sim_reserved_bits; case "${enableval}" in
e6c674b8
CD
13770 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
13771 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 13772 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
e6c674b8
CD
13773esac
13774if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
13775 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
13776fi
13777else
13778 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
13779fi
13780
e6c674b8 13781
c906108c
SS
13782# DEPRECATED
13783#
13784# Instead of defining a `subtarget' macro, code should be checking
13785# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
13786# in question.
13787#
13788case "${target}" in
4c54fc26 13789 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 13790 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
109ad085 13791 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
cc220243 13792 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1e799e28
CD
13793 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
13794 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
13795 *) SIM_SUBTARGET="";;
13796esac
13797
13798
13799
13800
13801#
13802# Select the byte order of the target
13803#
13804mips_endian=
13805default_endian=
13806case "${target}" in
1ac72f06
MF
13807 mips64el*-*-*) mips_endian=LITTLE ;;
13808 mips64vr*el-*-*) default_endian=LITTLE ;;
13809 mips64*-*-*) default_endian=BIG ;;
13810 mips16*-*-*) default_endian=BIG ;;
13811 mipsisa32*-*-*) default_endian=BIG ;;
13812 mipsisa64*-*-*) default_endian=BIG ;;
13813 mips*-*-*) default_endian=BIG ;;
13814 *) default_endian=BIG ;;
c906108c
SS
13815esac
13816
13817wire_endian="$mips_endian"
13818default_endian="$default_endian"
81ecdfbb
RW
13819# Check whether --enable-sim-endian was given.
13820if test "${enable_sim_endian+set}" = set; then :
13821 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
13822 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
13823 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
c906108c 13824 yes) if test x"$wire_endian" != x; then
1ac72f06 13825 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c 13826 else
1ac72f06
MF
13827 if test x"$default_endian" != x; then
13828 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
13829 else
13830 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 13831 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
13832 fi
13833 fi;;
13834 no) if test x"$default_endian" != x; then
1ac72f06 13835 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
13836 else
13837 if test x"$wire_endian" != x; then
1ac72f06 13838 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
13839 else
13840 echo "No default endian for target $target" 1>&6
1ac72f06 13841 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
13842 fi
13843 fi;;
d0ac1c44 13844 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
13845esac
13846if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
13847 echo "Setting endian flags = $sim_endian" 6>&1
13848fi
13849else
13850 if test x"$default_endian" != x; then
1ac72f06 13851 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
13852else
13853 if test x"$wire_endian" != x; then
1ac72f06 13854 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
13855 else
13856 sim_endian=
13857 fi
13858fi
81ecdfbb
RW
13859fi
13860
c906108c
SS
13861
13862
13863
13864#
13865# Select the bitsize of the target
13866#
13867mips_addr_bitsize=
13868case "${target}" in
109ad085 13869 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
cc220243 13870 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
13871 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
13872 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
13873 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
13874 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
13875 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
13876 *) mips_bitsize=64 ; mips_msb=63 ;;
13877esac
13878wire_word_bitsize="$mips_bitsize"
13879wire_word_msb="$mips_msb"
13880wire_address_bitsize="$mips_addr_bitsize"
13881wire_cell_bitsize=""
81ecdfbb
RW
13882# Check whether --enable-sim-bitsize was given.
13883if test "${enable_sim_bitsize+set}" = set; then :
13884 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
13885case "${enableval}" in
13886 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
13887 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
13888 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
13889 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
13890 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
13891 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
13892 else
13893 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
13894 fi ;;
13895 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
13896 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
13897 else
13898 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
13899 fi ;;
d0ac1c44 13900 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
13901esac
13902# address bitsize
13903tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
13904case x"${tmp}" in
13905 x ) ;;
13906 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
13907 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 13908 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
13909esac
13910# cell bitsize
13911tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
13912case x"${tmp}" in
13913 x ) ;;
13914 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
13915 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 13916 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
13917esac
13918if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
13919 echo "Setting bitsize flags = $sim_bitsize" 6>&1
13920fi
13921else
13922 sim_bitsize=""
13923if test x"$wire_word_bitsize" != x; then
13924 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
13925fi
13926if test x"$wire_word_msb" != x; then
13927 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
13928fi
13929if test x"$wire_address_bitsize" != x; then
13930 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
13931fi
13932if test x"$wire_cell_bitsize" != x; then
13933 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
13934fi
81ecdfbb
RW
13935fi
13936
c906108c
SS
13937
13938
13939
13940#
13941# Select the floating hardware support of the target
13942#
13943mips_fpu=HARDWARE_FLOATING_POINT
13944mips_fpu_bitsize=
13945case "${target}" in
4b5d35ee 13946 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 13947 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
cc220243 13948 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
13949 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
13950 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
13951 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
13952 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
13953 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
13954 *) mips_fpu=HARD_FLOATING_POINT ;;
13955esac
13956
13957default_sim_float="$mips_fpu"
13958default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
13959# Check whether --enable-sim-float was given.
13960if test "${enable_sim_float+set}" = set; then :
13961 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
13962 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
13963 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
13964 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
13965 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
d0ac1c44 13966 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
13967esac
13968if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
13969 echo "Setting float flags = $sim_float" 6>&1
13970fi
13971else
b7026657 13972
c906108c
SS
13973sim_float=
13974if test x"${default_sim_float}" != x""; then
13975 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
13976fi
13977if test x"${default_sim_float_bitsize}" != x""; then
13978 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
13979fi
13980
81ecdfbb
RW
13981fi
13982
c906108c
SS
13983
13984
13985
c906108c
SS
13986#
13987# Select the IGEN architecture
13988#
13989sim_gen=IGEN
13990sim_igen_machine="-M mipsIV"
139181c8 13991sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
13992sim_igen_filter="32,64,f"
13993sim_m16_filter="16"
4c54fc26
CD
13994sim_mach_default="mips8000"
13995
c906108c
SS
13996case "${target}" in
13997 mips*tx39*) sim_gen=IGEN
13998 sim_igen_filter="32,f"
13999 sim_igen_machine="-M r3900"
14000 ;;
14001 mips64vr43*-*-*) sim_gen=IGEN
14002 sim_igen_machine="-M mipsIV"
4c54fc26 14003 sim_mach_default="mips8000"
c906108c
SS
14004 ;;
14005 mips64vr5*-*-*) sim_gen=IGEN
14006 sim_igen_machine="-M vr5000"
4c54fc26 14007 sim_mach_default="mips5000"
c906108c
SS
14008 ;;
14009 mips64vr41*) sim_gen=M16
14010 sim_igen_machine="-M vr4100"
14011 sim_m16_machine="-M vr4100"
14012 sim_igen_filter="32,64,f"
14013 sim_m16_filter="16"
4c54fc26 14014 sim_mach_default="mips4100"
c906108c 14015 ;;
4c54fc26
CD
14016 mips64vr-*-* | mips64vrel-*-*)
14017 sim_gen=MULTI
14018 sim_multi_configs="\
14019 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
14020 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
14021 vr5000:mipsIV:32,64,f:mips4300,mips5000\
14022 vr5400:mipsIV,vr5400:32,64,f:mips5400\
14023 vr5500:mipsIV,vr5500:32,64,f:mips5500"
14024 sim_multi_default=mips5000
14025 ;;
cc220243 14026 mips*-sde-elf* | mips*-mti-elf*)
8e394ffc
AB
14027 sim_gen=MULTI
14028 sim_multi_configs="\
14029 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
14030 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
14031 sim_multi_default=mipsisa64r2
109ad085 14032 ;;
c906108c
SS
14033 mips64*-*-*) sim_igen_filter="32,64,f"
14034 sim_gen=IGEN
14035 ;;
14036 mips16*-*-*) sim_gen=M16
14037 sim_igen_filter="32,64,f"
14038 sim_m16_filter="16"
14039 ;;
8e394ffc
AB
14040 mipsisa32r2*-*-*) sim_gen=MULTI
14041 sim_multi_configs="\
14042 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
14043 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
14044 sim_multi_default=mipsisa32r2
e70cb6cd 14045 ;;
d5fb0879
RS
14046 mipsisa32*-*-*) sim_gen=M16
14047 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
14048 sim_m16_machine="-M mips16,mips16e,mips32"
14049 sim_igen_filter="32,f"
14050 sim_mach_default="mipsisa32"
1e799e28 14051 ;;
d5fb0879
RS
14052 mipsisa64r2*-*-*) sim_gen=M16
14053 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
14054 sim_m16_machine="-M mips16,mips16e,mips64r2"
14055 sim_igen_filter="32,64,f"
14056 sim_mach_default="mipsisa64r2"
e70cb6cd 14057 ;;
7cbea089 14058 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 14059 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 14060 sim_igen_filter="32,64,f"
4c54fc26 14061 sim_mach_default="mips_sb1"
7cbea089 14062 ;;
d5fb0879
RS
14063 mipsisa64*-*-*) sim_gen=M16
14064 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
14065 sim_m16_machine="-M mips16,mips16e,mips64"
14066 sim_igen_filter="32,64,f"
14067 sim_mach_default="mipsisa64"
1e799e28 14068 ;;
109ad085 14069 mips*lsi*) sim_gen=M16
c906108c
SS
14070 sim_igen_machine="-M mipsIII,mips16"
14071 sim_m16_machine="-M mips16,mipsIII"
14072 sim_igen_filter="32,f"
14073 sim_m16_filter="16"
4c54fc26 14074 sim_mach_default="mips4000"
109ad085 14075 ;;
c906108c
SS
14076 mips*-*-*) sim_gen=IGEN
14077 sim_igen_filter="32,f"
14078 ;;
14079esac
4c54fc26
CD
14080
14081# The MULTI generator can combine several simulation engines into one.
14082# executable. A configuration which uses the MULTI should set two
14083# variables: ${sim_multi_configs} and ${sim_multi_default}.
14084#
14085# ${sim_multi_configs} is the list of engines to build. Each
14086# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
14087# where:
14088#
14089# - NAME is a C-compatible prefix for the engine,
14090# - MACHINE is a -M argument,
14091# - FILTER is a -F argument, and
14092# - BFDMACHS is a comma-separated list of bfd machines that the
14093# simulator can run.
14094#
14095# Each entry will have a separate simulation engine whose prefix is
14096# m32<NAME>. If the machine list includes "mips16", there will also
14097# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
14098# generated using the same machine list as the 32-bit version,
14099# but the filter will be "16" instead of FILTER.
14100#
14101# The simulator compares the bfd mach against BFDMACHS to decide
14102# which engine to use. Entries in BFDMACHS should be bfd_mach
14103# values with "bfd_mach_" removed. ${sim_multi_default} says
14104# which entry should be the default.
14105if test ${sim_gen} = MULTI; then
14106
14107 # Simple sanity check.
14108 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
d0ac1c44 14109 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
14110 fi
14111
14112 # Start in a known state.
14113 rm -f multi-include.h multi-run.c
14114 sim_multi_flags=
14115 sim_multi_src=
8e394ffc 14116 sim_multi_obj=
4c54fc26
CD
14117 sim_multi_igen_configs=
14118 sim_seen_default=no
14119
14120 cat << __EOF__ > multi-run.c
14121/* Main entry point for MULTI simulators.
46f900c0 14122 Copyright (C) 2003-2021 Free Software Foundation, Inc.
4c54fc26
CD
14123
14124 This program is free software; you can redistribute it and/or modify
14125 it under the terms of the GNU General Public License as published by
35ee6e1e 14126 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
14127 (at your option) any later version.
14128
14129 This program is distributed in the hope that it will be useful,
14130 but WITHOUT ANY WARRANTY; without even the implied warranty of
14131 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14132 GNU General Public License for more details.
14133
14134 You should have received a copy of the GNU General Public License
35ee6e1e 14135 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
14136
14137 --
14138
14139 This file was generated by sim/mips/configure. */
14140
14141#include "sim-main.h"
14142#include "multi-include.h"
8e394ffc
AB
14143#include "elf-bfd.h"
14144#include "elf/mips.h"
4c54fc26
CD
14145
14146#define SD sd
14147#define CPU cpu
14148
14149void
14150sim_engine_run (SIM_DESC sd,
14151 int next_cpu_nr,
14152 int nr_cpus,
14153 int signal) /* ignore */
14154{
14155 int mach;
14156
14157 if (STATE_ARCHITECTURE (sd) == NULL)
14158 mach = bfd_mach_${sim_multi_default};
1554f758 14159 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
8e394ffc
AB
14160 & EF_MIPS_ARCH_ASE_MICROMIPS)
14161 mach = bfd_mach_mips_micromips;
4c54fc26
CD
14162 else
14163 mach = STATE_ARCHITECTURE (SD)->mach;
14164
14165 switch (mach)
14166 {
14167__EOF__
14168
14169 for fc in ${sim_multi_configs}; do
14170
14171 # Split up the entry. ${c} contains the first three elements.
14172 # Note: outer sqaure brackets are m4 quotes.
14173 c=`echo ${fc} | sed 's/:[^:]*$//'`
14174 bfdmachs=`echo ${fc} | sed 's/.*://'`
14175 name=`echo ${c} | sed 's/:.*//'`
14176 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
14177 filter=`echo ${c} | sed 's/.*://'`
14178
14179 # Build the following lists:
14180 #
14181 # sim_multi_flags: all -M and -F flags used by the simulator
14182 # sim_multi_src: all makefile-generated source files
14183 # sim_multi_obj: the objects for ${sim_multi_src}
14184 # sim_multi_igen_configs: igen configuration strings.
14185 #
14186 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
14187 # or m16) followed by the NAME, MACHINE and FILTER part of
14188 # the ${sim_multi_configs} entry.
14189 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
14190
8e394ffc 14191 # Check whether special handling is needed.
4c54fc26
CD
14192 case ${c} in
14193 *:*mips16*:*)
14194 # Run igen twice, once for normal mode and once for mips16.
14195 ws="m32 m16"
14196
14197 # The top-level function for the mips16 simulator is
14198 # in a file m16${name}_run.c, generated by the
14199 # tmp-run-multi Makefile rule.
14200 sim_multi_src="${sim_multi_src} m16${name}_run.c"
14201 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
14202 sim_multi_flags="${sim_multi_flags} -F 16"
14203 ;;
8e394ffc
AB
14204 *:*micromips32*:*)
14205 # Run igen thrice, once for micromips32, once for micromips16,
14206 # and once for m32.
14207 ws="micromips_m32 micromips16 micromips32"
14208
14209 # The top-level function for the micromips simulator is
14210 # in a file micromips${name}_run.c, generated by the
14211 # tmp-run-multi Makefile rule.
14212 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
14213 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
14214 sim_multi_flags="${sim_multi_flags} -F 16,32"
14215 ;;
14216 *:*micromips64*:*)
14217 # Run igen thrice, once for micromips64, once for micromips16,
14218 # and once for m64.
14219 ws="micromips_m64 micromips16 micromips64"
14220
14221 # The top-level function for the micromips simulator is
14222 # in a file micromips${name}_run.c, generated by the
14223 # tmp-run-multi Makefile rule.
14224 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
14225 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
14226 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
14227 ;;
4c54fc26
CD
14228 *)
14229 ws=m32
14230 ;;
14231 esac
14232
14233 # Now add the list of igen-generated files to ${sim_multi_src}
14234 # and ${sim_multi_obj}.
14235 for w in ${ws}; do
14236 for base in engine icache idecode model semantics support; do
14237 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
14238 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
14239 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
14240 done
14241 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
14242 done
14243
14244 # Add an include for the engine.h file. This file declares the
14245 # top-level foo_engine_run() function.
14246 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
14247
14248 # Add case statements for this engine to sim_engine_run().
14249 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
14250 echo " case bfd_mach_${mach}:" >> multi-run.c
14251 if test ${mach} = ${sim_multi_default}; then
14252 echo " default:" >> multi-run.c
14253 sim_seen_default=yes
14254 fi
14255 done
14256 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
14257 >> multi-run.c
14258 echo " break;" >> multi-run.c
14259 done
14260
14261 # Check whether we added a 'default:' label.
14262 if test ${sim_seen_default} = no; then
d0ac1c44 14263 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
14264 fi
14265
14266 cat << __EOF__ >> multi-run.c
14267 }
14268}
14269
14270int
14271mips_mach_multi (SIM_DESC sd)
14272{
14273 if (STATE_ARCHITECTURE (sd) == NULL)
14274 return bfd_mach_${sim_multi_default};
14275
14276 switch (STATE_ARCHITECTURE (SD)->mach)
14277 {
14278__EOF__
14279
14280 # Add case statements for this engine to mips_mach_multi().
14281 for fc in ${sim_multi_configs}; do
14282
14283 # Split up the entry. ${c} contains the first three elements.
14284 # Note: outer sqaure brackets are m4 quotes.
14285 c=`echo ${fc} | sed 's/:[^:]*$//'`
14286 bfdmachs=`echo ${fc} | sed 's/.*://'`
14287
14288 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
14289 echo " case bfd_mach_${mach}:" >> multi-run.c
14290 done
14291 done
14292
14293 cat << __EOF__ >> multi-run.c
14294 return (STATE_ARCHITECTURE (SD)->mach);
14295 default:
14296 return bfd_mach_${sim_multi_default};
14297 }
14298}
14299__EOF__
14300
14301 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
14302else
14303 # For clean-extra
14304 sim_multi_src=doesnt-exist.c
14305
14306 if test x"${sim_mach_default}" = x""; then
d0ac1c44 14307 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
14308 fi
14309 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
14310fi
c906108c
SS
14311sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
14312sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8e394ffc
AB
14313sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
14314sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
c906108c
SS
14315
14316
14317
14318
14319
4c54fc26
CD
14320
14321
14322
14323
c906108c
SS
14324#
14325# Add simulated hardware devices
14326#
14327hw_enabled=no
14328case "${target}" in
14329 mips*tx39*)
14330 hw_enabled=yes
b7026657 14331 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
14332 ;;
14333 *)
c906108c
SS
14334 ;;
14335esac
14336
c906108c 14337if test "$hw_devices"; then
6ffe910a 14338 hardware="$hw_devices"
c906108c 14339else
6ffe910a 14340 hardware="cfi core pal glue"
c906108c 14341fi
6ffe910a 14342hardware="$hardware $hw_extra_devices"
1517bd27 14343
c906108c
SS
14344sim_hw_cflags="-DWITH_HW=1"
14345sim_hw="$hardware"
14346sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 14347
81ecdfbb
RW
14348# Check whether --enable-sim-hardware was given.
14349if test "${enable_sim_hardware+set}" = set; then :
14350 enableval=$enable_sim_hardware;
30452bbe
MF
14351else
14352 enable_sim_hardware="$hw_enabled"
1517bd27
MF
14353fi
14354
14355case ${enable_sim_hardware} in
64dd13df
MF
14356 yes|no) ;;
14357 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
14358 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
14359 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
c906108c 14360esac
1517bd27 14361
64dd13df 14362if test "$enable_sim_hardware" = no; then
c906108c
SS
14363 sim_hw_objs=
14364 sim_hw_cflags="-DWITH_HW=0"
14365 sim_hw=
14366else
14367 sim_hw_cflags="-DWITH_HW=1"
14368 # remove duplicates
14369 sim_hw=""
14370 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
14371 for i in $hardware ; do
14372 case " $sim_hw " in
c906108c
SS
14373 *" $i "*) ;;
14374 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
14375 esac
14376 done
3be31516 14377 # mingw does not support sockser
3be31516
JS
14378 case ${host} in
14379 *mingw*) ;;
49cd1634
MF
14380 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14381 # that you instatiate. Instead, other code will call into it directly.
14382 # At some point, we should convert it over.
14383 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3be31516
JS
14384
14385cat >>confdefs.h <<_ACEOF
14386#define HAVE_DV_SOCKSER 1
14387_ACEOF
14388
14389 ;;
14390 esac
1517bd27
MF
14391 if test x"$silent" != x"yes"; then
14392 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3be31516 14393 fi
1517bd27
MF
14394 case " $hardware " in
14395 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 14396$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 14397if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
14398 $as_echo_n "(cached) " >&6
14399else
14400 ac_check_lib_save_LIBS=$LIBS
14401LIBS="-lm $LIBS"
14402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404
14405/* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14408#ifdef __cplusplus
14409extern "C"
14410#endif
14411char log2 ();
14412int
14413main ()
14414{
14415return log2 ();
14416 ;
14417 return 0;
14418}
14419_ACEOF
14420if ac_fn_c_try_link "$LINENO"; then :
14421 ac_cv_lib_m_log2=yes
14422else
14423 ac_cv_lib_m_log2=no
14424fi
14425rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427LIBS=$ac_check_lib_save_LIBS
14428fi
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
14430$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 14431if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
14432 cat >>confdefs.h <<_ACEOF
14433#define HAVE_LIBM 1
14434_ACEOF
14435
14436 LIBS="-lm $LIBS"
14437
14438fi
14439;;
1517bd27
MF
14440 esac
14441fi
4399a56b 14442
c906108c 14443
c906108c
SS
14444
14445# Choose simulator engine
14446case "${target}" in
14447 *) mips_igen_engine="engine.o"
14448 ;;
14449esac
14450
14451
14452
81ecdfbb
RW
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14454$as_echo_n "checking for X... " >&6; }
b7026657 14455
c906108c 14456
81ecdfbb
RW
14457# Check whether --with-x was given.
14458if test "${with_x+set}" = set; then :
14459 withval=$with_x;
14460fi
c906108c
SS
14461
14462# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14463if test "x$with_x" = xno; then
14464 # The user explicitly disabled X.
14465 have_x=disabled
14466else
81ecdfbb 14467 case $x_includes,$x_libraries in #(
d0ac1c44
SM
14468 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14469 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
81ecdfbb 14470 $as_echo_n "(cached) " >&6
c906108c
SS
14471else
14472 # One or both of the vars are not set, and there is no cached value.
b7026657 14473ac_x_includes=no ac_x_libraries=no
81ecdfbb 14474rm -f -r conftest.dir
b7026657
AC
14475if mkdir conftest.dir; then
14476 cd conftest.dir
b7026657 14477 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
14478incroot:
14479 @echo incroot='${INCROOT}'
14480usrlibdir:
14481 @echo usrlibdir='${USRLIBDIR}'
14482libdir:
14483 @echo libdir='${LIBDIR}'
14484_ACEOF
14485 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
d0ac1c44 14486 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
14487 for ac_var in incroot usrlibdir libdir; do
14488 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14489 done
c906108c 14490 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
14491 for ac_extension in a so sl dylib la dll; do
14492 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14493 test -f "$ac_im_libdir/libX11.$ac_extension"; then
b7026657 14494 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
14495 fi
14496 done
14497 # Screen out bogus values from the imake configuration. They are
14498 # bogus both because they are the default anyway, and because
14499 # using them would break gcc on systems where it needs fixed includes.
b7026657 14500 case $ac_im_incroot in
81ecdfbb 14501 /usr/include) ac_x_includes= ;;
b7026657 14502 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 14503 esac
b7026657 14504 case $ac_im_usrlibdir in
81ecdfbb 14505 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
b7026657 14506 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
14507 esac
14508 fi
14509 cd ..
81ecdfbb 14510 rm -f -r conftest.dir
c906108c
SS
14511fi
14512
b7026657
AC
14513# Standard set of common directories for X headers.
14514# Check X11 before X11Rn because it is often a symlink to the current release.
14515ac_x_header_dirs='
14516/usr/X11/include
81ecdfbb 14517/usr/X11R7/include
b7026657
AC
14518/usr/X11R6/include
14519/usr/X11R5/include
14520/usr/X11R4/include
14521
14522/usr/include/X11
81ecdfbb 14523/usr/include/X11R7
b7026657
AC
14524/usr/include/X11R6
14525/usr/include/X11R5
14526/usr/include/X11R4
14527
14528/usr/local/X11/include
81ecdfbb 14529/usr/local/X11R7/include
b7026657
AC
14530/usr/local/X11R6/include
14531/usr/local/X11R5/include
14532/usr/local/X11R4/include
14533
14534/usr/local/include/X11
81ecdfbb 14535/usr/local/include/X11R7
b7026657
AC
14536/usr/local/include/X11R6
14537/usr/local/include/X11R5
14538/usr/local/include/X11R4
14539
14540/usr/X386/include
14541/usr/x386/include
14542/usr/XFree86/include/X11
14543
14544/usr/include
14545/usr/local/include
14546/usr/unsupported/include
14547/usr/athena/include
14548/usr/local/x11r5/include
14549/usr/lpp/Xamples/include
14550
14551/usr/openwin/include
14552/usr/openwin/share/include'
14553
14554if test "$ac_x_includes" = no; then
81ecdfbb 14555 # Guess where to find include files, by looking for Xlib.h.
c906108c 14556 # First, try using that file with no special directory specified.
81ecdfbb 14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 14558/* end confdefs.h. */
81ecdfbb 14559#include <X11/Xlib.h>
b7026657 14560_ACEOF
81ecdfbb 14561if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
14562 # We can compile using X headers with no special include directory.
14563ac_x_includes=
14564else
b7026657 14565 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 14566 if test -r "$ac_dir/X11/Xlib.h"; then
b7026657
AC
14567 ac_x_includes=$ac_dir
14568 break
14569 fi
14570done
c906108c 14571fi
d0ac1c44 14572rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 14573fi # $ac_x_includes = no
c906108c 14574
b7026657 14575if test "$ac_x_libraries" = no; then
c906108c 14576 # Check for the libraries.
c906108c
SS
14577 # See if we find them without any special options.
14578 # Don't add to $LIBS permanently.
b7026657 14579 ac_save_LIBS=$LIBS
81ecdfbb
RW
14580 LIBS="-lX11 $LIBS"
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 14582/* end confdefs.h. */
81ecdfbb 14583#include <X11/Xlib.h>
b7026657
AC
14584int
14585main ()
14586{
81ecdfbb 14587XrmInitialize ()
b7026657
AC
14588 ;
14589 return 0;
14590}
14591_ACEOF
81ecdfbb 14592if ac_fn_c_try_link "$LINENO"; then :
b7026657 14593 LIBS=$ac_save_LIBS
c906108c
SS
14594# We can link X programs with no special library path.
14595ac_x_libraries=
14596else
81ecdfbb
RW
14597 LIBS=$ac_save_LIBS
14598for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
b7026657 14599do
81ecdfbb
RW
14600 # Don't even attempt the hair of trying to link an X program!
14601 for ac_extension in a so sl dylib la dll; do
14602 if test -r "$ac_dir/libX11.$ac_extension"; then
14603 ac_x_libraries=$ac_dir
14604 break 2
14605 fi
14606 done
14607done
b7026657 14608fi
81ecdfbb
RW
14609rm -f core conftest.err conftest.$ac_objext \
14610 conftest$ac_exeext conftest.$ac_ext
14611fi # $ac_x_libraries = no
b7026657 14612
81ecdfbb
RW
14613case $ac_x_includes,$ac_x_libraries in #(
14614 no,* | *,no | *\'*)
14615 # Didn't find X, or a directory has "'" in its name.
14616 ac_cv_have_x="have_x=no";; #(
14617 *)
14618 # Record where we found X for the cache.
14619 ac_cv_have_x="have_x=yes\
14620 ac_x_includes='$ac_x_includes'\
14621 ac_x_libraries='$ac_x_libraries'"
14622esac
b7026657 14623fi
81ecdfbb
RW
14624;; #(
14625 *) have_x=yes;;
14626 esac
14627 eval "$ac_cv_have_x"
14628fi # $with_x != no
b7026657 14629
81ecdfbb
RW
14630if test "$have_x" != yes; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14632$as_echo "$have_x" >&6; }
14633 no_x=yes
b7026657 14634else
81ecdfbb
RW
14635 # If each of the values was on the command line, it overrides each guess.
14636 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14637 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14638 # Update the cache value to reflect the command line values.
14639 ac_cv_have_x="have_x=yes\
14640 ac_x_includes='$x_includes'\
14641 ac_x_libraries='$x_libraries'"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14643$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
b7026657 14644fi
b7026657 14645
81ecdfbb
RW
14646mips_extra_libs=""
14647
14648
81ecdfbb
RW
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
14650$as_echo_n "checking for fabs in -lm... " >&6; }
d0ac1c44 14651if ${ac_cv_lib_m_fabs+:} false; then :
81ecdfbb 14652 $as_echo_n "(cached) " >&6
b7026657
AC
14653else
14654 ac_check_lib_save_LIBS=$LIBS
14655LIBS="-lm $LIBS"
81ecdfbb 14656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
14657/* end confdefs.h. */
14658
81ecdfbb
RW
14659/* Override any GCC internal prototype to avoid an error.
14660 Use char because int might match the return type of a GCC
14661 builtin and then its argument prototype would still apply. */
b7026657
AC
14662#ifdef __cplusplus
14663extern "C"
14664#endif
b7026657
AC
14665char fabs ();
14666int
14667main ()
14668{
81ecdfbb 14669return fabs ();
b7026657
AC
14670 ;
14671 return 0;
14672}
14673_ACEOF
81ecdfbb 14674if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
14675 ac_cv_lib_m_fabs=yes
14676else
81ecdfbb 14677 ac_cv_lib_m_fabs=no
b7026657 14678fi
81ecdfbb
RW
14679rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
14681LIBS=$ac_check_lib_save_LIBS
14682fi
81ecdfbb
RW
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
14684$as_echo "$ac_cv_lib_m_fabs" >&6; }
d0ac1c44 14685if test "x$ac_cv_lib_m_fabs" = xyes; then :
b7026657
AC
14686 cat >>confdefs.h <<_ACEOF
14687#define HAVE_LIBM 1
14688_ACEOF
14689
14690 LIBS="-lm $LIBS"
14691
14692fi
14693
b7026657 14694for ac_func in aint anint sqrt
81ecdfbb
RW
14695do :
14696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14697ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14698if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b7026657 14699 cat >>confdefs.h <<_ACEOF
81ecdfbb 14700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657
AC
14701_ACEOF
14702
14703fi
14704done
14705
14706
14707
b7026657
AC
14708cgen_breaks=""
14709if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
14710cgen_breaks="break cgen_rtx_error";
14711fi
14712
81ecdfbb 14713ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 14714
81ecdfbb 14715ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 14716
81ecdfbb 14717ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 14718
81ecdfbb 14719ac_config_commands="$ac_config_commands Makefile"
38f48d72 14720
81ecdfbb 14721ac_config_commands="$ac_config_commands stamp-h"
38f48d72 14722
b7026657
AC
14723cat >confcache <<\_ACEOF
14724# This file is a shell script that caches the results of configure
14725# tests run on this system so they can be shared between configure
14726# scripts and configure runs, see configure's option --config-cache.
14727# It is not useful on other systems. If it contains results you don't
14728# want to keep, you may remove or edit it.
14729#
14730# config.status only pays attention to the cache file if you give it
14731# the --recheck option to rerun configure.
14732#
14733# `ac_cv_env_foo' variables (set or unset) will be overridden when
14734# loading this file, other *unset* `ac_cv_foo' will be assigned the
14735# following values.
14736
14737_ACEOF
14738
14739# The following way of writing the cache mishandles newlines in values,
14740# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14741# So, we kill variables containing newlines.
b7026657
AC
14742# Ultrix sh set writes to stderr and can't be redirected directly,
14743# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14744(
14745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14746 eval ac_val=\$$ac_var
14747 case $ac_val in #(
14748 *${as_nl}*)
14749 case $ac_var in #(
14750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14751$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14752 esac
14753 case $ac_var in #(
14754 _ | IFS | as_nl) ;; #(
14755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14756 *) { eval $ac_var=; unset $ac_var;} ;;
14757 esac ;;
14758 esac
14759 done
14760
b7026657 14761 (set) 2>&1 |
81ecdfbb
RW
14762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14763 *${as_nl}ac_space=\ *)
14764 # `set' does not quote correctly, so add quotes: double-quote
14765 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
14766 sed -n \
14767 "s/'/'\\\\''/g;
14768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14769 ;; #(
b7026657
AC
14770 *)
14771 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 14773 ;;
81ecdfbb
RW
14774 esac |
14775 sort
14776) |
b7026657 14777 sed '
81ecdfbb 14778 /^ac_cv_env_/b end
b7026657 14779 t clear
81ecdfbb 14780 :clear
b7026657
AC
14781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14782 t end
81ecdfbb
RW
14783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14784 :end' >>confcache
14785if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14786 if test -w "$cache_file"; then
d0ac1c44 14787 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14789$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14790 if test ! -f "$cache_file" || test -h "$cache_file"; then
14791 cat confcache >"$cache_file"
14792 else
14793 case $cache_file in #(
14794 */* | ?:*)
14795 mv -f confcache "$cache_file"$$ &&
14796 mv -f "$cache_file"$$ "$cache_file" ;; #(
14797 *)
14798 mv -f confcache "$cache_file" ;;
14799 esac
14800 fi
14801 fi
b7026657 14802 else
81ecdfbb
RW
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14804$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
14805 fi
14806fi
14807rm -f confcache
14808
14809test "x$prefix" = xNONE && prefix=$ac_default_prefix
14810# Let make expand exec_prefix.
14811test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14812
b7026657
AC
14813DEFS=-DHAVE_CONFIG_H
14814
14815ac_libobjs=
14816ac_ltlibobjs=
d0ac1c44 14817U=
b7026657
AC
14818for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14819 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14821 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14823 # will be set to the directory where LIBOBJS objects are built.
14824 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14825 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
14826done
14827LIBOBJS=$ac_libobjs
14828
14829LTLIBOBJS=$ac_ltlibobjs
14830
14831
0cb8d851 14832
db2e4d67 14833if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 14834 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
14835Usually this means the macro was only invoked conditionally." "$LINENO" 5
14836fi
6bb11ab3 14837if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 14838 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
14839Usually this means the macro was only invoked conditionally." "$LINENO" 5
14840fi
31e6ad7d 14841if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 14842 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
14843Usually this means the macro was only invoked conditionally." "$LINENO" 5
14844fi
b7026657 14845
d0ac1c44 14846: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14847ac_write_fail=0
b7026657
AC
14848ac_clean_files_save=$ac_clean_files
14849ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14851$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14852as_write_fail=0
14853cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
14854#! $SHELL
14855# Generated by $as_me.
14856# Run this file to recreate the current configuration.
14857# Compiler output produced by configure, useful for debugging
14858# configure, is in config.log if it exists.
c906108c 14859
b7026657
AC
14860debug=false
14861ac_cs_recheck=false
14862ac_cs_silent=false
b7026657 14863
81ecdfbb
RW
14864SHELL=\${CONFIG_SHELL-$SHELL}
14865export SHELL
14866_ASEOF
14867cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14868## -------------------- ##
14869## M4sh Initialization. ##
14870## -------------------- ##
14871
14872# Be more Bourne compatible
14873DUALCASE=1; export DUALCASE # for MKS sh
14874if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
14875 emulate sh
14876 NULLCMD=:
81ecdfbb 14877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
14878 # is contrary to our usage. Disable this feature.
14879 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14880 setopt NO_GLOB_SUBST
14881else
14882 case `(set -o) 2>/dev/null` in #(
14883 *posix*) :
14884 set -o posix ;; #(
14885 *) :
14886 ;;
14887esac
c906108c 14888fi
b7026657 14889
81ecdfbb
RW
14890
14891as_nl='
14892'
14893export as_nl
14894# Printing a long string crashes Solaris 7 /usr/bin/printf.
14895as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14896as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14897as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14898# Prefer a ksh shell builtin over an external printf program on Solaris,
14899# but without wasting forks for bash or zsh.
14900if test -z "$BASH_VERSION$ZSH_VERSION" \
14901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14902 as_echo='print -r --'
14903 as_echo_n='print -rn --'
14904elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14905 as_echo='printf %s\n'
14906 as_echo_n='printf %s'
14907else
14908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14910 as_echo_n='/usr/ucb/echo -n'
14911 else
14912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14913 as_echo_n_body='eval
14914 arg=$1;
14915 case $arg in #(
14916 *"$as_nl"*)
14917 expr "X$arg" : "X\\(.*\\)$as_nl";
14918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14919 esac;
14920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14921 '
14922 export as_echo_n_body
14923 as_echo_n='sh -c $as_echo_n_body as_echo'
14924 fi
14925 export as_echo_body
14926 as_echo='sh -c $as_echo_body as_echo'
c906108c 14927fi
b7026657 14928
81ecdfbb
RW
14929# The user is always right.
14930if test "${PATH_SEPARATOR+set}" != set; then
14931 PATH_SEPARATOR=:
14932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14934 PATH_SEPARATOR=';'
14935 }
14936fi
14937
14938
14939# IFS
14940# We need space, tab and new line, in precisely that order. Quoting is
14941# there to prevent editors from complaining about space-tab.
14942# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14943# splitting by setting IFS to empty value.)
14944IFS=" "" $as_nl"
14945
14946# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14947as_myself=
81ecdfbb
RW
14948case $0 in #((
14949 *[\\/]* ) as_myself=$0 ;;
14950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951for as_dir in $PATH
14952do
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14956 done
14957IFS=$as_save_IFS
b7026657 14958
81ecdfbb
RW
14959 ;;
14960esac
14961# We did not find ourselves, most probably we were run as `sh COMMAND'
14962# in which case we are not to be found in the path.
14963if test "x$as_myself" = x; then
14964 as_myself=$0
14965fi
14966if test ! -f "$as_myself"; then
14967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14968 exit 1
14969fi
14970
14971# Unset variables that we do not need and which cause bugs (e.g. in
14972# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14973# suppresses any "Segmentation fault" message there. '((' could
14974# trigger a bug in pdksh 5.2.14.
14975for as_var in BASH_ENV ENV MAIL MAILPATH
14976do eval test x\${$as_var+set} = xset \
14977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14978done
b7026657
AC
14979PS1='$ '
14980PS2='> '
14981PS4='+ '
14982
14983# NLS nuisances.
81ecdfbb
RW
14984LC_ALL=C
14985export LC_ALL
14986LANGUAGE=C
14987export LANGUAGE
14988
14989# CDPATH.
14990(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14991
14992
d0ac1c44
SM
14993# as_fn_error STATUS ERROR [LINENO LOG_FD]
14994# ----------------------------------------
81ecdfbb
RW
14995# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14996# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14997# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14998as_fn_error ()
14999{
d0ac1c44
SM
15000 as_status=$1; test $as_status -eq 0 && as_status=1
15001 if test "$4"; then
15002 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 15004 fi
d0ac1c44 15005 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15006 as_fn_exit $as_status
15007} # as_fn_error
15008
15009
15010# as_fn_set_status STATUS
15011# -----------------------
15012# Set $? to STATUS, without forking.
15013as_fn_set_status ()
15014{
15015 return $1
15016} # as_fn_set_status
15017
15018# as_fn_exit STATUS
15019# -----------------
15020# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15021as_fn_exit ()
15022{
15023 set +e
15024 as_fn_set_status $1
15025 exit $1
15026} # as_fn_exit
15027
15028# as_fn_unset VAR
15029# ---------------
15030# Portably unset VAR.
15031as_fn_unset ()
15032{
15033 { eval $1=; unset $1;}
15034}
15035as_unset=as_fn_unset
15036# as_fn_append VAR VALUE
15037# ----------------------
15038# Append the text in VALUE to the end of the definition contained in VAR. Take
15039# advantage of any shell optimizations that allow amortized linear growth over
15040# repeated appends, instead of the typical quadratic growth present in naive
15041# implementations.
15042if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15043 eval 'as_fn_append ()
15044 {
15045 eval $1+=\$2
15046 }'
15047else
15048 as_fn_append ()
15049 {
15050 eval $1=\$$1\$2
15051 }
15052fi # as_fn_append
c906108c 15053
81ecdfbb
RW
15054# as_fn_arith ARG...
15055# ------------------
15056# Perform arithmetic evaluation on the ARGs, and store the result in the
15057# global $as_val. Take advantage of shells that can avoid forks. The arguments
15058# must be portable across $(()) and expr.
15059if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15060 eval 'as_fn_arith ()
15061 {
15062 as_val=$(( $* ))
15063 }'
15064else
15065 as_fn_arith ()
15066 {
15067 as_val=`expr "$@" || test $? -eq 1`
15068 }
15069fi # as_fn_arith
15070
15071
15072if expr a : '\(a\)' >/dev/null 2>&1 &&
15073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 15074 as_expr=expr
c906108c 15075else
b7026657 15076 as_expr=false
c906108c 15077fi
c906108c 15078
81ecdfbb 15079if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
15080 as_basename=basename
15081else
15082 as_basename=false
c906108c 15083fi
c906108c 15084
81ecdfbb
RW
15085if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15086 as_dirname=dirname
15087else
15088 as_dirname=false
15089fi
c906108c 15090
81ecdfbb 15091as_me=`$as_basename -- "$0" ||
b7026657
AC
15092$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15093 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15095$as_echo X/"$0" |
15096 sed '/^.*\/\([^/][^/]*\)\/*$/{
15097 s//\1/
15098 q
15099 }
15100 /^X\/\(\/\/\)$/{
15101 s//\1/
15102 q
15103 }
15104 /^X\/\(\/\).*/{
15105 s//\1/
15106 q
15107 }
15108 s/.*/./; q'`
b7026657 15109
b7026657
AC
15110# Avoid depending upon Character Ranges.
15111as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15112as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15113as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15114as_cr_digits='0123456789'
15115as_cr_alnum=$as_cr_Letters$as_cr_digits
15116
81ecdfbb
RW
15117ECHO_C= ECHO_N= ECHO_T=
15118case `echo -n x` in #(((((
15119-n*)
15120 case `echo 'xy\c'` in
15121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15122 xy) ECHO_C='\c';;
15123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15124 ECHO_T=' ';;
15125 esac;;
15126*)
15127 ECHO_N='-n';;
b7026657 15128esac
c906108c 15129
81ecdfbb
RW
15130rm -f conf$$ conf$$.exe conf$$.file
15131if test -d conf$$.dir; then
15132 rm -f conf$$.dir/conf$$.file
c906108c 15133else
81ecdfbb
RW
15134 rm -f conf$$.dir
15135 mkdir conf$$.dir 2>/dev/null
c906108c 15136fi
81ecdfbb
RW
15137if (echo >conf$$.file) 2>/dev/null; then
15138 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 15139 as_ln_s='ln -s'
81ecdfbb
RW
15140 # ... but there are two gotchas:
15141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15143 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15145 as_ln_s='cp -pR'
81ecdfbb
RW
15146 elif ln conf$$.file conf$$ 2>/dev/null; then
15147 as_ln_s=ln
15148 else
d0ac1c44 15149 as_ln_s='cp -pR'
b7026657 15150 fi
b7026657 15151else
d0ac1c44 15152 as_ln_s='cp -pR'
c906108c 15153fi
81ecdfbb
RW
15154rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15155rmdir conf$$.dir 2>/dev/null
15156
15157
15158# as_fn_mkdir_p
15159# -------------
15160# Create "$as_dir" as a directory, including parents if necessary.
15161as_fn_mkdir_p ()
15162{
15163
15164 case $as_dir in #(
15165 -*) as_dir=./$as_dir;;
15166 esac
15167 test -d "$as_dir" || eval $as_mkdir_p || {
15168 as_dirs=
15169 while :; do
15170 case $as_dir in #(
15171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15172 *) as_qdir=$as_dir;;
15173 esac
15174 as_dirs="'$as_qdir' $as_dirs"
15175 as_dir=`$as_dirname -- "$as_dir" ||
15176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15177 X"$as_dir" : 'X\(//\)[^/]' \| \
15178 X"$as_dir" : 'X\(//\)$' \| \
15179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15180$as_echo X"$as_dir" |
15181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15182 s//\1/
15183 q
15184 }
15185 /^X\(\/\/\)[^/].*/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\/\)$/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\).*/{
15194 s//\1/
15195 q
15196 }
15197 s/.*/./; q'`
15198 test -d "$as_dir" && break
15199 done
15200 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15201 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15202
c906108c 15203
81ecdfbb 15204} # as_fn_mkdir_p
b7026657 15205if mkdir -p . 2>/dev/null; then
81ecdfbb 15206 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 15207else
b7026657
AC
15208 test -d ./-p && rmdir ./-p
15209 as_mkdir_p=false
c906108c 15210fi
c906108c 15211
d0ac1c44
SM
15212
15213# as_fn_executable_p FILE
15214# -----------------------
15215# Test if FILE is an executable regular file.
15216as_fn_executable_p ()
15217{
15218 test -f "$1" && test -x "$1"
15219} # as_fn_executable_p
15220as_test_x='test -x'
15221as_executable_p=as_fn_executable_p
c906108c 15222
b7026657
AC
15223# Sed expression to map a string onto a valid CPP name.
15224as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 15225
b7026657
AC
15226# Sed expression to map a string onto a valid variable name.
15227as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 15228
b7026657 15229
b7026657 15230exec 6>&1
81ecdfbb
RW
15231## ----------------------------------- ##
15232## Main body of $CONFIG_STATUS script. ##
15233## ----------------------------------- ##
15234_ASEOF
15235test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15236
15237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238# Save the log message, to keep $0 and so on meaningful, and to
b7026657 15239# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15240# values after options handling.
15241ac_log="
b7026657 15242This file was extended by $as_me, which was
d0ac1c44 15243generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
15244
15245 CONFIG_FILES = $CONFIG_FILES
15246 CONFIG_HEADERS = $CONFIG_HEADERS
15247 CONFIG_LINKS = $CONFIG_LINKS
15248 CONFIG_COMMANDS = $CONFIG_COMMANDS
15249 $ $0 $@
15250
81ecdfbb
RW
15251on `(hostname || uname -n) 2>/dev/null | sed 1q`
15252"
15253
b7026657
AC
15254_ACEOF
15255
81ecdfbb
RW
15256case $ac_config_files in *"
15257"*) set x $ac_config_files; shift; ac_config_files=$*;;
15258esac
379832de 15259
81ecdfbb
RW
15260case $ac_config_headers in *"
15261"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15262esac
b7026657 15263
b7026657 15264
81ecdfbb
RW
15265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15266# Files that config.status was made for.
15267config_files="$ac_config_files"
15268config_headers="$ac_config_headers"
81ecdfbb 15269config_commands="$ac_config_commands"
b7026657 15270
81ecdfbb 15271_ACEOF
b7026657 15272
81ecdfbb 15273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 15274ac_cs_usage="\
81ecdfbb
RW
15275\`$as_me' instantiates files and other configuration actions
15276from templates according to the current configuration. Unless the files
15277and actions are specified as TAGs, all are instantiated by default.
b7026657 15278
81ecdfbb 15279Usage: $0 [OPTION]... [TAG]...
b7026657
AC
15280
15281 -h, --help print this help, then exit
81ecdfbb 15282 -V, --version print version number and configuration settings, then exit
d0ac1c44 15283 --config print configuration, then exit
81ecdfbb
RW
15284 -q, --quiet, --silent
15285 do not print progress messages
b7026657
AC
15286 -d, --debug don't remove temporary files
15287 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15288 --file=FILE[:TEMPLATE]
15289 instantiate the configuration file FILE
15290 --header=FILE[:TEMPLATE]
15291 instantiate the configuration header FILE
b7026657
AC
15292
15293Configuration files:
15294$config_files
15295
15296Configuration headers:
15297$config_headers
15298
b7026657
AC
15299Configuration commands:
15300$config_commands
15301
81ecdfbb 15302Report bugs to the package provider."
b7026657 15303
81ecdfbb
RW
15304_ACEOF
15305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15306ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
15307ac_cs_version="\\
15308config.status
d0ac1c44
SM
15309configured by $0, generated by GNU Autoconf 2.69,
15310 with options \\"\$ac_cs_config\\"
b7026657 15311
d0ac1c44 15312Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
15313This config.status script is free software; the Free Software Foundation
15314gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15315
15316ac_pwd='$ac_pwd'
15317srcdir='$srcdir'
15318INSTALL='$INSTALL'
6bb11ab3 15319AWK='$AWK'
81ecdfbb 15320test -n "\$AWK" || AWK=awk
b7026657
AC
15321_ACEOF
15322
81ecdfbb
RW
15323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15324# The default lists apply if the user does not specify any file.
b7026657
AC
15325ac_need_defaults=:
15326while test $# != 0
15327do
15328 case $1 in
d0ac1c44 15329 --*=?*)
81ecdfbb
RW
15330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15331 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 15332 ac_shift=:
c906108c 15333 ;;
d0ac1c44
SM
15334 --*=)
15335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15336 ac_optarg=
15337 ac_shift=:
15338 ;;
81ecdfbb 15339 *)
b7026657
AC
15340 ac_option=$1
15341 ac_optarg=$2
15342 ac_shift=shift
c906108c 15343 ;;
b7026657 15344 esac
c906108c 15345
b7026657
AC
15346 case $ac_option in
15347 # Handling of the options.
b7026657
AC
15348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15349 ac_cs_recheck=: ;;
81ecdfbb
RW
15350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15351 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15352 --config | --confi | --conf | --con | --co | --c )
15353 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15354 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
15355 debug=: ;;
15356 --file | --fil | --fi | --f )
15357 $ac_shift
81ecdfbb
RW
15358 case $ac_optarg in
15359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15360 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15361 esac
15362 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
15363 ac_need_defaults=false;;
15364 --header | --heade | --head | --hea )
15365 $ac_shift
81ecdfbb
RW
15366 case $ac_optarg in
15367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15368 esac
15369 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 15370 ac_need_defaults=false;;
81ecdfbb
RW
15371 --he | --h)
15372 # Conflict between --help and --header
d0ac1c44 15373 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
15374Try \`$0 --help' for more information.";;
15375 --help | --hel | -h )
15376 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
15377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15378 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15379 ac_cs_silent=: ;;
c906108c 15380
b7026657 15381 # This is an error.
d0ac1c44 15382 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15383Try \`$0 --help' for more information." ;;
c906108c 15384
81ecdfbb
RW
15385 *) as_fn_append ac_config_targets " $1"
15386 ac_need_defaults=false ;;
b7026657
AC
15387
15388 esac
15389 shift
15390done
15391
15392ac_configure_extra_args=
15393
15394if $ac_cs_silent; then
15395 exec 6>/dev/null
15396 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
15397fi
15398
b7026657 15399_ACEOF
81ecdfbb 15400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 15401if \$ac_cs_recheck; then
d0ac1c44 15402 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15403 shift
15404 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15405 CONFIG_SHELL='$SHELL'
15406 export CONFIG_SHELL
15407 exec "\$@"
b7026657 15408fi
c906108c 15409
b7026657 15410_ACEOF
81ecdfbb
RW
15411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15412exec 5>>config.log
15413{
15414 echo
15415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15416## Running $as_me. ##
15417_ASBOX
15418 $as_echo "$ac_log"
15419} >&5
c906108c 15420
81ecdfbb
RW
15421_ACEOF
15422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
15423#
15424# INIT-COMMANDS
15425#
15426ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15427
6bb11ab3
L
15428
15429# The HP-UX ksh and POSIX shell print the target directory to stdout
15430# if CDPATH is set.
15431(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15432
15433sed_quote_subst='$sed_quote_subst'
15434double_quote_subst='$double_quote_subst'
15435delay_variable_subst='$delay_variable_subst'
15436macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15437macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15438enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15439enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15440pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15441enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15442SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15443ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15444host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15445host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15446host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15447build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15448build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15449build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15450SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15451Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15452GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15453EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15454FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15455LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15456NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15457LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15458max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15459ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15460exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15461lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15462lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15463lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15464reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15465reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15466OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15467deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15468file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15469AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15470AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15471STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15472RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15473old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15474old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15475old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15476lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15477CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15478CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15479compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15480GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15481lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15482lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15483lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15484lt_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"`'
15485objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15486MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15487lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15488lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15489lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15490lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15491lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15492need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15493DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15494NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15495LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15496OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15497OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15498libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15499shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15500extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15501archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15502enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15503export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15504whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15505compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15506old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15507old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15508archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15509archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15510module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15511module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15512with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15513allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15514no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15515hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15516hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15517hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15518hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15519hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15520hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15521hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15522hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15523inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15524link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15525fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15526always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15527export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15528exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15529include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15530prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15531file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15532variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15533need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15534need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15535version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15536runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15537shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15538shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15539libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15540library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15541soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15542install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15543postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15544postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15545finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15546finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15547hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15548sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15549sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15550hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15551enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15552enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15553enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15554old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15555striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15556
15557LTCC='$LTCC'
15558LTCFLAGS='$LTCFLAGS'
15559compiler='$compiler_DEFAULT'
15560
15561# A function that is used when there is no print builtin or printf.
15562func_fallback_echo ()
15563{
15564 eval 'cat <<_LTECHO_EOF
15565\$1
15566_LTECHO_EOF'
15567}
15568
15569# Quote evaled strings.
15570for var in SHELL \
15571ECHO \
15572SED \
15573GREP \
15574EGREP \
15575FGREP \
15576LD \
15577NM \
15578LN_S \
15579lt_SP2NL \
15580lt_NL2SP \
15581reload_flag \
15582OBJDUMP \
15583deplibs_check_method \
15584file_magic_cmd \
15585AR \
15586AR_FLAGS \
15587STRIP \
15588RANLIB \
15589CC \
15590CFLAGS \
15591compiler \
15592lt_cv_sys_global_symbol_pipe \
15593lt_cv_sys_global_symbol_to_cdecl \
15594lt_cv_sys_global_symbol_to_c_name_address \
15595lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15596lt_prog_compiler_no_builtin_flag \
15597lt_prog_compiler_wl \
15598lt_prog_compiler_pic \
15599lt_prog_compiler_static \
15600lt_cv_prog_compiler_c_o \
15601need_locks \
15602DSYMUTIL \
15603NMEDIT \
15604LIPO \
15605OTOOL \
15606OTOOL64 \
15607shrext_cmds \
15608export_dynamic_flag_spec \
15609whole_archive_flag_spec \
15610compiler_needs_object \
15611with_gnu_ld \
15612allow_undefined_flag \
15613no_undefined_flag \
15614hardcode_libdir_flag_spec \
15615hardcode_libdir_flag_spec_ld \
15616hardcode_libdir_separator \
15617fix_srcfile_path \
15618exclude_expsyms \
15619include_expsyms \
15620file_list_spec \
15621variables_saved_for_relink \
15622libname_spec \
15623library_names_spec \
15624soname_spec \
15625install_override_mode \
15626finish_eval \
15627old_striplib \
15628striplib; do
15629 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15630 *[\\\\\\\`\\"\\\$]*)
15631 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15632 ;;
15633 *)
15634 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15635 ;;
15636 esac
15637done
15638
15639# Double-quote double-evaled strings.
15640for var in reload_cmds \
15641old_postinstall_cmds \
15642old_postuninstall_cmds \
15643old_archive_cmds \
15644extract_expsyms_cmds \
15645old_archive_from_new_cmds \
15646old_archive_from_expsyms_cmds \
15647archive_cmds \
15648archive_expsym_cmds \
15649module_cmds \
15650module_expsym_cmds \
15651export_symbols_cmds \
15652prelink_cmds \
15653postinstall_cmds \
15654postuninstall_cmds \
15655finish_cmds \
15656sys_lib_search_path_spec \
15657sys_lib_dlsearch_path_spec; do
15658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15659 *[\\\\\\\`\\"\\\$]*)
15660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15661 ;;
15662 *)
15663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15664 ;;
15665 esac
15666done
15667
15668ac_aux_dir='$ac_aux_dir'
15669xsi_shell='$xsi_shell'
15670lt_shell_append='$lt_shell_append'
15671
15672# See if we are running on zsh, and set the options which allow our
15673# commands through without removal of \ escapes INIT.
15674if test -n "\${ZSH_VERSION+set}" ; then
15675 setopt NO_GLOB_SUBST
15676fi
15677
15678
15679 PACKAGE='$PACKAGE'
15680 VERSION='$VERSION'
15681 TIMESTAMP='$TIMESTAMP'
15682 RM='$RM'
15683 ofile='$ofile'
15684
15685
15686
15687
81ecdfbb 15688_ACEOF
c906108c 15689
81ecdfbb 15690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 15691
81ecdfbb 15692# Handling of arguments.
b7026657 15693for ac_config_target in $ac_config_targets
c906108c 15694do
81ecdfbb
RW
15695 case $ac_config_target in
15696 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 15697 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 15698 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
15699 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
15700 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
15701 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
15702 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15703 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
15704
d0ac1c44 15705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
15706 esac
15707done
15708
81ecdfbb 15709
b7026657
AC
15710# If the user did not use the arguments to specify the items to instantiate,
15711# then the envvar interface is used. Set only those that are not.
15712# We use the long form for the default assignment because of an extremely
15713# bizarre bug on SunOS 4.1.3.
15714if $ac_need_defaults; then
15715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
15717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15718fi
15719
15720# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15721# simply because there is no reason against having it here, and in addition,
b7026657 15722# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15723# Hook for its removal unless debugging.
15724# Note that there is a small window in which the directory will not be cleaned:
15725# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
15726$debug ||
15727{
d0ac1c44 15728 tmp= ac_tmp=
81ecdfbb 15729 trap 'exit_status=$?
d0ac1c44
SM
15730 : "${ac_tmp:=$tmp}"
15731 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15732' 0
15733 trap 'as_fn_exit 1' 1 2 13 15
b7026657 15734}
b7026657 15735# Create a (secure) tmp directory for tmp files.
c906108c 15736
b7026657 15737{
81ecdfbb 15738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15739 test -d "$tmp"
b7026657
AC
15740} ||
15741{
81ecdfbb
RW
15742 tmp=./conf$$-$RANDOM
15743 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15744} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15745ac_tmp=$tmp
b7026657 15746
81ecdfbb
RW
15747# Set up the scripts for CONFIG_FILES section.
15748# No need to generate them if there are no CONFIG_FILES.
15749# This happens for instance with `./config.status config.h'.
15750if test -n "$CONFIG_FILES"; then
b7026657 15751
c906108c 15752
81ecdfbb
RW
15753ac_cr=`echo X | tr X '\015'`
15754# On cygwin, bash can eat \r inside `` if the user requested igncr.
15755# But we know of no other shell where ac_cr would be empty at this
15756# point, so we can use a bashism as a fallback.
15757if test "x$ac_cr" = x; then
15758 eval ac_cr=\$\'\\r\'
15759fi
15760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15762 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15763else
15764 ac_cs_awk_cr=$ac_cr
15765fi
b7026657 15766
d0ac1c44 15767echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
15768_ACEOF
15769
c906108c 15770
81ecdfbb
RW
15771{
15772 echo "cat >conf$$subs.awk <<_ACEOF" &&
15773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15774 echo "_ACEOF"
15775} >conf$$subs.sh ||
d0ac1c44
SM
15776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15777ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15778ac_delim='%!_!# '
15779for ac_last_try in false false false false false :; do
15780 . ./conf$$subs.sh ||
d0ac1c44 15781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15782
15783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15784 if test $ac_delim_n = $ac_delim_num; then
15785 break
15786 elif $ac_last_try; then
d0ac1c44 15787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 15788 else
81ecdfbb
RW
15789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15790 fi
15791done
15792rm -f conf$$subs.sh
15793
15794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15795cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15796_ACEOF
15797sed -n '
15798h
15799s/^/S["/; s/!.*/"]=/
15800p
15801g
15802s/^[^!]*!//
15803:repl
15804t repl
15805s/'"$ac_delim"'$//
15806t delim
15807:nl
15808h
d0ac1c44 15809s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15810t more1
15811s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15812p
15813n
15814b repl
15815:more1
15816s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15817p
15818g
15819s/.\{148\}//
15820t nl
15821:delim
15822h
d0ac1c44 15823s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15824t more2
15825s/["\\]/\\&/g; s/^/"/; s/$/"/
15826p
15827b
15828:more2
15829s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15830p
15831g
15832s/.\{148\}//
15833t delim
15834' <conf$$subs.awk | sed '
15835/^[^""]/{
15836 N
15837 s/\n//
15838}
15839' >>$CONFIG_STATUS || ac_write_fail=1
15840rm -f conf$$subs.awk
15841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842_ACAWK
d0ac1c44 15843cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15844 for (key in S) S_is_set[key] = 1
15845 FS = "\a"
b7026657 15846
81ecdfbb
RW
15847}
15848{
15849 line = $ 0
15850 nfields = split(line, field, "@")
15851 substed = 0
15852 len = length(field[1])
15853 for (i = 2; i < nfields; i++) {
15854 key = field[i]
15855 keylen = length(key)
15856 if (S_is_set[key]) {
15857 value = S[key]
15858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15859 len += length(value) + length(field[++i])
15860 substed = 1
15861 } else
15862 len += 1 + keylen
15863 }
15864
15865 print line
15866}
c906108c 15867
81ecdfbb
RW
15868_ACAWK
15869_ACEOF
15870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15871if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 15873else
81ecdfbb 15874 cat
d0ac1c44
SM
15875fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15876 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 15877_ACEOF
b7026657 15878
d0ac1c44
SM
15879# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15880# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15881# trailing colons and then remove the whole line if VPATH becomes empty
15882# (actually we leave an empty line to preserve line numbers).
15883if test "x$srcdir" = x.; then
d0ac1c44
SM
15884 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15885h
15886s///
15887s/^/:/
15888s/[ ]*$/:/
15889s/:\$(srcdir):/:/g
15890s/:\${srcdir}:/:/g
15891s/:@srcdir@:/:/g
15892s/^:*//
81ecdfbb 15893s/:*$//
d0ac1c44
SM
15894x
15895s/\(=[ ]*\).*/\1/
15896G
15897s/\n//
81ecdfbb
RW
15898s/^[^=]*=[ ]*$//
15899}'
15900fi
c906108c 15901
81ecdfbb
RW
15902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15903fi # test -n "$CONFIG_FILES"
c906108c 15904
81ecdfbb
RW
15905# Set up the scripts for CONFIG_HEADERS section.
15906# No need to generate them if there are no CONFIG_HEADERS.
15907# This happens for instance with `./config.status Makefile'.
15908if test -n "$CONFIG_HEADERS"; then
d0ac1c44 15909cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
15910BEGIN {
15911_ACEOF
b7026657 15912
81ecdfbb
RW
15913# Transform confdefs.h into an awk script `defines.awk', embedded as
15914# here-document in config.status, that substitutes the proper values into
15915# config.h.in to produce config.h.
c906108c 15916
81ecdfbb
RW
15917# Create a delimiter string that does not exist in confdefs.h, to ease
15918# handling of long lines.
15919ac_delim='%!_!# '
15920for ac_last_try in false false :; do
d0ac1c44
SM
15921 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15922 if test -z "$ac_tt"; then
81ecdfbb
RW
15923 break
15924 elif $ac_last_try; then
d0ac1c44 15925 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 15926 else
81ecdfbb 15927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 15928 fi
b7026657 15929done
81ecdfbb
RW
15930
15931# For the awk script, D is an array of macro values keyed by name,
15932# likewise P contains macro parameters if any. Preserve backslash
15933# newline sequences.
15934
15935ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15936sed -n '
15937s/.\{148\}/&'"$ac_delim"'/g
15938t rset
15939:rset
15940s/^[ ]*#[ ]*define[ ][ ]*/ /
15941t def
15942d
15943:def
15944s/\\$//
15945t bsnl
15946s/["\\]/\\&/g
15947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15948D["\1"]=" \3"/p
15949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15950d
15951:bsnl
15952s/["\\]/\\&/g
15953s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15954D["\1"]=" \3\\\\\\n"\\/p
15955t cont
15956s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15957t cont
15958d
15959:cont
15960n
15961s/.\{148\}/&'"$ac_delim"'/g
15962t clear
15963:clear
15964s/\\$//
15965t bsnlc
15966s/["\\]/\\&/g; s/^/"/; s/$/"/p
15967d
15968:bsnlc
15969s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15970b cont
15971' <confdefs.h | sed '
15972s/'"$ac_delim"'/"\\\
15973"/g' >>$CONFIG_STATUS || ac_write_fail=1
15974
15975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976 for (key in D) D_is_set[key] = 1
15977 FS = "\a"
15978}
15979/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15980 line = \$ 0
15981 split(line, arg, " ")
15982 if (arg[1] == "#") {
15983 defundef = arg[2]
15984 mac1 = arg[3]
15985 } else {
15986 defundef = substr(arg[1], 2)
15987 mac1 = arg[2]
15988 }
15989 split(mac1, mac2, "(") #)
15990 macro = mac2[1]
15991 prefix = substr(line, 1, index(line, defundef) - 1)
15992 if (D_is_set[macro]) {
15993 # Preserve the white space surrounding the "#".
15994 print prefix "define", macro P[macro] D[macro]
15995 next
15996 } else {
15997 # Replace #undef with comments. This is necessary, for example,
15998 # in the case of _POSIX_SOURCE, which is predefined and required
15999 # on some systems where configure will not decide to define it.
16000 if (defundef == "undef") {
16001 print "/*", prefix defundef, macro, "*/"
16002 next
16003 }
16004 }
16005}
16006{ print }
16007_ACAWK
b7026657 16008_ACEOF
81ecdfbb 16009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 16010 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 16011fi # test -n "$CONFIG_HEADERS"
b7026657 16012
c906108c 16013
99d8e879 16014eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
16015shift
16016for ac_tag
16017do
16018 case $ac_tag in
16019 :[FHLC]) ac_mode=$ac_tag; continue;;
16020 esac
16021 case $ac_mode$ac_tag in
16022 :[FHL]*:*);;
d0ac1c44 16023 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16024 :[FH]-) ac_tag=-:-;;
16025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 16026 esac
81ecdfbb
RW
16027 ac_save_IFS=$IFS
16028 IFS=:
16029 set x $ac_tag
16030 IFS=$ac_save_IFS
16031 shift
16032 ac_file=$1
16033 shift
c906108c 16034
81ecdfbb
RW
16035 case $ac_mode in
16036 :L) ac_source=$1;;
16037 :[FH])
16038 ac_file_inputs=
16039 for ac_f
16040 do
16041 case $ac_f in
d0ac1c44 16042 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16043 *) # Look for the file first in the build tree, then in the source tree
16044 # (if the path is not absolute). The absolute path cannot be DOS-style,
16045 # because $ac_f cannot contain `:'.
16046 test -f "$ac_f" ||
16047 case $ac_f in
16048 [\\/$]*) false;;
16049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16050 esac ||
d0ac1c44 16051 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 16052 esac
81ecdfbb
RW
16053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16054 as_fn_append ac_file_inputs " '$ac_f'"
16055 done
b7026657 16056
81ecdfbb
RW
16057 # Let's still pretend it is `configure' which instantiates (i.e., don't
16058 # use $as_me), people would be surprised to read:
16059 # /* config.h. Generated by config.status. */
16060 configure_input='Generated from '`
16061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16062 `' by configure.'
16063 if test x"$ac_file" != x-; then
16064 configure_input="$ac_file. $configure_input"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16066$as_echo "$as_me: creating $ac_file" >&6;}
16067 fi
16068 # Neutralize special characters interpreted by sed in replacement strings.
16069 case $configure_input in #(
16070 *\&* | *\|* | *\\* )
16071 ac_sed_conf_input=`$as_echo "$configure_input" |
16072 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16073 *) ac_sed_conf_input=$configure_input;;
16074 esac
b7026657 16075
81ecdfbb 16076 case $ac_tag in
d0ac1c44
SM
16077 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16079 esac
16080 ;;
16081 esac
b7026657 16082
81ecdfbb 16083 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
16084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16085 X"$ac_file" : 'X\(//\)[^/]' \| \
16086 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16088$as_echo X"$ac_file" |
16089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16090 s//\1/
16091 q
16092 }
16093 /^X\(\/\/\)[^/].*/{
16094 s//\1/
16095 q
16096 }
16097 /^X\(\/\/\)$/{
16098 s//\1/
16099 q
16100 }
16101 /^X\(\/\).*/{
16102 s//\1/
16103 q
16104 }
16105 s/.*/./; q'`
16106 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
16107 ac_builddir=.
16108
81ecdfbb
RW
16109case "$ac_dir" in
16110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16111*)
16112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16113 # A ".." for each directory in $ac_dir_suffix.
16114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16115 case $ac_top_builddir_sub in
16116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16118 esac ;;
16119esac
16120ac_abs_top_builddir=$ac_pwd
16121ac_abs_builddir=$ac_pwd$ac_dir_suffix
16122# for backward compatibility:
16123ac_top_builddir=$ac_top_build_prefix
b7026657
AC
16124
16125case $srcdir in
81ecdfbb 16126 .) # We are building in place.
b7026657 16127 ac_srcdir=.
81ecdfbb
RW
16128 ac_top_srcdir=$ac_top_builddir_sub
16129 ac_abs_top_srcdir=$ac_pwd ;;
16130 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 16131 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16132 ac_top_srcdir=$srcdir
16133 ac_abs_top_srcdir=$srcdir ;;
16134 *) # Relative name.
16135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16136 ac_top_srcdir=$ac_top_build_prefix$srcdir
16137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 16138esac
81ecdfbb 16139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 16140
c906108c 16141
81ecdfbb
RW
16142 case $ac_mode in
16143 :F)
16144 #
16145 # CONFIG_FILE
16146 #
b7026657 16147
81ecdfbb
RW
16148 case $INSTALL in
16149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 16151 esac
81ecdfbb 16152_ACEOF
c906108c 16153
81ecdfbb
RW
16154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16155# If the template does not know about datarootdir, expand it.
16156# FIXME: This hack should be removed a few years after 2.60.
16157ac_datarootdir_hack=; ac_datarootdir_seen=
16158ac_sed_dataroot='
16159/datarootdir/ {
16160 p
16161 q
16162}
16163/@datadir@/p
16164/@docdir@/p
16165/@infodir@/p
16166/@localedir@/p
16167/@mandir@/p'
16168case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16169*datarootdir*) ac_datarootdir_seen=yes;;
16170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16172$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16173_ACEOF
16174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16175 ac_datarootdir_hack='
16176 s&@datadir@&$datadir&g
16177 s&@docdir@&$docdir&g
16178 s&@infodir@&$infodir&g
16179 s&@localedir@&$localedir&g
16180 s&@mandir@&$mandir&g
16181 s&\\\${datarootdir}&$datarootdir&g' ;;
16182esac
b7026657 16183_ACEOF
b7026657 16184
81ecdfbb
RW
16185# Neutralize VPATH when `$srcdir' = `.'.
16186# Shell code in configure.ac might set extrasub.
16187# FIXME: do we really want to maintain this feature?
16188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16189ac_sed_extra="$ac_vpsub
16190$extrasub
16191_ACEOF
16192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193:t
16194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16195s|@configure_input@|$ac_sed_conf_input|;t t
16196s&@top_builddir@&$ac_top_builddir_sub&;t t
16197s&@top_build_prefix@&$ac_top_build_prefix&;t t
16198s&@srcdir@&$ac_srcdir&;t t
16199s&@abs_srcdir@&$ac_abs_srcdir&;t t
16200s&@top_srcdir@&$ac_top_srcdir&;t t
16201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16202s&@builddir@&$ac_builddir&;t t
16203s&@abs_builddir@&$ac_abs_builddir&;t t
16204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16205s&@INSTALL@&$ac_INSTALL&;t t
16206$ac_datarootdir_hack
16207"
d0ac1c44
SM
16208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16209 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16210
16211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16212 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16214 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16216which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16217$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16218which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16219
d0ac1c44 16220 rm -f "$ac_tmp/stdin"
81ecdfbb 16221 case $ac_file in
d0ac1c44
SM
16222 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16223 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16224 esac \
d0ac1c44 16225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16226 ;;
16227 :H)
16228 #
16229 # CONFIG_HEADER
16230 #
16231 if test x"$ac_file" != x-; then
16232 {
16233 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16234 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16235 } >"$ac_tmp/config.h" \
16236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16237 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16239$as_echo "$as_me: $ac_file is unchanged" >&6;}
16240 else
16241 rm -f "$ac_file"
d0ac1c44
SM
16242 mv "$ac_tmp/config.h" "$ac_file" \
16243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16244 fi
b7026657 16245 else
81ecdfbb 16246 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16247 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16248 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
16249 fi
16250 ;;
b7026657 16251
81ecdfbb
RW
16252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16253$as_echo "$as_me: executing $ac_file commands" >&6;}
16254 ;;
16255 esac
b7026657
AC
16256
16257
81ecdfbb 16258 case $ac_file$ac_mode in
db2e4d67 16259 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
16260 "libtool":C)
16261
16262 # See if we are running on zsh, and set the options which allow our
16263 # commands through without removal of \ escapes.
16264 if test -n "${ZSH_VERSION+set}" ; then
16265 setopt NO_GLOB_SUBST
16266 fi
16267
16268 cfgfile="${ofile}T"
16269 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16270 $RM "$cfgfile"
16271
16272 cat <<_LT_EOF >> "$cfgfile"
16273#! $SHELL
16274
16275# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16276# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16277# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16278# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16279#
16280# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16281# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16282# Written by Gordon Matzigkeit, 1996
16283#
16284# This file is part of GNU Libtool.
16285#
16286# GNU Libtool is free software; you can redistribute it and/or
16287# modify it under the terms of the GNU General Public License as
16288# published by the Free Software Foundation; either version 2 of
16289# the License, or (at your option) any later version.
16290#
16291# As a special exception to the GNU General Public License,
16292# if you distribute this file as part of a program or library that
16293# is built using GNU Libtool, you may include this file under the
16294# same distribution terms that you use for the rest of that program.
16295#
16296# GNU Libtool is distributed in the hope that it will be useful,
16297# but WITHOUT ANY WARRANTY; without even the implied warranty of
16298# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16299# GNU General Public License for more details.
16300#
16301# You should have received a copy of the GNU General Public License
16302# along with GNU Libtool; see the file COPYING. If not, a copy
16303# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16304# obtained by writing to the Free Software Foundation, Inc.,
16305# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16306
16307
16308# The names of the tagged configurations supported by this script.
16309available_tags=""
16310
16311# ### BEGIN LIBTOOL CONFIG
16312
16313# Which release of libtool.m4 was used?
16314macro_version=$macro_version
16315macro_revision=$macro_revision
16316
16317# Whether or not to build shared libraries.
16318build_libtool_libs=$enable_shared
16319
16320# Whether or not to build static libraries.
16321build_old_libs=$enable_static
16322
16323# What type of objects to build.
16324pic_mode=$pic_mode
16325
16326# Whether or not to optimize for fast installation.
16327fast_install=$enable_fast_install
16328
16329# Shell to use when invoking shell scripts.
16330SHELL=$lt_SHELL
16331
16332# An echo program that protects backslashes.
16333ECHO=$lt_ECHO
16334
16335# The host system.
16336host_alias=$host_alias
16337host=$host
16338host_os=$host_os
16339
16340# The build system.
16341build_alias=$build_alias
16342build=$build
16343build_os=$build_os
16344
16345# A sed program that does not truncate output.
16346SED=$lt_SED
16347
16348# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16349Xsed="\$SED -e 1s/^X//"
16350
16351# A grep program that handles long lines.
16352GREP=$lt_GREP
16353
16354# An ERE matcher.
16355EGREP=$lt_EGREP
16356
16357# A literal string matcher.
16358FGREP=$lt_FGREP
16359
16360# A BSD- or MS-compatible name lister.
16361NM=$lt_NM
16362
16363# Whether we need soft or hard links.
16364LN_S=$lt_LN_S
16365
16366# What is the maximum length of a command?
16367max_cmd_len=$max_cmd_len
16368
16369# Object file suffix (normally "o").
16370objext=$ac_objext
16371
16372# Executable file suffix (normally "").
16373exeext=$exeext
16374
16375# whether the shell understands "unset".
16376lt_unset=$lt_unset
16377
16378# turn spaces into newlines.
16379SP2NL=$lt_lt_SP2NL
16380
16381# turn newlines into spaces.
16382NL2SP=$lt_lt_NL2SP
16383
16384# An object symbol dumper.
16385OBJDUMP=$lt_OBJDUMP
16386
16387# Method to check whether dependent libraries are shared objects.
16388deplibs_check_method=$lt_deplibs_check_method
16389
16390# Command to use when deplibs_check_method == "file_magic".
16391file_magic_cmd=$lt_file_magic_cmd
16392
16393# The archiver.
16394AR=$lt_AR
16395AR_FLAGS=$lt_AR_FLAGS
16396
16397# A symbol stripping program.
16398STRIP=$lt_STRIP
16399
16400# Commands used to install an old-style archive.
16401RANLIB=$lt_RANLIB
16402old_postinstall_cmds=$lt_old_postinstall_cmds
16403old_postuninstall_cmds=$lt_old_postuninstall_cmds
16404
16405# Whether to use a lock for old archive extraction.
16406lock_old_archive_extraction=$lock_old_archive_extraction
16407
16408# A C compiler.
16409LTCC=$lt_CC
16410
16411# LTCC compiler flags.
16412LTCFLAGS=$lt_CFLAGS
16413
16414# Take the output of nm and produce a listing of raw symbols and C names.
16415global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16416
16417# Transform the output of nm in a proper C declaration.
16418global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16419
16420# Transform the output of nm in a C name address pair.
16421global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16422
16423# Transform the output of nm in a C name address pair when lib prefix is needed.
16424global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16425
16426# The name of the directory that contains temporary libtool files.
16427objdir=$objdir
16428
16429# Used to examine libraries when file_magic_cmd begins with "file".
16430MAGIC_CMD=$MAGIC_CMD
16431
16432# Must we lock files when doing compilation?
16433need_locks=$lt_need_locks
16434
16435# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16436DSYMUTIL=$lt_DSYMUTIL
16437
16438# Tool to change global to local symbols on Mac OS X.
16439NMEDIT=$lt_NMEDIT
16440
16441# Tool to manipulate fat objects and archives on Mac OS X.
16442LIPO=$lt_LIPO
16443
16444# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16445OTOOL=$lt_OTOOL
16446
16447# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16448OTOOL64=$lt_OTOOL64
16449
16450# Old archive suffix (normally "a").
16451libext=$libext
16452
16453# Shared library suffix (normally ".so").
16454shrext_cmds=$lt_shrext_cmds
16455
16456# The commands to extract the exported symbol list from a shared archive.
16457extract_expsyms_cmds=$lt_extract_expsyms_cmds
16458
16459# Variables whose values should be saved in libtool wrapper scripts and
16460# restored at link time.
16461variables_saved_for_relink=$lt_variables_saved_for_relink
16462
16463# Do we need the "lib" prefix for modules?
16464need_lib_prefix=$need_lib_prefix
16465
16466# Do we need a version for libraries?
16467need_version=$need_version
16468
16469# Library versioning type.
16470version_type=$version_type
16471
16472# Shared library runtime path variable.
16473runpath_var=$runpath_var
16474
16475# Shared library path variable.
16476shlibpath_var=$shlibpath_var
16477
16478# Is shlibpath searched before the hard-coded library search path?
16479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16480
16481# Format of library name prefix.
16482libname_spec=$lt_libname_spec
16483
16484# List of archive names. First name is the real one, the rest are links.
16485# The last name is the one that the linker finds with -lNAME
16486library_names_spec=$lt_library_names_spec
16487
16488# The coded name of the library, if different from the real name.
16489soname_spec=$lt_soname_spec
16490
16491# Permission mode override for installation of shared libraries.
16492install_override_mode=$lt_install_override_mode
16493
16494# Command to use after installation of a shared archive.
16495postinstall_cmds=$lt_postinstall_cmds
16496
16497# Command to use after uninstallation of a shared archive.
16498postuninstall_cmds=$lt_postuninstall_cmds
16499
16500# Commands used to finish a libtool library installation in a directory.
16501finish_cmds=$lt_finish_cmds
16502
16503# As "finish_cmds", except a single script fragment to be evaled but
16504# not shown.
16505finish_eval=$lt_finish_eval
16506
16507# Whether we should hardcode library paths into libraries.
16508hardcode_into_libs=$hardcode_into_libs
16509
16510# Compile-time system search path for libraries.
16511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16512
16513# Run-time system search path for libraries.
16514sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16515
16516# Whether dlopen is supported.
16517dlopen_support=$enable_dlopen
16518
16519# Whether dlopen of programs is supported.
16520dlopen_self=$enable_dlopen_self
16521
16522# Whether dlopen of statically linked programs is supported.
16523dlopen_self_static=$enable_dlopen_self_static
16524
16525# Commands to strip libraries.
16526old_striplib=$lt_old_striplib
16527striplib=$lt_striplib
16528
16529
16530# The linker used to build libraries.
16531LD=$lt_LD
16532
16533# How to create reloadable object files.
16534reload_flag=$lt_reload_flag
16535reload_cmds=$lt_reload_cmds
16536
16537# Commands used to build an old-style archive.
16538old_archive_cmds=$lt_old_archive_cmds
16539
16540# A language specific compiler.
16541CC=$lt_compiler
16542
16543# Is the compiler the GNU compiler?
16544with_gcc=$GCC
16545
16546# Compiler flag to turn off builtin functions.
16547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16548
16549# How to pass a linker flag through the compiler.
16550wl=$lt_lt_prog_compiler_wl
16551
16552# Additional compiler flags for building library objects.
16553pic_flag=$lt_lt_prog_compiler_pic
16554
16555# Compiler flag to prevent dynamic linking.
16556link_static_flag=$lt_lt_prog_compiler_static
16557
16558# Does compiler simultaneously support -c and -o options?
16559compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16560
16561# Whether or not to add -lc for building shared libraries.
16562build_libtool_need_lc=$archive_cmds_need_lc
16563
16564# Whether or not to disallow shared libs when runtime libs are static.
16565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16566
16567# Compiler flag to allow reflexive dlopens.
16568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16569
16570# Compiler flag to generate shared objects directly from archives.
16571whole_archive_flag_spec=$lt_whole_archive_flag_spec
16572
16573# Whether the compiler copes with passing no objects directly.
16574compiler_needs_object=$lt_compiler_needs_object
16575
16576# Create an old-style archive from a shared archive.
16577old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16578
16579# Create a temporary old-style archive to link instead of a shared archive.
16580old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16581
16582# Commands used to build a shared archive.
16583archive_cmds=$lt_archive_cmds
16584archive_expsym_cmds=$lt_archive_expsym_cmds
16585
16586# Commands used to build a loadable module if different from building
16587# a shared archive.
16588module_cmds=$lt_module_cmds
16589module_expsym_cmds=$lt_module_expsym_cmds
16590
16591# Whether we are building with GNU ld or not.
16592with_gnu_ld=$lt_with_gnu_ld
16593
16594# Flag that allows shared libraries with undefined symbols to be built.
16595allow_undefined_flag=$lt_allow_undefined_flag
16596
16597# Flag that enforces no undefined symbols.
16598no_undefined_flag=$lt_no_undefined_flag
16599
16600# Flag to hardcode \$libdir into a binary during linking.
16601# This must work even if \$libdir does not exist
16602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16603
16604# If ld is used when linking, flag to hardcode \$libdir into a binary
16605# during linking. This must work even if \$libdir does not exist.
16606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16607
16608# Whether we need a single "-rpath" flag with a separated argument.
16609hardcode_libdir_separator=$lt_hardcode_libdir_separator
16610
16611# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16612# DIR into the resulting binary.
16613hardcode_direct=$hardcode_direct
16614
16615# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16616# DIR into the resulting binary and the resulting library dependency is
16617# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16618# library is relocated.
16619hardcode_direct_absolute=$hardcode_direct_absolute
16620
16621# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16622# into the resulting binary.
16623hardcode_minus_L=$hardcode_minus_L
16624
16625# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16626# into the resulting binary.
16627hardcode_shlibpath_var=$hardcode_shlibpath_var
16628
16629# Set to "yes" if building a shared library automatically hardcodes DIR
16630# into the library and all subsequent libraries and executables linked
16631# against it.
16632hardcode_automatic=$hardcode_automatic
16633
16634# Set to yes if linker adds runtime paths of dependent libraries
16635# to runtime path list.
16636inherit_rpath=$inherit_rpath
16637
16638# Whether libtool must link a program against all its dependency libraries.
16639link_all_deplibs=$link_all_deplibs
16640
16641# Fix the shell variable \$srcfile for the compiler.
16642fix_srcfile_path=$lt_fix_srcfile_path
16643
16644# Set to "yes" if exported symbols are required.
16645always_export_symbols=$always_export_symbols
16646
16647# The commands to list exported symbols.
16648export_symbols_cmds=$lt_export_symbols_cmds
16649
16650# Symbols that should not be listed in the preloaded symbols.
16651exclude_expsyms=$lt_exclude_expsyms
16652
16653# Symbols that must always be exported.
16654include_expsyms=$lt_include_expsyms
16655
16656# Commands necessary for linking programs (against libraries) with templates.
16657prelink_cmds=$lt_prelink_cmds
16658
16659# Specify filename containing input files.
16660file_list_spec=$lt_file_list_spec
16661
16662# How to hardcode a shared library path into an executable.
16663hardcode_action=$hardcode_action
16664
16665# ### END LIBTOOL CONFIG
16666
16667_LT_EOF
16668
16669 case $host_os in
16670 aix3*)
16671 cat <<\_LT_EOF >> "$cfgfile"
16672# AIX sometimes has problems with the GCC collect2 program. For some
16673# reason, if we set the COLLECT_NAMES environment variable, the problems
16674# vanish in a puff of smoke.
16675if test "X${COLLECT_NAMES+set}" != Xset; then
16676 COLLECT_NAMES=
16677 export COLLECT_NAMES
16678fi
16679_LT_EOF
16680 ;;
16681 esac
16682
16683
16684ltmain="$ac_aux_dir/ltmain.sh"
16685
16686
16687 # We use sed instead of cat because bash on DJGPP gets confused if
16688 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16689 # text mode, it properly converts lines to CR/LF. This bash problem
16690 # is reportedly fixed, but why not run on old versions too?
16691 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16692 || (rm -f "$cfgfile"; exit 1)
16693
16694 case $xsi_shell in
16695 yes)
16696 cat << \_LT_EOF >> "$cfgfile"
16697
16698# func_dirname file append nondir_replacement
16699# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16700# otherwise set result to NONDIR_REPLACEMENT.
16701func_dirname ()
16702{
16703 case ${1} in
16704 */*) func_dirname_result="${1%/*}${2}" ;;
16705 * ) func_dirname_result="${3}" ;;
16706 esac
16707}
16708
16709# func_basename file
16710func_basename ()
16711{
16712 func_basename_result="${1##*/}"
16713}
16714
16715# func_dirname_and_basename file append nondir_replacement
16716# perform func_basename and func_dirname in a single function
16717# call:
16718# dirname: Compute the dirname of FILE. If nonempty,
16719# add APPEND to the result, otherwise set result
16720# to NONDIR_REPLACEMENT.
16721# value returned in "$func_dirname_result"
16722# basename: Compute filename of FILE.
16723# value retuned in "$func_basename_result"
16724# Implementation must be kept synchronized with func_dirname
16725# and func_basename. For efficiency, we do not delegate to
16726# those functions but instead duplicate the functionality here.
16727func_dirname_and_basename ()
16728{
16729 case ${1} in
16730 */*) func_dirname_result="${1%/*}${2}" ;;
16731 * ) func_dirname_result="${3}" ;;
16732 esac
16733 func_basename_result="${1##*/}"
16734}
16735
16736# func_stripname prefix suffix name
16737# strip PREFIX and SUFFIX off of NAME.
16738# PREFIX and SUFFIX must not contain globbing or regex special
16739# characters, hashes, percent signs, but SUFFIX may contain a leading
16740# dot (in which case that matches only a dot).
16741func_stripname ()
16742{
16743 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16744 # positional parameters, so assign one to ordinary parameter first.
16745 func_stripname_result=${3}
16746 func_stripname_result=${func_stripname_result#"${1}"}
16747 func_stripname_result=${func_stripname_result%"${2}"}
16748}
16749
16750# func_opt_split
16751func_opt_split ()
16752{
16753 func_opt_split_opt=${1%%=*}
16754 func_opt_split_arg=${1#*=}
16755}
16756
16757# func_lo2o object
16758func_lo2o ()
16759{
16760 case ${1} in
16761 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16762 *) func_lo2o_result=${1} ;;
16763 esac
16764}
16765
16766# func_xform libobj-or-source
16767func_xform ()
16768{
16769 func_xform_result=${1%.*}.lo
16770}
16771
16772# func_arith arithmetic-term...
16773func_arith ()
16774{
16775 func_arith_result=$(( $* ))
16776}
16777
16778# func_len string
16779# STRING may not start with a hyphen.
16780func_len ()
16781{
16782 func_len_result=${#1}
16783}
16784
16785_LT_EOF
16786 ;;
16787 *) # Bourne compatible functions.
16788 cat << \_LT_EOF >> "$cfgfile"
16789
16790# func_dirname file append nondir_replacement
16791# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16792# otherwise set result to NONDIR_REPLACEMENT.
16793func_dirname ()
16794{
16795 # Extract subdirectory from the argument.
16796 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16797 if test "X$func_dirname_result" = "X${1}"; then
16798 func_dirname_result="${3}"
16799 else
16800 func_dirname_result="$func_dirname_result${2}"
16801 fi
16802}
16803
16804# func_basename file
16805func_basename ()
16806{
16807 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16808}
16809
16810
16811# func_stripname prefix suffix name
16812# strip PREFIX and SUFFIX off of NAME.
16813# PREFIX and SUFFIX must not contain globbing or regex special
16814# characters, hashes, percent signs, but SUFFIX may contain a leading
16815# dot (in which case that matches only a dot).
16816# func_strip_suffix prefix name
16817func_stripname ()
16818{
16819 case ${2} in
16820 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16821 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16822 esac
16823}
16824
16825# sed scripts:
16826my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16827my_sed_long_arg='1s/^-[^=]*=//'
16828
16829# func_opt_split
16830func_opt_split ()
16831{
16832 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16833 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16834}
16835
16836# func_lo2o object
16837func_lo2o ()
16838{
16839 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16840}
16841
16842# func_xform libobj-or-source
16843func_xform ()
16844{
16845 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16846}
16847
16848# func_arith arithmetic-term...
16849func_arith ()
16850{
16851 func_arith_result=`expr "$@"`
16852}
16853
16854# func_len string
16855# STRING may not start with a hyphen.
16856func_len ()
16857{
16858 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16859}
16860
16861_LT_EOF
16862esac
16863
16864case $lt_shell_append in
16865 yes)
16866 cat << \_LT_EOF >> "$cfgfile"
16867
16868# func_append var value
16869# Append VALUE to the end of shell variable VAR.
16870func_append ()
16871{
16872 eval "$1+=\$2"
16873}
16874_LT_EOF
16875 ;;
16876 *)
16877 cat << \_LT_EOF >> "$cfgfile"
16878
16879# func_append var value
16880# Append VALUE to the end of shell variable VAR.
16881func_append ()
16882{
16883 eval "$1=\$$1\$2"
16884}
16885
16886_LT_EOF
16887 ;;
16888 esac
16889
16890
16891 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16892 || (rm -f "$cfgfile"; exit 1)
16893
16894 mv -f "$cfgfile" "$ofile" ||
16895 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16896 chmod +x "$ofile"
16897
16898 ;;
81ecdfbb 16899 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
16900 rm -f Makesim1.tmp Makesim2.tmp Makefile
16901 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
16902 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
16903 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
16904 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
16905 <Makefile.sim >Makefile
38f48d72 16906 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 16907 ;;
81ecdfbb
RW
16908 "stamp-h":C) echo > stamp-h ;;
16909
b7026657 16910 esac
81ecdfbb 16911done # for ac_tag
c906108c 16912
b7026657 16913
81ecdfbb 16914as_fn_exit 0
b7026657 16915_ACEOF
b7026657
AC
16916ac_clean_files=$ac_clean_files_save
16917
81ecdfbb 16918test $ac_write_fail = 0 ||
d0ac1c44 16919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16920
b7026657
AC
16921
16922# configure is writing to config.log, and then calls config.status.
16923# config.status does its own redirection, appending to config.log.
16924# Unfortunately, on DOS this fails, as config.log is still kept open
16925# by configure, so config.status won't be able to write to it; its
16926# output is simply discarded. So we exec the FD to /dev/null,
16927# effectively closing config.log, so it can be properly (re)opened and
16928# appended to by config.status. When coming back to configure, we
16929# need to make the FD available again.
16930if test "$no_create" != yes; then
16931 ac_cs_success=:
16932 ac_config_status_args=
16933 test "$silent" = yes &&
16934 ac_config_status_args="$ac_config_status_args --quiet"
16935 exec 5>/dev/null
16936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16937 exec 5>>config.log
16938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16939 # would make configure fail if this is the last instruction.
d0ac1c44 16940 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16941fi
16942if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16944$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 16945fi
c906108c
SS
16946
16947