]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mips/configure
Require GNU make
[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
2c2645d7 632ac_header_list=
37e9f182 633ac_func_list=
81ecdfbb
RW
634ac_subst_vars='LTLIBOBJS
635LIBOBJS
760b3e8b
MF
636sim_default_model
637sim_scache
81ecdfbb
RW
638cgen_breaks
639mips_extra_libs
640XMKMF
641mips_igen_engine
81ecdfbb
RW
642sim_multi_obj
643sim_multi_src
644sim_multi_igen_configs
645sim_multi_flags
646sim_gen
8e394ffc
AB
647sim_micromips16_flags
648sim_micromips_flags
81ecdfbb
RW
649sim_m16_flags
650sim_igen_flags
651SIM_SUBTARGET
652REPORT_BUGS_TEXI
653REPORT_BUGS_TO
654PKGVERSION
81ecdfbb 655MAINT
31e6ad7d
MF
656MAINTAINER_MODE_FALSE
657MAINTAINER_MODE_TRUE
6bb11ab3
L
658lt_cv_dlopen_libs
659OTOOL64
660OTOOL
661LIPO
662NMEDIT
663DSYMUTIL
664AWK
665STRIP
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673SED
674LIBTOOL
675PLUGINS_FALSE
676PLUGINS_TRUE
aadc9410
MF
677zlibinc
678zlibdir
81ecdfbb
RW
679CATOBJEXT
680GENCAT
681INSTOBJEXT
682DATADIRNAME
683CATALOGS
684POSUB
685GMSGFMT
686XGETTEXT
687INCINTL
688LIBINTL_DEP
689LIBINTL
690USE_NLS
db2e4d67
MF
691CCDEPMODE
692DEPDIR
693am__leading_dot
5f3ef9d0 694PACKAGE
46f900c0 695C_DIALECT
81ecdfbb
RW
696RANLIB
697AR
c2783492 698LDFLAGS_FOR_BUILD
c25ea03d 699CFLAGS_FOR_BUILD
81ecdfbb
RW
700CC_FOR_BUILD
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
2232061b
MF
704EGREP
705GREP
c2783492
MF
706CPP
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
81ecdfbb
RW
714target_os
715target_vendor
716target_cpu
717target
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
81ecdfbb
RW
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
136da8cd
MF
763SHELL
764WERROR_CFLAGS
765WARN_CFLAGS
766sim_reserved_bits
767sim_inline
768sim_hw
769sim_hw_objs
770sim_hw_cflags
136da8cd
MF
771sim_float
772sim_endian
773sim_bitsize
774sim_alignment'
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
2c2645d7
MF
2323as_fn_append ac_header_list " dlfcn.h"
2324as_fn_append ac_header_list " fcntl.h"
2325as_fn_append ac_header_list " fpu_control.h"
2326as_fn_append ac_header_list " unistd.h"
2327as_fn_append ac_header_list " sys/mman.h"
2328as_fn_append ac_header_list " sys/resource.h"
2329as_fn_append ac_header_list " sys/time.h"
2330as_fn_append ac_header_list " sys/times.h"
2331as_fn_append ac_header_list " sys/stat.h"
37e9f182
MF
2332as_fn_append ac_func_list " __setfpucw"
2333as_fn_append ac_func_list " ftruncate"
2334as_fn_append ac_func_list " getrusage"
2335as_fn_append ac_func_list " lstat"
2336as_fn_append ac_func_list " mmap"
2337as_fn_append ac_func_list " munmap"
2338as_fn_append ac_func_list " posix_fallocate"
2339as_fn_append ac_func_list " sigaction"
2340as_fn_append ac_func_list " time"
2341as_fn_append ac_func_list " truncate"
b7026657
AC
2342# Check that the precious variables saved in the cache have kept the same
2343# value.
2344ac_cache_corrupted=false
81ecdfbb 2345for ac_var in $ac_precious_vars; do
b7026657
AC
2346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2348 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2350 case $ac_old_set,$ac_new_set in
2351 set,)
81ecdfbb
RW
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2354 ac_cache_corrupted=: ;;
2355 ,set)
81ecdfbb
RW
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2358 ac_cache_corrupted=: ;;
2359 ,);;
2360 *)
2361 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2362 # differences in whitespace do not lead to failure.
2363 ac_old_val_w=`echo x $ac_old_val`
2364 ac_new_val_w=`echo x $ac_new_val`
2365 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368 ac_cache_corrupted=:
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372 eval $ac_var=\$ac_old_val
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2375$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2377$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2378 fi;;
2379 esac
2380 # Pass precious variables to config.status.
2381 if test "$ac_new_set" = set; then
2382 case $ac_new_val in
81ecdfbb 2383 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2384 *) ac_arg=$ac_var=$ac_new_val ;;
2385 esac
2386 case " $ac_configure_args " in
2387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2388 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2389 esac
2390 fi
2391done
2392if $ac_cache_corrupted; then
81ecdfbb
RW
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2397 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2398fi
81ecdfbb
RW
2399## -------------------- ##
2400## Main body of script. ##
2401## -------------------- ##
b7026657
AC
2402
2403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
6bb11ab3
L
2410
2411
2412
2413
2414
c2783492
MF
2415ac_aux_dir=
2416for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417 if test -f "$ac_dir/install-sh"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/install-sh -c"
2420 break
2421 elif test -f "$ac_dir/install.sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install.sh -c"
2424 break
2425 elif test -f "$ac_dir/shtool"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/shtool install -c"
2428 break
2429 fi
2430done
2431if test -z "$ac_aux_dir"; then
2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2433fi
2434
2435# These three variables are undocumented and unsupported,
2436# and are intended to be withdrawn in a future Autoconf release.
2437# They can cause serious problems if a builder's source tree is in a directory
2438# whose full name contains unusual characters.
2439ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442
2443
2444# Make sure we can run config.sub.
2445$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2446 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2447
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2449$as_echo_n "checking build system type... " >&6; }
2450if ${ac_cv_build+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452else
2453 ac_build_alias=$build_alias
2454test "x$ac_build_alias" = x &&
2455 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2456test "x$ac_build_alias" = x &&
2457 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2458ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2460
2461fi
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2463$as_echo "$ac_cv_build" >&6; }
2464case $ac_cv_build in
2465*-*-*) ;;
2466*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2467esac
2468build=$ac_cv_build
2469ac_save_IFS=$IFS; IFS='-'
2470set x $ac_cv_build
2471shift
2472build_cpu=$1
2473build_vendor=$2
2474shift; shift
2475# Remember, the first character of IFS is used to create $*,
2476# except with old shells:
2477build_os=$*
2478IFS=$ac_save_IFS
2479case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480
2481
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2483$as_echo_n "checking host system type... " >&6; }
2484if ${ac_cv_host+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486else
2487 if test "x$host_alias" = x; then
2488 ac_cv_host=$ac_cv_build
2489else
2490 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2491 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2492fi
2493
2494fi
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2496$as_echo "$ac_cv_host" >&6; }
2497case $ac_cv_host in
2498*-*-*) ;;
2499*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2500esac
2501host=$ac_cv_host
2502ac_save_IFS=$IFS; IFS='-'
2503set x $ac_cv_host
2504shift
2505host_cpu=$1
2506host_vendor=$2
2507shift; shift
2508# Remember, the first character of IFS is used to create $*,
2509# except with old shells:
2510host_os=$*
2511IFS=$ac_save_IFS
2512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2516$as_echo_n "checking target system type... " >&6; }
2517if ${ac_cv_target+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519else
2520 if test "x$target_alias" = x; then
2521 ac_cv_target=$ac_cv_host
2522else
2523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2525fi
2526
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2529$as_echo "$ac_cv_target" >&6; }
2530case $ac_cv_target in
2531*-*-*) ;;
2532*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2533esac
2534target=$ac_cv_target
2535ac_save_IFS=$IFS; IFS='-'
2536set x $ac_cv_target
2537shift
2538target_cpu=$1
2539target_vendor=$2
2540shift; shift
2541# Remember, the first character of IFS is used to create $*,
2542# except with old shells:
2543target_os=$*
2544IFS=$ac_save_IFS
2545case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2546
2547
2548# The aliases save the names the user supplied, while $host etc.
2549# will get canonicalized.
2550test -n "$target_alias" &&
2551 test "$program_prefix$program_suffix$program_transform_name" = \
2552 NONENONEs,x,x, &&
2553 program_prefix=${target_alias}-
6bb11ab3
L
2554ac_ext=c
2555ac_cpp='$CPP $CPPFLAGS'
2556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2561set dummy ${ac_tool_prefix}gcc; ac_word=$2
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2564if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2565 $as_echo_n "(cached) " >&6
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2577 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581done
2582 done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2590$as_echo "$CC" >&6; }
2591else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593$as_echo "no" >&6; }
2594fi
2595
2596
2597fi
2598if test -z "$ac_cv_prog_CC"; then
2599 ac_ct_CC=$CC
2600 # Extract the first word of "gcc", so it can be a program name with args.
2601set dummy gcc; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2604if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2605 $as_echo_n "(cached) " >&6
2606else
2607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2617 ac_cv_prog_ac_ct_CC="gcc"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622 done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628if test -n "$ac_ct_CC"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2630$as_echo "$ac_ct_CC" >&6; }
2631else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636 if test "x$ac_ct_CC" = x; then
2637 CC=""
2638 else
2639 case $cross_compiling:$ac_tool_warned in
2640yes:)
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643ac_tool_warned=yes ;;
2644esac
2645 CC=$ac_ct_CC
2646 fi
2647else
2648 CC="$ac_cv_prog_CC"
2649fi
2650
2651if test -z "$CC"; then
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2654set dummy ${ac_tool_prefix}cc; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2657if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2658 $as_echo_n "(cached) " >&6
2659else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2670 ac_cv_prog_CC="${ac_tool_prefix}cc"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680CC=$ac_cv_prog_CC
2681if test -n "$CC"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683$as_echo "$CC" >&6; }
2684else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689
2690 fi
2691fi
2692if test -z "$CC"; then
2693 # Extract the first word of "cc", so it can be a program name with args.
2694set dummy cc; ac_word=$2
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2697if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2698 $as_echo_n "(cached) " >&6
2699else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703 ac_prog_rejected=no
2704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2712 ac_prog_rejected=yes
2713 continue
2714 fi
2715 ac_cv_prog_CC="cc"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720 done
2721IFS=$as_save_IFS
2722
2723if test $ac_prog_rejected = yes; then
2724 # We found a bogon in the path, so make sure we never use it.
2725 set dummy $ac_cv_prog_CC
2726 shift
2727 if test $# != 0; then
2728 # We chose a different compiler from the bogus one.
2729 # However, it has the same basename, so the bogon will be chosen
2730 # first if we set CC to just the basename; use the full file name.
2731 shift
2732 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2733 fi
2734fi
2735fi
2736fi
2737CC=$ac_cv_prog_CC
2738if test -n "$CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740$as_echo "$CC" >&6; }
2741else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743$as_echo "no" >&6; }
2744fi
2745
2746
2747fi
2748if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 for ac_prog in cl.exe
2751 do
2752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2756if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2757 $as_echo_n "(cached) " >&6
2758else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773done
2774 done
2775IFS=$as_save_IFS
2776
2777fi
2778fi
2779CC=$ac_cv_prog_CC
2780if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782$as_echo "$CC" >&6; }
2783else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788
2789 test -n "$CC" && break
2790 done
2791fi
2792if test -z "$CC"; then
2793 ac_ct_CC=$CC
2794 for ac_prog in cl.exe
2795do
2796 # Extract the first word of "$ac_prog", so it can be a program name with args.
2797set dummy $ac_prog; ac_word=$2
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2800if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2801 $as_echo_n "(cached) " >&6
2802else
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2813 ac_cv_prog_ac_ct_CC="$ac_prog"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2816 fi
2817done
2818 done
2819IFS=$as_save_IFS
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826$as_echo "$ac_ct_CC" >&6; }
2827else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832
2833 test -n "$ac_ct_CC" && break
2834done
2835
2836 if test "x$ac_ct_CC" = x; then
2837 CC=""
2838 else
2839 case $cross_compiling:$ac_tool_warned in
2840yes:)
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843ac_tool_warned=yes ;;
2844esac
2845 CC=$ac_ct_CC
2846 fi
2847fi
2848
2849fi
2850
2851
2852test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2854as_fn_error $? "no acceptable C compiler found in \$PATH
2855See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2856
2857# Provide some information about the compiler.
2858$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2859set X $ac_compile
2860ac_compiler=$2
2861for ac_option in --version -v -V -qversion; do
2862 { { ac_try="$ac_compiler $ac_option >&5"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868$as_echo "$ac_try_echo"; } >&5
2869 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2870 ac_status=$?
2871 if test -s conftest.err; then
2872 sed '10a\
2873... rest of stderr output deleted ...
2874 10q' conftest.err >conftest.er1
2875 cat conftest.er1 >&5
6bb11ab3 2876 fi
d0ac1c44 2877 rm -f conftest.er1 conftest.err
6bb11ab3
L
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }
2880done
2881
2882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893ac_clean_files_save=$ac_clean_files
d0ac1c44 2894ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2895# Try to create an executable without -o first, disregard a.out.
2896# It will help us diagnose broken compilers, and finding out an intuition
2897# of exeext.
d0ac1c44
SM
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2899$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2900ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2901
2902# The possible output files:
2903ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2904
2905ac_rmfiles=
2906for ac_file in $ac_files
2907do
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911 esac
2912done
2913rm -f $ac_rmfiles
2914
2915if { { ac_try="$ac_link_default"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921$as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_link_default") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; then :
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928# in a Makefile. We should not override ac_cv_exeext if it was cached,
2929# so that the user can short-circuit this test for compilers unknown to
2930# Autoconf.
2931for ac_file in $ac_files ''
2932do
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2936 ;;
2937 [ab].out )
2938 # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* )
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943 then :; else
2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 fi
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2950 # actually working.
2951 break;;
2952 * )
2953 break;;
2954 esac
2955done
2956test "$ac_cv_exeext" = no && ac_cv_exeext=
2957
2958else
2959 ac_file=''
2960fi
6bb11ab3 2961if test -z "$ac_file"; then :
d0ac1c44
SM
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2969as_fn_error 77 "C compiler cannot create executables
2970See \`config.log' for more details" "$LINENO" 5; }
2971else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973$as_echo "yes" >&6; }
6bb11ab3 2974fi
d0ac1c44
SM
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2976$as_echo_n "checking for C compiler default output file name... " >&6; }
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2978$as_echo "$ac_file" >&6; }
6bb11ab3
L
2979ac_exeext=$ac_cv_exeext
2980
d0ac1c44 2981rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2982ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2984$as_echo_n "checking for suffix of executables... " >&6; }
2985if { { ac_try="$ac_link"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_link") 2>&5
2993 ac_status=$?
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; then :
2996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2997# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2998# work properly (i.e., refer to `conftest.exe'), while it won't with
2999# `rm'.
3000for ac_file in conftest.exe conftest conftest.*; do
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3004 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 break;;
3006 * ) break;;
3007 esac
3008done
3009else
3010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3012as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3013See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 3014fi
d0ac1c44 3015rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3017$as_echo "$ac_cv_exeext" >&6; }
3018
3019rm -f conftest.$ac_ext
3020EXEEXT=$ac_cv_exeext
3021ac_exeext=$EXEEXT
d0ac1c44
SM
3022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024#include <stdio.h>
3025int
3026main ()
3027{
3028FILE *f = fopen ("conftest.out", "w");
3029 return ferror (f) || fclose (f) != 0;
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035ac_clean_files="$ac_clean_files conftest.out"
3036# Check that the compiler produces executables we can run. If not, either
3037# the compiler is broken, or we cross compile.
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3039$as_echo_n "checking whether we are cross compiling... " >&6; }
3040if test "$cross_compiling" != yes; then
3041 { { ac_try="$ac_link"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047$as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 if { ac_try='./conftest$ac_cv_exeext'
3053 { { case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; }; then
3063 cross_compiling=no
3064 else
3065 if test "$cross_compiling" = maybe; then
3066 cross_compiling=yes
3067 else
3068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070as_fn_error $? "cannot run C compiled programs.
3071If you meant to cross compile, use \`--host'.
3072See \`config.log' for more details" "$LINENO" 5; }
3073 fi
3074 fi
3075fi
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3077$as_echo "$cross_compiling" >&6; }
3078
3079rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3080ac_clean_files=$ac_clean_files_save
6bb11ab3
L
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3082$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3083if ${ac_cv_objext+:} false; then :
6bb11ab3
L
3084 $as_echo_n "(cached) " >&6
3085else
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087/* end confdefs.h. */
3088
3089int
3090main ()
3091{
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.o conftest.obj
3098if { { ac_try="$ac_compile"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104$as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_compile") 2>&5
3106 ac_status=$?
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 for ac_file in conftest.o conftest.obj conftest.*; do
3110 test -f "$ac_file" || continue;
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3113 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3114 break;;
3115 esac
3116done
3117else
3118 $as_echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3123as_fn_error $? "cannot compute suffix of object files: cannot compile
3124See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
3125fi
3126rm -f conftest.$ac_cv_objext conftest.$ac_ext
3127fi
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3129$as_echo "$ac_cv_objext" >&6; }
3130OBJEXT=$ac_cv_objext
3131ac_objext=$OBJEXT
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3133$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3134if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
3135 $as_echo_n "(cached) " >&6
3136else
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h. */
3139
3140int
3141main ()
3142{
3143#ifndef __GNUC__
3144 choke me
3145#endif
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151if ac_fn_c_try_compile "$LINENO"; then :
3152 ac_compiler_gnu=yes
3153else
3154 ac_compiler_gnu=no
3155fi
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157ac_cv_c_compiler_gnu=$ac_compiler_gnu
3158
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3161$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3162if test $ac_compiler_gnu = yes; then
3163 GCC=yes
3164else
3165 GCC=
3166fi
3167ac_test_CFLAGS=${CFLAGS+set}
3168ac_save_CFLAGS=$CFLAGS
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3170$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3171if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
3172 $as_echo_n "(cached) " >&6
3173else
3174 ac_save_c_werror_flag=$ac_c_werror_flag
3175 ac_c_werror_flag=yes
3176 ac_cv_prog_cc_g=no
3177 CFLAGS="-g"
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h. */
3180
3181int
3182main ()
3183{
3184
3185 ;
3186 return 0;
3187}
3188_ACEOF
3189if ac_fn_c_try_compile "$LINENO"; then :
3190 ac_cv_prog_cc_g=yes
3191else
3192 CFLAGS=""
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h. */
3195
3196int
3197main ()
3198{
3199
3200 ;
3201 return 0;
3202}
3203_ACEOF
3204if ac_fn_c_try_compile "$LINENO"; then :
3205
3206else
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208 CFLAGS="-g"
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h. */
3211
3212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_cv_prog_cc_g=yes
3222fi
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224fi
3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226fi
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229fi
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3231$as_echo "$ac_cv_prog_cc_g" >&6; }
3232if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
3237 else
3238 CFLAGS="-g"
3239 fi
3240else
3241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
3243 else
3244 CFLAGS=
3245 fi
3246fi
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3248$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3249if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3250 $as_echo_n "(cached) " >&6
3251else
3252 ac_cv_prog_cc_c89=no
3253ac_save_CC=$CC
3254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h. */
3256#include <stdarg.h>
3257#include <stdio.h>
d0ac1c44 3258struct stat;
6bb11ab3
L
3259/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3260struct buf { int x; };
3261FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262static char *e (p, i)
3263 char **p;
3264 int i;
3265{
3266 return p[i];
3267}
3268static char *f (char * (*g) (char **, int), char **p, ...)
3269{
3270 char *s;
3271 va_list v;
3272 va_start (v,p);
3273 s = g (p, va_arg (v,int));
3274 va_end (v);
3275 return s;
3276}
3277
3278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3279 function prototypes and stuff, but not '\xHH' hex character constants.
3280 These don't provoke an error unfortunately, instead are silently treated
3281 as 'x'. The following induces an error, until -std is added to get
3282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3283 array size at least. It's necessary to write '\x00'==0 to get something
3284 that's true only with -std. */
3285int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286
3287/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288 inside strings and character constants. */
3289#define FOO(x) 'x'
3290int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291
3292int test (int i, double x);
3293struct s1 {int (*f) (int a);};
3294struct s2 {int (*f) (double a);};
3295int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296int argc;
3297char **argv;
3298int
3299main ()
3300{
3301return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308do
3309 CC="$ac_save_CC $ac_arg"
3310 if ac_fn_c_try_compile "$LINENO"; then :
3311 ac_cv_prog_cc_c89=$ac_arg
3312fi
3313rm -f core conftest.err conftest.$ac_objext
3314 test "x$ac_cv_prog_cc_c89" != "xno" && break
3315done
3316rm -f conftest.$ac_ext
3317CC=$ac_save_CC
3318
3319fi
3320# AC_CACHE_VAL
3321case "x$ac_cv_prog_cc_c89" in
3322 x)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3324$as_echo "none needed" >&6; } ;;
3325 xno)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3327$as_echo "unsupported" >&6; } ;;
3328 *)
3329 CC="$CC $ac_cv_prog_cc_c89"
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3331$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3332esac
3333if test "x$ac_cv_prog_cc_c89" != xno; then :
3334
3335fi
3336
3337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
c2783492 3343
ebe9564b
MF
3344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3350$as_echo_n "checking how to run the C preprocessor... " >&6; }
3351# On Suns, sometimes $CPP names a directory.
3352if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3354fi
3355if test -z "$CPP"; then
3356 if ${ac_cv_prog_CPP+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 do
3362 ac_preproc_ok=false
3363for ac_c_preproc_warn_flag in '' yes
3364do
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h. */
3373#ifdef __STDC__
3374# include <limits.h>
3375#else
3376# include <assert.h>
3377#endif
3378 Syntax error
3379_ACEOF
3380if ac_fn_c_try_cpp "$LINENO"; then :
3381
3382else
3383 # Broken: fails on valid input.
3384continue
3385fi
3386rm -f conftest.err conftest.i conftest.$ac_ext
3387
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h. */
3392#include <ac_nonexistent.h>
3393_ACEOF
3394if ac_fn_c_try_cpp "$LINENO"; then :
3395 # Broken: success on invalid input.
3396continue
3397else
3398 # Passes both tests.
3399ac_preproc_ok=:
3400break
3401fi
3402rm -f conftest.err conftest.i conftest.$ac_ext
3403
3404done
3405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406rm -f conftest.i conftest.err conftest.$ac_ext
3407if $ac_preproc_ok; then :
3408 break
3409fi
3410
3411 done
3412 ac_cv_prog_CPP=$CPP
3413
3414fi
3415 CPP=$ac_cv_prog_CPP
3416else
3417 ac_cv_prog_CPP=$CPP
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3420$as_echo "$CPP" >&6; }
3421ac_preproc_ok=false
3422for ac_c_preproc_warn_flag in '' yes
3423do
3424 # Use a header file that comes with gcc, so configuring glibc
3425 # with a fresh cross-compiler works.
3426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3427 # <limits.h> exists even on freestanding compilers.
3428 # On the NeXT, cc -E runs the code through the compiler's parser,
3429 # not just through cpp. "Syntax error" is here to catch this case.
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
3439if ac_fn_c_try_cpp "$LINENO"; then :
3440
3441else
3442 # Broken: fails on valid input.
3443continue
3444fi
3445rm -f conftest.err conftest.i conftest.$ac_ext
3446
3447 # OK, works on sane cases. Now check whether nonexistent headers
3448 # can be detected and how.
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h. */
3451#include <ac_nonexistent.h>
3452_ACEOF
3453if ac_fn_c_try_cpp "$LINENO"; then :
3454 # Broken: success on invalid input.
3455continue
3456else
3457 # Passes both tests.
3458ac_preproc_ok=:
3459break
3460fi
3461rm -f conftest.err conftest.i conftest.$ac_ext
3462
3463done
3464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465rm -f conftest.i conftest.err conftest.$ac_ext
3466if $ac_preproc_ok; then :
3467
3468else
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3472See \`config.log' for more details" "$LINENO" 5; }
3473fi
3474
3475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
6bb11ab3
L
3481
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3483$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3484if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3485 $as_echo_n "(cached) " >&6
3486else
3487 if test -z "$GREP"; then
3488 ac_path_GREP_found=false
3489 # Loop through the user's path and test for each of PROGNAME-LIST
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3492do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_prog in grep ggrep; do
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3498 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3499# Check for GNU ac_path_GREP and select it if it is found.
3500 # Check for GNU $ac_path_GREP
3501case `"$ac_path_GREP" --version 2>&1` in
3502*GNU*)
3503 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3504*)
3505 ac_count=0
3506 $as_echo_n 0123456789 >"conftest.in"
3507 while :
3508 do
3509 cat "conftest.in" "conftest.in" >"conftest.tmp"
3510 mv "conftest.tmp" "conftest.in"
3511 cp "conftest.in" "conftest.nl"
3512 $as_echo 'GREP' >> "conftest.nl"
3513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3515 as_fn_arith $ac_count + 1 && ac_count=$as_val
3516 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3517 # Best one so far, save it but keep looking for a better one
3518 ac_cv_path_GREP="$ac_path_GREP"
3519 ac_path_GREP_max=$ac_count
3520 fi
3521 # 10*(2^10) chars as input seems more than enough
3522 test $ac_count -gt 10 && break
3523 done
3524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3525esac
3526
3527 $ac_path_GREP_found && break 3
3528 done
3529 done
3530 done
3531IFS=$as_save_IFS
3532 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3534 fi
3535else
3536 ac_cv_path_GREP=$GREP
3537fi
3538
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3541$as_echo "$ac_cv_path_GREP" >&6; }
3542 GREP="$ac_cv_path_GREP"
3543
3544
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3546$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3547if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3548 $as_echo_n "(cached) " >&6
3549else
3550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3551 then ac_cv_path_EGREP="$GREP -E"
3552 else
3553 if test -z "$EGREP"; then
3554 ac_path_EGREP_found=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3558do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_prog in egrep; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3564 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3565# Check for GNU ac_path_EGREP and select it if it is found.
3566 # Check for GNU $ac_path_EGREP
3567case `"$ac_path_EGREP" --version 2>&1` in
3568*GNU*)
3569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3570*)
3571 ac_count=0
3572 $as_echo_n 0123456789 >"conftest.in"
3573 while :
3574 do
3575 cat "conftest.in" "conftest.in" >"conftest.tmp"
3576 mv "conftest.tmp" "conftest.in"
3577 cp "conftest.in" "conftest.nl"
3578 $as_echo 'EGREP' >> "conftest.nl"
3579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581 as_fn_arith $ac_count + 1 && ac_count=$as_val
3582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3583 # Best one so far, save it but keep looking for a better one
3584 ac_cv_path_EGREP="$ac_path_EGREP"
3585 ac_path_EGREP_max=$ac_count
3586 fi
3587 # 10*(2^10) chars as input seems more than enough
3588 test $ac_count -gt 10 && break
3589 done
3590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591esac
3592
3593 $ac_path_EGREP_found && break 3
3594 done
3595 done
3596 done
3597IFS=$as_save_IFS
3598 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3599 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3600 fi
3601else
3602 ac_cv_path_EGREP=$EGREP
3603fi
3604
3605 fi
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3608$as_echo "$ac_cv_path_EGREP" >&6; }
3609 EGREP="$ac_cv_path_EGREP"
3610
3611
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3613$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3614if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3615 $as_echo_n "(cached) " >&6
3616else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h. */
3619#include <stdlib.h>
3620#include <stdarg.h>
3621#include <string.h>
3622#include <float.h>
3623
3624int
3625main ()
3626{
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
3632if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_cv_header_stdc=yes
3634else
3635 ac_cv_header_stdc=no
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638
3639if test $ac_cv_header_stdc = yes; then
3640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643#include <string.h>
3644
3645_ACEOF
3646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 $EGREP "memchr" >/dev/null 2>&1; then :
3648
3649else
3650 ac_cv_header_stdc=no
3651fi
3652rm -f conftest*
3653
3654fi
3655
3656if test $ac_cv_header_stdc = yes; then
3657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h. */
3660#include <stdlib.h>
3661
3662_ACEOF
3663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 $EGREP "free" >/dev/null 2>&1; then :
3665
3666else
3667 ac_cv_header_stdc=no
3668fi
3669rm -f conftest*
3670
3671fi
3672
3673if test $ac_cv_header_stdc = yes; then
3674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3675 if test "$cross_compiling" = yes; then :
3676 :
3677else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h. */
3680#include <ctype.h>
3681#include <stdlib.h>
3682#if ((' ' & 0x0FF) == 0x020)
3683# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685#else
3686# define ISLOWER(c) \
3687 (('a' <= (c) && (c) <= 'i') \
3688 || ('j' <= (c) && (c) <= 'r') \
3689 || ('s' <= (c) && (c) <= 'z'))
3690# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691#endif
3692
3693#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694int
3695main ()
3696{
3697 int i;
3698 for (i = 0; i < 256; i++)
3699 if (XOR (islower (i), ISLOWER (i))
3700 || toupper (i) != TOUPPER (i))
3701 return 2;
3702 return 0;
3703}
3704_ACEOF
3705if ac_fn_c_try_run "$LINENO"; then :
3706
3707else
3708 ac_cv_header_stdc=no
3709fi
3710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3711 conftest.$ac_objext conftest.beam conftest.$ac_ext
3712fi
3713
3714fi
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3717$as_echo "$ac_cv_header_stdc" >&6; }
3718if test $ac_cv_header_stdc = yes; then
3719
3720$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3721
3722fi
3723
3724# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3725for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3726 inttypes.h stdint.h unistd.h
3727do :
3728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3730"
d0ac1c44 3731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3732 cat >>confdefs.h <<_ACEOF
3733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3734_ACEOF
3735
3736fi
3737
3738done
3739
3740
3741
3742 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3743if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3744 MINIX=yes
3745else
3746 MINIX=
3747fi
3748
3749
3750 if test "$MINIX" = yes; then
3751
3752$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3753
3754
3755$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3756
3757
3758$as_echo "#define _MINIX 1" >>confdefs.h
3759
3760 fi
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3764$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3765if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3766 $as_echo_n "(cached) " >&6
3767else
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h. */
3770
d0ac1c44
SM
3771# define __EXTENSIONS__ 1
3772 $ac_includes_default
6bb11ab3
L
3773int
3774main ()
3775{
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_safe_to_define___extensions__=yes
3783else
3784 ac_cv_safe_to_define___extensions__=no
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3789$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3790 test $ac_cv_safe_to_define___extensions__ = yes &&
3791 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3792
3793 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3794
3795 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3796
3797 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3798
3799 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3800
3801
3802test "$program_prefix" != NONE &&
3803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3804# Use a double $ so make ignores it.
3805test "$program_suffix" != NONE &&
3806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3807# Double any \ or $.
3808# By default was `s,x,x', remove it if useless.
3809ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3810program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3811
3812# Find a good install program. We prefer a C program (faster),
3813# so one script is as good as another. But avoid the broken or
3814# incompatible versions:
3815# SysV /etc/install, /usr/sbin/install
3816# SunOS /usr/etc/install
3817# IRIX /sbin/install
3818# AIX /bin/install
3819# AmigaOS /C/install, which installs bootblocks on floppy discs
3820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823# OS/2's system install, which has a completely different semantic
3824# ./install, which can be erroneously created by make from ./install.sh.
3825# Reject install programs that cannot install multiple files.
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3827$as_echo_n "checking for a BSD-compatible install... " >&6; }
3828if test -z "$INSTALL"; then
d0ac1c44 3829if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3830 $as_echo_n "(cached) " >&6
3831else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 # Account for people who put trailing slashes in PATH elements.
3838case $as_dir/ in #((
3839 ./ | .// | /[cC]/* | \
3840 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3842 /usr/ucb/* ) ;;
3843 *)
3844 # OSF1 and SCO ODT 3.0 have their own names for install.
3845 # Don't use installbsd from OSF since it installs stuff as root
3846 # by default.
3847 for ac_prog in ginstall scoinst install; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3849 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3850 if test $ac_prog = install &&
3851 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852 # AIX install. It has an incompatible calling convention.
3853 :
3854 elif test $ac_prog = install &&
3855 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856 # program-specific install script used by HP pwplus--don't use.
3857 :
3858 else
3859 rm -rf conftest.one conftest.two conftest.dir
3860 echo one > conftest.one
3861 echo two > conftest.two
3862 mkdir conftest.dir
3863 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864 test -s conftest.one && test -s conftest.two &&
3865 test -s conftest.dir/conftest.one &&
3866 test -s conftest.dir/conftest.two
3867 then
3868 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3869 break 3
3870 fi
3871 fi
3872 fi
3873 done
3874 done
3875 ;;
3876esac
3877
3878 done
3879IFS=$as_save_IFS
3880
3881rm -rf conftest.one conftest.two conftest.dir
3882
3883fi
3884 if test "${ac_cv_path_install+set}" = set; then
3885 INSTALL=$ac_cv_path_install
3886 else
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for INSTALL within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 INSTALL=$ac_install_sh
3892 fi
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3895$as_echo "$INSTALL" >&6; }
3896
3897# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898# It thinks the first close brace ends the variable substitution.
3899test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3900
3901test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3902
3903test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904
3905rm -rf .tst 2>/dev/null
3906mkdir .tst 2>/dev/null
3907if test -d .tst; then
3908 am__leading_dot=.
3909else
3910 am__leading_dot=_
3911fi
3912rmdir .tst 2>/dev/null
3913
3914DEPDIR="${am__leading_dot}deps"
37e9f182
MF
3915
3916
2c2645d7
MF
3917
3918
3919 for ac_header in $ac_header_list
3920do :
3921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3922ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3923"
3924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3925 cat >>confdefs.h <<_ACEOF
3926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3927_ACEOF
3928
3929fi
3930
3931done
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
37e9f182
MF
3952
3953
3954 for ac_func in $ac_func_list
3955do :
3956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3957ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3958if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3959 cat >>confdefs.h <<_ACEOF
3960#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3961_ACEOF
3962
3963fi
3964done
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
6bb11ab3
L
3985
3986case `pwd` in
3987 *\ * | *\ *)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3989$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3990esac
3991
3992
3993
3994macro_version='2.2.7a'
3995macro_revision='1.3134'
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009ltmain="$ac_aux_dir/ltmain.sh"
4010
4011# Backslashify metacharacters that are still active within
4012# double-quoted strings.
4013sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4014
4015# Same as above, but do not quote variable references.
4016double_quote_subst='s/\(["`\\]\)/\\\1/g'
4017
4018# Sed substitution to delay expansion of an escaped shell variable in a
4019# double_quote_subst'ed string.
4020delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4021
4022# Sed substitution to delay expansion of an escaped single quote.
4023delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4024
4025# Sed substitution to avoid accidental globbing in evaled expressions
4026no_glob_subst='s/\*/\\\*/g'
4027
4028ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4029ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4030ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4031
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4033$as_echo_n "checking how to print strings... " >&6; }
4034# Test print first, because it will be a builtin if present.
4035if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4036 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4037 ECHO='print -r --'
4038elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4039 ECHO='printf %s\n'
4040else
4041 # Use this function as a fallback that always works.
4042 func_fallback_echo ()
4043 {
4044 eval 'cat <<_LTECHO_EOF
4045$1
4046_LTECHO_EOF'
4047 }
4048 ECHO='func_fallback_echo'
4049fi
4050
4051# func_echo_all arg...
4052# Invoke $ECHO with all args, space-separated.
4053func_echo_all ()
4054{
4055 $ECHO ""
4056}
4057
4058case "$ECHO" in
4059 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4060$as_echo "printf" >&6; } ;;
4061 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4062$as_echo "print -r" >&6; } ;;
4063 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4064$as_echo "cat" >&6; } ;;
4065esac
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4081$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4082if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
4083 $as_echo_n "(cached) " >&6
4084else
4085 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4086 for ac_i in 1 2 3 4 5 6 7; do
4087 ac_script="$ac_script$as_nl$ac_script"
4088 done
4089 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4090 { ac_script=; unset ac_script;}
4091 if test -z "$SED"; then
4092 ac_path_SED_found=false
4093 # Loop through the user's path and test for each of PROGNAME-LIST
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_prog in sed gsed; do
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4102 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
4103# Check for GNU ac_path_SED and select it if it is found.
4104 # Check for GNU $ac_path_SED
4105case `"$ac_path_SED" --version 2>&1` in
4106*GNU*)
4107 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4108*)
4109 ac_count=0
4110 $as_echo_n 0123456789 >"conftest.in"
4111 while :
4112 do
4113 cat "conftest.in" "conftest.in" >"conftest.tmp"
4114 mv "conftest.tmp" "conftest.in"
4115 cp "conftest.in" "conftest.nl"
4116 $as_echo '' >> "conftest.nl"
4117 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4119 as_fn_arith $ac_count + 1 && ac_count=$as_val
4120 if test $ac_count -gt ${ac_path_SED_max-0}; then
4121 # Best one so far, save it but keep looking for a better one
4122 ac_cv_path_SED="$ac_path_SED"
4123 ac_path_SED_max=$ac_count
4124 fi
4125 # 10*(2^10) chars as input seems more than enough
4126 test $ac_count -gt 10 && break
4127 done
4128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4129esac
4130
4131 $ac_path_SED_found && break 3
4132 done
4133 done
4134 done
4135IFS=$as_save_IFS
4136 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4137 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
4138 fi
4139else
4140 ac_cv_path_SED=$SED
4141fi
4142
4143fi
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4145$as_echo "$ac_cv_path_SED" >&6; }
4146 SED="$ac_cv_path_SED"
4147 rm -f conftest.sed
4148
4149test -z "$SED" && SED=sed
4150Xsed="$SED -e 1s/^X//"
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4163$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4164if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
4165 $as_echo_n "(cached) " >&6
4166else
4167 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4168 then ac_cv_path_FGREP="$GREP -F"
4169 else
4170 if test -z "$FGREP"; then
4171 ac_path_FGREP_found=false
4172 # Loop through the user's path and test for each of PROGNAME-LIST
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_prog in fgrep; do
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4181 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
4182# Check for GNU ac_path_FGREP and select it if it is found.
4183 # Check for GNU $ac_path_FGREP
4184case `"$ac_path_FGREP" --version 2>&1` in
4185*GNU*)
4186 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4187*)
4188 ac_count=0
4189 $as_echo_n 0123456789 >"conftest.in"
4190 while :
4191 do
4192 cat "conftest.in" "conftest.in" >"conftest.tmp"
4193 mv "conftest.tmp" "conftest.in"
4194 cp "conftest.in" "conftest.nl"
4195 $as_echo 'FGREP' >> "conftest.nl"
4196 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198 as_fn_arith $ac_count + 1 && ac_count=$as_val
4199 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4200 # Best one so far, save it but keep looking for a better one
4201 ac_cv_path_FGREP="$ac_path_FGREP"
4202 ac_path_FGREP_max=$ac_count
4203 fi
4204 # 10*(2^10) chars as input seems more than enough
4205 test $ac_count -gt 10 && break
4206 done
4207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208esac
4209
4210 $ac_path_FGREP_found && break 3
4211 done
4212 done
4213 done
4214IFS=$as_save_IFS
4215 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4216 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
4217 fi
4218else
4219 ac_cv_path_FGREP=$FGREP
4220fi
4221
4222 fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4225$as_echo "$ac_cv_path_FGREP" >&6; }
4226 FGREP="$ac_cv_path_FGREP"
4227
4228
4229test -z "$GREP" && GREP=grep
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249# Check whether --with-gnu-ld was given.
4250if test "${with_gnu_ld+set}" = set; then :
4251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4252else
4253 with_gnu_ld=no
4254fi
4255
4256ac_prog=ld
4257if test "$GCC" = yes; then
4258 # Check if gcc -print-prog-name=ld gives a path.
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4260$as_echo_n "checking for ld used by $CC... " >&6; }
4261 case $host in
4262 *-*-mingw*)
4263 # gcc leaves a trailing carriage return which upsets mingw
4264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4265 *)
4266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4267 esac
4268 case $ac_prog in
4269 # Accept absolute paths.
4270 [\\/]* | ?:[\\/]*)
4271 re_direlt='/[^/][^/]*/\.\./'
4272 # Canonicalize the pathname of ld
4273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4276 done
4277 test -z "$LD" && LD="$ac_prog"
4278 ;;
4279 "")
4280 # If it fails, then pretend we aren't using GCC.
4281 ac_prog=ld
4282 ;;
4283 *)
4284 # If it is relative, then search for the first ld in PATH.
4285 with_gnu_ld=unknown
4286 ;;
4287 esac
4288elif test "$with_gnu_ld" = yes; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4290$as_echo_n "checking for GNU ld... " >&6; }
4291else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4293$as_echo_n "checking for non-GNU ld... " >&6; }
4294fi
d0ac1c44 4295if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4296 $as_echo_n "(cached) " >&6
4297else
4298 if test -z "$LD"; then
4299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4300 for ac_dir in $PATH; do
4301 IFS="$lt_save_ifs"
4302 test -z "$ac_dir" && ac_dir=.
4303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4304 lt_cv_path_LD="$ac_dir/$ac_prog"
4305 # Check to see if the program is GNU ld. I'd rather use --version,
4306 # but apparently some variants of GNU ld only accept -v.
4307 # Break only if it was the GNU/non-GNU ld that we prefer.
4308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4309 *GNU* | *'with BFD'*)
4310 test "$with_gnu_ld" != no && break
4311 ;;
4312 *)
4313 test "$with_gnu_ld" != yes && break
4314 ;;
4315 esac
4316 fi
4317 done
4318 IFS="$lt_save_ifs"
4319else
4320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4321fi
4322fi
4323
4324LD="$lt_cv_path_LD"
4325if test -n "$LD"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4327$as_echo "$LD" >&6; }
4328else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330$as_echo "no" >&6; }
4331fi
d0ac1c44 4332test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4334$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4335if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4336 $as_echo_n "(cached) " >&6
4337else
4338 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4339case `$LD -v 2>&1 </dev/null` in
4340*GNU* | *'with BFD'*)
4341 lt_cv_prog_gnu_ld=yes
4342 ;;
4343*)
4344 lt_cv_prog_gnu_ld=no
4345 ;;
4346esac
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4349$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4350with_gnu_ld=$lt_cv_prog_gnu_ld
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4361$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4362if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4363 $as_echo_n "(cached) " >&6
4364else
4365 if test -n "$NM"; then
4366 # Let the user override the test.
4367 lt_cv_path_NM="$NM"
4368else
4369 lt_nm_to_check="${ac_tool_prefix}nm"
4370 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4371 lt_nm_to_check="$lt_nm_to_check nm"
4372 fi
4373 for lt_tmp_nm in $lt_nm_to_check; do
4374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4375 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4376 IFS="$lt_save_ifs"
4377 test -z "$ac_dir" && ac_dir=.
4378 tmp_nm="$ac_dir/$lt_tmp_nm"
4379 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4380 # Check to see if the nm accepts a BSD-compat flag.
4381 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4382 # nm: unknown option "B" ignored
4383 # Tru64's nm complains that /dev/null is an invalid object file
4384 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4385 */dev/null* | *'Invalid file or object type'*)
4386 lt_cv_path_NM="$tmp_nm -B"
4387 break
4388 ;;
4389 *)
4390 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4391 */dev/null*)
4392 lt_cv_path_NM="$tmp_nm -p"
4393 break
4394 ;;
4395 *)
4396 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4397 continue # so that we can try to find one that supports BSD flags
4398 ;;
4399 esac
4400 ;;
4401 esac
4402 fi
4403 done
4404 IFS="$lt_save_ifs"
4405 done
4406 : ${lt_cv_path_NM=no}
4407fi
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4410$as_echo "$lt_cv_path_NM" >&6; }
4411if test "$lt_cv_path_NM" != "no"; then
4412 NM="$lt_cv_path_NM"
4413else
4414 # Didn't find any BSD compatible name lister, look for dumpbin.
4415 if test -n "$DUMPBIN"; then :
4416 # Let the user override the test.
4417 else
4418 if test -n "$ac_tool_prefix"; then
4419 for ac_prog in dumpbin "link -dump"
4420 do
4421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4425if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4426 $as_echo_n "(cached) " >&6
4427else
4428 if test -n "$DUMPBIN"; then
4429 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4438 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443 done
4444IFS=$as_save_IFS
4445
4446fi
4447fi
4448DUMPBIN=$ac_cv_prog_DUMPBIN
4449if test -n "$DUMPBIN"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4451$as_echo "$DUMPBIN" >&6; }
4452else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454$as_echo "no" >&6; }
4455fi
4456
4457
4458 test -n "$DUMPBIN" && break
4459 done
4460fi
4461if test -z "$DUMPBIN"; then
4462 ac_ct_DUMPBIN=$DUMPBIN
4463 for ac_prog in dumpbin "link -dump"
4464do
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466set dummy $ac_prog; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4469if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4470 $as_echo_n "(cached) " >&6
4471else
4472 if test -n "$ac_ct_DUMPBIN"; then
4473 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4482 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487 done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4493if test -n "$ac_ct_DUMPBIN"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4495$as_echo "$ac_ct_DUMPBIN" >&6; }
4496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
4500
4501
4502 test -n "$ac_ct_DUMPBIN" && break
4503done
4504
4505 if test "x$ac_ct_DUMPBIN" = x; then
4506 DUMPBIN=":"
4507 else
4508 case $cross_compiling:$ac_tool_warned in
4509yes:)
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512ac_tool_warned=yes ;;
4513esac
4514 DUMPBIN=$ac_ct_DUMPBIN
4515 fi
4516fi
4517
4518 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4519 *COFF*)
4520 DUMPBIN="$DUMPBIN -symbols"
4521 ;;
4522 *)
4523 DUMPBIN=:
4524 ;;
4525 esac
4526 fi
4527
4528 if test "$DUMPBIN" != ":"; then
4529 NM="$DUMPBIN"
4530 fi
4531fi
4532test -z "$NM" && NM=nm
4533
4534
4535
4536
4537
4538
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4540$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4541if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4542 $as_echo_n "(cached) " >&6
4543else
4544 lt_cv_nm_interface="BSD nm"
4545 echo "int some_variable = 0;" > conftest.$ac_ext
4546 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4547 (eval "$ac_compile" 2>conftest.err)
4548 cat conftest.err >&5
4549 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4550 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4551 cat conftest.err >&5
4552 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4553 cat conftest.out >&5
4554 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4555 lt_cv_nm_interface="MS dumpbin"
4556 fi
4557 rm -f conftest*
4558fi
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4560$as_echo "$lt_cv_nm_interface" >&6; }
4561
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4563$as_echo_n "checking whether ln -s works... " >&6; }
4564LN_S=$as_ln_s
4565if test "$LN_S" = "ln -s"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4567$as_echo "yes" >&6; }
4568else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4570$as_echo "no, using $LN_S" >&6; }
4571fi
4572
4573# find the maximum length of command line arguments
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4575$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4576if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4577 $as_echo_n "(cached) " >&6
4578else
4579 i=0
4580 teststring="ABCD"
4581
4582 case $build_os in
4583 msdosdjgpp*)
4584 # On DJGPP, this test can blow up pretty badly due to problems in libc
4585 # (any single argument exceeding 2000 bytes causes a buffer overrun
4586 # during glob expansion). Even if it were fixed, the result of this
4587 # check would be larger than it should be.
4588 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4589 ;;
4590
4591 gnu*)
4592 # Under GNU Hurd, this test is not required because there is
4593 # no limit to the length of command line arguments.
4594 # Libtool will interpret -1 as no limit whatsoever
4595 lt_cv_sys_max_cmd_len=-1;
4596 ;;
4597
4598 cygwin* | mingw* | cegcc*)
4599 # On Win9x/ME, this test blows up -- it succeeds, but takes
4600 # about 5 minutes as the teststring grows exponentially.
4601 # Worse, since 9x/ME are not pre-emptively multitasking,
4602 # you end up with a "frozen" computer, even though with patience
4603 # the test eventually succeeds (with a max line length of 256k).
4604 # Instead, let's just punt: use the minimum linelength reported by
4605 # all of the supported platforms: 8192 (on NT/2K/XP).
4606 lt_cv_sys_max_cmd_len=8192;
4607 ;;
4608
4609 mint*)
4610 # On MiNT this can take a long time and run out of memory.
4611 lt_cv_sys_max_cmd_len=8192;
4612 ;;
4613
4614 amigaos*)
4615 # On AmigaOS with pdksh, this test takes hours, literally.
4616 # So we just punt and use a minimum line length of 8192.
4617 lt_cv_sys_max_cmd_len=8192;
4618 ;;
4619
4620 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4621 # This has been around since 386BSD, at least. Likely further.
4622 if test -x /sbin/sysctl; then
4623 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4624 elif test -x /usr/sbin/sysctl; then
4625 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4626 else
4627 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4628 fi
4629 # And add a safety zone
4630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632 ;;
4633
4634 interix*)
4635 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4636 lt_cv_sys_max_cmd_len=196608
4637 ;;
4638
4639 osf*)
4640 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642 # nice to cause kernel panics so lets avoid the loop below.
4643 # First set a reasonable default.
4644 lt_cv_sys_max_cmd_len=16384
4645 #
4646 if test -x /sbin/sysconfig; then
4647 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4649 esac
4650 fi
4651 ;;
4652 sco3.2v5*)
4653 lt_cv_sys_max_cmd_len=102400
4654 ;;
4655 sysv5* | sco5v6* | sysv4.2uw2*)
4656 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657 if test -n "$kargmax"; then
4658 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4659 else
4660 lt_cv_sys_max_cmd_len=32768
4661 fi
4662 ;;
4663 *)
4664 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665 if test -n "$lt_cv_sys_max_cmd_len"; then
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668 else
4669 # Make teststring a little bigger before we do anything with it.
4670 # a 1K string should be a reasonable start.
4671 for i in 1 2 3 4 5 6 7 8 ; do
4672 teststring=$teststring$teststring
4673 done
4674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675 # If test is not a shell built-in, we'll probably end up computing a
4676 # maximum length that is only half of the actual maximum length, but
4677 # we can't tell.
4678 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4679 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4680 test $i != 17 # 1/2 MB should be enough
4681 do
4682 i=`expr $i + 1`
4683 teststring=$teststring$teststring
4684 done
4685 # Only check the string length outside the loop.
4686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4687 teststring=
4688 # Add a significant safety factor because C++ compilers can tack on
4689 # massive amounts of additional arguments before passing them to the
4690 # linker. It appears as though 1/2 is a usable value.
4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4692 fi
4693 ;;
4694 esac
4695
4696fi
4697
4698if test -n $lt_cv_sys_max_cmd_len ; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4701else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703$as_echo "none" >&6; }
4704fi
4705max_cmd_len=$lt_cv_sys_max_cmd_len
4706
4707
4708
4709
4710
4711
4712: ${CP="cp -f"}
4713: ${MV="mv -f"}
4714: ${RM="rm -f"}
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718# Try some XSI features
4719xsi_shell=no
4720( _lt_dummy="a/b/c"
4721 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4722 = c,a/b,, \
4723 && eval 'test $(( 1 + 1 )) -eq 2 \
4724 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4725 && xsi_shell=yes
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727$as_echo "$xsi_shell" >&6; }
4728
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4732lt_shell_append=no
4733( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4734 >/dev/null 2>&1 \
4735 && lt_shell_append=yes
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737$as_echo "$lt_shell_append" >&6; }
4738
4739
4740if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4741 lt_unset=unset
4742else
4743 lt_unset=false
4744fi
4745
4746
4747
4748
4749
4750# test EBCDIC or ASCII
4751case `echo X|tr X '\101'` in
4752 A) # ASCII based system
4753 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754 lt_SP2NL='tr \040 \012'
4755 lt_NL2SP='tr \015\012 \040\040'
4756 ;;
4757 *) # EBCDIC based system
4758 lt_SP2NL='tr \100 \n'
4759 lt_NL2SP='tr \r\n \100\100'
4760 ;;
4761esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4772$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4773if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4774 $as_echo_n "(cached) " >&6
4775else
4776 lt_cv_ld_reload_flag='-r'
4777fi
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4779$as_echo "$lt_cv_ld_reload_flag" >&6; }
4780reload_flag=$lt_cv_ld_reload_flag
4781case $reload_flag in
4782"" | " "*) ;;
4783*) reload_flag=" $reload_flag" ;;
4784esac
4785reload_cmds='$LD$reload_flag -o $output$reload_objs'
4786case $host_os in
4787 darwin*)
4788 if test "$GCC" = yes; then
4789 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4790 else
4791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4792 fi
4793 ;;
4794esac
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4806set dummy ${ac_tool_prefix}objdump; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4809if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4810 $as_echo_n "(cached) " >&6
4811else
4812 if test -n "$OBJDUMP"; then
4813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4822 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827 done
4828IFS=$as_save_IFS
4829
4830fi
4831fi
4832OBJDUMP=$ac_cv_prog_OBJDUMP
4833if test -n "$OBJDUMP"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4835$as_echo "$OBJDUMP" >&6; }
4836else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
4839fi
4840
4841
4842fi
4843if test -z "$ac_cv_prog_OBJDUMP"; then
4844 ac_ct_OBJDUMP=$OBJDUMP
4845 # Extract the first word of "objdump", so it can be a program name with args.
4846set dummy objdump; ac_word=$2
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4849if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4850 $as_echo_n "(cached) " >&6
4851else
4852 if test -n "$ac_ct_OBJDUMP"; then
4853 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4862 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866done
4867 done
4868IFS=$as_save_IFS
4869
4870fi
4871fi
4872ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4873if test -n "$ac_ct_OBJDUMP"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4875$as_echo "$ac_ct_OBJDUMP" >&6; }
4876else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
4880
4881 if test "x$ac_ct_OBJDUMP" = x; then
4882 OBJDUMP="false"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890 OBJDUMP=$ac_ct_OBJDUMP
4891 fi
4892else
4893 OBJDUMP="$ac_cv_prog_OBJDUMP"
4894fi
4895
4896test -z "$OBJDUMP" && OBJDUMP=objdump
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4907$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4908if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4909 $as_echo_n "(cached) " >&6
4910else
4911 lt_cv_file_magic_cmd='$MAGIC_CMD'
4912lt_cv_file_magic_test_file=
4913lt_cv_deplibs_check_method='unknown'
4914# Need to set the preceding variable on all platforms that support
4915# interlibrary dependencies.
4916# 'none' -- dependencies not supported.
4917# `unknown' -- same as none, but documents that we really don't know.
4918# 'pass_all' -- all dependencies passed with no checks.
4919# 'test_compile' -- check by making test program.
4920# 'file_magic [[regex]]' -- check by looking for files in library path
4921# which responds to the $file_magic_cmd with a given extended regex.
4922# If you have `file' or equivalent on your system and you're not sure
4923# whether `pass_all' will *always* work, you probably want this one.
4924
4925case $host_os in
4926aix[4-9]*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930beos*)
4931 lt_cv_deplibs_check_method=pass_all
4932 ;;
4933
4934bsdi[45]*)
4935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4936 lt_cv_file_magic_cmd='/usr/bin/file -L'
4937 lt_cv_file_magic_test_file=/shlib/libc.so
4938 ;;
4939
4940cygwin*)
4941 # func_win32_libid is a shell function defined in ltmain.sh
4942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4943 lt_cv_file_magic_cmd='func_win32_libid'
4944 ;;
4945
4946mingw* | pw32*)
4947 # Base MSYS/MinGW do not provide the 'file' command needed by
4948 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4949 # unless we find 'file', for example because we are cross-compiling.
4950 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4951 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4952 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4953 lt_cv_file_magic_cmd='func_win32_libid'
4954 else
4955 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4956 lt_cv_file_magic_cmd='$OBJDUMP -f'
4957 fi
4958 ;;
4959
4960cegcc*)
4961 # use the weaker test based on 'objdump'. See mingw*.
4962 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4963 lt_cv_file_magic_cmd='$OBJDUMP -f'
4964 ;;
4965
4966darwin* | rhapsody*)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969
4970freebsd* | dragonfly*)
4971 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4972 case $host_cpu in
4973 i*86 )
4974 # Not sure whether the presence of OpenBSD here was a mistake.
4975 # Let's accept both of them until this is cleared up.
4976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4977 lt_cv_file_magic_cmd=/usr/bin/file
4978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4979 ;;
4980 esac
4981 else
4982 lt_cv_deplibs_check_method=pass_all
4983 fi
4984 ;;
4985
4986gnu*)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989
4990haiku*)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994hpux10.20* | hpux11*)
4995 lt_cv_file_magic_cmd=/usr/bin/file
4996 case $host_cpu in
4997 ia64*)
4998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4999 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5000 ;;
5001 hppa*64*)
5002 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]'
5003 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5004 ;;
5005 *)
5006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5008 ;;
5009 esac
5010 ;;
5011
5012interix[3-9]*)
5013 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5015 ;;
5016
5017irix5* | irix6* | nonstopux*)
5018 case $LD in
5019 *-32|*"-32 ") libmagic=32-bit;;
5020 *-n32|*"-n32 ") libmagic=N32;;
5021 *-64|*"-64 ") libmagic=64-bit;;
5022 *) libmagic=never-match;;
5023 esac
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027# This must be Linux ELF.
5028linux* | k*bsd*-gnu | kopensolaris*-gnu)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032netbsd*)
5033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5035 else
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5037 fi
5038 ;;
5039
5040newos6*)
5041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5042 lt_cv_file_magic_cmd=/usr/bin/file
5043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5044 ;;
5045
5046*nto* | *qnx*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050openbsd*)
5051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5053 else
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055 fi
5056 ;;
5057
5058osf3* | osf4* | osf5*)
5059 lt_cv_deplibs_check_method=pass_all
5060 ;;
5061
5062rdos*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
5066solaris*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074sysv4 | sysv4.3*)
5075 case $host_vendor in
5076 motorola)
5077 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]'
5078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5079 ;;
5080 ncr)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083 sequent)
5084 lt_cv_file_magic_cmd='/bin/file'
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5086 ;;
5087 sni)
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5090 lt_cv_file_magic_test_file=/lib/libc.so
5091 ;;
5092 siemens)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095 pc)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098 esac
5099 ;;
5100
5101tpf*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104esac
5105
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5108$as_echo "$lt_cv_deplibs_check_method" >&6; }
5109file_magic_cmd=$lt_cv_file_magic_cmd
5110deplibs_check_method=$lt_cv_deplibs_check_method
5111test -z "$deplibs_check_method" && deplibs_check_method=unknown
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
68ed2854
MF
5124plugin_option=
5125plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5126for plugin in $plugin_names; do
5127 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5128 if test x$plugin_so = x$plugin; then
5129 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5130 fi
5131 if test x$plugin_so != x$plugin; then
5132 plugin_option="--plugin $plugin_so"
5133 break
5134 fi
5135done
5136
6bb11ab3
L
5137if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5139set dummy ${ac_tool_prefix}ar; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5142if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
5143 $as_echo_n "(cached) " >&6
5144else
5145 if test -n "$AR"; then
5146 ac_cv_prog_AR="$AR" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5155 ac_cv_prog_AR="${ac_tool_prefix}ar"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160 done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165AR=$ac_cv_prog_AR
5166if test -n "$AR"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5168$as_echo "$AR" >&6; }
5169else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174
5175fi
5176if test -z "$ac_cv_prog_AR"; then
5177 ac_ct_AR=$AR
5178 # Extract the first word of "ar", so it can be a program name with args.
5179set dummy ar; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5182if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
5183 $as_echo_n "(cached) " >&6
5184else
5185 if test -n "$ac_ct_AR"; then
5186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5195 ac_cv_prog_ac_ct_AR="ar"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199done
5200 done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205ac_ct_AR=$ac_cv_prog_ac_ct_AR
5206if test -n "$ac_ct_AR"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5208$as_echo "$ac_ct_AR" >&6; }
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214 if test "x$ac_ct_AR" = x; then
5215 AR="false"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223 AR=$ac_ct_AR
5224 fi
5225else
5226 AR="$ac_cv_prog_AR"
5227fi
5228
5229test -z "$AR" && AR=ar
68ed2854
MF
5230if test -n "$plugin_option"; then
5231 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
5232 touch conftest.c
5233 $AR $plugin_option rc conftest.a conftest.c
5234 if test "$?" != 0; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5236$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5237 else
5238 AR="$AR $plugin_option"
5239 fi
5240 rm -f conftest.*
68ed2854
MF
5241 fi
5242fi
6bb11ab3
L
5243test -z "$AR_FLAGS" && AR_FLAGS=cru
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5257set dummy ${ac_tool_prefix}strip; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5260if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5261 $as_echo_n "(cached) " >&6
5262else
5263 if test -n "$STRIP"; then
5264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277done
5278 done
5279IFS=$as_save_IFS
5280
5281fi
5282fi
5283STRIP=$ac_cv_prog_STRIP
5284if test -n "$STRIP"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5286$as_echo "$STRIP" >&6; }
5287else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292
5293fi
5294if test -z "$ac_cv_prog_STRIP"; then
5295 ac_ct_STRIP=$STRIP
5296 # Extract the first word of "strip", so it can be a program name with args.
5297set dummy strip; ac_word=$2
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5300if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5301 $as_echo_n "(cached) " >&6
5302else
5303 if test -n "$ac_ct_STRIP"; then
5304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5313 ac_cv_prog_ac_ct_STRIP="strip"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318 done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5324if test -n "$ac_ct_STRIP"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5326$as_echo "$ac_ct_STRIP" >&6; }
5327else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331
5332 if test "x$ac_ct_STRIP" = x; then
5333 STRIP=":"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336yes:)
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339ac_tool_warned=yes ;;
5340esac
5341 STRIP=$ac_ct_STRIP
5342 fi
5343else
5344 STRIP="$ac_cv_prog_STRIP"
5345fi
5346
5347test -z "$STRIP" && STRIP=:
5348
5349
5350
5351
5352
5353
5354if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5359if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5360 $as_echo_n "(cached) " >&6
5361else
5362 if test -n "$RANLIB"; then
5363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376done
5377 done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382RANLIB=$ac_cv_prog_RANLIB
5383if test -n "$RANLIB"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5385$as_echo "$RANLIB" >&6; }
5386else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392fi
5393if test -z "$ac_cv_prog_RANLIB"; then
5394 ac_ct_RANLIB=$RANLIB
5395 # Extract the first word of "ranlib", so it can be a program name with args.
5396set dummy ranlib; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5399if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5400 $as_echo_n "(cached) " >&6
5401else
5402 if test -n "$ac_ct_RANLIB"; then
5403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5412 ac_cv_prog_ac_ct_RANLIB="ranlib"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416done
5417 done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5423if test -n "$ac_ct_RANLIB"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5425$as_echo "$ac_ct_RANLIB" >&6; }
5426else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431 if test "x$ac_ct_RANLIB" = x; then
5432 RANLIB=":"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435yes:)
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438ac_tool_warned=yes ;;
5439esac
5440 RANLIB=$ac_ct_RANLIB
5441 fi
5442else
5443 RANLIB="$ac_cv_prog_RANLIB"
5444fi
5445
5446test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5447if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5448 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5449 RANLIB="$RANLIB $plugin_option"
5450 fi
5451fi
6bb11ab3
L
5452
5453
5454
5455
5456
5457
5458# Determine commands to create old-style static archives.
5459old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5460old_postinstall_cmds='chmod 644 $oldlib'
5461old_postuninstall_cmds=
5462
5463if test -n "$RANLIB"; then
5464 case $host_os in
5465 openbsd*)
5466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5467 ;;
5468 *)
5469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5470 ;;
5471 esac
5472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5473fi
5474
5475case $host_os in
5476 darwin*)
5477 lock_old_archive_extraction=yes ;;
5478 *)
5479 lock_old_archive_extraction=no ;;
5480esac
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502for ac_prog in gawk mawk nawk awk
5503do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505set dummy $ac_prog; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5508if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5509 $as_echo_n "(cached) " >&6
5510else
5511 if test -n "$AWK"; then
5512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5521 ac_cv_prog_AWK="$ac_prog"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526 done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531AWK=$ac_cv_prog_AWK
5532if test -n "$AWK"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5534$as_echo "$AWK" >&6; }
5535else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540
5541 test -n "$AWK" && break
5542done
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562# If no C compiler was specified, use CC.
5563LTCC=${LTCC-"$CC"}
5564
5565# If no C compiler flags were specified, use CFLAGS.
5566LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5567
5568# Allow CC to be a program name with arguments.
5569compiler=$CC
5570
5571
5572# Check for command to grab the raw symbol name followed by C symbol from nm.
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5574$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5575if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5576 $as_echo_n "(cached) " >&6
5577else
5578
5579# These are sane defaults that work on at least a few old systems.
5580# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5581
5582# Character class describing NM global symbol codes.
5583symcode='[BCDEGRST]'
5584
5585# Regexp to match symbols that can be accessed directly from C.
5586sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5587
5588# Define system-specific variables.
5589case $host_os in
5590aix*)
5591 symcode='[BCDT]'
5592 ;;
5593cygwin* | mingw* | pw32* | cegcc*)
5594 symcode='[ABCDGISTW]'
5595 ;;
5596hpux*)
5597 if test "$host_cpu" = ia64; then
5598 symcode='[ABCDEGRST]'
5599 fi
5600 ;;
5601irix* | nonstopux*)
5602 symcode='[BCDEGRST]'
5603 ;;
5604osf*)
5605 symcode='[BCDEGQRST]'
5606 ;;
5607solaris*)
5608 symcode='[BDRT]'
5609 ;;
5610sco3.2v5*)
5611 symcode='[DT]'
5612 ;;
5613sysv4.2uw2*)
5614 symcode='[DT]'
5615 ;;
5616sysv5* | sco5v6* | unixware* | OpenUNIX*)
5617 symcode='[ABDT]'
5618 ;;
5619sysv4)
5620 symcode='[DFNSTU]'
5621 ;;
5622esac
5623
5624# If we're using GNU nm, then use its standard symbol codes.
5625case `$NM -V 2>&1` in
5626*GNU* | *'with BFD'*)
5627 symcode='[ABCDGIRSTW]' ;;
5628esac
5629
5630# Transform an extracted symbol line into a proper C declaration.
5631# Some systems (esp. on ia64) link data and code symbols differently,
5632# so use this general approach.
5633lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5634
5635# Transform an extracted symbol line into symbol name and symbol address
5636lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5637lt_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'"
5638
5639# Handle CRLF in mingw tool chain
5640opt_cr=
5641case $build_os in
5642mingw*)
5643 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5644 ;;
5645esac
5646
5647# Try without a prefix underscore, then with it.
5648for ac_symprfx in "" "_"; do
5649
5650 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5651 symxfrm="\\1 $ac_symprfx\\2 \\2"
5652
5653 # Write the raw and C identifiers.
5654 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5655 # Fake it for dumpbin and say T for any non-static function
5656 # and D for any global variable.
5657 # Also find C++ and __fastcall symbols from MSVC++,
5658 # which start with @ or ?.
5659 lt_cv_sys_global_symbol_pipe="$AWK '"\
5660" {last_section=section; section=\$ 3};"\
5661" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5662" \$ 0!~/External *\|/{next};"\
5663" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5664" {if(hide[section]) next};"\
5665" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5666" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5667" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5668" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5669" ' prfx=^$ac_symprfx"
5670 else
5671 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5672 fi
5673
5674 # Check to see that the pipe works correctly.
5675 pipe_works=no
5676
5677 rm -f conftest*
5678 cat > conftest.$ac_ext <<_LT_EOF
5679#ifdef __cplusplus
5680extern "C" {
5681#endif
5682char nm_test_var;
5683void nm_test_func(void);
5684void nm_test_func(void){}
5685#ifdef __cplusplus
5686}
5687#endif
5688int main(){nm_test_var='a';nm_test_func();return(0);}
5689_LT_EOF
5690
5691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5692 (eval $ac_compile) 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; }; then
5696 # Now try to grab the symbols.
5697 nlist=conftest.nm
5698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5699 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5700 ac_status=$?
5701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5702 test $ac_status = 0; } && test -s "$nlist"; then
5703 # Try sorting and uniquifying the output.
5704 if sort "$nlist" | uniq > "$nlist"T; then
5705 mv -f "$nlist"T "$nlist"
5706 else
5707 rm -f "$nlist"T
5708 fi
5709
5710 # Make sure that we snagged all the symbols we need.
5711 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5712 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5713 cat <<_LT_EOF > conftest.$ac_ext
5714#ifdef __cplusplus
5715extern "C" {
5716#endif
5717
5718_LT_EOF
5719 # Now generate the symbol file.
5720 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5721
5722 cat <<_LT_EOF >> conftest.$ac_ext
5723
5724/* The mapping between symbol names and symbols. */
5725const struct {
5726 const char *name;
5727 void *address;
5728}
5729lt__PROGRAM__LTX_preloaded_symbols[] =
5730{
5731 { "@PROGRAM@", (void *) 0 },
5732_LT_EOF
5733 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5734 cat <<\_LT_EOF >> conftest.$ac_ext
5735 {0, (void *) 0}
5736};
5737
5738/* This works around a problem in FreeBSD linker */
5739#ifdef FREEBSD_WORKAROUND
5740static const void *lt_preloaded_setup() {
5741 return lt__PROGRAM__LTX_preloaded_symbols;
5742}
5743#endif
5744
5745#ifdef __cplusplus
5746}
5747#endif
5748_LT_EOF
5749 # Now try linking the two files.
5750 mv conftest.$ac_objext conftstm.$ac_objext
5751 lt_save_LIBS="$LIBS"
5752 lt_save_CFLAGS="$CFLAGS"
5753 LIBS="conftstm.$ac_objext"
5754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5756 (eval $ac_link) 2>&5
5757 ac_status=$?
5758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5760 pipe_works=yes
5761 fi
5762 LIBS="$lt_save_LIBS"
5763 CFLAGS="$lt_save_CFLAGS"
5764 else
5765 echo "cannot find nm_test_func in $nlist" >&5
5766 fi
5767 else
5768 echo "cannot find nm_test_var in $nlist" >&5
5769 fi
5770 else
5771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5772 fi
5773 else
5774 echo "$progname: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 fi
5777 rm -rf conftest* conftst*
5778
5779 # Do not use the global_symbol_pipe unless it works.
5780 if test "$pipe_works" = yes; then
5781 break
5782 else
5783 lt_cv_sys_global_symbol_pipe=
5784 fi
5785done
5786
5787fi
5788
5789if test -z "$lt_cv_sys_global_symbol_pipe"; then
5790 lt_cv_sys_global_symbol_to_cdecl=
5791fi
5792if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5794$as_echo "failed" >&6; }
5795else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5797$as_echo "ok" >&6; }
5798fi
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821# Check whether --enable-libtool-lock was given.
5822if test "${enable_libtool_lock+set}" = set; then :
5823 enableval=$enable_libtool_lock;
5824fi
5825
5826test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5827
5828# Some flags need to be propagated to the compiler or linker for good
5829# libtool support.
5830case $host in
5831ia64-*-hpux*)
5832 # Find out which ABI we are using.
5833 echo 'int i;' > conftest.$ac_ext
5834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5835 (eval $ac_compile) 2>&5
5836 ac_status=$?
5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838 test $ac_status = 0; }; then
5839 case `/usr/bin/file conftest.$ac_objext` in
5840 *ELF-32*)
5841 HPUX_IA64_MODE="32"
5842 ;;
5843 *ELF-64*)
5844 HPUX_IA64_MODE="64"
5845 ;;
5846 esac
5847 fi
5848 rm -rf conftest*
5849 ;;
5850*-*-irix6*)
5851 # Find out which ABI we are using.
5852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5854 (eval $ac_compile) 2>&5
5855 ac_status=$?
5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857 test $ac_status = 0; }; then
5858 if test "$lt_cv_prog_gnu_ld" = yes; then
5859 case `/usr/bin/file conftest.$ac_objext` in
5860 *32-bit*)
5861 LD="${LD-ld} -melf32bsmip"
5862 ;;
5863 *N32*)
5864 LD="${LD-ld} -melf32bmipn32"
5865 ;;
5866 *64-bit*)
5867 LD="${LD-ld} -melf64bmip"
5868 ;;
5869 esac
5870 else
5871 case `/usr/bin/file conftest.$ac_objext` in
5872 *32-bit*)
5873 LD="${LD-ld} -32"
5874 ;;
5875 *N32*)
5876 LD="${LD-ld} -n32"
5877 ;;
5878 *64-bit*)
5879 LD="${LD-ld} -64"
5880 ;;
5881 esac
5882 fi
5883 fi
5884 rm -rf conftest*
5885 ;;
5886
bf3d9781 5887x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5888s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5889 # Find out which ABI we are using.
5890 echo 'int i;' > conftest.$ac_ext
5891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5892 (eval $ac_compile) 2>&5
5893 ac_status=$?
5894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895 test $ac_status = 0; }; then
5896 case `/usr/bin/file conftest.o` in
5897 *32-bit*)
5898 case $host in
5899 x86_64-*kfreebsd*-gnu)
5900 LD="${LD-ld} -m elf_i386_fbsd"
5901 ;;
5902 x86_64-*linux*)
5903 case `/usr/bin/file conftest.o` in
5904 *x86-64*)
5905 LD="${LD-ld} -m elf32_x86_64"
5906 ;;
5907 *)
5908 LD="${LD-ld} -m elf_i386"
5909 ;;
5910 esac
5911 ;;
bf3d9781
AM
5912 powerpc64le-*linux*)
5913 LD="${LD-ld} -m elf32lppclinux"
5914 ;;
5915 powerpc64-*linux*)
6bb11ab3
L
5916 LD="${LD-ld} -m elf32ppclinux"
5917 ;;
5918 s390x-*linux*)
5919 LD="${LD-ld} -m elf_s390"
5920 ;;
5921 sparc64-*linux*)
5922 LD="${LD-ld} -m elf32_sparc"
5923 ;;
5924 esac
5925 ;;
5926 *64-bit*)
5927 case $host in
5928 x86_64-*kfreebsd*-gnu)
5929 LD="${LD-ld} -m elf_x86_64_fbsd"
5930 ;;
5931 x86_64-*linux*)
5932 LD="${LD-ld} -m elf_x86_64"
5933 ;;
bf3d9781
AM
5934 powerpcle-*linux*)
5935 LD="${LD-ld} -m elf64lppc"
5936 ;;
5937 powerpc-*linux*)
6bb11ab3
L
5938 LD="${LD-ld} -m elf64ppc"
5939 ;;
5940 s390*-*linux*|s390*-*tpf*)
5941 LD="${LD-ld} -m elf64_s390"
5942 ;;
5943 sparc*-*linux*)
5944 LD="${LD-ld} -m elf64_sparc"
5945 ;;
5946 esac
5947 ;;
5948 esac
5949 fi
5950 rm -rf conftest*
5951 ;;
5952
5953*-*-sco3.2v5*)
5954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5955 SAVE_CFLAGS="$CFLAGS"
5956 CFLAGS="$CFLAGS -belf"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5958$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5959if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5960 $as_echo_n "(cached) " >&6
5961else
5962 ac_ext=c
5963ac_cpp='$CPP $CPPFLAGS'
5964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h. */
5970
5971int
5972main ()
5973{
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979if ac_fn_c_try_link "$LINENO"; then :
5980 lt_cv_cc_needs_belf=yes
5981else
5982 lt_cv_cc_needs_belf=no
5983fi
5984rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5986 ac_ext=c
5987ac_cpp='$CPP $CPPFLAGS'
5988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990ac_compiler_gnu=$ac_cv_c_compiler_gnu
5991
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5994$as_echo "$lt_cv_cc_needs_belf" >&6; }
5995 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5997 CFLAGS="$SAVE_CFLAGS"
5998 fi
5999 ;;
6000sparc*-*solaris*)
6001 # Find out which ABI we are using.
6002 echo 'int i;' > conftest.$ac_ext
6003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6004 (eval $ac_compile) 2>&5
6005 ac_status=$?
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }; then
6008 case `/usr/bin/file conftest.o` in
6009 *64-bit*)
6010 case $lt_cv_prog_gnu_ld in
6011 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6012 *)
6013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6014 LD="${LD-ld} -64"
6015 fi
6016 ;;
6017 esac
6018 ;;
6019 esac
6020 fi
6021 rm -rf conftest*
6022 ;;
6023esac
6024
6025need_locks="$enable_libtool_lock"
6026
6027
6028 case $host_os in
6029 rhapsody* | darwin*)
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6035if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
6036 $as_echo_n "(cached) " >&6
6037else
6038 if test -n "$DSYMUTIL"; then
6039 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6048 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053 done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058DSYMUTIL=$ac_cv_prog_DSYMUTIL
6059if test -n "$DSYMUTIL"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6061$as_echo "$DSYMUTIL" >&6; }
6062else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_DSYMUTIL"; then
6070 ac_ct_DSYMUTIL=$DSYMUTIL
6071 # Extract the first word of "dsymutil", so it can be a program name with args.
6072set dummy dsymutil; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6075if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
6076 $as_echo_n "(cached) " >&6
6077else
6078 if test -n "$ac_ct_DSYMUTIL"; then
6079 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6088 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093 done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6099if test -n "$ac_ct_DSYMUTIL"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6101$as_echo "$ac_ct_DSYMUTIL" >&6; }
6102else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107 if test "x$ac_ct_DSYMUTIL" = x; then
6108 DSYMUTIL=":"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114ac_tool_warned=yes ;;
6115esac
6116 DSYMUTIL=$ac_ct_DSYMUTIL
6117 fi
6118else
6119 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6120fi
6121
6122 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6124set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6127if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
6128 $as_echo_n "(cached) " >&6
6129else
6130 if test -n "$NMEDIT"; then
6131 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6140 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145 done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150NMEDIT=$ac_cv_prog_NMEDIT
6151if test -n "$NMEDIT"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6153$as_echo "$NMEDIT" >&6; }
6154else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156$as_echo "no" >&6; }
6157fi
6158
6159
6160fi
6161if test -z "$ac_cv_prog_NMEDIT"; then
6162 ac_ct_NMEDIT=$NMEDIT
6163 # Extract the first word of "nmedit", so it can be a program name with args.
6164set dummy nmedit; ac_word=$2
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6167if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
6168 $as_echo_n "(cached) " >&6
6169else
6170 if test -n "$ac_ct_NMEDIT"; then
6171 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6180 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184done
6185 done
6186IFS=$as_save_IFS
6187
6188fi
6189fi
6190ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6191if test -n "$ac_ct_NMEDIT"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6193$as_echo "$ac_ct_NMEDIT" >&6; }
6194else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196$as_echo "no" >&6; }
6197fi
6198
6199 if test "x$ac_ct_NMEDIT" = x; then
6200 NMEDIT=":"
6201 else
6202 case $cross_compiling:$ac_tool_warned in
6203yes:)
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6206ac_tool_warned=yes ;;
6207esac
6208 NMEDIT=$ac_ct_NMEDIT
6209 fi
6210else
6211 NMEDIT="$ac_cv_prog_NMEDIT"
6212fi
6213
6214 if test -n "$ac_tool_prefix"; then
6215 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6216set dummy ${ac_tool_prefix}lipo; ac_word=$2
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6219if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
6220 $as_echo_n "(cached) " >&6
6221else
6222 if test -n "$LIPO"; then
6223 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6232 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236done
6237 done
6238IFS=$as_save_IFS
6239
6240fi
6241fi
6242LIPO=$ac_cv_prog_LIPO
6243if test -n "$LIPO"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6245$as_echo "$LIPO" >&6; }
6246else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248$as_echo "no" >&6; }
6249fi
6250
6251
6252fi
6253if test -z "$ac_cv_prog_LIPO"; then
6254 ac_ct_LIPO=$LIPO
6255 # Extract the first word of "lipo", so it can be a program name with args.
6256set dummy lipo; ac_word=$2
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6259if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6260 $as_echo_n "(cached) " >&6
6261else
6262 if test -n "$ac_ct_LIPO"; then
6263 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6272 ac_cv_prog_ac_ct_LIPO="lipo"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277 done
6278IFS=$as_save_IFS
6279
6280fi
6281fi
6282ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6283if test -n "$ac_ct_LIPO"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6285$as_echo "$ac_ct_LIPO" >&6; }
6286else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
6289fi
6290
6291 if test "x$ac_ct_LIPO" = x; then
6292 LIPO=":"
6293 else
6294 case $cross_compiling:$ac_tool_warned in
6295yes:)
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298ac_tool_warned=yes ;;
6299esac
6300 LIPO=$ac_ct_LIPO
6301 fi
6302else
6303 LIPO="$ac_cv_prog_LIPO"
6304fi
6305
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6308set dummy ${ac_tool_prefix}otool; ac_word=$2
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6311if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6312 $as_echo_n "(cached) " >&6
6313else
6314 if test -n "$OTOOL"; then
6315 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6324 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328done
6329 done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334OTOOL=$ac_cv_prog_OTOOL
6335if test -n "$OTOOL"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6337$as_echo "$OTOOL" >&6; }
6338else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343
6344fi
6345if test -z "$ac_cv_prog_OTOOL"; then
6346 ac_ct_OTOOL=$OTOOL
6347 # Extract the first word of "otool", so it can be a program name with args.
6348set dummy otool; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6351if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6352 $as_echo_n "(cached) " >&6
6353else
6354 if test -n "$ac_ct_OTOOL"; then
6355 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6364 ac_cv_prog_ac_ct_OTOOL="otool"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368done
6369 done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6375if test -n "$ac_ct_OTOOL"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6377$as_echo "$ac_ct_OTOOL" >&6; }
6378else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383 if test "x$ac_ct_OTOOL" = x; then
6384 OTOOL=":"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387yes:)
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390ac_tool_warned=yes ;;
6391esac
6392 OTOOL=$ac_ct_OTOOL
6393 fi
6394else
6395 OTOOL="$ac_cv_prog_OTOOL"
6396fi
6397
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6400set dummy ${ac_tool_prefix}otool64; ac_word=$2
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6403if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6404 $as_echo_n "(cached) " >&6
6405else
6406 if test -n "$OTOOL64"; then
6407 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6408else
6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6416 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420done
6421 done
6422IFS=$as_save_IFS
6423
6424fi
6425fi
6426OTOOL64=$ac_cv_prog_OTOOL64
6427if test -n "$OTOOL64"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6429$as_echo "$OTOOL64" >&6; }
6430else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432$as_echo "no" >&6; }
6433fi
6434
6435
6436fi
6437if test -z "$ac_cv_prog_OTOOL64"; then
6438 ac_ct_OTOOL64=$OTOOL64
6439 # Extract the first word of "otool64", so it can be a program name with args.
6440set dummy otool64; ac_word=$2
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6443if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6444 $as_echo_n "(cached) " >&6
6445else
6446 if test -n "$ac_ct_OTOOL64"; then
6447 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6456 ac_cv_prog_ac_ct_OTOOL64="otool64"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460done
6461 done
6462IFS=$as_save_IFS
6463
6464fi
6465fi
6466ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6467if test -n "$ac_ct_OTOOL64"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6469$as_echo "$ac_ct_OTOOL64" >&6; }
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473fi
6474
6475 if test "x$ac_ct_OTOOL64" = x; then
6476 OTOOL64=":"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479yes:)
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482ac_tool_warned=yes ;;
6483esac
6484 OTOOL64=$ac_ct_OTOOL64
6485 fi
6486else
6487 OTOOL64="$ac_cv_prog_OTOOL64"
6488fi
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6517$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6518if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6519 $as_echo_n "(cached) " >&6
6520else
6521 lt_cv_apple_cc_single_mod=no
6522 if test -z "${LT_MULTI_MODULE}"; then
6523 # By default we will add the -single_module flag. You can override
6524 # by either setting the environment variable LT_MULTI_MODULE
6525 # non-empty at configure time, or by adding -multi_module to the
6526 # link flags.
6527 rm -rf libconftest.dylib*
6528 echo "int foo(void){return 1;}" > conftest.c
6529 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6530-dynamiclib -Wl,-single_module conftest.c" >&5
6531 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6532 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6533 _lt_result=$?
6534 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6535 lt_cv_apple_cc_single_mod=yes
6536 else
6537 cat conftest.err >&5
6538 fi
6539 rm -rf libconftest.dylib*
6540 rm -f conftest.*
6541 fi
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6544$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6546$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6547if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6548 $as_echo_n "(cached) " >&6
6549else
6550 lt_cv_ld_exported_symbols_list=no
6551 save_LDFLAGS=$LDFLAGS
6552 echo "_main" > conftest.sym
6553 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556
6557int
6558main ()
6559{
6560
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565if ac_fn_c_try_link "$LINENO"; then :
6566 lt_cv_ld_exported_symbols_list=yes
6567else
6568 lt_cv_ld_exported_symbols_list=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext \
6571 conftest$ac_exeext conftest.$ac_ext
6572 LDFLAGS="$save_LDFLAGS"
6573
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6576$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6578$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6579if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6580 $as_echo_n "(cached) " >&6
6581else
6582 lt_cv_ld_force_load=no
6583 cat > conftest.c << _LT_EOF
6584int forced_loaded() { return 2;}
6585_LT_EOF
6586 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6587 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6588 echo "$AR cru libconftest.a conftest.o" >&5
6589 $AR cru libconftest.a conftest.o 2>&5
6590 cat > conftest.c << _LT_EOF
6591int main() { return 0;}
6592_LT_EOF
6593 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6594 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6595 _lt_result=$?
6596 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6597 lt_cv_ld_force_load=yes
6598 else
6599 cat conftest.err >&5
6600 fi
6601 rm -f conftest.err libconftest.a conftest conftest.c
6602 rm -rf conftest.dSYM
6603
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6606$as_echo "$lt_cv_ld_force_load" >&6; }
6607 case $host_os in
6608 rhapsody* | darwin1.[012])
6609 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6610 darwin1.*)
6611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6612 darwin*) # darwin 5.x on
6613 # if running on 10.5 or later, the deployment target defaults
6614 # to the OS version, if on x86, and 10.4, the deployment
6615 # target defaults to 10.4. Don't you love it?
6616 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6617 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 6619 10.[012][,.]*)
6bb11ab3
L
6620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6621 10.*)
6622 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6623 esac
6624 ;;
6625 esac
6626 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6627 _lt_dar_single_mod='$single_module'
6628 fi
6629 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6630 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6631 else
6632 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6633 fi
6634 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6635 _lt_dsymutil='~$DSYMUTIL $lib || :'
6636 else
6637 _lt_dsymutil=
6638 fi
6639 ;;
6640 esac
6641
6642for ac_header in dlfcn.h
6643do :
6644 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6645"
d0ac1c44 6646if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6647 cat >>confdefs.h <<_ACEOF
6648#define HAVE_DLFCN_H 1
6649_ACEOF
6650
6651fi
6652
6653done
6654
6655
6656
ebe9564b 6657
6bb11ab3 6658
0cb8d851
MF
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6660$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6661if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6662 $as_echo_n "(cached) " >&6
6663else
6664 ac_cv_c_bigendian=unknown
6665 # See if we're dealing with a universal compiler.
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h. */
6668#ifndef __APPLE_CC__
6669 not a universal capable compiler
6670 #endif
6671 typedef int dummy;
6672
6673_ACEOF
6674if ac_fn_c_try_compile "$LINENO"; then :
6675
6676 # Check for potential -arch flags. It is not universal unless
6677 # there are at least two -arch flags with different values.
6678 ac_arch=
6679 ac_prev=
6680 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6681 if test -n "$ac_prev"; then
6682 case $ac_word in
6683 i?86 | x86_64 | ppc | ppc64)
6684 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6685 ac_arch=$ac_word
6686 else
6687 ac_cv_c_bigendian=universal
6688 break
6689 fi
6690 ;;
6691 esac
6692 ac_prev=
6693 elif test "x$ac_word" = "x-arch"; then
6694 ac_prev=arch
6695 fi
6696 done
6697fi
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 if test $ac_cv_c_bigendian = unknown; then
6700 # See if sys/param.h defines the BYTE_ORDER macro.
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h. */
6703#include <sys/types.h>
6704 #include <sys/param.h>
6705
6706int
6707main ()
6708{
6709#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6710 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6711 && LITTLE_ENDIAN)
6712 bogus endian macros
6713 #endif
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
6719if ac_fn_c_try_compile "$LINENO"; then :
6720 # It does; now see whether it defined to BIG_ENDIAN or not.
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h. */
6723#include <sys/types.h>
6724 #include <sys/param.h>
6725
6726int
6727main ()
6728{
6729#if BYTE_ORDER != BIG_ENDIAN
6730 not big endian
6731 #endif
6732
6733 ;
6734 return 0;
6735}
6736_ACEOF
6737if ac_fn_c_try_compile "$LINENO"; then :
6738 ac_cv_c_bigendian=yes
6739else
6740 ac_cv_c_bigendian=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743fi
6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 fi
6746 if test $ac_cv_c_bigendian = unknown; then
6747 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h. */
6750#include <limits.h>
6751
6752int
6753main ()
6754{
6755#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6756 bogus endian macros
6757 #endif
6758
6759 ;
6760 return 0;
6761}
6762_ACEOF
6763if ac_fn_c_try_compile "$LINENO"; then :
6764 # It does; now see whether it defined to _BIG_ENDIAN or not.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h. */
6767#include <limits.h>
6768
6769int
6770main ()
6771{
6772#ifndef _BIG_ENDIAN
6773 not big endian
6774 #endif
6775
6776 ;
6777 return 0;
6778}
6779_ACEOF
6780if ac_fn_c_try_compile "$LINENO"; then :
6781 ac_cv_c_bigendian=yes
6782else
6783 ac_cv_c_bigendian=no
6784fi
6785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786fi
6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 fi
6789 if test $ac_cv_c_bigendian = unknown; then
6790 # Compile a test program.
6791 if test "$cross_compiling" = yes; then :
6792 # Try to guess by grepping values from an object file.
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h. */
6795short int ascii_mm[] =
6796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6797 short int ascii_ii[] =
6798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6799 int use_ascii (int i) {
6800 return ascii_mm[i] + ascii_ii[i];
6801 }
6802 short int ebcdic_ii[] =
6803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6804 short int ebcdic_mm[] =
6805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6806 int use_ebcdic (int i) {
6807 return ebcdic_mm[i] + ebcdic_ii[i];
6808 }
6809 extern int foo;
6810
6811int
6812main ()
6813{
6814return use_ascii (foo) == use_ebcdic (foo);
6815 ;
6816 return 0;
6817}
6818_ACEOF
6819if ac_fn_c_try_compile "$LINENO"; then :
6820 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6821 ac_cv_c_bigendian=yes
6822 fi
6823 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6824 if test "$ac_cv_c_bigendian" = unknown; then
6825 ac_cv_c_bigendian=no
6826 else
6827 # finding both strings is unlikely to happen, but who knows?
6828 ac_cv_c_bigendian=unknown
6829 fi
6830 fi
6831fi
6832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833else
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836$ac_includes_default
6837int
6838main ()
6839{
6840
6841 /* Are we little or big endian? From Harbison&Steele. */
6842 union
6843 {
6844 long int l;
6845 char c[sizeof (long int)];
6846 } u;
6847 u.l = 1;
6848 return u.c[sizeof (long int) - 1] == 1;
6849
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_run "$LINENO"; then :
6855 ac_cv_c_bigendian=no
6856else
6857 ac_cv_c_bigendian=yes
6858fi
6859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6860 conftest.$ac_objext conftest.beam conftest.$ac_ext
6861fi
6862
6863 fi
6864fi
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6866$as_echo "$ac_cv_c_bigendian" >&6; }
6867 case $ac_cv_c_bigendian in #(
6868 yes)
6869 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6870;; #(
6871 no)
6872 ;; #(
6873 universal)
6874
6875$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6876
6877 ;; #(
6878 *)
d0ac1c44 6879 as_fn_error $? "unknown endianness
0cb8d851
MF
6880 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6881 esac
6882
6bb11ab3
L
6883
6884
6885
c25ea03d
MF
6886if test "x$cross_compiling" = "xno"; then
6887 : "${CC_FOR_BUILD:=\$(CC)}"
6888 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6889 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d
MF
6890else
6891 : "${CC_FOR_BUILD:=gcc}"
6892 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6893 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6894fi
6895
6896
6897
c25ea03d 6898
c2783492 6899
a3e2cc64
MF
6900if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6902set dummy ${ac_tool_prefix}ar; ac_word=$2
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if ${ac_cv_prog_AR+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907else
6908 if test -n "$AR"; then
6909 ac_cv_prog_AR="$AR" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_AR="${ac_tool_prefix}ar"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923 done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928AR=$ac_cv_prog_AR
6929if test -n "$AR"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6931$as_echo "$AR" >&6; }
6932else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937
6938fi
6939if test -z "$ac_cv_prog_AR"; then
6940 ac_ct_AR=$AR
6941 # Extract the first word of "ar", so it can be a program name with args.
6942set dummy ar; ac_word=$2
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
6945if ${ac_cv_prog_ac_ct_AR+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947else
6948 if test -n "$ac_ct_AR"; then
6949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_ac_ct_AR="ar"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963 done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
6968ac_ct_AR=$ac_cv_prog_ac_ct_AR
6969if test -n "$ac_ct_AR"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6971$as_echo "$ac_ct_AR" >&6; }
6972else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
6977 if test "x$ac_ct_AR" = x; then
6978 AR=""
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981yes:)
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984ac_tool_warned=yes ;;
6985esac
6986 AR=$ac_ct_AR
6987 fi
6988else
6989 AR="$ac_cv_prog_AR"
6990fi
6bb11ab3
L
6991
6992if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6997if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6998 $as_echo_n "(cached) " >&6
6999else
7000 if test -n "$RANLIB"; then
7001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015 done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020RANLIB=$ac_cv_prog_RANLIB
7021if test -n "$RANLIB"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7023$as_echo "$RANLIB" >&6; }
7024else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029
7030fi
7031if test -z "$ac_cv_prog_RANLIB"; then
7032 ac_ct_RANLIB=$RANLIB
7033 # Extract the first word of "ranlib", so it can be a program name with args.
7034set dummy ranlib; ac_word=$2
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7037if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
7038 $as_echo_n "(cached) " >&6
7039else
7040 if test -n "$ac_ct_RANLIB"; then
7041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7050 ac_cv_prog_ac_ct_RANLIB="ranlib"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055 done
7056IFS=$as_save_IFS
7057
7058fi
7059fi
7060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7061if test -n "$ac_ct_RANLIB"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7063$as_echo "$ac_ct_RANLIB" >&6; }
7064else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069 if test "x$ac_ct_RANLIB" = x; then
7070 RANLIB=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073yes:)
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076ac_tool_warned=yes ;;
7077esac
7078 RANLIB=$ac_ct_RANLIB
7079 fi
7080else
7081 RANLIB="$ac_cv_prog_RANLIB"
7082fi
7083
7084
46f900c0
MF
7085# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
7086# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
7087# is C99. So handle it ourselves.
7088:
7089C_DIALECT=
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
7091$as_echo_n "checking whether C11 is supported by default... " >&6; }
7092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h. */
7094
7095#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7096# error "C11 support not found"
7097#endif
7098
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"; then :
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102$as_echo "yes" >&6; }
7103else
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
7108$as_echo_n "checking for -std=c11 support... " >&6; }
7109 ac_save_CC="$CC"
7110 CC="$CC -std=c11"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h. */
7113
7114#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7115# error "C11 support not found"
7116#endif
7117
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"; then :
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122$as_echo "yes" >&6; }
7123 CC="$ac_save_CC"
7124 C_DIALECT="-std=c11"
7125
7126else
7127 as_fn_error $? "C11 is required" "$LINENO" 5
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130fi
7131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132
7133
c2783492
MF
7134ac_config_headers="$ac_config_headers config.h:config.in"
7135
7136
6bb11ab3
L
7137# Some of the common include files depend on bfd.h, and bfd.h checks
7138# that config.h is included first by testing that the PACKAGE macro
7139# is defined.
7140PACKAGE=sim
7141
7142cat >>confdefs.h <<_ACEOF
7143#define PACKAGE "$PACKAGE"
7144_ACEOF
7145
7146
7147
7148# Dependency checking.
7149ac_config_commands="$ac_config_commands depdir"
7150
7151
7152depcc="$CC" am_compiler_list=
7153
7154am_depcomp=$ac_aux_dir/depcomp
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7156$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 7157if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
7158 $as_echo_n "(cached) " >&6
7159else
7160 if test -f "$am_depcomp"; then
7161 # We make a subdir and do the tests there. Otherwise we can end up
7162 # making bogus files that we don't know about and never remove. For
7163 # instance it was reported that on HP-UX the gcc test will end up
7164 # making a dummy file named `D' -- because `-MD' means `put the output
7165 # in D'.
7166 mkdir conftest.dir
7167 # Copy depcomp to subdir because otherwise we won't find it if we're
7168 # using a relative directory.
7169 cp "$am_depcomp" conftest.dir
7170 cd conftest.dir
7171 # We will build objects and dependencies in a subdirectory because
7172 # it helps to detect inapplicable dependency modes. For instance
7173 # both Tru64's cc and ICC support -MD to output dependencies as a
7174 # side effect of compilation, but ICC will put the dependencies in
7175 # the current directory while Tru64 will put them in the object
7176 # directory.
7177 mkdir sub
7178
7179 am_cv_CC_dependencies_compiler_type=none
7180 if test "$am_compiler_list" = ""; then
7181 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7182 fi
7183 for depmode in $am_compiler_list; do
7184 if test $depmode = none; then break; fi
7185
7186 $as_echo "$as_me:$LINENO: trying $depmode" >&5
7187 # Setup a source with many dependencies, because some compilers
7188 # like to wrap large dependency lists on column 80 (with \), and
7189 # we should not choose a depcomp mode which is confused by this.
7190 #
7191 # We need to recreate these files for each test, as the compiler may
7192 # overwrite some of them when testing with obscure command lines.
7193 # This happens at least with the AIX C compiler.
7194 : > sub/conftest.c
7195 for i in 1 2 3 4 5 6; do
7196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7198 # Solaris 8's {/usr,}/bin/sh.
7199 touch sub/conftst$i.h
7200 done
7201 echo "include sub/conftest.Po" > confmf
7202
7203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7204 # mode. It turns out that the SunPro C++ compiler does not properly
7205 # handle `-M -o', and we need to detect this.
7206 depcmd="depmode=$depmode \
7207 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7209 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7210 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7211 if env $depcmd > conftest.err 2>&1 &&
7212 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7214 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7215 # icc doesn't choke on unknown options, it will just issue warnings
7216 # or remarks (even with -Werror). So we grep stderr for any message
7217 # that says an option was ignored or not supported.
7218 # When given -MP, icc 7.0 and 7.1 complain thusly:
7219 # icc: Command line warning: ignoring option '-M'; no argument required
7220 # The diagnosis changed in icc 8.0:
7221 # icc: Command line remark: option '-MP' not supported
7222 if (grep 'ignoring option' conftest.err ||
7223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7224 am_cv_CC_dependencies_compiler_type=$depmode
7225 $as_echo "$as_me:$LINENO: success" >&5
7226 break
7227 fi
7228 fi
7229 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7230 sed -e 's/^/| /' < conftest.err >&5
7231 done
7232
7233 cd ..
7234 rm -rf conftest.dir
7235else
7236 am_cv_CC_dependencies_compiler_type=none
7237fi
7238
7239fi
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7241$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7242if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7243then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7244else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7245
7246fi
7247
7248
6bb11ab3
L
7249ALL_LINGUAS=
7250# If we haven't got the data from the intl directory,
7251# assume NLS is disabled.
7252USE_NLS=no
7253LIBINTL=
7254LIBINTL_DEP=
7255INCINTL=
7256XGETTEXT=
7257GMSGFMT=
7258POSUB=
7259
7260if test -f ../../intl/config.intl; then
7261 . ../../intl/config.intl
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7264$as_echo_n "checking whether NLS is requested... " >&6; }
7265if test x"$USE_NLS" != xyes; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7270$as_echo "yes" >&6; }
7271
7272$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7276$as_echo_n "checking for catalogs to be installed... " >&6; }
7277 # Look for .po and .gmo files in the source directory.
7278 CATALOGS=
7279 XLINGUAS=
7280 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7281 # If there aren't any .gmo files the shell will give us the
7282 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7283 # weeded out.
7284 case "$cat" in *\**)
7285 continue;;
7286 esac
7287 # The quadruple backslash is collapsed to a double backslash
7288 # by the backticks, then collapsed again by the double quotes,
7289 # leaving us with one backslash in the sed expression (right
7290 # before the dot that mustn't act as a wildcard).
7291 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7292 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7293 # The user is allowed to set LINGUAS to a list of languages to
7294 # install catalogs for. If it's empty that means "all of them."
7295 if test "x$LINGUAS" = x; then
7296 CATALOGS="$CATALOGS $cat"
7297 XLINGUAS="$XLINGUAS $lang"
7298 else
7299 case "$LINGUAS" in *$lang*)
7300 CATALOGS="$CATALOGS $cat"
7301 XLINGUAS="$XLINGUAS $lang"
7302 ;;
7303 esac
7304 fi
7305 done
7306 LINGUAS="$XLINGUAS"
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7308$as_echo "$LINGUAS" >&6; }
7309
7310
7311 DATADIRNAME=share
7312
7313 INSTOBJEXT=.mo
7314
7315 GENCAT=gencat
7316
7317 CATOBJEXT=.gmo
7318
7319fi
7320
7321# Check for common headers.
68ed2854 7322# NB: You can assume C11 headers exist.
6bb11ab3 7323
936df756
MF
7324
7325ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7326#include <sys/types.h>
7327#endif
7328#ifdef HAVE_SYS_STAT_H
7329#include <sys/stat.h>
7330#endif
7331"
d0ac1c44 7332if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
7333
7334cat >>confdefs.h <<_ACEOF
7335#define HAVE_STRUCT_STAT_ST_DEV 1
7336_ACEOF
7337
7338
7339fi
7340ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7341#include <sys/types.h>
7342#endif
7343#ifdef HAVE_SYS_STAT_H
7344#include <sys/stat.h>
7345#endif
7346"
d0ac1c44 7347if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
7348
7349cat >>confdefs.h <<_ACEOF
7350#define HAVE_STRUCT_STAT_ST_INO 1
7351_ACEOF
7352
7353
7354fi
7355ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7356#include <sys/types.h>
7357#endif
7358#ifdef HAVE_SYS_STAT_H
7359#include <sys/stat.h>
7360#endif
7361"
d0ac1c44 7362if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
7363
7364cat >>confdefs.h <<_ACEOF
7365#define HAVE_STRUCT_STAT_ST_MODE 1
7366_ACEOF
7367
7368
7369fi
7370ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7371#include <sys/types.h>
7372#endif
7373#ifdef HAVE_SYS_STAT_H
7374#include <sys/stat.h>
7375#endif
7376"
d0ac1c44 7377if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
7378
7379cat >>confdefs.h <<_ACEOF
7380#define HAVE_STRUCT_STAT_ST_NLINK 1
7381_ACEOF
7382
7383
7384fi
7385ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7386#include <sys/types.h>
7387#endif
7388#ifdef HAVE_SYS_STAT_H
7389#include <sys/stat.h>
7390#endif
7391"
d0ac1c44 7392if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
7393
7394cat >>confdefs.h <<_ACEOF
7395#define HAVE_STRUCT_STAT_ST_UID 1
7396_ACEOF
7397
7398
7399fi
7400ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7401#include <sys/types.h>
7402#endif
7403#ifdef HAVE_SYS_STAT_H
7404#include <sys/stat.h>
7405#endif
7406"
d0ac1c44 7407if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
7408
7409cat >>confdefs.h <<_ACEOF
7410#define HAVE_STRUCT_STAT_ST_GID 1
7411_ACEOF
7412
7413
7414fi
7415ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7416#include <sys/types.h>
7417#endif
7418#ifdef HAVE_SYS_STAT_H
7419#include <sys/stat.h>
7420#endif
7421"
d0ac1c44 7422if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
7423
7424cat >>confdefs.h <<_ACEOF
7425#define HAVE_STRUCT_STAT_ST_RDEV 1
7426_ACEOF
7427
7428
7429fi
7430ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7431#include <sys/types.h>
7432#endif
7433#ifdef HAVE_SYS_STAT_H
7434#include <sys/stat.h>
7435#endif
7436"
d0ac1c44 7437if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
7438
7439cat >>confdefs.h <<_ACEOF
7440#define HAVE_STRUCT_STAT_ST_SIZE 1
7441_ACEOF
7442
7443
7444fi
7445ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7446#include <sys/types.h>
7447#endif
7448#ifdef HAVE_SYS_STAT_H
7449#include <sys/stat.h>
7450#endif
7451"
d0ac1c44 7452if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
7453
7454cat >>confdefs.h <<_ACEOF
7455#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7456_ACEOF
7457
7458
7459fi
7460ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
7461#include <sys/types.h>
7462#endif
7463#ifdef HAVE_SYS_STAT_H
7464#include <sys/stat.h>
7465#endif
7466"
d0ac1c44 7467if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
7468
7469cat >>confdefs.h <<_ACEOF
7470#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7471_ACEOF
7472
7473
7474fi
7475ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
7476#include <sys/types.h>
7477#endif
7478#ifdef HAVE_SYS_STAT_H
7479#include <sys/stat.h>
7480#endif
7481"
d0ac1c44 7482if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
7483
7484cat >>confdefs.h <<_ACEOF
7485#define HAVE_STRUCT_STAT_ST_ATIME 1
7486_ACEOF
7487
7488
7489fi
7490ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
7491#include <sys/types.h>
7492#endif
7493#ifdef HAVE_SYS_STAT_H
7494#include <sys/stat.h>
7495#endif
7496"
d0ac1c44 7497if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
7498
7499cat >>confdefs.h <<_ACEOF
7500#define HAVE_STRUCT_STAT_ST_MTIME 1
7501_ACEOF
7502
7503
7504fi
7505ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
7506#include <sys/types.h>
7507#endif
7508#ifdef HAVE_SYS_STAT_H
7509#include <sys/stat.h>
7510#endif
7511"
d0ac1c44 7512if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
7513
7514cat >>confdefs.h <<_ACEOF
7515#define HAVE_STRUCT_STAT_ST_CTIME 1
7516_ACEOF
7517
7518
7519fi
7520
7521ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7522#include <sys/socket.h>
7523
7524"
d0ac1c44 7525if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
7526
7527cat >>confdefs.h <<_ACEOF
7528#define HAVE_SOCKLEN_T 1
7529_ACEOF
7530
7531
7532fi
7533
6bb11ab3
L
7534
7535# Check for socket libraries
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7537$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7538if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7539 $as_echo_n "(cached) " >&6
7540else
7541 ac_check_lib_save_LIBS=$LIBS
7542LIBS="-lsocket $LIBS"
7543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h. */
7545
7546/* Override any GCC internal prototype to avoid an error.
7547 Use char because int might match the return type of a GCC
7548 builtin and then its argument prototype would still apply. */
7549#ifdef __cplusplus
7550extern "C"
7551#endif
7552char bind ();
7553int
7554main ()
7555{
7556return bind ();
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_link "$LINENO"; then :
7562 ac_cv_lib_socket_bind=yes
7563else
7564 ac_cv_lib_socket_bind=no
7565fi
7566rm -f core conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568LIBS=$ac_check_lib_save_LIBS
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7571$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7572if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7573 cat >>confdefs.h <<_ACEOF
7574#define HAVE_LIBSOCKET 1
7575_ACEOF
7576
7577 LIBS="-lsocket $LIBS"
7578
7579fi
7580
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7582$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7583if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7584 $as_echo_n "(cached) " >&6
7585else
7586 ac_check_lib_save_LIBS=$LIBS
7587LIBS="-lnsl $LIBS"
7588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h. */
7590
7591/* Override any GCC internal prototype to avoid an error.
7592 Use char because int might match the return type of a GCC
7593 builtin and then its argument prototype would still apply. */
7594#ifdef __cplusplus
7595extern "C"
7596#endif
7597char gethostbyname ();
7598int
7599main ()
7600{
7601return gethostbyname ();
7602 ;
7603 return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_link "$LINENO"; then :
7607 ac_cv_lib_nsl_gethostbyname=yes
7608else
7609 ac_cv_lib_nsl_gethostbyname=no
7610fi
7611rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613LIBS=$ac_check_lib_save_LIBS
7614fi
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7616$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7617if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7618 cat >>confdefs.h <<_ACEOF
7619#define HAVE_LIBNSL 1
7620_ACEOF
7621
7622 LIBS="-lnsl $LIBS"
7623
7624fi
7625
7626
7627# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7628# using the same condition.
7629
aadc9410 7630 # Use the system's zlib library.
7fed4b0b
L
7631 zlibdir="-L\$(top_builddir)/../zlib"
7632 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7633
aadc9410
MF
7634# Check whether --with-system-zlib was given.
7635if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7636 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7637 zlibdir=
7638 zlibinc=
7639 fi
6bb11ab3
L
7640
7641fi
7642
6bb11ab3 7643
6bb11ab3 7644
6bb11ab3
L
7645
7646
7647# BFD uses libdl when when plugins enabled.
7648
faa743bb
RM
7649 maybe_plugins=no
7650 for ac_header in dlfcn.h
7651do :
7652 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7653"
d0ac1c44 7654if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7655 cat >>confdefs.h <<_ACEOF
7656#define HAVE_DLFCN_H 1
7657_ACEOF
7658 maybe_plugins=yes
7659fi
7660
7661done
7662
7663 for ac_header in windows.h
7664do :
7665 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7666"
d0ac1c44 7667if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7668 cat >>confdefs.h <<_ACEOF
7669#define HAVE_WINDOWS_H 1
7670_ACEOF
7671 maybe_plugins=yes
7672fi
7673
7674done
7675
7676
7677 # Check whether --enable-plugins was given.
6bb11ab3
L
7678if test "${enable_plugins+set}" = set; then :
7679 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7680 no) plugins=no ;;
7681 *) plugins=yes
7682 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7683 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7684 fi ;;
7685 esac
6bb11ab3 7686else
faa743bb
RM
7687 plugins=$maybe_plugins
7688
6bb11ab3
L
7689fi
7690
2974be62 7691 if test "$plugins" = "yes"; then
37f980dc
SM
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7693$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7694if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7695 $as_echo_n "(cached) " >&6
7696else
7697 ac_func_search_save_LIBS=$LIBS
7698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h. */
7700
7701/* Override any GCC internal prototype to avoid an error.
7702 Use char because int might match the return type of a GCC
7703 builtin and then its argument prototype would still apply. */
7704#ifdef __cplusplus
7705extern "C"
7706#endif
37f980dc 7707char dlsym ();
2974be62
AM
7708int
7709main ()
7710{
37f980dc 7711return dlsym ();
2974be62
AM
7712 ;
7713 return 0;
7714}
7715_ACEOF
7716for ac_lib in '' dl; do
7717 if test -z "$ac_lib"; then
7718 ac_res="none required"
7719 else
7720 ac_res=-l$ac_lib
7721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7722 fi
7723 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7724 ac_cv_search_dlsym=$ac_res
2974be62
AM
7725fi
7726rm -f core conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext
d0ac1c44 7728 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7729 break
7730fi
7731done
d0ac1c44 7732if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7733
7734else
37f980dc 7735 ac_cv_search_dlsym=no
2974be62
AM
7736fi
7737rm conftest.$ac_ext
7738LIBS=$ac_func_search_save_LIBS
7739fi
37f980dc
SM
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7741$as_echo "$ac_cv_search_dlsym" >&6; }
7742ac_res=$ac_cv_search_dlsym
2974be62
AM
7743if test "$ac_res" != no; then :
7744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7745
7746fi
7747
7748 fi
6bb11ab3
L
7749
7750 if test "$plugins" = yes; then
7751 PLUGINS_TRUE=
7752 PLUGINS_FALSE='#'
7753else
7754 PLUGINS_TRUE='#'
7755 PLUGINS_FALSE=
7756fi
7757
7758
7759
7760
7761
7762# Set options
7763enable_dlopen=yes
7764
7765
7766
7767
7768 enable_win32_dll=no
7769
7770
7771 # Check whether --enable-shared was given.
7772if test "${enable_shared+set}" = set; then :
7773 enableval=$enable_shared; p=${PACKAGE-default}
7774 case $enableval in
7775 yes) enable_shared=yes ;;
7776 no) enable_shared=no ;;
7777 *)
7778 enable_shared=no
7779 # Look at the argument we got. We use all the common list separators.
7780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7781 for pkg in $enableval; do
7782 IFS="$lt_save_ifs"
7783 if test "X$pkg" = "X$p"; then
7784 enable_shared=yes
7785 fi
7786 done
7787 IFS="$lt_save_ifs"
7788 ;;
7789 esac
7790else
7791 enable_shared=yes
7792fi
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 # Check whether --enable-static was given.
7803if test "${enable_static+set}" = set; then :
7804 enableval=$enable_static; p=${PACKAGE-default}
7805 case $enableval in
7806 yes) enable_static=yes ;;
7807 no) enable_static=no ;;
7808 *)
7809 enable_static=no
7810 # Look at the argument we got. We use all the common list separators.
7811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7812 for pkg in $enableval; do
7813 IFS="$lt_save_ifs"
7814 if test "X$pkg" = "X$p"; then
7815 enable_static=yes
7816 fi
7817 done
7818 IFS="$lt_save_ifs"
7819 ;;
7820 esac
7821else
7822 enable_static=yes
7823fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834# Check whether --with-pic was given.
7835if test "${with_pic+set}" = set; then :
7836 withval=$with_pic; pic_mode="$withval"
7837else
7838 pic_mode=default
7839fi
7840
7841
7842test -z "$pic_mode" && pic_mode=default
7843
7844
7845
7846
7847
7848
7849
7850 # Check whether --enable-fast-install was given.
7851if test "${enable_fast_install+set}" = set; then :
7852 enableval=$enable_fast_install; p=${PACKAGE-default}
7853 case $enableval in
7854 yes) enable_fast_install=yes ;;
7855 no) enable_fast_install=no ;;
7856 *)
7857 enable_fast_install=no
7858 # Look at the argument we got. We use all the common list separators.
7859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7860 for pkg in $enableval; do
7861 IFS="$lt_save_ifs"
7862 if test "X$pkg" = "X$p"; then
7863 enable_fast_install=yes
7864 fi
7865 done
7866 IFS="$lt_save_ifs"
7867 ;;
7868 esac
7869else
7870 enable_fast_install=yes
7871fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883# This can be used to rebuild libtool when needed
7884LIBTOOL_DEPS="$ltmain"
7885
7886# Always use our own libtool.
7887LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914test -z "$LN_S" && LN_S="ln -s"
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929if test -n "${ZSH_VERSION+set}" ; then
7930 setopt NO_GLOB_SUBST
7931fi
7932
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7934$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7935if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7936 $as_echo_n "(cached) " >&6
7937else
7938 rm -f .libs 2>/dev/null
7939mkdir .libs 2>/dev/null
7940if test -d .libs; then
7941 lt_cv_objdir=.libs
7942else
7943 # MS-DOS does not allow filenames that begin with a dot.
7944 lt_cv_objdir=_libs
7945fi
7946rmdir .libs 2>/dev/null
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7949$as_echo "$lt_cv_objdir" >&6; }
7950objdir=$lt_cv_objdir
7951
7952
7953
7954
7955
7956cat >>confdefs.h <<_ACEOF
7957#define LT_OBJDIR "$lt_cv_objdir/"
7958_ACEOF
7959
7960
7961
7962
7963case $host_os in
7964aix3*)
7965 # AIX sometimes has problems with the GCC collect2 program. For some
7966 # reason, if we set the COLLECT_NAMES environment variable, the problems
7967 # vanish in a puff of smoke.
7968 if test "X${COLLECT_NAMES+set}" != Xset; then
7969 COLLECT_NAMES=
7970 export COLLECT_NAMES
7971 fi
7972 ;;
7973esac
7974
7975# Global variables:
7976ofile=libtool
7977can_build_shared=yes
7978
7979# All known linkers require a `.a' archive for static linking (except MSVC,
7980# which needs '.lib').
7981libext=a
7982
7983with_gnu_ld="$lt_cv_prog_gnu_ld"
7984
7985old_CC="$CC"
7986old_CFLAGS="$CFLAGS"
7987
7988# Set sane defaults for various variables
7989test -z "$CC" && CC=cc
7990test -z "$LTCC" && LTCC=$CC
7991test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7992test -z "$LD" && LD=ld
7993test -z "$ac_objext" && ac_objext=o
7994
7995for cc_temp in $compiler""; do
7996 case $cc_temp in
7997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7999 \-*) ;;
8000 *) break;;
8001 esac
8002done
8003cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8004
8005
8006# Only perform the check for file, if the check method requires it
8007test -z "$MAGIC_CMD" && MAGIC_CMD=file
8008case $deplibs_check_method in
8009file_magic*)
8010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8012$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8013if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8014 $as_echo_n "(cached) " >&6
8015else
8016 case $MAGIC_CMD in
8017[\\/*] | ?:[\\/]*)
8018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8019 ;;
8020*)
8021 lt_save_MAGIC_CMD="$MAGIC_CMD"
8022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8024 for ac_dir in $ac_dummy; do
8025 IFS="$lt_save_ifs"
8026 test -z "$ac_dir" && ac_dir=.
8027 if test -f $ac_dir/${ac_tool_prefix}file; then
8028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8029 if test -n "$file_magic_test_file"; then
8030 case $deplibs_check_method in
8031 "file_magic "*)
8032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8035 $EGREP "$file_magic_regex" > /dev/null; then
8036 :
8037 else
8038 cat <<_LT_EOF 1>&2
8039
8040*** Warning: the command libtool uses to detect shared libraries,
8041*** $file_magic_cmd, produces output that libtool cannot recognize.
8042*** The result is that libtool may fail to recognize shared libraries
8043*** as such. This will affect the creation of libtool libraries that
8044*** depend on shared libraries, but programs linked with such libtool
8045*** libraries will work regardless of this problem. Nevertheless, you
8046*** may want to report the problem to your system manager and/or to
8047*** bug-libtool@gnu.org
8048
8049_LT_EOF
8050 fi ;;
8051 esac
8052 fi
8053 break
8054 fi
8055 done
8056 IFS="$lt_save_ifs"
8057 MAGIC_CMD="$lt_save_MAGIC_CMD"
8058 ;;
8059esac
f0569246 8060fi
f0569246 8061
6bb11ab3
L
8062MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8063if test -n "$MAGIC_CMD"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8065$as_echo "$MAGIC_CMD" >&6; }
8066else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
8069fi
8070
8071
8072
8073
8074
8075if test -z "$lt_cv_path_MAGIC_CMD"; then
8076 if test -n "$ac_tool_prefix"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8078$as_echo_n "checking for file... " >&6; }
d0ac1c44 8079if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8080 $as_echo_n "(cached) " >&6
8081else
8082 case $MAGIC_CMD in
8083[\\/*] | ?:[\\/]*)
8084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8085 ;;
8086*)
8087 lt_save_MAGIC_CMD="$MAGIC_CMD"
8088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8090 for ac_dir in $ac_dummy; do
8091 IFS="$lt_save_ifs"
8092 test -z "$ac_dir" && ac_dir=.
8093 if test -f $ac_dir/file; then
8094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8095 if test -n "$file_magic_test_file"; then
8096 case $deplibs_check_method in
8097 "file_magic "*)
8098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8101 $EGREP "$file_magic_regex" > /dev/null; then
8102 :
8103 else
8104 cat <<_LT_EOF 1>&2
8105
8106*** Warning: the command libtool uses to detect shared libraries,
8107*** $file_magic_cmd, produces output that libtool cannot recognize.
8108*** The result is that libtool may fail to recognize shared libraries
8109*** as such. This will affect the creation of libtool libraries that
8110*** depend on shared libraries, but programs linked with such libtool
8111*** libraries will work regardless of this problem. Nevertheless, you
8112*** may want to report the problem to your system manager and/or to
8113*** bug-libtool@gnu.org
8114
8115_LT_EOF
8116 fi ;;
8117 esac
8118 fi
8119 break
8120 fi
8121 done
8122 IFS="$lt_save_ifs"
8123 MAGIC_CMD="$lt_save_MAGIC_CMD"
8124 ;;
81ecdfbb 8125esac
6bb11ab3
L
8126fi
8127
8128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129if test -n "$MAGIC_CMD"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8131$as_echo "$MAGIC_CMD" >&6; }
8132else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134$as_echo "no" >&6; }
8135fi
8136
8137
f0569246 8138 else
6bb11ab3 8139 MAGIC_CMD=:
f0569246
AC
8140 fi
8141fi
81ecdfbb 8142
6bb11ab3
L
8143 fi
8144 ;;
81ecdfbb 8145esac
6bb11ab3
L
8146
8147# Use C for the default configuration in the libtool script
8148
8149lt_save_CC="$CC"
8150ac_ext=c
8151ac_cpp='$CPP $CPPFLAGS'
8152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155
8156
8157# Source file extension for C test sources.
8158ac_ext=c
8159
8160# Object file extension for compiled C test sources.
8161objext=o
8162objext=$objext
8163
8164# Code to be used in simple compile tests
8165lt_simple_compile_test_code="int some_variable = 0;"
8166
8167# Code to be used in simple link tests
8168lt_simple_link_test_code='int main(){return(0);}'
8169
8170
8171
8172
8173
8174
8175
8176# If no C compiler was specified, use CC.
8177LTCC=${LTCC-"$CC"}
8178
8179# If no C compiler flags were specified, use CFLAGS.
8180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8181
8182# Allow CC to be a program name with arguments.
8183compiler=$CC
8184
8185# Save the default compiler, since it gets overwritten when the other
8186# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8187compiler_DEFAULT=$CC
8188
8189# save warnings/boilerplate of simple test code
8190ac_outfile=conftest.$ac_objext
8191echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8193_lt_compiler_boilerplate=`cat conftest.err`
8194$RM conftest*
8195
8196ac_outfile=conftest.$ac_objext
8197echo "$lt_simple_link_test_code" >conftest.$ac_ext
8198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8199_lt_linker_boilerplate=`cat conftest.err`
8200$RM -r conftest*
8201
8202
8203## CAVEAT EMPTOR:
8204## There is no encapsulation within the following macros, do not change
8205## the running order or otherwise move them around unless you know exactly
8206## what you are doing...
8207if test -n "$compiler"; then
8208
8209lt_prog_compiler_no_builtin_flag=
8210
8211if test "$GCC" = yes; then
8212 case $cc_basename in
8213 nvcc*)
8214 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8215 *)
8216 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 8217 esac
6bb11ab3
L
8218
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8220$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8221if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 8222 $as_echo_n "(cached) " >&6
f0569246 8223else
6bb11ab3
L
8224 lt_cv_prog_compiler_rtti_exceptions=no
8225 ac_outfile=conftest.$ac_objext
8226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8227 lt_compiler_flag="-fno-rtti -fno-exceptions"
8228 # Insert the option either (1) after the last *FLAGS variable, or
8229 # (2) before a word containing "conftest.", or (3) at the end.
8230 # Note that $ac_compile itself does not contain backslashes and begins
8231 # with a dollar sign (not a hyphen), so the echo should work correctly.
8232 # The option is referenced via a variable to avoid confusing sed.
8233 lt_compile=`echo "$ac_compile" | $SED \
8234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8236 -e 's:$: $lt_compiler_flag:'`
8237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8238 (eval "$lt_compile" 2>conftest.err)
8239 ac_status=$?
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 if (exit $ac_status) && test -s "$ac_outfile"; then
8243 # The compiler can only warn and ignore the option if not recognized
8244 # So say no if there are warnings other than the usual output.
8245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8248 lt_cv_prog_compiler_rtti_exceptions=yes
8249 fi
8250 fi
8251 $RM conftest*
8252
f0569246 8253fi
6bb11ab3
L
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8255$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8256
8257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8259else
8260 :
8261fi
8262
8263fi
8264
8265
8266
8267
8268
8269
8270 lt_prog_compiler_wl=
8271lt_prog_compiler_pic=
8272lt_prog_compiler_static=
8273
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8275$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8276
8277 if test "$GCC" = yes; then
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_static='-static'
8280
8281 case $host_os in
8282 aix*)
8283 # All AIX code is PIC.
8284 if test "$host_cpu" = ia64; then
8285 # AIX 5 now supports IA64 processor
8286 lt_prog_compiler_static='-Bstatic'
8287 fi
8288 lt_prog_compiler_pic='-fPIC'
8289 ;;
8290
8291 amigaos*)
8292 case $host_cpu in
8293 powerpc)
8294 # see comment about AmigaOS4 .so support
8295 lt_prog_compiler_pic='-fPIC'
8296 ;;
8297 m68k)
8298 # FIXME: we need at least 68020 code to build shared libraries, but
8299 # adding the `-m68020' flag to GCC prevents building anything better,
8300 # like `-m68040'.
8301 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8302 ;;
8303 esac
8304 ;;
8305
8306 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8307 # PIC is the default for these OSes.
8308 ;;
8309
8310 mingw* | cygwin* | pw32* | os2* | cegcc*)
8311 # This hack is so that the source file can tell whether it is being
8312 # built for inclusion in a dll (and should export symbols for example).
8313 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8314 # (--disable-auto-import) libraries
8315 lt_prog_compiler_pic='-DDLL_EXPORT'
8316 ;;
8317
8318 darwin* | rhapsody*)
8319 # PIC is the default on this platform
8320 # Common symbols not allowed in MH_DYLIB files
8321 lt_prog_compiler_pic='-fno-common'
8322 ;;
8323
8324 haiku*)
8325 # PIC is the default for Haiku.
8326 # The "-static" flag exists, but is broken.
8327 lt_prog_compiler_static=
8328 ;;
8329
8330 hpux*)
8331 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8332 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8333 # sets the default TLS model and affects inlining.
8334 case $host_cpu in
8335 hppa*64*)
8336 # +Z the default
8337 ;;
8338 *)
8339 lt_prog_compiler_pic='-fPIC'
8340 ;;
8341 esac
8342 ;;
8343
8344 interix[3-9]*)
8345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8346 # Instead, we relocate shared libraries at runtime.
8347 ;;
8348
8349 msdosdjgpp*)
8350 # Just because we use GCC doesn't mean we suddenly get shared libraries
8351 # on systems that don't support them.
8352 lt_prog_compiler_can_build_shared=no
8353 enable_shared=no
8354 ;;
8355
8356 *nto* | *qnx*)
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8358 # it will coredump.
8359 lt_prog_compiler_pic='-fPIC -shared'
8360 ;;
8361
8362 sysv4*MP*)
8363 if test -d /usr/nec; then
8364 lt_prog_compiler_pic=-Kconform_pic
8365 fi
8366 ;;
8367
8368 *)
8369 lt_prog_compiler_pic='-fPIC'
8370 ;;
8371 esac
8372
8373 case $cc_basename in
8374 nvcc*) # Cuda Compiler Driver 2.2
8375 lt_prog_compiler_wl='-Xlinker '
8376 lt_prog_compiler_pic='-Xcompiler -fPIC'
8377 ;;
8378 esac
8379 else
8380 # PORTME Check for flag to pass linker flags through the system compiler.
8381 case $host_os in
8382 aix*)
8383 lt_prog_compiler_wl='-Wl,'
8384 if test "$host_cpu" = ia64; then
8385 # AIX 5 now supports IA64 processor
8386 lt_prog_compiler_static='-Bstatic'
8387 else
8388 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8389 fi
8390 ;;
8391
8392 mingw* | cygwin* | pw32* | os2* | cegcc*)
8393 # This hack is so that the source file can tell whether it is being
8394 # built for inclusion in a dll (and should export symbols for example).
8395 lt_prog_compiler_pic='-DDLL_EXPORT'
8396 ;;
8397
8398 hpux9* | hpux10* | hpux11*)
8399 lt_prog_compiler_wl='-Wl,'
8400 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8401 # not for PA HP-UX.
8402 case $host_cpu in
8403 hppa*64*|ia64*)
8404 # +Z the default
8405 ;;
8406 *)
8407 lt_prog_compiler_pic='+Z'
8408 ;;
8409 esac
8410 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8411 lt_prog_compiler_static='${wl}-a ${wl}archive'
8412 ;;
8413
8414 irix5* | irix6* | nonstopux*)
8415 lt_prog_compiler_wl='-Wl,'
8416 # PIC (with -KPIC) is the default.
8417 lt_prog_compiler_static='-non_shared'
8418 ;;
8419
8420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8421 case $cc_basename in
8422 # old Intel for x86_64 which still supported -KPIC.
8423 ecc*)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-static'
8427 ;;
8428 # icc used to be incompatible with GCC.
8429 # ICC 10 doesn't accept -KPIC any more.
8430 icc* | ifort*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-fPIC'
8433 lt_prog_compiler_static='-static'
8434 ;;
8435 # Lahey Fortran 8.1.
8436 lf95*)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='--shared'
8439 lt_prog_compiler_static='--static'
8440 ;;
8441 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8442 # Portland Group compilers (*not* the Pentium gcc compiler,
8443 # which looks to be a dead project)
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='-fpic'
8446 lt_prog_compiler_static='-Bstatic'
8447 ;;
8448 ccc*)
8449 lt_prog_compiler_wl='-Wl,'
8450 # All Alpha code is PIC.
8451 lt_prog_compiler_static='-non_shared'
8452 ;;
8453 xl* | bgxl* | bgf* | mpixl*)
8454 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-qpic'
8457 lt_prog_compiler_static='-qstaticlink'
8458 ;;
8459 *)
8460 case `$CC -V 2>&1 | sed 5q` in
8461 *Sun\ F* | *Sun*Fortran*)
8462 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8465 lt_prog_compiler_wl=''
8466 ;;
8467 *Sun\ C*)
8468 # Sun C 5.9
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 lt_prog_compiler_wl='-Wl,'
8472 ;;
8473 esac
8474 ;;
8475 esac
8476 ;;
8477
8478 newsos6)
8479 lt_prog_compiler_pic='-KPIC'
8480 lt_prog_compiler_static='-Bstatic'
8481 ;;
8482
8483 *nto* | *qnx*)
8484 # QNX uses GNU C++, but need to define -shared option too, otherwise
8485 # it will coredump.
8486 lt_prog_compiler_pic='-fPIC -shared'
8487 ;;
8488
8489 osf3* | osf4* | osf5*)
8490 lt_prog_compiler_wl='-Wl,'
8491 # All OSF/1 code is PIC.
8492 lt_prog_compiler_static='-non_shared'
8493 ;;
8494
8495 rdos*)
8496 lt_prog_compiler_static='-non_shared'
8497 ;;
8498
8499 solaris*)
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8502 case $cc_basename in
8503 f77* | f90* | f95*)
8504 lt_prog_compiler_wl='-Qoption ld ';;
8505 *)
8506 lt_prog_compiler_wl='-Wl,';;
8507 esac
8508 ;;
8509
8510 sunos4*)
8511 lt_prog_compiler_wl='-Qoption ld '
8512 lt_prog_compiler_pic='-PIC'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
f0569246 8515
6bb11ab3
L
8516 sysv4 | sysv4.2uw2* | sysv4.3*)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
f0569246 8521
6bb11ab3
L
8522 sysv4*MP*)
8523 if test -d /usr/nec ;then
8524 lt_prog_compiler_pic='-Kconform_pic'
8525 lt_prog_compiler_static='-Bstatic'
8526 fi
8527 ;;
f0569246 8528
6bb11ab3
L
8529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 ;;
8534
8535 unicos*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_can_build_shared=no
8538 ;;
8539
8540 uts4*)
8541 lt_prog_compiler_pic='-pic'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544
8545 *)
8546 lt_prog_compiler_can_build_shared=no
8547 ;;
8548 esac
8549 fi
8550
8551case $host_os in
8552 # For platforms which do not support PIC, -DPIC is meaningless:
8553 *djgpp*)
8554 lt_prog_compiler_pic=
8555 ;;
8556 *)
8557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8558 ;;
81ecdfbb 8559esac
6bb11ab3
L
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8561$as_echo "$lt_prog_compiler_pic" >&6; }
8562
8563
8564
8565
8566
8567
8568#
8569# Check to make sure the PIC flag actually works.
8570#
8571if test -n "$lt_prog_compiler_pic"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8573$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8574if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8575 $as_echo_n "(cached) " >&6
b7026657 8576else
6bb11ab3
L
8577 lt_cv_prog_compiler_pic_works=no
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8581 # Insert the option either (1) after the last *FLAGS variable, or
8582 # (2) before a word containing "conftest.", or (3) at the end.
8583 # Note that $ac_compile itself does not contain backslashes and begins
8584 # with a dollar sign (not a hyphen), so the echo should work correctly.
8585 # The option is referenced via a variable to avoid confusing sed.
8586 lt_compile=`echo "$ac_compile" | $SED \
8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589 -e 's:$: $lt_compiler_flag:'`
8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591 (eval "$lt_compile" 2>conftest.err)
8592 ac_status=$?
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 if (exit $ac_status) && test -s "$ac_outfile"; then
8596 # The compiler can only warn and ignore the option if not recognized
8597 # So say no if there are warnings other than the usual output.
8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601 lt_cv_prog_compiler_pic_works=yes
8602 fi
8603 fi
8604 $RM conftest*
b7026657 8605
b7026657 8606fi
6bb11ab3
L
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8608$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8609
8610if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8611 case $lt_prog_compiler_pic in
8612 "" | " "*) ;;
8613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8614 esac
8615else
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_can_build_shared=no
f0569246 8618fi
6bb11ab3
L
8619
8620fi
8621
8622
8623
8624
8625
8626
8627#
8628# Check to make sure the static flag actually works.
8629#
8630wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8632$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8633if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8634 $as_echo_n "(cached) " >&6
f0569246 8635else
6bb11ab3
L
8636 lt_cv_prog_compiler_static_works=no
8637 save_LDFLAGS="$LDFLAGS"
8638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8639 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8641 # The linker can only warn and ignore the option if not recognized
8642 # So say no if there are warnings
8643 if test -s conftest.err; then
8644 # Append any errors to the config.log.
8645 cat conftest.err 1>&5
8646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648 if diff conftest.exp conftest.er2 >/dev/null; then
8649 lt_cv_prog_compiler_static_works=yes
8650 fi
8651 else
8652 lt_cv_prog_compiler_static_works=yes
8653 fi
8654 fi
8655 $RM -r conftest*
8656 LDFLAGS="$save_LDFLAGS"
f0569246 8657
6bb11ab3
L
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8660$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 8661
6bb11ab3
L
8662if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8663 :
f0569246 8664else
6bb11ab3 8665 lt_prog_compiler_static=
f0569246 8666fi
b7026657 8667
6bb11ab3
L
8668
8669
8670
8671
8672
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8675$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8676if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8677 $as_echo_n "(cached) " >&6
81ecdfbb 8678else
6bb11ab3
L
8679 lt_cv_prog_compiler_c_o=no
8680 $RM -r conftest 2>/dev/null
8681 mkdir conftest
8682 cd conftest
8683 mkdir out
8684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685
8686 lt_compiler_flag="-o out/conftest2.$ac_objext"
8687 # Insert the option either (1) after the last *FLAGS variable, or
8688 # (2) before a word containing "conftest.", or (3) at the end.
8689 # Note that $ac_compile itself does not contain backslashes and begins
8690 # with a dollar sign (not a hyphen), so the echo should work correctly.
8691 lt_compile=`echo "$ac_compile" | $SED \
8692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694 -e 's:$: $lt_compiler_flag:'`
8695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696 (eval "$lt_compile" 2>out/conftest.err)
8697 ac_status=$?
8698 cat out/conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8701 then
8702 # The compiler can only warn and ignore the option if not recognized
8703 # So say no if there are warnings
8704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8707 lt_cv_prog_compiler_c_o=yes
8708 fi
8709 fi
8710 chmod u+w . 2>&5
8711 $RM conftest*
8712 # SGI C++ compiler will create directory out/ii_files/ for
8713 # template instantiation
8714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8715 $RM out/* && rmdir out
8716 cd ..
8717 $RM -r conftest
8718 $RM conftest*
8719
81ecdfbb 8720fi
6bb11ab3
L
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8722$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8723
8724
8725
8726
8727
8728
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8730$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8731if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8732 $as_echo_n "(cached) " >&6
8733else
6bb11ab3
L
8734 lt_cv_prog_compiler_c_o=no
8735 $RM -r conftest 2>/dev/null
8736 mkdir conftest
8737 cd conftest
8738 mkdir out
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740
8741 lt_compiler_flag="-o out/conftest2.$ac_objext"
8742 # Insert the option either (1) after the last *FLAGS variable, or
8743 # (2) before a word containing "conftest.", or (3) at the end.
8744 # Note that $ac_compile itself does not contain backslashes and begins
8745 # with a dollar sign (not a hyphen), so the echo should work correctly.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>out/conftest.err)
8752 ac_status=$?
8753 cat out/conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8756 then
8757 # The compiler can only warn and ignore the option if not recognized
8758 # So say no if there are warnings
8759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8762 lt_cv_prog_compiler_c_o=yes
8763 fi
8764 fi
8765 chmod u+w . 2>&5
8766 $RM conftest*
8767 # SGI C++ compiler will create directory out/ii_files/ for
8768 # template instantiation
8769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8770 $RM out/* && rmdir out
8771 cd ..
8772 $RM -r conftest
8773 $RM conftest*
8774
8775fi
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8777$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8778
8779
8780
8781
8782hard_links="nottested"
8783if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8784 # do not overwrite the value of need_locks provided by the user
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8786$as_echo_n "checking if we can lock with hard links... " >&6; }
8787 hard_links=yes
8788 $RM conftest*
8789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8790 touch conftest.a
8791 ln conftest.a conftest.b 2>&5 || hard_links=no
8792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8794$as_echo "$hard_links" >&6; }
8795 if test "$hard_links" = no; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8797$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8798 need_locks=warn
8799 fi
8800else
8801 need_locks=no
8802fi
8803
8804
8805
8806
8807
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8810$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8811
8812 runpath_var=
8813 allow_undefined_flag=
8814 always_export_symbols=no
8815 archive_cmds=
8816 archive_expsym_cmds=
8817 compiler_needs_object=no
8818 enable_shared_with_static_runtimes=no
8819 export_dynamic_flag_spec=
8820 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8821 hardcode_automatic=no
8822 hardcode_direct=no
8823 hardcode_direct_absolute=no
8824 hardcode_libdir_flag_spec=
8825 hardcode_libdir_flag_spec_ld=
8826 hardcode_libdir_separator=
8827 hardcode_minus_L=no
8828 hardcode_shlibpath_var=unsupported
8829 inherit_rpath=no
8830 link_all_deplibs=unknown
8831 module_cmds=
8832 module_expsym_cmds=
8833 old_archive_from_new_cmds=
8834 old_archive_from_expsyms_cmds=
8835 thread_safe_flag_spec=
8836 whole_archive_flag_spec=
8837 # include_expsyms should be a list of space-separated symbols to be *always*
8838 # included in the symbol list
8839 include_expsyms=
8840 # exclude_expsyms can be an extended regexp of symbols to exclude
8841 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8842 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8843 # as well as any symbol that contains `d'.
8844 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8845 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8846 # platforms (ab)use it in PIC code, but their linkers get confused if
8847 # the symbol is explicitly referenced. Since portable code cannot
8848 # rely on this symbol name, it's probably fine to never include it in
8849 # preloaded symbol tables.
8850 # Exclude shared library initialization/finalization symbols.
8851 extract_expsyms_cmds=
8852
8853 case $host_os in
8854 cygwin* | mingw* | pw32* | cegcc*)
8855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8856 # When not using gcc, we currently assume that we are using
8857 # Microsoft Visual C++.
8858 if test "$GCC" != yes; then
8859 with_gnu_ld=no
8860 fi
8861 ;;
8862 interix*)
8863 # we just hope/assume this is gcc and not c89 (= MSVC++)
8864 with_gnu_ld=yes
8865 ;;
8866 openbsd*)
8867 with_gnu_ld=no
8868 ;;
8869 esac
f0569246 8870
6bb11ab3
L
8871 ld_shlibs=yes
8872
8873 # On some targets, GNU ld is compatible enough with the native linker
8874 # that we're better off using the native interface for both.
8875 lt_use_gnu_ld_interface=no
8876 if test "$with_gnu_ld" = yes; then
8877 case $host_os in
8878 aix*)
8879 # The AIX port of GNU ld has always aspired to compatibility
8880 # with the native linker. However, as the warning in the GNU ld
8881 # block says, versions before 2.19.5* couldn't really create working
8882 # shared libraries, regardless of the interface used.
8883 case `$LD -v 2>&1` in
8884 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8885 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8886 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8887 *)
8888 lt_use_gnu_ld_interface=yes
8889 ;;
8890 esac
8891 ;;
8892 *)
8893 lt_use_gnu_ld_interface=yes
8894 ;;
8895 esac
8896 fi
f0569246 8897
6bb11ab3
L
8898 if test "$lt_use_gnu_ld_interface" = yes; then
8899 # If archive_cmds runs LD, not CC, wlarc should be empty
8900 wlarc='${wl}'
8901
8902 # Set some defaults for GNU ld with shared library support. These
8903 # are reset later if shared libraries are not supported. Putting them
8904 # here allows them to be overridden if necessary.
8905 runpath_var=LD_RUN_PATH
8906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8907 export_dynamic_flag_spec='${wl}--export-dynamic'
8908 # ancient GNU ld didn't support --whole-archive et. al.
8909 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8910 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8911 else
8912 whole_archive_flag_spec=
8913 fi
8914 supports_anon_versioning=no
8915 case `$LD -v 2>&1` in
8916 *GNU\ gold*) supports_anon_versioning=yes ;;
8917 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8918 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8919 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8920 *\ 2.11.*) ;; # other 2.11 versions
8921 *) supports_anon_versioning=yes ;;
8922 esac
8923
8924 # See if GNU ld supports shared libraries.
8925 case $host_os in
8926 aix[3-9]*)
8927 # On AIX/PPC, the GNU linker is very broken
8928 if test "$host_cpu" != ia64; then
8929 ld_shlibs=no
8930 cat <<_LT_EOF 1>&2
8931
8932*** Warning: the GNU linker, at least up to release 2.19, is reported
8933*** to be unable to reliably create shared libraries on AIX.
8934*** Therefore, libtool is disabling shared libraries support. If you
8935*** really care for shared libraries, you may want to install binutils
8936*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8937*** You will then need to restart the configuration process.
8938
8939_LT_EOF
8940 fi
8941 ;;
8942
8943 amigaos*)
8944 case $host_cpu in
8945 powerpc)
8946 # see comment about AmigaOS4 .so support
8947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948 archive_expsym_cmds=''
8949 ;;
8950 m68k)
8951 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)'
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 hardcode_minus_L=yes
8954 ;;
8955 esac
8956 ;;
8957
8958 beos*)
8959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8960 allow_undefined_flag=unsupported
8961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8962 # support --undefined. This deserves some investigation. FIXME
8963 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 else
8965 ld_shlibs=no
8966 fi
8967 ;;
8968
8969 cygwin* | mingw* | pw32* | cegcc*)
8970 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8971 # as there is no search path for DLLs.
8972 hardcode_libdir_flag_spec='-L$libdir'
8973 export_dynamic_flag_spec='${wl}--export-all-symbols'
8974 allow_undefined_flag=unsupported
8975 always_export_symbols=no
8976 enable_shared_with_static_runtimes=yes
8977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8978
8979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8981 # If the export-symbols file already is a .def file (1st line
8982 # is EXPORTS), use it as is; otherwise, prepend...
8983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8984 cp $export_symbols $output_objdir/$soname.def;
8985 else
8986 echo EXPORTS > $output_objdir/$soname.def;
8987 cat $export_symbols >> $output_objdir/$soname.def;
8988 fi~
8989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8990 else
8991 ld_shlibs=no
8992 fi
8993 ;;
8994
8995 haiku*)
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 link_all_deplibs=yes
8998 ;;
8999
9000 interix[3-9]*)
9001 hardcode_direct=no
9002 hardcode_shlibpath_var=no
9003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004 export_dynamic_flag_spec='${wl}-E'
9005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9006 # Instead, shared libraries are loaded at an image base (0x10000000 by
9007 # default) and relocated if they conflict, which is a slow very memory
9008 # consuming and fragmenting process. To avoid this, we pick a random,
9009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9012 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'
9013 ;;
9014
9015 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9016 tmp_diet=no
9017 if test "$host_os" = linux-dietlibc; then
9018 case $cc_basename in
9019 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9020 esac
9021 fi
9022 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9023 && test "$tmp_diet" = no
9024 then
5cddc23a 9025 tmp_addflag=' $pic_flag'
6bb11ab3
L
9026 tmp_sharedflag='-shared'
9027 case $cc_basename,$host_cpu in
9028 pgcc*) # Portland Group C compiler
9029 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'
9030 tmp_addflag=' $pic_flag'
9031 ;;
9032 pgf77* | pgf90* | pgf95* | pgfortran*)
9033 # Portland Group f77 and f90 compilers
9034 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'
9035 tmp_addflag=' $pic_flag -Mnomain' ;;
9036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9037 tmp_addflag=' -i_dynamic' ;;
9038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9039 tmp_addflag=' -i_dynamic -nofor_main' ;;
9040 ifc* | ifort*) # Intel Fortran compiler
9041 tmp_addflag=' -nofor_main' ;;
9042 lf95*) # Lahey Fortran 8.1
9043 whole_archive_flag_spec=
9044 tmp_sharedflag='--shared' ;;
9045 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9046 tmp_sharedflag='-qmkshrobj'
9047 tmp_addflag= ;;
9048 nvcc*) # Cuda Compiler Driver 2.2
9049 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'
9050 compiler_needs_object=yes
9051 ;;
9052 esac
9053 case `$CC -V 2>&1 | sed 5q` in
9054 *Sun\ C*) # Sun C 5.9
9055 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'
9056 compiler_needs_object=yes
9057 tmp_sharedflag='-G' ;;
9058 *Sun\ F*) # Sun Fortran 8.3
9059 tmp_sharedflag='-G' ;;
9060 esac
9061 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062
9063 if test "x$supports_anon_versioning" = xyes; then
9064 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9066 echo "local: *; };" >> $output_objdir/$libname.ver~
9067 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9068 fi
9069
9070 case $cc_basename in
9071 xlf* | bgf* | bgxlf* | mpixlf*)
9072 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9073 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9074 hardcode_libdir_flag_spec=
9075 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9076 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9077 if test "x$supports_anon_versioning" = xyes; then
9078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9080 echo "local: *; };" >> $output_objdir/$libname.ver~
9081 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9082 fi
9083 ;;
9084 esac
9085 else
9086 ld_shlibs=no
9087 fi
9088 ;;
9089
9090 netbsd*)
9091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9092 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9093 wlarc=
9094 else
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9097 fi
9098 ;;
9099
9100 solaris*)
9101 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9102 ld_shlibs=no
9103 cat <<_LT_EOF 1>&2
9104
9105*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9106*** create shared libraries on Solaris systems. Therefore, libtool
9107*** is disabling shared libraries support. We urge you to upgrade GNU
9108*** binutils to release 2.9.1 or newer. Another option is to modify
9109*** your PATH or compiler configuration so that the native linker is
9110*** used, and then restart.
9111
9112_LT_EOF
9113 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9116 else
9117 ld_shlibs=no
9118 fi
9119 ;;
9120
9121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9122 case `$LD -v 2>&1` in
9123 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9124 ld_shlibs=no
9125 cat <<_LT_EOF 1>&2
9126
9127*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9128*** reliably create shared libraries on SCO systems. Therefore, libtool
9129*** is disabling shared libraries support. We urge you to upgrade GNU
9130*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9131*** your PATH or compiler configuration so that the native linker is
9132*** used, and then restart.
9133
9134_LT_EOF
9135 ;;
9136 *)
9137 # For security reasons, it is highly recommended that you always
9138 # use absolute paths for naming shared libraries, and exclude the
9139 # DT_RUNPATH tag from executables and libraries. But doing so
9140 # requires that you compile everything twice, which is a pain.
9141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9145 else
9146 ld_shlibs=no
9147 fi
9148 ;;
9149 esac
9150 ;;
9151
9152 sunos4*)
9153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9154 wlarc=
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 *)
9160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9163 else
9164 ld_shlibs=no
9165 fi
9166 ;;
9167 esac
9168
9169 if test "$ld_shlibs" = no; then
9170 runpath_var=
9171 hardcode_libdir_flag_spec=
9172 export_dynamic_flag_spec=
9173 whole_archive_flag_spec=
9174 fi
9175 else
9176 # PORTME fill in a description of your system's linker (not GNU ld)
9177 case $host_os in
9178 aix3*)
9179 allow_undefined_flag=unsupported
9180 always_export_symbols=yes
9181 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'
9182 # Note: this linker hardcodes the directories in LIBPATH if there
9183 # are no directories specified by -L.
9184 hardcode_minus_L=yes
9185 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9186 # Neither direct hardcoding nor static linking is supported with a
9187 # broken collect2.
9188 hardcode_direct=unsupported
9189 fi
9190 ;;
9191
9192 aix[4-9]*)
9193 if test "$host_cpu" = ia64; then
9194 # On IA64, the linker does run time linking by default, so we don't
9195 # have to do anything special.
9196 aix_use_runtimelinking=no
9197 exp_sym_flag='-Bexport'
9198 no_entry_flag=""
9199 else
9200 # If we're using GNU nm, then we don't want the "-C" option.
9201 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9202 # Also, AIX nm treats weak defined symbols like other global
9203 # defined symbols, whereas GNU nm marks them as "W".
9204 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9205 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'
9206 else
5c887dd5 9207 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
9208 fi
9209 aix_use_runtimelinking=no
9210
9211 # Test if we are trying to use run time linking or normal
9212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9213 # need to do runtime linking.
9214 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9215 for ld_flag in $LDFLAGS; do
9216 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9217 aix_use_runtimelinking=yes
9218 break
9219 fi
9220 done
9221 ;;
9222 esac
9223
9224 exp_sym_flag='-bexport'
9225 no_entry_flag='-bnoentry'
9226 fi
9227
9228 # When large executables or shared objects are built, AIX ld can
9229 # have problems creating the table of contents. If linking a library
9230 # or program results in "error TOC overflow" add -mminimal-toc to
9231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9233
9234 archive_cmds=''
9235 hardcode_direct=yes
9236 hardcode_direct_absolute=yes
9237 hardcode_libdir_separator=':'
9238 link_all_deplibs=yes
9239 file_list_spec='${wl}-f,'
9240
9241 if test "$GCC" = yes; then
9242 case $host_os in aix4.[012]|aix4.[012].*)
9243 # We only want to do this on AIX 4.2 and lower, the check
9244 # below for broken collect2 doesn't work under 4.3+
9245 collect2name=`${CC} -print-prog-name=collect2`
9246 if test -f "$collect2name" &&
9247 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9248 then
9249 # We have reworked collect2
9250 :
9251 else
9252 # We have old collect2
9253 hardcode_direct=unsupported
9254 # It fails to find uninstalled libraries when the uninstalled
9255 # path is not listed in the libpath. Setting hardcode_minus_L
9256 # to unsupported forces relinking
9257 hardcode_minus_L=yes
9258 hardcode_libdir_flag_spec='-L$libdir'
9259 hardcode_libdir_separator=
9260 fi
9261 ;;
9262 esac
9263 shared_flag='-shared'
9264 if test "$aix_use_runtimelinking" = yes; then
9265 shared_flag="$shared_flag "'${wl}-G'
9266 fi
9267 else
9268 # not using gcc
9269 if test "$host_cpu" = ia64; then
9270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9271 # chokes on -Wl,-G. The following line is correct:
9272 shared_flag='-G'
9273 else
9274 if test "$aix_use_runtimelinking" = yes; then
9275 shared_flag='${wl}-G'
9276 else
9277 shared_flag='${wl}-bM:SRE'
9278 fi
9279 fi
9280 fi
9281
9282 export_dynamic_flag_spec='${wl}-bexpall'
9283 # It seems that -bexpall does not export symbols beginning with
9284 # underscore (_), so it is better to generate a list of symbols to export.
9285 always_export_symbols=yes
9286 if test "$aix_use_runtimelinking" = yes; then
9287 # Warning - without using the other runtime loading flags (-brtl),
9288 # -berok will link without error, but may produce a broken library.
9289 allow_undefined_flag='-berok'
9290 # Determine the default libpath from the value encoded in an
9291 # empty executable.
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
9293/* end confdefs.h. */
9294
9295int
9296main ()
9297{
9298
9299 ;
9300 return 0;
9301}
9302_ACEOF
6bb11ab3 9303if ac_fn_c_try_link "$LINENO"; then :
81ecdfbb 9304
6bb11ab3
L
9305lt_aix_libpath_sed='
9306 /Import File Strings/,/^$/ {
9307 /^0/ {
9308 s/^0 *\(.*\)$/\1/
9309 p
9310 }
9311 }'
9312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313# Check for a 64-bit object if we didn't find anything.
9314if test -z "$aix_libpath"; then
9315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9316fi
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321
9322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 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"
9324 else
9325 if test "$host_cpu" = ia64; then
9326 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9327 allow_undefined_flag="-z nodefs"
9328 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"
9329 else
9330 # Determine the default libpath from the value encoded in an
9331 # empty executable.
81ecdfbb
RW
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h. */
9334
9335int
9336main ()
9337{
b7026657 9338
81ecdfbb
RW
9339 ;
9340 return 0;
9341}
9342_ACEOF
6bb11ab3
L
9343if ac_fn_c_try_link "$LINENO"; then :
9344
9345lt_aix_libpath_sed='
9346 /Import File Strings/,/^$/ {
9347 /^0/ {
9348 s/^0 *\(.*\)$/\1/
9349 p
9350 }
9351 }'
9352aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9353# Check for a 64-bit object if we didn't find anything.
9354if test -z "$aix_libpath"; then
9355 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
f0569246 9356fi
81ecdfbb 9357fi
6bb11ab3
L
9358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9361
9362 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9363 # Warning - without using the other run time loading flags,
9364 # -berok will link without error, but may produce a broken library.
9365 no_undefined_flag=' ${wl}-bernotok'
9366 allow_undefined_flag=' ${wl}-berok'
9367 if test "$with_gnu_ld" = yes; then
9368 # We only use this code for GNU lds that support --whole-archive.
9369 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9370 else
9371 # Exported symbols can be pulled into shared objects from archives
9372 whole_archive_flag_spec='$convenience'
9373 fi
9374 archive_cmds_need_lc=yes
9375 # This is similar to how AIX traditionally builds its shared libraries.
9376 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'
9377 fi
9378 fi
9379 ;;
9380
9381 amigaos*)
9382 case $host_cpu in
9383 powerpc)
9384 # see comment about AmigaOS4 .so support
9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386 archive_expsym_cmds=''
9387 ;;
9388 m68k)
9389 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)'
9390 hardcode_libdir_flag_spec='-L$libdir'
9391 hardcode_minus_L=yes
9392 ;;
9393 esac
9394 ;;
9395
9396 bsdi[45]*)
9397 export_dynamic_flag_spec=-rdynamic
9398 ;;
9399
9400 cygwin* | mingw* | pw32* | cegcc*)
9401 # When not using gcc, we currently assume that we are using
9402 # Microsoft Visual C++.
9403 # hardcode_libdir_flag_spec is actually meaningless, as there is
9404 # no search path for DLLs.
9405 hardcode_libdir_flag_spec=' '
9406 allow_undefined_flag=unsupported
9407 # Tell ltmain to make .lib files, not .a files.
9408 libext=lib
9409 # Tell ltmain to make .dll files, not .so files.
9410 shrext_cmds=".dll"
9411 # FIXME: Setting linknames here is a bad hack.
9412 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9413 # The linker will automatically build a .lib file if we build a DLL.
9414 old_archive_from_new_cmds='true'
9415 # FIXME: Should let the user specify the lib program.
9416 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9417 fix_srcfile_path='`cygpath -w "$srcfile"`'
9418 enable_shared_with_static_runtimes=yes
9419 ;;
9420
9421 darwin* | rhapsody*)
9422
9423
9424 archive_cmds_need_lc=no
9425 hardcode_direct=no
9426 hardcode_automatic=yes
9427 hardcode_shlibpath_var=unsupported
9428 if test "$lt_cv_ld_force_load" = "yes"; then
9429 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 9430 else
6bb11ab3 9431 whole_archive_flag_spec=''
f0569246 9432 fi
6bb11ab3
L
9433 link_all_deplibs=yes
9434 allow_undefined_flag="$_lt_dar_allow_undefined"
9435 case $cc_basename in
9436 ifort*) _lt_dar_can_shared=yes ;;
9437 *) _lt_dar_can_shared=$GCC ;;
9438 esac
9439 if test "$_lt_dar_can_shared" = "yes"; then
9440 output_verbose_link_cmd=func_echo_all
9441 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9442 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9443 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}"
9444 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}"
9445
f0569246 9446 else
6bb11ab3 9447 ld_shlibs=no
f0569246 9448 fi
6bb11ab3
L
9449
9450 ;;
9451
9452 dgux*)
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 hardcode_shlibpath_var=no
9456 ;;
9457
9458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9459 # support. Future versions do this automatically, but an explicit c++rt0.o
9460 # does not break anything, and helps significantly (at the cost of a little
9461 # extra space).
9462 freebsd2.2*)
9463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9464 hardcode_libdir_flag_spec='-R$libdir'
9465 hardcode_direct=yes
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9470 freebsd2.*)
9471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_direct=yes
9473 hardcode_minus_L=yes
9474 hardcode_shlibpath_var=no
9475 ;;
9476
9477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9478 freebsd* | dragonfly*)
9479 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9480 hardcode_libdir_flag_spec='-R$libdir'
9481 hardcode_direct=yes
9482 hardcode_shlibpath_var=no
9483 ;;
9484
9485 hpux9*)
9486 if test "$GCC" = yes; then
9487 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'
9488 else
9489 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'
9490 fi
9491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9492 hardcode_libdir_separator=:
9493 hardcode_direct=yes
9494
9495 # hardcode_minus_L: Not really in the search PATH,
9496 # but as the default location of the library.
9497 hardcode_minus_L=yes
9498 export_dynamic_flag_spec='${wl}-E'
9499 ;;
9500
9501 hpux10*)
9502 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9503 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9504 else
9505 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9506 fi
9507 if test "$with_gnu_ld" = no; then
9508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9509 hardcode_libdir_flag_spec_ld='+b $libdir'
9510 hardcode_libdir_separator=:
9511 hardcode_direct=yes
9512 hardcode_direct_absolute=yes
9513 export_dynamic_flag_spec='${wl}-E'
9514 # hardcode_minus_L: Not really in the search PATH,
9515 # but as the default location of the library.
9516 hardcode_minus_L=yes
9517 fi
9518 ;;
9519
9520 hpux11*)
9521 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9522 case $host_cpu in
9523 hppa*64*)
9524 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 ;;
9526 ia64*)
9527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9528 ;;
9529 *)
9530 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9531 ;;
9532 esac
9533 else
9534 case $host_cpu in
9535 hppa*64*)
9536 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 ;;
9538 ia64*)
9539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9540 ;;
9541 *)
9542
9543 # Older versions of the 11.00 compiler do not understand -b yet
9544 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9546$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9547if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9548 $as_echo_n "(cached) " >&6
f0569246 9549else
6bb11ab3
L
9550 lt_cv_prog_compiler__b=no
9551 save_LDFLAGS="$LDFLAGS"
9552 LDFLAGS="$LDFLAGS -b"
9553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9555 # The linker can only warn and ignore the option if not recognized
9556 # So say no if there are warnings
9557 if test -s conftest.err; then
9558 # Append any errors to the config.log.
9559 cat conftest.err 1>&5
9560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562 if diff conftest.exp conftest.er2 >/dev/null; then
9563 lt_cv_prog_compiler__b=yes
9564 fi
9565 else
9566 lt_cv_prog_compiler__b=yes
9567 fi
9568 fi
9569 $RM -r conftest*
9570 LDFLAGS="$save_LDFLAGS"
f0569246 9571
6bb11ab3
L
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9574$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 9575
6bb11ab3
L
9576if test x"$lt_cv_prog_compiler__b" = xyes; then
9577 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9578else
9579 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9580fi
81ecdfbb 9581
6bb11ab3
L
9582 ;;
9583 esac
9584 fi
9585 if test "$with_gnu_ld" = no; then
9586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9587 hardcode_libdir_separator=:
9588
9589 case $host_cpu in
9590 hppa*64*|ia64*)
9591 hardcode_direct=no
9592 hardcode_shlibpath_var=no
9593 ;;
9594 *)
9595 hardcode_direct=yes
9596 hardcode_direct_absolute=yes
9597 export_dynamic_flag_spec='${wl}-E'
9598
9599 # hardcode_minus_L: Not really in the search PATH,
9600 # but as the default location of the library.
9601 hardcode_minus_L=yes
9602 ;;
9603 esac
9604 fi
9605 ;;
9606
9607 irix5* | irix6* | nonstopux*)
9608 if test "$GCC" = yes; then
9609 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'
9610 # Try to use the -exported_symbol ld option, if it does not
9611 # work, assume that -exports_file does not work either and
9612 # implicitly export all symbols.
9613 save_LDFLAGS="$LDFLAGS"
9614 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h. */
9617int foo(void) {}
b7026657 9618_ACEOF
6bb11ab3
L
9619if ac_fn_c_try_link "$LINENO"; then :
9620 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 9621
f0569246 9622fi
6bb11ab3
L
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 LDFLAGS="$save_LDFLAGS"
9626 else
9627 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'
9628 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'
9629 fi
9630 archive_cmds_need_lc='no'
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 hardcode_libdir_separator=:
9633 inherit_rpath=yes
9634 link_all_deplibs=yes
9635 ;;
9636
9637 netbsd*)
9638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9640 else
9641 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9642 fi
9643 hardcode_libdir_flag_spec='-R$libdir'
9644 hardcode_direct=yes
9645 hardcode_shlibpath_var=no
9646 ;;
9647
9648 newsos6)
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct=yes
9651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652 hardcode_libdir_separator=:
9653 hardcode_shlibpath_var=no
9654 ;;
9655
9656 *nto* | *qnx*)
9657 ;;
9658
9659 openbsd*)
9660 if test -f /usr/libexec/ld.so; then
9661 hardcode_direct=yes
9662 hardcode_shlibpath_var=no
9663 hardcode_direct_absolute=yes
9664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9668 export_dynamic_flag_spec='${wl}-E'
9669 else
9670 case $host_os in
9671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_libdir_flag_spec='-R$libdir'
9674 ;;
9675 *)
9676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678 ;;
9679 esac
9680 fi
9681 else
9682 ld_shlibs=no
9683 fi
9684 ;;
9685
9686 os2*)
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_minus_L=yes
9689 allow_undefined_flag=unsupported
9690 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'
9691 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9692 ;;
9693
9694 osf3*)
9695 if test "$GCC" = yes; then
9696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9697 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'
9698 else
9699 allow_undefined_flag=' -expect_unresolved \*'
9700 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'
9701 fi
9702 archive_cmds_need_lc='no'
9703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704 hardcode_libdir_separator=:
9705 ;;
9706
9707 osf4* | osf5*) # as osf3* with the addition of -msym flag
9708 if test "$GCC" = yes; then
9709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9710 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'
9711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712 else
9713 allow_undefined_flag=' -expect_unresolved \*'
9714 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'
9715 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~
9716 $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'
9717
9718 # Both c and cxx compiler support -rpath directly
9719 hardcode_libdir_flag_spec='-rpath $libdir'
9720 fi
9721 archive_cmds_need_lc='no'
9722 hardcode_libdir_separator=:
9723 ;;
9724
9725 solaris*)
9726 no_undefined_flag=' -z defs'
9727 if test "$GCC" = yes; then
9728 wlarc='${wl}'
9729 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9732 else
9733 case `$CC -V 2>&1` in
9734 *"Compilers 5.0"*)
9735 wlarc=''
9736 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9739 ;;
9740 *)
9741 wlarc='${wl}'
9742 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9745 ;;
9746 esac
9747 fi
9748 hardcode_libdir_flag_spec='-R$libdir'
9749 hardcode_shlibpath_var=no
9750 case $host_os in
9751 solaris2.[0-5] | solaris2.[0-5].*) ;;
9752 *)
9753 # The compiler driver will combine and reorder linker options,
9754 # but understands `-z linker_flag'. GCC discards it without `$wl',
9755 # but is careful enough not to reorder.
9756 # Supported since Solaris 2.6 (maybe 2.5.1?)
9757 if test "$GCC" = yes; then
9758 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9759 else
9760 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9761 fi
9762 ;;
9763 esac
9764 link_all_deplibs=yes
9765 ;;
9766
9767 sunos4*)
9768 if test "x$host_vendor" = xsequent; then
9769 # Use $CC to link under sequent, because it throws in some extra .o
9770 # files that make .init and .fini sections work.
9771 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_direct=yes
9777 hardcode_minus_L=yes
9778 hardcode_shlibpath_var=no
9779 ;;
9780
9781 sysv4)
9782 case $host_vendor in
9783 sni)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_direct=yes # is this really true???
9786 ;;
9787 siemens)
9788 ## LD is ld it makes a PLAMLIB
9789 ## CC just makes a GrossModule.
9790 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9791 reload_cmds='$CC -r -o $output$reload_objs'
9792 hardcode_direct=no
9793 ;;
9794 motorola)
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9797 ;;
9798 esac
9799 runpath_var='LD_RUN_PATH'
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 sysv4.3*)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_shlibpath_var=no
9806 export_dynamic_flag_spec='-Bexport'
9807 ;;
9808
9809 sysv4*MP*)
9810 if test -d /usr/nec; then
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var=no
9813 runpath_var=LD_RUN_PATH
9814 hardcode_runpath_var=yes
9815 ld_shlibs=yes
9816 fi
9817 ;;
9818
9819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9820 no_undefined_flag='${wl}-z,text'
9821 archive_cmds_need_lc=no
9822 hardcode_shlibpath_var=no
9823 runpath_var='LD_RUN_PATH'
9824
9825 if test "$GCC" = yes; then
9826 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 fi
9832 ;;
9833
9834 sysv5* | sco3.2v5* | sco5v6*)
9835 # Note: We can NOT use -z defs as we might desire, because we do not
9836 # link with -lc, and that would cause any symbols used from libc to
9837 # always be unresolved, which means just about no library would
9838 # ever link correctly. If we're not using GNU ld we use -z text
9839 # though, which does catch some bad symbols but isn't as heavy-handed
9840 # as -z defs.
9841 no_undefined_flag='${wl}-z,text'
9842 allow_undefined_flag='${wl}-z,nodefs'
9843 archive_cmds_need_lc=no
9844 hardcode_shlibpath_var=no
9845 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9846 hardcode_libdir_separator=':'
9847 link_all_deplibs=yes
9848 export_dynamic_flag_spec='${wl}-Bexport'
9849 runpath_var='LD_RUN_PATH'
9850
9851 if test "$GCC" = yes; then
9852 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 fi
9858 ;;
9859
9860 uts4*)
9861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_shlibpath_var=no
9864 ;;
9865
9866 *)
9867 ld_shlibs=no
9868 ;;
9869 esac
9870
9871 if test x$host_vendor = xsni; then
9872 case $host in
9873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9874 export_dynamic_flag_spec='${wl}-Blargedynsym'
9875 ;;
9876 esac
9877 fi
9878 fi
9879
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9881$as_echo "$ld_shlibs" >&6; }
9882test "$ld_shlibs" = no && can_build_shared=no
9883
9884with_gnu_ld=$with_gnu_ld
9885
9886
9887
9888
9889
f0569246 9890
b7026657 9891
f0569246 9892
6ffe910a 9893
6ffe910a
MF
9894
9895
6ffe910a 9896
f0569246 9897
f0569246 9898
c906108c 9899
6bb11ab3
L
9900#
9901# Do we need to explicitly link libc?
9902#
9903case "x$archive_cmds_need_lc" in
9904x|xyes)
9905 # Assume -lc should be added
9906 archive_cmds_need_lc=yes
9907
9908 if test "$enable_shared" = yes && test "$GCC" = yes; then
9909 case $archive_cmds in
9910 *'~'*)
9911 # FIXME: we may have to deal with multi-command sequences.
9912 ;;
9913 '$CC '*)
9914 # Test whether the compiler implicitly links with -lc since on some
9915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9916 # to ld, don't add -lc before -lgcc.
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9918$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9919if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9920 $as_echo_n "(cached) " >&6
f0569246 9921else
6bb11ab3
L
9922 $RM conftest*
9923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9924
9925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9926 (eval $ac_compile) 2>&5
9927 ac_status=$?
9928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929 test $ac_status = 0; } 2>conftest.err; then
9930 soname=conftest
9931 lib=conftest
9932 libobjs=conftest.$ac_objext
9933 deplibs=
9934 wl=$lt_prog_compiler_wl
9935 pic_flag=$lt_prog_compiler_pic
9936 compiler_flags=-v
9937 linker_flags=-v
9938 verstring=
9939 output_objdir=.
9940 libname=conftest
9941 lt_save_allow_undefined_flag=$allow_undefined_flag
9942 allow_undefined_flag=
9943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9944 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9945 ac_status=$?
9946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9947 test $ac_status = 0; }
9948 then
9949 lt_cv_archive_cmds_need_lc=no
9950 else
9951 lt_cv_archive_cmds_need_lc=yes
9952 fi
9953 allow_undefined_flag=$lt_save_allow_undefined_flag
9954 else
9955 cat conftest.err 1>&5
9956 fi
9957 $RM conftest*
c906108c 9958
6ffe910a 9959fi
6bb11ab3
L
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9961$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9962 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9963 ;;
9964 esac
9965 fi
9966 ;;
6ffe910a 9967esac
c906108c 9968
c906108c 9969
6ffe910a 9970
c906108c 9971
81ecdfbb 9972
35695fd6 9973
35695fd6 9974
35695fd6 9975
f0569246 9976
c906108c 9977
f0569246 9978
b7026657 9979
f0569246 9980
c906108c 9981
81ecdfbb 9982
b7026657 9983
f0569246
AC
9984
9985
81ecdfbb 9986
81ecdfbb 9987
81ecdfbb
RW
9988
9989
81ecdfbb 9990
81ecdfbb 9991
f0569246
AC
9992
9993
c906108c 9994
f0569246 9995
c906108c 9996
c906108c 9997
81ecdfbb 9998
b7026657 9999
c906108c 10000
f0569246 10001
81ecdfbb 10002
f0569246 10003
c906108c 10004
c906108c 10005
b7026657 10006
81ecdfbb 10007
b7026657 10008
c906108c 10009
c906108c 10010
b7026657
AC
10011
10012
10013
10014
6ffe910a 10015
2232061b
MF
10016
10017
2232061b 10018
2232061b
MF
10019
10020
2232061b
MF
10021
10022
2232061b 10023
6bb11ab3
L
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10126$as_echo_n "checking dynamic linker characteristics... " >&6; }
10127
10128if test "$GCC" = yes; then
10129 case $host_os in
10130 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10131 *) lt_awk_arg="/^libraries:/" ;;
10132 esac
10133 case $host_os in
10134 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10135 *) lt_sed_strip_eq="s,=/,/,g" ;;
10136 esac
10137 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10138 case $lt_search_path_spec in
10139 *\;*)
10140 # if the path contains ";" then we assume it to be the separator
10141 # otherwise default to the standard path separator (i.e. ":") - it is
10142 # assumed that no part of a normal pathname contains ";" but that should
10143 # okay in the real world where ";" in dirpaths is itself problematic.
10144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10145 ;;
10146 *)
10147 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10148 ;;
10149 esac
10150 # Ok, now we have the path, separated by spaces, we can step through it
10151 # and add multilib dir if necessary.
10152 lt_tmp_lt_search_path_spec=
10153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10154 for lt_sys_path in $lt_search_path_spec; do
10155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10157 else
10158 test -d "$lt_sys_path" && \
10159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10160 fi
10161 done
10162 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10163BEGIN {RS=" "; FS="/|\n";} {
10164 lt_foo="";
10165 lt_count=0;
10166 for (lt_i = NF; lt_i > 0; lt_i--) {
10167 if ($lt_i != "" && $lt_i != ".") {
10168 if ($lt_i == "..") {
10169 lt_count++;
10170 } else {
10171 if (lt_count == 0) {
10172 lt_foo="/" $lt_i lt_foo;
10173 } else {
10174 lt_count--;
10175 }
10176 }
10177 }
10178 }
10179 if (lt_foo != "") { lt_freq[lt_foo]++; }
10180 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10181}'`
10182 # AWK program above erroneously prepends '/' to C:/dos/paths
10183 # for these hosts.
10184 case $host_os in
10185 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10186 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10187 esac
10188 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10189else
10190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10191fi
10192library_names_spec=
10193libname_spec='lib$name'
10194soname_spec=
10195shrext_cmds=".so"
10196postinstall_cmds=
10197postuninstall_cmds=
10198finish_cmds=
10199finish_eval=
10200shlibpath_var=
10201shlibpath_overrides_runpath=unknown
10202version_type=none
10203dynamic_linker="$host_os ld.so"
10204sys_lib_dlsearch_path_spec="/lib /usr/lib"
10205need_lib_prefix=unknown
10206hardcode_into_libs=no
10207
10208# when you set need_version to no, make sure it does not cause -set_version
10209# flags to be left without arguments
10210need_version=unknown
10211
10212case $host_os in
10213aix3*)
10214 version_type=linux
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10216 shlibpath_var=LIBPATH
10217
10218 # AIX 3 has no versioning support, so we append a major version to the name.
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 ;;
10221
10222aix[4-9]*)
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 hardcode_into_libs=yes
10227 if test "$host_cpu" = ia64; then
10228 # AIX 5 supports IA64
10229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 else
10232 # With GCC up to 2.95.x, collect2 would create an import file
10233 # for dependence libraries. The import file would start with
10234 # the line `#! .'. This would cause the generated library to
10235 # depend on `.', always an invalid library. This was fixed in
10236 # development snapshots of GCC prior to 3.0.
10237 case $host_os in
10238 aix4 | aix4.[01] | aix4.[01].*)
10239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10240 echo ' yes '
10241 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10242 :
10243 else
10244 can_build_shared=no
10245 fi
10246 ;;
10247 esac
10248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10249 # soname into executable. Probably we can add versioning support to
10250 # collect2, so additional links can be useful in future.
10251 if test "$aix_use_runtimelinking" = yes; then
10252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10253 # instead of lib<name>.a to let people know that these are not
10254 # typical AIX shared libraries.
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 else
10257 # We preserve .a as extension for shared libraries through AIX4.2
10258 # and later when we are not doing run time linking.
10259 library_names_spec='${libname}${release}.a $libname.a'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 fi
10262 shlibpath_var=LIBPATH
2232061b 10263 fi
6bb11ab3
L
10264 ;;
10265
10266amigaos*)
10267 case $host_cpu in
10268 powerpc)
10269 # Since July 2007 AmigaOS4 officially supports .so libraries.
10270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 ;;
10273 m68k)
10274 library_names_spec='$libname.ixlibrary $libname.a'
10275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10276 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'
10277 ;;
10278 esac
10279 ;;
10280
10281beos*)
10282 library_names_spec='${libname}${shared_ext}'
10283 dynamic_linker="$host_os ld.so"
10284 shlibpath_var=LIBRARY_PATH
10285 ;;
10286
10287bsdi[45]*)
10288 version_type=linux
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10296 # the default ld.so.conf also contains /usr/contrib/lib and
10297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10298 # libtool to hard-code these into programs
10299 ;;
10300
10301cygwin* | mingw* | pw32* | cegcc*)
10302 version_type=windows
10303 shrext_cmds=".dll"
10304 need_version=no
10305 need_lib_prefix=no
10306
10307 case $GCC,$host_os in
10308 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10309 library_names_spec='$libname.dll.a'
10310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10311 postinstall_cmds='base_file=`basename \${file}`~
10312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10313 dldir=$destdir/`dirname \$dlpath`~
10314 test -d \$dldir || mkdir -p \$dldir~
10315 $install_prog $dir/$dlname \$dldir/$dlname~
10316 chmod a+x \$dldir/$dlname~
10317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10319 fi'
10320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10321 dlpath=$dir/\$dldll~
10322 $RM \$dlpath'
10323 shlibpath_overrides_runpath=yes
10324
10325 case $host_os in
10326 cygwin*)
10327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10329
10330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10331 ;;
10332 mingw* | cegcc*)
10333 # MinGW DLLs use traditional 'lib' prefix
10334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335 ;;
10336 pw32*)
10337 # pw32 DLLs use 'pw' prefix rather than 'lib'
10338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10339 ;;
10340 esac
10341 ;;
2232061b 10342
6bb11ab3
L
10343 *)
10344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10345 ;;
10346 esac
10347 dynamic_linker='Win32 ld.exe'
10348 # FIXME: first we should search . and the directory the executable is in
10349 shlibpath_var=PATH
10350 ;;
10351
10352darwin* | rhapsody*)
10353 dynamic_linker="$host_os dyld"
10354 version_type=darwin
10355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10358 soname_spec='${libname}${release}${major}$shared_ext'
10359 shlibpath_overrides_runpath=yes
10360 shlibpath_var=DYLD_LIBRARY_PATH
10361 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10362
10363 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10365 ;;
10366
10367dgux*)
10368 version_type=linux
10369 need_lib_prefix=no
10370 need_version=no
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 ;;
10375
10376freebsd* | dragonfly*)
10377 # DragonFly does not have aout. When/if they implement a new
10378 # versioning mechanism, adjust this.
10379 if test -x /usr/bin/objformat; then
10380 objformat=`/usr/bin/objformat`
10381 else
10382 case $host_os in
10383 freebsd[23].*) objformat=aout ;;
10384 *) objformat=elf ;;
10385 esac
10386 fi
10387 version_type=freebsd-$objformat
10388 case $version_type in
10389 freebsd-elf*)
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 need_version=no
10392 need_lib_prefix=no
10393 ;;
10394 freebsd-*)
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10396 need_version=yes
10397 ;;
10398 esac
10399 shlibpath_var=LD_LIBRARY_PATH
10400 case $host_os in
10401 freebsd2.*)
10402 shlibpath_overrides_runpath=yes
10403 ;;
10404 freebsd3.[01]* | freebsdelf3.[01]*)
10405 shlibpath_overrides_runpath=yes
10406 hardcode_into_libs=yes
10407 ;;
10408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10410 shlibpath_overrides_runpath=no
10411 hardcode_into_libs=yes
10412 ;;
10413 *) # from 4.6 on, and DragonFly
10414 shlibpath_overrides_runpath=yes
10415 hardcode_into_libs=yes
10416 ;;
10417 esac
10418 ;;
10419
6bb11ab3
L
10420haiku*)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 dynamic_linker="$host_os runtime_loader"
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LIBRARY_PATH
10428 shlibpath_overrides_runpath=yes
10429 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10430 hardcode_into_libs=yes
10431 ;;
10432
10433hpux9* | hpux10* | hpux11*)
10434 # Give a soname corresponding to the major version so that dld.sl refuses to
10435 # link against other versions.
10436 version_type=sunos
10437 need_lib_prefix=no
10438 need_version=no
10439 case $host_cpu in
10440 ia64*)
10441 shrext_cmds='.so'
10442 hardcode_into_libs=yes
10443 dynamic_linker="$host_os dld.so"
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 if test "X$HPUX_IA64_MODE" = X32; then
10449 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10450 else
10451 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10452 fi
10453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10454 ;;
10455 hppa*64*)
10456 shrext_cmds='.sl'
10457 hardcode_into_libs=yes
10458 dynamic_linker="$host_os dld.sl"
10459 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10465 ;;
10466 *)
10467 shrext_cmds='.sl'
10468 dynamic_linker="$host_os dld.sl"
10469 shlibpath_var=SHLIB_PATH
10470 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 ;;
10474 esac
10475 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10476 postinstall_cmds='chmod 555 $lib'
10477 # or fails outright, so override atomically:
10478 install_override_mode=555
10479 ;;
10480
10481interix[3-9]*)
10482 version_type=linux
10483 need_lib_prefix=no
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10490 hardcode_into_libs=yes
10491 ;;
10492
10493irix5* | irix6* | nonstopux*)
10494 case $host_os in
10495 nonstopux*) version_type=nonstopux ;;
10496 *)
10497 if test "$lt_cv_prog_gnu_ld" = yes; then
10498 version_type=linux
10499 else
10500 version_type=irix
10501 fi ;;
10502 esac
10503 need_lib_prefix=no
10504 need_version=no
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10507 case $host_os in
10508 irix5* | nonstopux*)
10509 libsuff= shlibsuff=
10510 ;;
10511 *)
10512 case $LD in # libtool.m4 will add one of these switches to LD
10513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10514 libsuff= shlibsuff= libmagic=32-bit;;
10515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10516 libsuff=32 shlibsuff=N32 libmagic=N32;;
10517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10518 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10519 *) libsuff= shlibsuff= libmagic=never-match;;
10520 esac
10521 ;;
10522 esac
10523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10524 shlibpath_overrides_runpath=no
10525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10527 hardcode_into_libs=yes
10528 ;;
10529
10530# No shared lib support for Linux oldld, aout, or coff.
10531linux*oldld* | linux*aout* | linux*coff*)
10532 dynamic_linker=no
10533 ;;
10534
10535# This must be Linux ELF.
46f900c0 10536linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10537 version_type=linux
10538 need_lib_prefix=no
10539 need_version=no
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=no
10545
10546 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10547 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10548 $as_echo_n "(cached) " >&6
10549else
6bb11ab3
L
10550 lt_cv_shlibpath_overrides_runpath=no
10551 save_LDFLAGS=$LDFLAGS
10552 save_libdir=$libdir
10553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10556/* end confdefs.h. */
10557
2232061b
MF
10558int
10559main ()
10560{
10561
10562 ;
10563 return 0;
10564}
10565_ACEOF
6bb11ab3
L
10566if ac_fn_c_try_link "$LINENO"; then :
10567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10568 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10569fi
2232061b 10570fi
6bb11ab3
L
10571rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LDFLAGS=$save_LDFLAGS
10574 libdir=$save_libdir
2232061b 10575
6bb11ab3 10576fi
2232061b 10577
6bb11ab3 10578 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10579
6bb11ab3
L
10580 # This implies no fast_install, which is unacceptable.
10581 # Some rework will be needed to allow for fast_install
10582 # before this can be enabled.
10583 hardcode_into_libs=yes
2232061b 10584
6bb11ab3
L
10585 # Append ld.so.conf contents to the search path
10586 if test -f /etc/ld.so.conf; then
10587 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' ' '`
10588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10589 fi
10590
10591 # We used to test for /lib/ld.so.1 and disable shared libraries on
10592 # powerpc, because MkLinux only supported shared libraries with the
10593 # GNU dynamic linker. Since this was broken with cross compilers,
10594 # most powerpc-linux boxes support dynamic linking these days and
10595 # people can always --disable-shared, the test was removed, and we
10596 # assume the GNU/Linux dynamic linker is in use.
10597 dynamic_linker='GNU/Linux ld.so'
10598 ;;
10599
10600netbsd*)
10601 version_type=sunos
10602 need_lib_prefix=no
10603 need_version=no
10604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10607 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10608 else
6bb11ab3
L
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 dynamic_linker='NetBSD ld.elf_so'
10612 fi
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10615 hardcode_into_libs=yes
10616 ;;
10617
10618newsos6)
10619 version_type=linux
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=yes
10623 ;;
10624
10625*nto* | *qnx*)
10626 version_type=qnx
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=no
10633 hardcode_into_libs=yes
10634 dynamic_linker='ldqnx.so'
10635 ;;
10636
10637openbsd*)
10638 version_type=sunos
10639 sys_lib_dlsearch_path_spec="/usr/lib"
10640 need_lib_prefix=no
10641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10642 case $host_os in
10643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10644 *) need_version=no ;;
10645 esac
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10650 case $host_os in
10651 openbsd2.[89] | openbsd2.[89].*)
10652 shlibpath_overrides_runpath=no
10653 ;;
10654 *)
10655 shlibpath_overrides_runpath=yes
10656 ;;
10657 esac
10658 else
10659 shlibpath_overrides_runpath=yes
10660 fi
10661 ;;
10662
10663os2*)
10664 libname_spec='$name'
10665 shrext_cmds=".dll"
10666 need_lib_prefix=no
10667 library_names_spec='$libname${shared_ext} $libname.a'
10668 dynamic_linker='OS/2 ld.exe'
10669 shlibpath_var=LIBPATH
10670 ;;
10671
10672osf3* | osf4* | osf5*)
10673 version_type=osf
10674 need_lib_prefix=no
10675 need_version=no
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10681 ;;
10682
10683rdos*)
10684 dynamic_linker=no
10685 ;;
10686
10687solaris*)
10688 version_type=linux
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=yes
10695 hardcode_into_libs=yes
10696 # ldd complains unless libraries are executable
10697 postinstall_cmds='chmod +x $lib'
10698 ;;
10699
10700sunos4*)
10701 version_type=sunos
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10706 if test "$with_gnu_ld" = yes; then
10707 need_lib_prefix=no
10708 fi
10709 need_version=yes
10710 ;;
10711
10712sysv4 | sysv4.3*)
10713 version_type=linux
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 case $host_vendor in
10718 sni)
10719 shlibpath_overrides_runpath=no
10720 need_lib_prefix=no
10721 runpath_var=LD_RUN_PATH
10722 ;;
10723 siemens)
10724 need_lib_prefix=no
10725 ;;
10726 motorola)
10727 need_lib_prefix=no
10728 need_version=no
10729 shlibpath_overrides_runpath=no
10730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10731 ;;
10732 esac
10733 ;;
10734
10735sysv4*MP*)
10736 if test -d /usr/nec ;then
10737 version_type=linux
10738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10739 soname_spec='$libname${shared_ext}.$major'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 fi
10742 ;;
10743
10744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10745 version_type=freebsd-elf
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes
10752 hardcode_into_libs=yes
10753 if test "$with_gnu_ld" = yes; then
10754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10755 else
10756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10757 case $host_os in
10758 sco3.2v5*)
10759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10760 ;;
10761 esac
2232061b 10762 fi
6bb11ab3
L
10763 sys_lib_dlsearch_path_spec='/usr/lib'
10764 ;;
10765
10766tpf*)
10767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10768 version_type=linux
10769 need_lib_prefix=no
10770 need_version=no
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=no
10774 hardcode_into_libs=yes
10775 ;;
10776
10777uts4*)
10778 version_type=linux
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 ;;
10783
10784*)
10785 dynamic_linker=no
10786 ;;
10787esac
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10789$as_echo "$dynamic_linker" >&6; }
10790test "$dynamic_linker" = no && can_build_shared=no
10791
10792variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10793if test "$GCC" = yes; then
10794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10795fi
2232061b 10796
6bb11ab3
L
10797if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10799fi
10800if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10802fi
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
2232061b 10826
2232061b 10827
2232061b 10828
2232061b 10829
2232061b
MF
10830
10831
6ffe910a 10832
6ffe910a
MF
10833
10834
10835
10836
10837
2232061b 10838
6ffe910a
MF
10839
10840
10841
10842
6ffe910a 10843
6ffe910a 10844
6ffe910a
MF
10845
10846
6ffe910a 10847
6ffe910a 10848
6ffe910a
MF
10849
10850
5f3ef9d0 10851
5f3ef9d0
JB
10852
10853
10854
db2e4d67
MF
10855
10856
db2e4d67 10857
db2e4d67 10858
db2e4d67 10859
db2e4d67 10860
db2e4d67 10861
db2e4d67 10862
db2e4d67 10863
db2e4d67
MF
10864
10865
db2e4d67 10866
db2e4d67
MF
10867
10868
db2e4d67 10869
db2e4d67
MF
10870
10871
6ffe910a 10872
6ffe910a 10873
6ffe910a
MF
10874
10875
6ffe910a
MF
10876
10877
6ffe910a 10878
6ffe910a 10879
6ffe910a 10880
6ffe910a 10881
6ffe910a 10882
35695fd6 10883
35695fd6 10884
35695fd6 10885
b7026657 10886
b7026657 10887
c906108c 10888
b7026657 10889
b7026657 10890
c906108c 10891
b7026657 10892
6bb11ab3
L
10893
10894
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10896$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10897hardcode_action=
10898if test -n "$hardcode_libdir_flag_spec" ||
10899 test -n "$runpath_var" ||
10900 test "X$hardcode_automatic" = "Xyes" ; then
10901
10902 # We can hardcode non-existent directories.
10903 if test "$hardcode_direct" != no &&
10904 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10905 # have to relink, otherwise we might link with an installed library
10906 # when we should be linking with a yet-to-be-installed one
10907 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10908 test "$hardcode_minus_L" != no; then
10909 # Linking always hardcodes the temporary library directory.
10910 hardcode_action=relink
10911 else
10912 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10913 hardcode_action=immediate
10914 fi
10915else
10916 # We cannot hardcode anything, or else we can only hardcode existing
10917 # directories.
10918 hardcode_action=unsupported
10919fi
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10921$as_echo "$hardcode_action" >&6; }
10922
10923if test "$hardcode_action" = relink ||
10924 test "$inherit_rpath" = yes; then
10925 # Fast installation is not supported
10926 enable_fast_install=no
10927elif test "$shlibpath_overrides_runpath" = yes ||
10928 test "$enable_shared" = no; then
10929 # Fast installation is not necessary
10930 enable_fast_install=needless
c906108c 10931fi
b7026657 10932
c906108c 10933
6bb11ab3
L
10934
10935
10936
10937
10938 if test "x$enable_dlopen" != xyes; then
10939 enable_dlopen=unknown
10940 enable_dlopen_self=unknown
10941 enable_dlopen_self_static=unknown
10942else
10943 lt_cv_dlopen=no
10944 lt_cv_dlopen_libs=
10945
10946 case $host_os in
10947 beos*)
10948 lt_cv_dlopen="load_add_on"
10949 lt_cv_dlopen_libs=
10950 lt_cv_dlopen_self=yes
10951 ;;
10952
10953 mingw* | pw32* | cegcc*)
10954 lt_cv_dlopen="LoadLibrary"
10955 lt_cv_dlopen_libs=
10956 ;;
10957
10958 cygwin*)
10959 lt_cv_dlopen="dlopen"
10960 lt_cv_dlopen_libs=
10961 ;;
10962
10963 darwin*)
10964 # if libdl is installed we need to link against it
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10966$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10967if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10968 $as_echo_n "(cached) " >&6
10969else
10970 ac_check_lib_save_LIBS=$LIBS
10971LIBS="-ldl $LIBS"
10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h. */
10974
10975/* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978#ifdef __cplusplus
10979extern "C"
10980#endif
10981char dlopen ();
10982int
10983main ()
10984{
10985return dlopen ();
10986 ;
10987 return 0;
10988}
b7026657 10989_ACEOF
6bb11ab3
L
10990if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_dl_dlopen=yes
10992else
10993 ac_cv_lib_dl_dlopen=no
10994fi
10995rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997LIBS=$ac_check_lib_save_LIBS
10998fi
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11000$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11001if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11003else
11004
11005 lt_cv_dlopen="dyld"
11006 lt_cv_dlopen_libs=
11007 lt_cv_dlopen_self=yes
c906108c 11008
c906108c 11009fi
c906108c 11010
6bb11ab3 11011 ;;
c906108c 11012
6bb11ab3
L
11013 *)
11014 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11015if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
11016 lt_cv_dlopen="shl_load"
11017else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11019$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11020if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
11021 $as_echo_n "(cached) " >&6
11022else
11023 ac_check_lib_save_LIBS=$LIBS
11024LIBS="-ldld $LIBS"
11025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026/* end confdefs.h. */
11027
11028/* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031#ifdef __cplusplus
11032extern "C"
11033#endif
11034char shl_load ();
11035int
11036main ()
11037{
11038return shl_load ();
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dld_shl_load=yes
11045else
11046 ac_cv_lib_dld_shl_load=no
11047fi
11048rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050LIBS=$ac_check_lib_save_LIBS
11051fi
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11053$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11054if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
11055 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11056else
11057 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11058if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
11059 lt_cv_dlopen="dlopen"
11060else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11062$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11063if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11064 $as_echo_n "(cached) " >&6
c906108c 11065else
b7026657 11066 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11067LIBS="-ldl $LIBS"
81ecdfbb 11068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11069/* end confdefs.h. */
11070
81ecdfbb
RW
11071/* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
b7026657
AC
11074#ifdef __cplusplus
11075extern "C"
11076#endif
6bb11ab3 11077char dlopen ();
b7026657
AC
11078int
11079main ()
11080{
6bb11ab3 11081return dlopen ();
b7026657
AC
11082 ;
11083 return 0;
11084}
11085_ACEOF
81ecdfbb 11086if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11087 ac_cv_lib_dl_dlopen=yes
b7026657 11088else
6bb11ab3 11089 ac_cv_lib_dl_dlopen=no
b7026657 11090fi
81ecdfbb
RW
11091rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
11093LIBS=$ac_check_lib_save_LIBS
11094fi
6bb11ab3
L
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11097if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11099else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11101$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11102if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11103 $as_echo_n "(cached) " >&6
c906108c 11104else
b7026657 11105 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11106LIBS="-lsvld $LIBS"
81ecdfbb 11107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11108/* end confdefs.h. */
11109
81ecdfbb
RW
11110/* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
b7026657
AC
11113#ifdef __cplusplus
11114extern "C"
11115#endif
6bb11ab3 11116char dlopen ();
b7026657
AC
11117int
11118main ()
11119{
6bb11ab3 11120return dlopen ();
b7026657
AC
11121 ;
11122 return 0;
11123}
11124_ACEOF
81ecdfbb 11125if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11126 ac_cv_lib_svld_dlopen=yes
b7026657 11127else
6bb11ab3 11128 ac_cv_lib_svld_dlopen=no
b7026657 11129fi
81ecdfbb
RW
11130rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
11132LIBS=$ac_check_lib_save_LIBS
11133fi
6bb11ab3
L
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11135$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11136if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 11137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 11138else
6bb11ab3
L
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11140$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11141if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb
RW
11142 $as_echo_n "(cached) " >&6
11143else
6bb11ab3
L
11144 ac_check_lib_save_LIBS=$LIBS
11145LIBS="-ldld $LIBS"
81ecdfbb 11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624 11147/* end confdefs.h. */
81ecdfbb
RW
11148
11149/* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152#ifdef __cplusplus
11153extern "C"
11154#endif
6bb11ab3 11155char dld_link ();
81ecdfbb
RW
11156int
11157main ()
11158{
6bb11ab3 11159return dld_link ();
81ecdfbb
RW
11160 ;
11161 return 0;
11162}
b5bd9624 11163_ACEOF
6bb11ab3
L
11164if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_dld_dld_link=yes
11166else
11167 ac_cv_lib_dld_dld_link=no
11168fi
11169rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171LIBS=$ac_check_lib_save_LIBS
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11174$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11175if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
11176 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11177fi
11178
11179
11180fi
11181
11182
11183fi
11184
11185
11186fi
11187
11188
11189fi
11190
11191
11192fi
11193
11194 ;;
11195 esac
11196
11197 if test "x$lt_cv_dlopen" != xno; then
11198 enable_dlopen=yes
b5bd9624 11199 else
6bb11ab3
L
11200 enable_dlopen=no
11201 fi
11202
11203 case $lt_cv_dlopen in
11204 dlopen)
11205 save_CPPFLAGS="$CPPFLAGS"
11206 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11207
11208 save_LDFLAGS="$LDFLAGS"
11209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11210
11211 save_LIBS="$LIBS"
11212 LIBS="$lt_cv_dlopen_libs $LIBS"
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11215$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11216if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
11217 $as_echo_n "(cached) " >&6
11218else
11219 if test "$cross_compiling" = yes; then :
11220 lt_cv_dlopen_self=cross
11221else
11222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11223 lt_status=$lt_dlunknown
11224 cat > conftest.$ac_ext <<_LT_EOF
efd82ac7 11225#line 11225 "configure"
6bb11ab3
L
11226#include "confdefs.h"
11227
11228#if HAVE_DLFCN_H
11229#include <dlfcn.h>
11230#endif
11231
11232#include <stdio.h>
11233
11234#ifdef RTLD_GLOBAL
11235# define LT_DLGLOBAL RTLD_GLOBAL
11236#else
11237# ifdef DL_GLOBAL
11238# define LT_DLGLOBAL DL_GLOBAL
11239# else
11240# define LT_DLGLOBAL 0
11241# endif
11242#endif
11243
11244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11245 find out it does not work in some platform. */
11246#ifndef LT_DLLAZY_OR_NOW
11247# ifdef RTLD_LAZY
11248# define LT_DLLAZY_OR_NOW RTLD_LAZY
11249# else
11250# ifdef DL_LAZY
11251# define LT_DLLAZY_OR_NOW DL_LAZY
11252# else
11253# ifdef RTLD_NOW
11254# define LT_DLLAZY_OR_NOW RTLD_NOW
11255# else
11256# ifdef DL_NOW
11257# define LT_DLLAZY_OR_NOW DL_NOW
11258# else
11259# define LT_DLLAZY_OR_NOW 0
11260# endif
11261# endif
11262# endif
11263# endif
11264#endif
11265
11266/* When -fvisbility=hidden is used, assume the code has been annotated
11267 correspondingly for the symbols needed. */
11268#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11269void fnord () __attribute__((visibility("default")));
11270#endif
11271
11272void fnord () { int i=42; }
11273int main ()
11274{
11275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276 int status = $lt_dlunknown;
11277
11278 if (self)
11279 {
11280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11281 else
11282 {
11283 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11284 else puts (dlerror ());
11285 }
11286 /* dlclose (self); */
11287 }
11288 else
11289 puts (dlerror ());
11290
11291 return status;
11292}
11293_LT_EOF
11294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11295 (eval $ac_link) 2>&5
11296 ac_status=$?
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11299 (./conftest; exit; ) >&5 2>/dev/null
11300 lt_status=$?
11301 case x$lt_status in
11302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11304 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11305 esac
11306 else :
11307 # compilation failed
11308 lt_cv_dlopen_self=no
b5bd9624 11309 fi
b5bd9624 11310fi
6bb11ab3
L
11311rm -fr conftest*
11312
11313
b5bd9624 11314fi
6bb11ab3
L
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11316$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 11317
6bb11ab3
L
11318 if test "x$lt_cv_dlopen_self" = xyes; then
11319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11321$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11322if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 11323 $as_echo_n "(cached) " >&6
b5bd9624 11324else
6bb11ab3
L
11325 if test "$cross_compiling" = yes; then :
11326 lt_cv_dlopen_self_static=cross
11327else
11328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11329 lt_status=$lt_dlunknown
11330 cat > conftest.$ac_ext <<_LT_EOF
efd82ac7 11331#line 11331 "configure"
6bb11ab3
L
11332#include "confdefs.h"
11333
11334#if HAVE_DLFCN_H
11335#include <dlfcn.h>
11336#endif
11337
11338#include <stdio.h>
11339
11340#ifdef RTLD_GLOBAL
11341# define LT_DLGLOBAL RTLD_GLOBAL
11342#else
11343# ifdef DL_GLOBAL
11344# define LT_DLGLOBAL DL_GLOBAL
11345# else
11346# define LT_DLGLOBAL 0
11347# endif
11348#endif
11349
11350/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11351 find out it does not work in some platform. */
11352#ifndef LT_DLLAZY_OR_NOW
11353# ifdef RTLD_LAZY
11354# define LT_DLLAZY_OR_NOW RTLD_LAZY
11355# else
11356# ifdef DL_LAZY
11357# define LT_DLLAZY_OR_NOW DL_LAZY
11358# else
11359# ifdef RTLD_NOW
11360# define LT_DLLAZY_OR_NOW RTLD_NOW
11361# else
11362# ifdef DL_NOW
11363# define LT_DLLAZY_OR_NOW DL_NOW
11364# else
11365# define LT_DLLAZY_OR_NOW 0
11366# endif
11367# endif
11368# endif
11369# endif
11370#endif
11371
11372/* When -fvisbility=hidden is used, assume the code has been annotated
11373 correspondingly for the symbols needed. */
11374#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11375void fnord () __attribute__((visibility("default")));
11376#endif
11377
11378void fnord () { int i=42; }
11379int main ()
11380{
11381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11382 int status = $lt_dlunknown;
11383
11384 if (self)
11385 {
11386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11387 else
11388 {
11389 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11390 else puts (dlerror ());
11391 }
11392 /* dlclose (self); */
11393 }
11394 else
11395 puts (dlerror ());
11396
11397 return status;
11398}
11399_LT_EOF
11400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11401 (eval $ac_link) 2>&5
11402 ac_status=$?
11403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11404 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11405 (./conftest; exit; ) >&5 2>/dev/null
11406 lt_status=$?
11407 case x$lt_status in
11408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11410 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11411 esac
11412 else :
11413 # compilation failed
11414 lt_cv_dlopen_self_static=no
11415 fi
b5bd9624 11416fi
6bb11ab3
L
11417rm -fr conftest*
11418
11419
b5bd9624 11420fi
6bb11ab3
L
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11422$as_echo "$lt_cv_dlopen_self_static" >&6; }
11423 fi
11424
11425 CPPFLAGS="$save_CPPFLAGS"
11426 LDFLAGS="$save_LDFLAGS"
11427 LIBS="$save_LIBS"
11428 ;;
11429 esac
11430
11431 case $lt_cv_dlopen_self in
11432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11433 *) enable_dlopen_self=unknown ;;
11434 esac
11435
11436 case $lt_cv_dlopen_self_static in
11437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11438 *) enable_dlopen_self_static=unknown ;;
11439 esac
11440fi
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458striplib=
11459old_striplib=
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11461$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11462if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11463 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11464 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11466$as_echo "yes" >&6; }
11467else
11468# FIXME - insert some real tests, host_os isn't really good enough
11469 case $host_os in
11470 darwin*)
11471 if test -n "$STRIP" ; then
11472 striplib="$STRIP -x"
11473 old_striplib="$STRIP -S"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11475$as_echo "yes" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478$as_echo "no" >&6; }
11479 fi
11480 ;;
11481 *)
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
11484 ;;
11485 esac
11486fi
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499 # Report which library types will actually be built
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11501$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11503$as_echo "$can_build_shared" >&6; }
11504
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11506$as_echo_n "checking whether to build shared libraries... " >&6; }
11507 test "$can_build_shared" = "no" && enable_shared=no
11508
11509 # On AIX, shared libraries and static libraries use the same namespace, and
11510 # are all built from PIC.
11511 case $host_os in
11512 aix3*)
11513 test "$enable_shared" = yes && enable_static=no
11514 if test -n "$RANLIB"; then
11515 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11516 postinstall_cmds='$RANLIB $lib'
11517 fi
11518 ;;
11519
11520 aix[4-9]*)
11521 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11522 test "$enable_shared" = yes && enable_static=no
11523 fi
11524 ;;
11525 esac
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11527$as_echo "$enable_shared" >&6; }
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11530$as_echo_n "checking whether to build static libraries... " >&6; }
11531 # Make sure either enable_shared or enable_static is yes.
11532 test "$enable_shared" = yes || enable_static=yes
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11534$as_echo "$enable_static" >&6; }
11535
11536
11537
11538
11539fi
11540ac_ext=c
11541ac_cpp='$CPP $CPPFLAGS'
11542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11544ac_compiler_gnu=$ac_cv_c_compiler_gnu
11545
11546CC="$lt_save_CC"
11547
11548
11549
11550
11551
11552
11553
11554
11555
b5bd9624 11556
b5bd9624 11557
b5bd9624 11558
b5bd9624 11559
6bb11ab3
L
11560 ac_config_commands="$ac_config_commands libtool"
11561
11562
11563
11564
11565# Only expand once:
11566
11567
5912fadd 11568
b5bd9624 11569
c906108c
SS
11570
11571
31e6ad7d
MF
11572
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11574$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11575 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11576if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11578else
11579 USE_MAINTAINER_MODE=no
c906108c 11580fi
31e6ad7d
MF
11581
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11583$as_echo "$USE_MAINTAINER_MODE" >&6; }
11584 if test $USE_MAINTAINER_MODE = yes; then
11585 MAINTAINER_MODE_TRUE=
11586 MAINTAINER_MODE_FALSE='#'
c906108c 11587else
31e6ad7d
MF
11588 MAINTAINER_MODE_TRUE='#'
11589 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
11590fi
11591
31e6ad7d
MF
11592 MAINT=$MAINTAINER_MODE_TRUE
11593
11594
c906108c
SS
11595
11596
ce39bd38
MF
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11598$as_echo_n "checking for sim debug setting... " >&6; }
11599sim_debug="0"
81ecdfbb
RW
11600# Check whether --enable-sim-debug was given.
11601if test "${enable_sim_debug+set}" = set; then :
11602 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
11603 yes) sim_debug="7";;
11604 no) sim_debug="0";;
11605 *) sim_debug="($enableval)";;
c906108c 11606esac
c906108c 11607fi
ce39bd38
MF
11608if test "$sim_debug" != "0"; then
11609
11610cat >>confdefs.h <<_ACEOF
11611#define DEBUG $sim_debug
11612_ACEOF
11613
81ecdfbb
RW
11614fi
11615
ce39bd38
MF
11616cat >>confdefs.h <<_ACEOF
11617#define WITH_DEBUG $sim_debug
11618_ACEOF
11619
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11621$as_echo "$sim_debug" >&6; }
c906108c
SS
11622
11623
ce39bd38
MF
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11625$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11626sim_stdio="0"
81ecdfbb
RW
11627# Check whether --enable-sim-stdio was given.
11628if test "${enable_sim_stdio+set}" = set; then :
11629 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
11630 yes) sim_stdio="DO_USE_STDIO";;
11631 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 11632 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
c906108c 11633esac
81ecdfbb
RW
11634fi
11635
ce39bd38
MF
11636cat >>confdefs.h <<_ACEOF
11637#define WITH_STDIO $sim_stdio
11638_ACEOF
11639
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11641$as_echo "$sim_stdio" >&6; }
c906108c
SS
11642
11643
ce39bd38
MF
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11645$as_echo_n "checking for sim trace settings... " >&6; }
11646sim_trace="~TRACE_debug"
81ecdfbb
RW
11647# Check whether --enable-sim-trace was given.
11648if test "${enable_sim_trace+set}" = set; then :
11649 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
11650 yes) sim_trace="-1";;
11651 no) sim_trace="0";;
c906108c 11652 [-0-9]*)
ce39bd38 11653 sim_trace="'(${enableval})'";;
2232061b 11654 [[:lower:]]*)
c906108c
SS
11655 sim_trace=""
11656 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11657 if test x"$sim_trace" = x; then
ce39bd38 11658 sim_trace="(TRACE_$x"
c906108c
SS
11659 else
11660 sim_trace="${sim_trace}|TRACE_$x"
11661 fi
11662 done
ce39bd38 11663 sim_trace="$sim_trace)" ;;
c906108c 11664esac
81ecdfbb
RW
11665fi
11666
ce39bd38
MF
11667cat >>confdefs.h <<_ACEOF
11668#define WITH_TRACE $sim_trace
11669_ACEOF
11670
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11672$as_echo "$sim_trace" >&6; }
c906108c
SS
11673
11674
ce39bd38
MF
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11676$as_echo_n "checking for sim profile settings... " >&6; }
11677profile="1"
11678sim_profile="-1"
81ecdfbb
RW
11679# Check whether --enable-sim-profile was given.
11680if test "${enable_sim_profile+set}" = set; then :
11681 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
11682 yes) profile="1" sim_profile="-1";;
11683 no) profile="0" sim_profile="0";;
c906108c 11684 [-0-9]*)
ce39bd38 11685 profile="(${enableval})" sim_profile="(${enableval})";;
c906108c 11686 [a-z]*)
ce39bd38 11687 profile="1"
c906108c
SS
11688 sim_profile=""
11689 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11690 if test x"$sim_profile" = x; then
ce39bd38 11691 sim_profile="(PROFILE_$x"
c906108c
SS
11692 else
11693 sim_profile="${sim_profile}|PROFILE_$x"
11694 fi
11695 done
ce39bd38 11696 sim_profile="$sim_profile)" ;;
c906108c 11697esac
81ecdfbb
RW
11698fi
11699
ce39bd38
MF
11700cat >>confdefs.h <<_ACEOF
11701#define PROFILE $profile
11702_ACEOF
c906108c
SS
11703
11704
ce39bd38
MF
11705cat >>confdefs.h <<_ACEOF
11706#define WITH_PROFILE $sim_profile
11707_ACEOF
11708
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11710$as_echo "$sim_profile" >&6; }
11711
11712
11713
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
11715$as_echo_n "checking whether to enable sim asserts... " >&6; }
11716sim_assert="1"
35656e95
MF
11717# Check whether --enable-sim-assert was given.
11718if test "${enable_sim_assert+set}" = set; then :
11719 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
11720 yes) sim_assert="1";;
11721 no) sim_assert="0";;
d0ac1c44 11722 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 11723esac
35656e95
MF
11724fi
11725
ce39bd38
MF
11726cat >>confdefs.h <<_ACEOF
11727#define WITH_ASSERT $sim_assert
11728_ACEOF
11729
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
11731$as_echo "$sim_assert" >&6; }
11732
35656e95 11733
ce39bd38
MF
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11735$as_echo_n "checking default sim environment setting... " >&6; }
11736sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
11737# Check whether --enable-sim-environment was given.
11738if test "${enable_sim_environment+set}" = set; then :
11739 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
11740 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11741 user | USER) sim_environment="USER_ENVIRONMENT";;
11742 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11743 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 11744 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 11745esac
16f7876d
MF
11746fi
11747
ce39bd38
MF
11748cat >>confdefs.h <<_ACEOF
11749#define WITH_ENVIRONMENT $sim_environment
11750_ACEOF
11751
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11753$as_echo "$sim_environment" >&6; }
11754
16f7876d 11755
347fe5bb
MF
11756sim_inline="-DDEFAULT_INLINE=0"
11757# Check whether --enable-sim-inline was given.
11758if test "${enable_sim_inline+set}" = set; then :
11759 enableval=$enable_sim_inline; sim_inline=""
11760case "$enableval" in
11761 no) sim_inline="-DDEFAULT_INLINE=0";;
11762 0) sim_inline="-DDEFAULT_INLINE=0";;
11763 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11764 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11765 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11766 new_flag=""
11767 case "$x" in
11768 *_INLINE=*) new_flag="-D$x";;
11769 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11770 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11771 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11772 esac
11773 if test x"$sim_inline" = x""; then
11774 sim_inline="$new_flag"
11775 else
11776 sim_inline="$sim_inline $new_flag"
11777 fi
11778 done;;
11779esac
11780if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11781 echo "Setting inline flags = $sim_inline" 6>&1
11782fi
11783fi
11784
11785
11786
6efef468 11787
81ecdfbb
RW
11788# Check whether --with-pkgversion was given.
11789if test "${with_pkgversion+set}" = set; then :
11790 withval=$with_pkgversion; case "$withval" in
d0ac1c44 11791 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
11792 no) PKGVERSION= ;;
11793 *) PKGVERSION="($withval) " ;;
11794 esac
11795else
bf12d44e 11796 PKGVERSION="(SIM) "
6efef468 11797
81ecdfbb
RW
11798fi
11799
6efef468
JM
11800
11801
11802
11803
81ecdfbb
RW
11804# Check whether --with-bugurl was given.
11805if test "${with_bugurl+set}" = set; then :
11806 withval=$with_bugurl; case "$withval" in
d0ac1c44 11807 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
11808 no) BUGURL=
11809 ;;
11810 *) BUGURL="$withval"
11811 ;;
11812 esac
11813else
dfb856ba 11814 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 11815
81ecdfbb
RW
11816fi
11817
6efef468
JM
11818 case ${BUGURL} in
11819 "")
11820 REPORT_BUGS_TO=
11821 REPORT_BUGS_TEXI=
11822 ;;
11823 *)
11824 REPORT_BUGS_TO="<$BUGURL>"
11825 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11826 ;;
11827 esac;
11828
11829
11830
11831
11832cat >>confdefs.h <<_ACEOF
11833#define PKGVERSION "$PKGVERSION"
11834_ACEOF
11835
11836
11837cat >>confdefs.h <<_ACEOF
11838#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11839_ACEOF
11840
11841
81ecdfbb
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11843$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 11844if ${ac_cv_type_signal+:} false; then :
81ecdfbb 11845 $as_echo_n "(cached) " >&6
c906108c 11846else
81ecdfbb 11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11848/* end confdefs.h. */
c906108c
SS
11849#include <sys/types.h>
11850#include <signal.h>
c906108c 11851
b7026657
AC
11852int
11853main ()
11854{
81ecdfbb 11855return *(signal (0, 0)) (0) == 1;
b7026657
AC
11856 ;
11857 return 0;
11858}
11859_ACEOF
81ecdfbb
RW
11860if ac_fn_c_try_compile "$LINENO"; then :
11861 ac_cv_type_signal=int
c906108c 11862else
81ecdfbb 11863 ac_cv_type_signal=void
c906108c 11864fi
81ecdfbb 11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11866fi
81ecdfbb
RW
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11868$as_echo "$ac_cv_type_signal" >&6; }
c906108c 11869
b7026657 11870cat >>confdefs.h <<_ACEOF
c906108c 11871#define RETSIGTYPE $ac_cv_type_signal
b7026657 11872_ACEOF
c906108c
SS
11873
11874
cd0fc7c3
SS
11875
11876
c906108c 11877
c906108c 11878
c906108c
SS
11879wire_alignment="NONSTRICT_ALIGNMENT"
11880default_alignment=""
11881
81ecdfbb
RW
11882# Check whether --enable-sim-alignment was given.
11883if test "${enable_sim_alignment+set}" = set; then :
11884 enableval=$enable_sim_alignment; case "${enableval}" in
c906108c
SS
11885 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11886 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11887 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11888 yes) if test x"$wire_alignment" != x; then
11889 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11890 else
11891 if test x"$default_alignment" != x; then
11892 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11893 else
11894 echo "No hard-wired alignment for target $target" 1>&6
11895 sim_alignment="-DWITH_ALIGNMENT=0"
11896 fi
11897 fi;;
11898 no) if test x"$default_alignment" != x; then
11899 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11900 else
11901 if test x"$wire_alignment" != x; then
11902 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11903 else
11904 echo "No default alignment for target $target" 1>&6
11905 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11906 fi
11907 fi;;
d0ac1c44 11908 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
c906108c
SS
11909esac
11910if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11911 echo "Setting alignment flags = $sim_alignment" 6>&1
11912fi
11913else
11914 if test x"$default_alignment" != x; then
11915 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11916else
11917 if test x"$wire_alignment" != x; then
11918 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11919 else
11920 sim_alignment=
11921 fi
11922fi
81ecdfbb
RW
11923fi
11924
c906108c 11925
2232061b
MF
11926# Check whether --enable-werror was given.
11927if test "${enable_werror+set}" = set; then :
11928 enableval=$enable_werror; case "${enableval}" in
11929 yes | y) ERROR_ON_WARNING="yes" ;;
11930 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11931 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
11932 esac
11933fi
11934
11935
11936# Enable -Werror by default when using gcc
11937if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11938 ERROR_ON_WARNING=yes
51216631 11939fi
2232061b
MF
11940
11941WERROR_CFLAGS=""
2232061b 11942
2232061b 11943build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 11944-Wpointer-sign \
2232061b 11945-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
11946-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11947-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11948-Wold-style-declaration -Wold-style-definition"
2232061b
MF
11949
11950# Enable -Wno-format by default when using gcc on mingw since many
11951# GCC versions complain about %I64.
11952case "${host}" in
11953 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 11954 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
11955esac
11956
81ecdfbb
RW
11957# Check whether --enable-build-warnings was given.
11958if test "${enable_build_warnings+set}" = set; then :
11959 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
11960 yes) ;;
11961 no) build_warnings="-w";;
11962 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11963 build_warnings="${build_warnings} ${t}";;
11964 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11965 build_warnings="${t} ${build_warnings}";;
11966 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11967esac
11968if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11969 echo "Setting compiler warning flags = $build_warnings" 6>&1
11970fi
81ecdfbb
RW
11971fi
11972# Check whether --enable-sim-build-warnings was given.
11973if test "${enable_sim_build_warnings+set}" = set; then :
11974 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
11975 yes) ;;
11976 no) build_warnings="-w";;
11977 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 11978 build_warnings="${build_warnings} ${t}";;
c906108c 11979 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
11980 build_warnings="${t} ${build_warnings}";;
11981 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
11982esac
11983if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
11984 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11985fi
81ecdfbb
RW
11986fi
11987WARN_CFLAGS=""
d4f3574e
SS
11988if test "x${build_warnings}" != x -a "x$GCC" = xyes
11989then
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11991$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
11992 # Separate out the -Werror flag as some files just cannot be
11993 # compiled with it enabled.
11994 for w in ${build_warnings}; do
11995 case $w in
11996 -Werr*) WERROR_CFLAGS=-Werror ;;
11997 *) # Check that GCC accepts it
11998 saved_CFLAGS="$CFLAGS"
1f195bc3 11999 CFLAGS="$CFLAGS -Werror $w"
81ecdfbb 12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12001/* end confdefs.h. */
c8cca39f 12002
b7026657
AC
12003int
12004main ()
12005{
c8cca39f 12006
b7026657
AC
12007 ;
12008 return 0;
12009}
12010_ACEOF
81ecdfbb 12011if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 12012 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 12013fi
81ecdfbb 12014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
12015 CFLAGS="$saved_CFLAGS"
12016 esac
12017 done
2232061b
MF
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12019$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
12020fi
12021
12022
e6c674b8 12023default_sim_reserved_bits="1"
81ecdfbb
RW
12024# Check whether --enable-sim-reserved-bits was given.
12025if test "${enable_sim_reserved_bits+set}" = set; then :
12026 enableval=$enable_sim_reserved_bits; case "${enableval}" in
e6c674b8
CD
12027 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
12028 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 12029 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
e6c674b8
CD
12030esac
12031if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
12032 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
12033fi
12034else
12035 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
12036fi
12037
e6c674b8 12038
c906108c
SS
12039# DEPRECATED
12040#
12041# Instead of defining a `subtarget' macro, code should be checking
12042# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
12043# in question.
12044#
12045case "${target}" in
4c54fc26 12046 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 12047 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
109ad085 12048 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
cc220243 12049 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1e799e28
CD
12050 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
12051 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
12052 *) SIM_SUBTARGET="";;
12053esac
12054
12055
12056
12057
12058#
12059# Select the byte order of the target
12060#
12061mips_endian=
12062default_endian=
12063case "${target}" in
1ac72f06
MF
12064 mips64el*-*-*) mips_endian=LITTLE ;;
12065 mips64vr*el-*-*) default_endian=LITTLE ;;
12066 mips64*-*-*) default_endian=BIG ;;
12067 mips16*-*-*) default_endian=BIG ;;
12068 mipsisa32*-*-*) default_endian=BIG ;;
12069 mipsisa64*-*-*) default_endian=BIG ;;
12070 mips*-*-*) default_endian=BIG ;;
12071 *) default_endian=BIG ;;
c906108c
SS
12072esac
12073
12074wire_endian="$mips_endian"
12075default_endian="$default_endian"
81ecdfbb
RW
12076# Check whether --enable-sim-endian was given.
12077if test "${enable_sim_endian+set}" = set; then :
12078 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
12079 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
12080 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
c906108c 12081 yes) if test x"$wire_endian" != x; then
1ac72f06 12082 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c 12083 else
1ac72f06
MF
12084 if test x"$default_endian" != x; then
12085 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
12086 else
12087 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 12088 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
12089 fi
12090 fi;;
12091 no) if test x"$default_endian" != x; then
1ac72f06 12092 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
12093 else
12094 if test x"$wire_endian" != x; then
1ac72f06 12095 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
12096 else
12097 echo "No default endian for target $target" 1>&6
1ac72f06 12098 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
12099 fi
12100 fi;;
d0ac1c44 12101 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
12102esac
12103if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
12104 echo "Setting endian flags = $sim_endian" 6>&1
12105fi
12106else
12107 if test x"$default_endian" != x; then
1ac72f06 12108 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
12109else
12110 if test x"$wire_endian" != x; then
1ac72f06 12111 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
12112 else
12113 sim_endian=
12114 fi
12115fi
81ecdfbb
RW
12116fi
12117
c906108c
SS
12118
12119
12120
12121#
12122# Select the bitsize of the target
12123#
12124mips_addr_bitsize=
12125case "${target}" in
109ad085 12126 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
cc220243 12127 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
12128 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
12129 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
12130 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
12131 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
12132 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
12133 *) mips_bitsize=64 ; mips_msb=63 ;;
12134esac
12135wire_word_bitsize="$mips_bitsize"
12136wire_word_msb="$mips_msb"
12137wire_address_bitsize="$mips_addr_bitsize"
12138wire_cell_bitsize=""
81ecdfbb
RW
12139# Check whether --enable-sim-bitsize was given.
12140if test "${enable_sim_bitsize+set}" = set; then :
12141 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
12142case "${enableval}" in
12143 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
12144 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
12145 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
12146 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
12147 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
12148 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
12149 else
12150 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
12151 fi ;;
12152 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
12153 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
12154 else
12155 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
12156 fi ;;
d0ac1c44 12157 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
12158esac
12159# address bitsize
12160tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
12161case x"${tmp}" in
12162 x ) ;;
12163 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
12164 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 12165 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
12166esac
12167# cell bitsize
12168tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
12169case x"${tmp}" in
12170 x ) ;;
12171 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
12172 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 12173 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
12174esac
12175if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
12176 echo "Setting bitsize flags = $sim_bitsize" 6>&1
12177fi
12178else
12179 sim_bitsize=""
12180if test x"$wire_word_bitsize" != x; then
12181 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
12182fi
12183if test x"$wire_word_msb" != x; then
12184 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
12185fi
12186if test x"$wire_address_bitsize" != x; then
12187 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
12188fi
12189if test x"$wire_cell_bitsize" != x; then
12190 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
12191fi
81ecdfbb
RW
12192fi
12193
c906108c
SS
12194
12195
12196
12197#
12198# Select the floating hardware support of the target
12199#
12200mips_fpu=HARDWARE_FLOATING_POINT
12201mips_fpu_bitsize=
12202case "${target}" in
4b5d35ee 12203 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 12204 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
cc220243 12205 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
12206 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
12207 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
12208 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
12209 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
12210 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
12211 *) mips_fpu=HARD_FLOATING_POINT ;;
12212esac
12213
12214default_sim_float="$mips_fpu"
12215default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
12216# Check whether --enable-sim-float was given.
12217if test "${enable_sim_float+set}" = set; then :
12218 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
12219 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
12220 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
12221 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
12222 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
d0ac1c44 12223 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
12224esac
12225if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
12226 echo "Setting float flags = $sim_float" 6>&1
12227fi
12228else
b7026657 12229
c906108c
SS
12230sim_float=
12231if test x"${default_sim_float}" != x""; then
12232 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
12233fi
12234if test x"${default_sim_float_bitsize}" != x""; then
12235 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
12236fi
12237
81ecdfbb
RW
12238fi
12239
c906108c
SS
12240
12241
12242
c906108c
SS
12243#
12244# Select the IGEN architecture
12245#
12246sim_gen=IGEN
12247sim_igen_machine="-M mipsIV"
139181c8 12248sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
12249sim_igen_filter="32,64,f"
12250sim_m16_filter="16"
4c54fc26
CD
12251sim_mach_default="mips8000"
12252
c906108c
SS
12253case "${target}" in
12254 mips*tx39*) sim_gen=IGEN
12255 sim_igen_filter="32,f"
12256 sim_igen_machine="-M r3900"
12257 ;;
12258 mips64vr43*-*-*) sim_gen=IGEN
12259 sim_igen_machine="-M mipsIV"
4c54fc26 12260 sim_mach_default="mips8000"
c906108c
SS
12261 ;;
12262 mips64vr5*-*-*) sim_gen=IGEN
12263 sim_igen_machine="-M vr5000"
4c54fc26 12264 sim_mach_default="mips5000"
c906108c
SS
12265 ;;
12266 mips64vr41*) sim_gen=M16
12267 sim_igen_machine="-M vr4100"
12268 sim_m16_machine="-M vr4100"
12269 sim_igen_filter="32,64,f"
12270 sim_m16_filter="16"
4c54fc26 12271 sim_mach_default="mips4100"
c906108c 12272 ;;
4c54fc26
CD
12273 mips64vr-*-* | mips64vrel-*-*)
12274 sim_gen=MULTI
12275 sim_multi_configs="\
12276 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
12277 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
12278 vr5000:mipsIV:32,64,f:mips4300,mips5000\
12279 vr5400:mipsIV,vr5400:32,64,f:mips5400\
12280 vr5500:mipsIV,vr5500:32,64,f:mips5500"
12281 sim_multi_default=mips5000
12282 ;;
cc220243 12283 mips*-sde-elf* | mips*-mti-elf*)
8e394ffc
AB
12284 sim_gen=MULTI
12285 sim_multi_configs="\
12286 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
12287 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
12288 sim_multi_default=mipsisa64r2
109ad085 12289 ;;
c906108c
SS
12290 mips64*-*-*) sim_igen_filter="32,64,f"
12291 sim_gen=IGEN
12292 ;;
12293 mips16*-*-*) sim_gen=M16
12294 sim_igen_filter="32,64,f"
12295 sim_m16_filter="16"
12296 ;;
8e394ffc
AB
12297 mipsisa32r2*-*-*) sim_gen=MULTI
12298 sim_multi_configs="\
12299 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
12300 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
12301 sim_multi_default=mipsisa32r2
e70cb6cd 12302 ;;
d5fb0879
RS
12303 mipsisa32*-*-*) sim_gen=M16
12304 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
12305 sim_m16_machine="-M mips16,mips16e,mips32"
12306 sim_igen_filter="32,f"
12307 sim_mach_default="mipsisa32"
1e799e28 12308 ;;
d5fb0879
RS
12309 mipsisa64r2*-*-*) sim_gen=M16
12310 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
12311 sim_m16_machine="-M mips16,mips16e,mips64r2"
12312 sim_igen_filter="32,64,f"
12313 sim_mach_default="mipsisa64r2"
e70cb6cd 12314 ;;
7cbea089 12315 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 12316 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 12317 sim_igen_filter="32,64,f"
4c54fc26 12318 sim_mach_default="mips_sb1"
7cbea089 12319 ;;
d5fb0879
RS
12320 mipsisa64*-*-*) sim_gen=M16
12321 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
12322 sim_m16_machine="-M mips16,mips16e,mips64"
12323 sim_igen_filter="32,64,f"
12324 sim_mach_default="mipsisa64"
1e799e28 12325 ;;
109ad085 12326 mips*lsi*) sim_gen=M16
c906108c
SS
12327 sim_igen_machine="-M mipsIII,mips16"
12328 sim_m16_machine="-M mips16,mipsIII"
12329 sim_igen_filter="32,f"
12330 sim_m16_filter="16"
4c54fc26 12331 sim_mach_default="mips4000"
109ad085 12332 ;;
c906108c
SS
12333 mips*-*-*) sim_gen=IGEN
12334 sim_igen_filter="32,f"
12335 ;;
12336esac
4c54fc26
CD
12337
12338# The MULTI generator can combine several simulation engines into one.
12339# executable. A configuration which uses the MULTI should set two
12340# variables: ${sim_multi_configs} and ${sim_multi_default}.
12341#
12342# ${sim_multi_configs} is the list of engines to build. Each
12343# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
12344# where:
12345#
12346# - NAME is a C-compatible prefix for the engine,
12347# - MACHINE is a -M argument,
12348# - FILTER is a -F argument, and
12349# - BFDMACHS is a comma-separated list of bfd machines that the
12350# simulator can run.
12351#
12352# Each entry will have a separate simulation engine whose prefix is
12353# m32<NAME>. If the machine list includes "mips16", there will also
12354# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
12355# generated using the same machine list as the 32-bit version,
12356# but the filter will be "16" instead of FILTER.
12357#
12358# The simulator compares the bfd mach against BFDMACHS to decide
12359# which engine to use. Entries in BFDMACHS should be bfd_mach
12360# values with "bfd_mach_" removed. ${sim_multi_default} says
12361# which entry should be the default.
12362if test ${sim_gen} = MULTI; then
12363
12364 # Simple sanity check.
12365 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
d0ac1c44 12366 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
12367 fi
12368
12369 # Start in a known state.
12370 rm -f multi-include.h multi-run.c
12371 sim_multi_flags=
12372 sim_multi_src=
8e394ffc 12373 sim_multi_obj=
4c54fc26
CD
12374 sim_multi_igen_configs=
12375 sim_seen_default=no
12376
12377 cat << __EOF__ > multi-run.c
12378/* Main entry point for MULTI simulators.
46f900c0 12379 Copyright (C) 2003-2021 Free Software Foundation, Inc.
4c54fc26
CD
12380
12381 This program is free software; you can redistribute it and/or modify
12382 it under the terms of the GNU General Public License as published by
35ee6e1e 12383 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
12384 (at your option) any later version.
12385
12386 This program is distributed in the hope that it will be useful,
12387 but WITHOUT ANY WARRANTY; without even the implied warranty of
12388 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12389 GNU General Public License for more details.
12390
12391 You should have received a copy of the GNU General Public License
35ee6e1e 12392 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
12393
12394 --
12395
12396 This file was generated by sim/mips/configure. */
12397
12398#include "sim-main.h"
12399#include "multi-include.h"
8e394ffc
AB
12400#include "elf-bfd.h"
12401#include "elf/mips.h"
4c54fc26
CD
12402
12403#define SD sd
12404#define CPU cpu
12405
12406void
12407sim_engine_run (SIM_DESC sd,
12408 int next_cpu_nr,
12409 int nr_cpus,
12410 int signal) /* ignore */
12411{
12412 int mach;
12413
12414 if (STATE_ARCHITECTURE (sd) == NULL)
12415 mach = bfd_mach_${sim_multi_default};
1554f758 12416 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
8e394ffc
AB
12417 & EF_MIPS_ARCH_ASE_MICROMIPS)
12418 mach = bfd_mach_mips_micromips;
4c54fc26
CD
12419 else
12420 mach = STATE_ARCHITECTURE (SD)->mach;
12421
12422 switch (mach)
12423 {
12424__EOF__
12425
12426 for fc in ${sim_multi_configs}; do
12427
12428 # Split up the entry. ${c} contains the first three elements.
12429 # Note: outer sqaure brackets are m4 quotes.
12430 c=`echo ${fc} | sed 's/:[^:]*$//'`
12431 bfdmachs=`echo ${fc} | sed 's/.*://'`
12432 name=`echo ${c} | sed 's/:.*//'`
12433 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
12434 filter=`echo ${c} | sed 's/.*://'`
12435
12436 # Build the following lists:
12437 #
12438 # sim_multi_flags: all -M and -F flags used by the simulator
12439 # sim_multi_src: all makefile-generated source files
12440 # sim_multi_obj: the objects for ${sim_multi_src}
12441 # sim_multi_igen_configs: igen configuration strings.
12442 #
12443 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
12444 # or m16) followed by the NAME, MACHINE and FILTER part of
12445 # the ${sim_multi_configs} entry.
12446 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
12447
8e394ffc 12448 # Check whether special handling is needed.
4c54fc26
CD
12449 case ${c} in
12450 *:*mips16*:*)
12451 # Run igen twice, once for normal mode and once for mips16.
12452 ws="m32 m16"
12453
12454 # The top-level function for the mips16 simulator is
12455 # in a file m16${name}_run.c, generated by the
12456 # tmp-run-multi Makefile rule.
12457 sim_multi_src="${sim_multi_src} m16${name}_run.c"
12458 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
12459 sim_multi_flags="${sim_multi_flags} -F 16"
12460 ;;
8e394ffc
AB
12461 *:*micromips32*:*)
12462 # Run igen thrice, once for micromips32, once for micromips16,
12463 # and once for m32.
12464 ws="micromips_m32 micromips16 micromips32"
12465
12466 # The top-level function for the micromips simulator is
12467 # in a file micromips${name}_run.c, generated by the
12468 # tmp-run-multi Makefile rule.
12469 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
12470 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
12471 sim_multi_flags="${sim_multi_flags} -F 16,32"
12472 ;;
12473 *:*micromips64*:*)
12474 # Run igen thrice, once for micromips64, once for micromips16,
12475 # and once for m64.
12476 ws="micromips_m64 micromips16 micromips64"
12477
12478 # The top-level function for the micromips simulator is
12479 # in a file micromips${name}_run.c, generated by the
12480 # tmp-run-multi Makefile rule.
12481 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
12482 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
12483 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
12484 ;;
4c54fc26
CD
12485 *)
12486 ws=m32
12487 ;;
12488 esac
12489
12490 # Now add the list of igen-generated files to ${sim_multi_src}
12491 # and ${sim_multi_obj}.
12492 for w in ${ws}; do
12493 for base in engine icache idecode model semantics support; do
12494 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
12495 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
12496 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
12497 done
12498 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
12499 done
12500
12501 # Add an include for the engine.h file. This file declares the
12502 # top-level foo_engine_run() function.
12503 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
12504
12505 # Add case statements for this engine to sim_engine_run().
12506 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12507 echo " case bfd_mach_${mach}:" >> multi-run.c
12508 if test ${mach} = ${sim_multi_default}; then
12509 echo " default:" >> multi-run.c
12510 sim_seen_default=yes
12511 fi
12512 done
12513 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
12514 >> multi-run.c
12515 echo " break;" >> multi-run.c
12516 done
12517
12518 # Check whether we added a 'default:' label.
12519 if test ${sim_seen_default} = no; then
d0ac1c44 12520 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
12521 fi
12522
12523 cat << __EOF__ >> multi-run.c
12524 }
12525}
12526
12527int
12528mips_mach_multi (SIM_DESC sd)
12529{
12530 if (STATE_ARCHITECTURE (sd) == NULL)
12531 return bfd_mach_${sim_multi_default};
12532
12533 switch (STATE_ARCHITECTURE (SD)->mach)
12534 {
12535__EOF__
12536
12537 # Add case statements for this engine to mips_mach_multi().
12538 for fc in ${sim_multi_configs}; do
12539
12540 # Split up the entry. ${c} contains the first three elements.
12541 # Note: outer sqaure brackets are m4 quotes.
12542 c=`echo ${fc} | sed 's/:[^:]*$//'`
12543 bfdmachs=`echo ${fc} | sed 's/.*://'`
12544
12545 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12546 echo " case bfd_mach_${mach}:" >> multi-run.c
12547 done
12548 done
12549
12550 cat << __EOF__ >> multi-run.c
12551 return (STATE_ARCHITECTURE (SD)->mach);
12552 default:
12553 return bfd_mach_${sim_multi_default};
12554 }
12555}
12556__EOF__
12557
12558 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
12559else
12560 # For clean-extra
12561 sim_multi_src=doesnt-exist.c
12562
12563 if test x"${sim_mach_default}" = x""; then
d0ac1c44 12564 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
12565 fi
12566 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
12567fi
c906108c
SS
12568sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
12569sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8e394ffc
AB
12570sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
12571sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
c906108c
SS
12572
12573
12574
12575
12576
4c54fc26
CD
12577
12578
12579
12580
c906108c
SS
12581#
12582# Add simulated hardware devices
12583#
12584hw_enabled=no
12585case "${target}" in
12586 mips*tx39*)
12587 hw_enabled=yes
b7026657 12588 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
12589 ;;
12590 *)
c906108c
SS
12591 ;;
12592esac
12593
c906108c 12594if test "$hw_devices"; then
6ffe910a 12595 hardware="$hw_devices"
c906108c 12596else
6ffe910a 12597 hardware="cfi core pal glue"
c906108c 12598fi
6ffe910a 12599hardware="$hardware $hw_extra_devices"
1517bd27 12600
c906108c
SS
12601sim_hw_cflags="-DWITH_HW=1"
12602sim_hw="$hardware"
12603sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 12604
81ecdfbb
RW
12605# Check whether --enable-sim-hardware was given.
12606if test "${enable_sim_hardware+set}" = set; then :
12607 enableval=$enable_sim_hardware;
30452bbe
MF
12608else
12609 enable_sim_hardware="$hw_enabled"
1517bd27
MF
12610fi
12611
12612case ${enable_sim_hardware} in
64dd13df
MF
12613 yes|no) ;;
12614 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12615 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12616 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
c906108c 12617esac
1517bd27 12618
64dd13df 12619if test "$enable_sim_hardware" = no; then
c906108c
SS
12620 sim_hw_objs=
12621 sim_hw_cflags="-DWITH_HW=0"
12622 sim_hw=
12623else
12624 sim_hw_cflags="-DWITH_HW=1"
12625 # remove duplicates
12626 sim_hw=""
12627 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
12628 for i in $hardware ; do
12629 case " $sim_hw " in
c906108c
SS
12630 *" $i "*) ;;
12631 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12632 esac
12633 done
3be31516 12634 # mingw does not support sockser
3be31516
JS
12635 case ${host} in
12636 *mingw*) ;;
49cd1634
MF
12637 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12638 # that you instatiate. Instead, other code will call into it directly.
12639 # At some point, we should convert it over.
12640 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3be31516
JS
12641
12642cat >>confdefs.h <<_ACEOF
12643#define HAVE_DV_SOCKSER 1
12644_ACEOF
12645
12646 ;;
12647 esac
1517bd27
MF
12648 if test x"$silent" != x"yes"; then
12649 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3be31516 12650 fi
1517bd27
MF
12651 case " $hardware " in
12652 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 12653$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 12654if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
12655 $as_echo_n "(cached) " >&6
12656else
12657 ac_check_lib_save_LIBS=$LIBS
12658LIBS="-lm $LIBS"
12659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660/* end confdefs.h. */
12661
12662/* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12665#ifdef __cplusplus
12666extern "C"
12667#endif
12668char log2 ();
12669int
12670main ()
12671{
12672return log2 ();
12673 ;
12674 return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678 ac_cv_lib_m_log2=yes
12679else
12680 ac_cv_lib_m_log2=no
12681fi
12682rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684LIBS=$ac_check_lib_save_LIBS
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12687$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 12688if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
12689 cat >>confdefs.h <<_ACEOF
12690#define HAVE_LIBM 1
12691_ACEOF
12692
12693 LIBS="-lm $LIBS"
12694
12695fi
12696;;
1517bd27
MF
12697 esac
12698fi
4399a56b 12699
c906108c 12700
c906108c
SS
12701
12702# Choose simulator engine
12703case "${target}" in
12704 *) mips_igen_engine="engine.o"
12705 ;;
12706esac
12707
12708
12709
81ecdfbb
RW
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12711$as_echo_n "checking for X... " >&6; }
b7026657 12712
c906108c 12713
81ecdfbb
RW
12714# Check whether --with-x was given.
12715if test "${with_x+set}" = set; then :
12716 withval=$with_x;
12717fi
c906108c
SS
12718
12719# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12720if test "x$with_x" = xno; then
12721 # The user explicitly disabled X.
12722 have_x=disabled
12723else
81ecdfbb 12724 case $x_includes,$x_libraries in #(
d0ac1c44
SM
12725 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12726 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
81ecdfbb 12727 $as_echo_n "(cached) " >&6
c906108c
SS
12728else
12729 # One or both of the vars are not set, and there is no cached value.
b7026657 12730ac_x_includes=no ac_x_libraries=no
81ecdfbb 12731rm -f -r conftest.dir
b7026657
AC
12732if mkdir conftest.dir; then
12733 cd conftest.dir
b7026657 12734 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
12735incroot:
12736 @echo incroot='${INCROOT}'
12737usrlibdir:
12738 @echo usrlibdir='${USRLIBDIR}'
12739libdir:
12740 @echo libdir='${LIBDIR}'
12741_ACEOF
12742 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
d0ac1c44 12743 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
12744 for ac_var in incroot usrlibdir libdir; do
12745 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12746 done
c906108c 12747 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
12748 for ac_extension in a so sl dylib la dll; do
12749 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12750 test -f "$ac_im_libdir/libX11.$ac_extension"; then
b7026657 12751 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
12752 fi
12753 done
12754 # Screen out bogus values from the imake configuration. They are
12755 # bogus both because they are the default anyway, and because
12756 # using them would break gcc on systems where it needs fixed includes.
b7026657 12757 case $ac_im_incroot in
81ecdfbb 12758 /usr/include) ac_x_includes= ;;
b7026657 12759 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 12760 esac
b7026657 12761 case $ac_im_usrlibdir in
81ecdfbb 12762 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
b7026657 12763 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
12764 esac
12765 fi
12766 cd ..
81ecdfbb 12767 rm -f -r conftest.dir
c906108c
SS
12768fi
12769
b7026657
AC
12770# Standard set of common directories for X headers.
12771# Check X11 before X11Rn because it is often a symlink to the current release.
12772ac_x_header_dirs='
12773/usr/X11/include
81ecdfbb 12774/usr/X11R7/include
b7026657
AC
12775/usr/X11R6/include
12776/usr/X11R5/include
12777/usr/X11R4/include
12778
12779/usr/include/X11
81ecdfbb 12780/usr/include/X11R7
b7026657
AC
12781/usr/include/X11R6
12782/usr/include/X11R5
12783/usr/include/X11R4
12784
12785/usr/local/X11/include
81ecdfbb 12786/usr/local/X11R7/include
b7026657
AC
12787/usr/local/X11R6/include
12788/usr/local/X11R5/include
12789/usr/local/X11R4/include
12790
12791/usr/local/include/X11
81ecdfbb 12792/usr/local/include/X11R7
b7026657
AC
12793/usr/local/include/X11R6
12794/usr/local/include/X11R5
12795/usr/local/include/X11R4
12796
12797/usr/X386/include
12798/usr/x386/include
12799/usr/XFree86/include/X11
12800
12801/usr/include
12802/usr/local/include
12803/usr/unsupported/include
12804/usr/athena/include
12805/usr/local/x11r5/include
12806/usr/lpp/Xamples/include
12807
12808/usr/openwin/include
12809/usr/openwin/share/include'
12810
12811if test "$ac_x_includes" = no; then
81ecdfbb 12812 # Guess where to find include files, by looking for Xlib.h.
c906108c 12813 # First, try using that file with no special directory specified.
81ecdfbb 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12815/* end confdefs.h. */
81ecdfbb 12816#include <X11/Xlib.h>
b7026657 12817_ACEOF
81ecdfbb 12818if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
12819 # We can compile using X headers with no special include directory.
12820ac_x_includes=
12821else
b7026657 12822 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 12823 if test -r "$ac_dir/X11/Xlib.h"; then
b7026657
AC
12824 ac_x_includes=$ac_dir
12825 break
12826 fi
12827done
c906108c 12828fi
d0ac1c44 12829rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 12830fi # $ac_x_includes = no
c906108c 12831
b7026657 12832if test "$ac_x_libraries" = no; then
c906108c 12833 # Check for the libraries.
c906108c
SS
12834 # See if we find them without any special options.
12835 # Don't add to $LIBS permanently.
b7026657 12836 ac_save_LIBS=$LIBS
81ecdfbb
RW
12837 LIBS="-lX11 $LIBS"
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12839/* end confdefs.h. */
81ecdfbb 12840#include <X11/Xlib.h>
b7026657
AC
12841int
12842main ()
12843{
81ecdfbb 12844XrmInitialize ()
b7026657
AC
12845 ;
12846 return 0;
12847}
12848_ACEOF
81ecdfbb 12849if ac_fn_c_try_link "$LINENO"; then :
b7026657 12850 LIBS=$ac_save_LIBS
c906108c
SS
12851# We can link X programs with no special library path.
12852ac_x_libraries=
12853else
81ecdfbb
RW
12854 LIBS=$ac_save_LIBS
12855for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
b7026657 12856do
81ecdfbb
RW
12857 # Don't even attempt the hair of trying to link an X program!
12858 for ac_extension in a so sl dylib la dll; do
12859 if test -r "$ac_dir/libX11.$ac_extension"; then
12860 ac_x_libraries=$ac_dir
12861 break 2
12862 fi
12863 done
12864done
b7026657 12865fi
81ecdfbb
RW
12866rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868fi # $ac_x_libraries = no
b7026657 12869
81ecdfbb
RW
12870case $ac_x_includes,$ac_x_libraries in #(
12871 no,* | *,no | *\'*)
12872 # Didn't find X, or a directory has "'" in its name.
12873 ac_cv_have_x="have_x=no";; #(
12874 *)
12875 # Record where we found X for the cache.
12876 ac_cv_have_x="have_x=yes\
12877 ac_x_includes='$ac_x_includes'\
12878 ac_x_libraries='$ac_x_libraries'"
12879esac
b7026657 12880fi
81ecdfbb
RW
12881;; #(
12882 *) have_x=yes;;
12883 esac
12884 eval "$ac_cv_have_x"
12885fi # $with_x != no
b7026657 12886
81ecdfbb
RW
12887if test "$have_x" != yes; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12889$as_echo "$have_x" >&6; }
12890 no_x=yes
b7026657 12891else
81ecdfbb
RW
12892 # If each of the values was on the command line, it overrides each guess.
12893 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12894 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12895 # Update the cache value to reflect the command line values.
12896 ac_cv_have_x="have_x=yes\
12897 ac_x_includes='$x_includes'\
12898 ac_x_libraries='$x_libraries'"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12900$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
b7026657 12901fi
b7026657 12902
81ecdfbb
RW
12903mips_extra_libs=""
12904
12905
81ecdfbb
RW
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12907$as_echo_n "checking for fabs in -lm... " >&6; }
d0ac1c44 12908if ${ac_cv_lib_m_fabs+:} false; then :
81ecdfbb 12909 $as_echo_n "(cached) " >&6
b7026657
AC
12910else
12911 ac_check_lib_save_LIBS=$LIBS
12912LIBS="-lm $LIBS"
81ecdfbb 12913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12914/* end confdefs.h. */
12915
81ecdfbb
RW
12916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
b7026657
AC
12919#ifdef __cplusplus
12920extern "C"
12921#endif
b7026657
AC
12922char fabs ();
12923int
12924main ()
12925{
81ecdfbb 12926return fabs ();
b7026657
AC
12927 ;
12928 return 0;
12929}
12930_ACEOF
81ecdfbb 12931if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
12932 ac_cv_lib_m_fabs=yes
12933else
81ecdfbb 12934 ac_cv_lib_m_fabs=no
b7026657 12935fi
81ecdfbb
RW
12936rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12938LIBS=$ac_check_lib_save_LIBS
12939fi
81ecdfbb
RW
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12941$as_echo "$ac_cv_lib_m_fabs" >&6; }
d0ac1c44 12942if test "x$ac_cv_lib_m_fabs" = xyes; then :
b7026657
AC
12943 cat >>confdefs.h <<_ACEOF
12944#define HAVE_LIBM 1
12945_ACEOF
12946
12947 LIBS="-lm $LIBS"
12948
12949fi
12950
b7026657 12951for ac_func in aint anint sqrt
81ecdfbb
RW
12952do :
12953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 12955if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b7026657 12956 cat >>confdefs.h <<_ACEOF
81ecdfbb 12957#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657
AC
12958_ACEOF
12959
12960fi
12961done
12962
12963
12964
b7026657
AC
12965cgen_breaks=""
12966if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12967cgen_breaks="break cgen_rtx_error";
12968fi
12969
81ecdfbb 12970ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 12971
81ecdfbb 12972ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 12973
81ecdfbb 12974ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 12975
81ecdfbb 12976ac_config_commands="$ac_config_commands Makefile"
38f48d72 12977
81ecdfbb 12978ac_config_commands="$ac_config_commands stamp-h"
38f48d72 12979
760b3e8b
MF
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
b7026657
AC
12992cat >confcache <<\_ACEOF
12993# This file is a shell script that caches the results of configure
12994# tests run on this system so they can be shared between configure
12995# scripts and configure runs, see configure's option --config-cache.
12996# It is not useful on other systems. If it contains results you don't
12997# want to keep, you may remove or edit it.
12998#
12999# config.status only pays attention to the cache file if you give it
13000# the --recheck option to rerun configure.
13001#
13002# `ac_cv_env_foo' variables (set or unset) will be overridden when
13003# loading this file, other *unset* `ac_cv_foo' will be assigned the
13004# following values.
13005
13006_ACEOF
13007
13008# The following way of writing the cache mishandles newlines in values,
13009# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13010# So, we kill variables containing newlines.
b7026657
AC
13011# Ultrix sh set writes to stderr and can't be redirected directly,
13012# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13013(
13014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13015 eval ac_val=\$$ac_var
13016 case $ac_val in #(
13017 *${as_nl}*)
13018 case $ac_var in #(
13019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13021 esac
13022 case $ac_var in #(
13023 _ | IFS | as_nl) ;; #(
13024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13025 *) { eval $ac_var=; unset $ac_var;} ;;
13026 esac ;;
13027 esac
13028 done
13029
b7026657 13030 (set) 2>&1 |
81ecdfbb
RW
13031 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13032 *${as_nl}ac_space=\ *)
13033 # `set' does not quote correctly, so add quotes: double-quote
13034 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
13035 sed -n \
13036 "s/'/'\\\\''/g;
13037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13038 ;; #(
b7026657
AC
13039 *)
13040 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 13042 ;;
81ecdfbb
RW
13043 esac |
13044 sort
13045) |
b7026657 13046 sed '
81ecdfbb 13047 /^ac_cv_env_/b end
b7026657 13048 t clear
81ecdfbb 13049 :clear
b7026657
AC
13050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13051 t end
81ecdfbb
RW
13052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13053 :end' >>confcache
13054if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13055 if test -w "$cache_file"; then
d0ac1c44 13056 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13058$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
13059 if test ! -f "$cache_file" || test -h "$cache_file"; then
13060 cat confcache >"$cache_file"
13061 else
13062 case $cache_file in #(
13063 */* | ?:*)
13064 mv -f confcache "$cache_file"$$ &&
13065 mv -f "$cache_file"$$ "$cache_file" ;; #(
13066 *)
13067 mv -f confcache "$cache_file" ;;
13068 esac
13069 fi
13070 fi
b7026657 13071 else
81ecdfbb
RW
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
13074 fi
13075fi
13076rm -f confcache
13077
13078test "x$prefix" = xNONE && prefix=$ac_default_prefix
13079# Let make expand exec_prefix.
13080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13081
b7026657
AC
13082DEFS=-DHAVE_CONFIG_H
13083
13084ac_libobjs=
13085ac_ltlibobjs=
d0ac1c44 13086U=
b7026657
AC
13087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13088 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13092 # will be set to the directory where LIBOBJS objects are built.
13093 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13094 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
13095done
13096LIBOBJS=$ac_libobjs
13097
13098LTLIBOBJS=$ac_ltlibobjs
13099
13100
0cb8d851 13101
6bb11ab3 13102if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 13103 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
13104Usually this means the macro was only invoked conditionally." "$LINENO" 5
13105fi
31e6ad7d 13106if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 13107 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
13108Usually this means the macro was only invoked conditionally." "$LINENO" 5
13109fi
b7026657 13110
d0ac1c44 13111: "${CONFIG_STATUS=./config.status}"
81ecdfbb 13112ac_write_fail=0
b7026657
AC
13113ac_clean_files_save=$ac_clean_files
13114ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13116$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13117as_write_fail=0
13118cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
13119#! $SHELL
13120# Generated by $as_me.
13121# Run this file to recreate the current configuration.
13122# Compiler output produced by configure, useful for debugging
13123# configure, is in config.log if it exists.
c906108c 13124
b7026657
AC
13125debug=false
13126ac_cs_recheck=false
13127ac_cs_silent=false
b7026657 13128
81ecdfbb
RW
13129SHELL=\${CONFIG_SHELL-$SHELL}
13130export SHELL
13131_ASEOF
13132cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13133## -------------------- ##
13134## M4sh Initialization. ##
13135## -------------------- ##
13136
13137# Be more Bourne compatible
13138DUALCASE=1; export DUALCASE # for MKS sh
13139if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
13140 emulate sh
13141 NULLCMD=:
81ecdfbb 13142 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
13143 # is contrary to our usage. Disable this feature.
13144 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13145 setopt NO_GLOB_SUBST
13146else
13147 case `(set -o) 2>/dev/null` in #(
13148 *posix*) :
13149 set -o posix ;; #(
13150 *) :
13151 ;;
13152esac
c906108c 13153fi
b7026657 13154
81ecdfbb
RW
13155
13156as_nl='
13157'
13158export as_nl
13159# Printing a long string crashes Solaris 7 /usr/bin/printf.
13160as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13161as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13162as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13163# Prefer a ksh shell builtin over an external printf program on Solaris,
13164# but without wasting forks for bash or zsh.
13165if test -z "$BASH_VERSION$ZSH_VERSION" \
13166 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13167 as_echo='print -r --'
13168 as_echo_n='print -rn --'
13169elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13170 as_echo='printf %s\n'
13171 as_echo_n='printf %s'
13172else
13173 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13174 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13175 as_echo_n='/usr/ucb/echo -n'
13176 else
13177 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13178 as_echo_n_body='eval
13179 arg=$1;
13180 case $arg in #(
13181 *"$as_nl"*)
13182 expr "X$arg" : "X\\(.*\\)$as_nl";
13183 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13184 esac;
13185 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13186 '
13187 export as_echo_n_body
13188 as_echo_n='sh -c $as_echo_n_body as_echo'
13189 fi
13190 export as_echo_body
13191 as_echo='sh -c $as_echo_body as_echo'
c906108c 13192fi
b7026657 13193
81ecdfbb
RW
13194# The user is always right.
13195if test "${PATH_SEPARATOR+set}" != set; then
13196 PATH_SEPARATOR=:
13197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13198 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13199 PATH_SEPARATOR=';'
13200 }
13201fi
13202
13203
13204# IFS
13205# We need space, tab and new line, in precisely that order. Quoting is
13206# there to prevent editors from complaining about space-tab.
13207# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13208# splitting by setting IFS to empty value.)
13209IFS=" "" $as_nl"
13210
13211# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 13212as_myself=
81ecdfbb
RW
13213case $0 in #((
13214 *[\\/]* ) as_myself=$0 ;;
13215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13221 done
13222IFS=$as_save_IFS
b7026657 13223
81ecdfbb
RW
13224 ;;
13225esac
13226# We did not find ourselves, most probably we were run as `sh COMMAND'
13227# in which case we are not to be found in the path.
13228if test "x$as_myself" = x; then
13229 as_myself=$0
13230fi
13231if test ! -f "$as_myself"; then
13232 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13233 exit 1
13234fi
13235
13236# Unset variables that we do not need and which cause bugs (e.g. in
13237# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13238# suppresses any "Segmentation fault" message there. '((' could
13239# trigger a bug in pdksh 5.2.14.
13240for as_var in BASH_ENV ENV MAIL MAILPATH
13241do eval test x\${$as_var+set} = xset \
13242 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13243done
b7026657
AC
13244PS1='$ '
13245PS2='> '
13246PS4='+ '
13247
13248# NLS nuisances.
81ecdfbb
RW
13249LC_ALL=C
13250export LC_ALL
13251LANGUAGE=C
13252export LANGUAGE
13253
13254# CDPATH.
13255(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13256
13257
d0ac1c44
SM
13258# as_fn_error STATUS ERROR [LINENO LOG_FD]
13259# ----------------------------------------
81ecdfbb
RW
13260# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13261# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 13262# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
13263as_fn_error ()
13264{
d0ac1c44
SM
13265 as_status=$1; test $as_status -eq 0 && as_status=1
13266 if test "$4"; then
13267 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13268 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 13269 fi
d0ac1c44 13270 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
13271 as_fn_exit $as_status
13272} # as_fn_error
13273
13274
13275# as_fn_set_status STATUS
13276# -----------------------
13277# Set $? to STATUS, without forking.
13278as_fn_set_status ()
13279{
13280 return $1
13281} # as_fn_set_status
13282
13283# as_fn_exit STATUS
13284# -----------------
13285# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13286as_fn_exit ()
13287{
13288 set +e
13289 as_fn_set_status $1
13290 exit $1
13291} # as_fn_exit
13292
13293# as_fn_unset VAR
13294# ---------------
13295# Portably unset VAR.
13296as_fn_unset ()
13297{
13298 { eval $1=; unset $1;}
13299}
13300as_unset=as_fn_unset
13301# as_fn_append VAR VALUE
13302# ----------------------
13303# Append the text in VALUE to the end of the definition contained in VAR. Take
13304# advantage of any shell optimizations that allow amortized linear growth over
13305# repeated appends, instead of the typical quadratic growth present in naive
13306# implementations.
13307if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13308 eval 'as_fn_append ()
13309 {
13310 eval $1+=\$2
13311 }'
13312else
13313 as_fn_append ()
13314 {
13315 eval $1=\$$1\$2
13316 }
13317fi # as_fn_append
c906108c 13318
81ecdfbb
RW
13319# as_fn_arith ARG...
13320# ------------------
13321# Perform arithmetic evaluation on the ARGs, and store the result in the
13322# global $as_val. Take advantage of shells that can avoid forks. The arguments
13323# must be portable across $(()) and expr.
13324if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13325 eval 'as_fn_arith ()
13326 {
13327 as_val=$(( $* ))
13328 }'
13329else
13330 as_fn_arith ()
13331 {
13332 as_val=`expr "$@" || test $? -eq 1`
13333 }
13334fi # as_fn_arith
13335
13336
13337if expr a : '\(a\)' >/dev/null 2>&1 &&
13338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 13339 as_expr=expr
c906108c 13340else
b7026657 13341 as_expr=false
c906108c 13342fi
c906108c 13343
81ecdfbb 13344if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
13345 as_basename=basename
13346else
13347 as_basename=false
c906108c 13348fi
c906108c 13349
81ecdfbb
RW
13350if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13351 as_dirname=dirname
13352else
13353 as_dirname=false
13354fi
c906108c 13355
81ecdfbb 13356as_me=`$as_basename -- "$0" ||
b7026657
AC
13357$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13358 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13360$as_echo X/"$0" |
13361 sed '/^.*\/\([^/][^/]*\)\/*$/{
13362 s//\1/
13363 q
13364 }
13365 /^X\/\(\/\/\)$/{
13366 s//\1/
13367 q
13368 }
13369 /^X\/\(\/\).*/{
13370 s//\1/
13371 q
13372 }
13373 s/.*/./; q'`
b7026657 13374
b7026657
AC
13375# Avoid depending upon Character Ranges.
13376as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13377as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13378as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13379as_cr_digits='0123456789'
13380as_cr_alnum=$as_cr_Letters$as_cr_digits
13381
81ecdfbb
RW
13382ECHO_C= ECHO_N= ECHO_T=
13383case `echo -n x` in #(((((
13384-n*)
13385 case `echo 'xy\c'` in
13386 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13387 xy) ECHO_C='\c';;
13388 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13389 ECHO_T=' ';;
13390 esac;;
13391*)
13392 ECHO_N='-n';;
b7026657 13393esac
c906108c 13394
81ecdfbb
RW
13395rm -f conf$$ conf$$.exe conf$$.file
13396if test -d conf$$.dir; then
13397 rm -f conf$$.dir/conf$$.file
c906108c 13398else
81ecdfbb
RW
13399 rm -f conf$$.dir
13400 mkdir conf$$.dir 2>/dev/null
c906108c 13401fi
81ecdfbb
RW
13402if (echo >conf$$.file) 2>/dev/null; then
13403 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 13404 as_ln_s='ln -s'
81ecdfbb
RW
13405 # ... but there are two gotchas:
13406 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13407 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 13408 # In both cases, we have to default to `cp -pR'.
81ecdfbb 13409 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 13410 as_ln_s='cp -pR'
81ecdfbb
RW
13411 elif ln conf$$.file conf$$ 2>/dev/null; then
13412 as_ln_s=ln
13413 else
d0ac1c44 13414 as_ln_s='cp -pR'
b7026657 13415 fi
b7026657 13416else
d0ac1c44 13417 as_ln_s='cp -pR'
c906108c 13418fi
81ecdfbb
RW
13419rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13420rmdir conf$$.dir 2>/dev/null
13421
13422
13423# as_fn_mkdir_p
13424# -------------
13425# Create "$as_dir" as a directory, including parents if necessary.
13426as_fn_mkdir_p ()
13427{
13428
13429 case $as_dir in #(
13430 -*) as_dir=./$as_dir;;
13431 esac
13432 test -d "$as_dir" || eval $as_mkdir_p || {
13433 as_dirs=
13434 while :; do
13435 case $as_dir in #(
13436 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13437 *) as_qdir=$as_dir;;
13438 esac
13439 as_dirs="'$as_qdir' $as_dirs"
13440 as_dir=`$as_dirname -- "$as_dir" ||
13441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13442 X"$as_dir" : 'X\(//\)[^/]' \| \
13443 X"$as_dir" : 'X\(//\)$' \| \
13444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13445$as_echo X"$as_dir" |
13446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13447 s//\1/
13448 q
13449 }
13450 /^X\(\/\/\)[^/].*/{
13451 s//\1/
13452 q
13453 }
13454 /^X\(\/\/\)$/{
13455 s//\1/
13456 q
13457 }
13458 /^X\(\/\).*/{
13459 s//\1/
13460 q
13461 }
13462 s/.*/./; q'`
13463 test -d "$as_dir" && break
13464 done
13465 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 13466 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 13467
c906108c 13468
81ecdfbb 13469} # as_fn_mkdir_p
b7026657 13470if mkdir -p . 2>/dev/null; then
81ecdfbb 13471 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 13472else
b7026657
AC
13473 test -d ./-p && rmdir ./-p
13474 as_mkdir_p=false
c906108c 13475fi
c906108c 13476
d0ac1c44
SM
13477
13478# as_fn_executable_p FILE
13479# -----------------------
13480# Test if FILE is an executable regular file.
13481as_fn_executable_p ()
13482{
13483 test -f "$1" && test -x "$1"
13484} # as_fn_executable_p
13485as_test_x='test -x'
13486as_executable_p=as_fn_executable_p
c906108c 13487
b7026657
AC
13488# Sed expression to map a string onto a valid CPP name.
13489as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 13490
b7026657
AC
13491# Sed expression to map a string onto a valid variable name.
13492as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 13493
b7026657 13494
b7026657 13495exec 6>&1
81ecdfbb
RW
13496## ----------------------------------- ##
13497## Main body of $CONFIG_STATUS script. ##
13498## ----------------------------------- ##
13499_ASEOF
13500test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13501
13502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13503# Save the log message, to keep $0 and so on meaningful, and to
b7026657 13504# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13505# values after options handling.
13506ac_log="
b7026657 13507This file was extended by $as_me, which was
d0ac1c44 13508generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
13509
13510 CONFIG_FILES = $CONFIG_FILES
13511 CONFIG_HEADERS = $CONFIG_HEADERS
13512 CONFIG_LINKS = $CONFIG_LINKS
13513 CONFIG_COMMANDS = $CONFIG_COMMANDS
13514 $ $0 $@
13515
81ecdfbb
RW
13516on `(hostname || uname -n) 2>/dev/null | sed 1q`
13517"
13518
b7026657
AC
13519_ACEOF
13520
81ecdfbb
RW
13521case $ac_config_files in *"
13522"*) set x $ac_config_files; shift; ac_config_files=$*;;
13523esac
379832de 13524
81ecdfbb
RW
13525case $ac_config_headers in *"
13526"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13527esac
b7026657 13528
b7026657 13529
81ecdfbb
RW
13530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531# Files that config.status was made for.
13532config_files="$ac_config_files"
13533config_headers="$ac_config_headers"
81ecdfbb 13534config_commands="$ac_config_commands"
b7026657 13535
81ecdfbb 13536_ACEOF
b7026657 13537
81ecdfbb 13538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 13539ac_cs_usage="\
81ecdfbb
RW
13540\`$as_me' instantiates files and other configuration actions
13541from templates according to the current configuration. Unless the files
13542and actions are specified as TAGs, all are instantiated by default.
b7026657 13543
81ecdfbb 13544Usage: $0 [OPTION]... [TAG]...
b7026657
AC
13545
13546 -h, --help print this help, then exit
81ecdfbb 13547 -V, --version print version number and configuration settings, then exit
d0ac1c44 13548 --config print configuration, then exit
81ecdfbb
RW
13549 -q, --quiet, --silent
13550 do not print progress messages
b7026657
AC
13551 -d, --debug don't remove temporary files
13552 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13553 --file=FILE[:TEMPLATE]
13554 instantiate the configuration file FILE
13555 --header=FILE[:TEMPLATE]
13556 instantiate the configuration header FILE
b7026657
AC
13557
13558Configuration files:
13559$config_files
13560
13561Configuration headers:
13562$config_headers
13563
b7026657
AC
13564Configuration commands:
13565$config_commands
13566
81ecdfbb 13567Report bugs to the package provider."
b7026657 13568
81ecdfbb
RW
13569_ACEOF
13570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13571ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
13572ac_cs_version="\\
13573config.status
d0ac1c44
SM
13574configured by $0, generated by GNU Autoconf 2.69,
13575 with options \\"\$ac_cs_config\\"
b7026657 13576
d0ac1c44 13577Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
13578This config.status script is free software; the Free Software Foundation
13579gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13580
13581ac_pwd='$ac_pwd'
13582srcdir='$srcdir'
13583INSTALL='$INSTALL'
6bb11ab3 13584AWK='$AWK'
81ecdfbb 13585test -n "\$AWK" || AWK=awk
b7026657
AC
13586_ACEOF
13587
81ecdfbb
RW
13588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589# The default lists apply if the user does not specify any file.
b7026657
AC
13590ac_need_defaults=:
13591while test $# != 0
13592do
13593 case $1 in
d0ac1c44 13594 --*=?*)
81ecdfbb
RW
13595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 13597 ac_shift=:
c906108c 13598 ;;
d0ac1c44
SM
13599 --*=)
13600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13601 ac_optarg=
13602 ac_shift=:
13603 ;;
81ecdfbb 13604 *)
b7026657
AC
13605 ac_option=$1
13606 ac_optarg=$2
13607 ac_shift=shift
c906108c 13608 ;;
b7026657 13609 esac
c906108c 13610
b7026657
AC
13611 case $ac_option in
13612 # Handling of the options.
b7026657
AC
13613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13614 ac_cs_recheck=: ;;
81ecdfbb
RW
13615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13616 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
13617 --config | --confi | --conf | --con | --co | --c )
13618 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 13619 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
13620 debug=: ;;
13621 --file | --fil | --fi | --f )
13622 $ac_shift
81ecdfbb
RW
13623 case $ac_optarg in
13624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 13625 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
13626 esac
13627 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
13628 ac_need_defaults=false;;
13629 --header | --heade | --head | --hea )
13630 $ac_shift
81ecdfbb
RW
13631 case $ac_optarg in
13632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13633 esac
13634 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 13635 ac_need_defaults=false;;
81ecdfbb
RW
13636 --he | --h)
13637 # Conflict between --help and --header
d0ac1c44 13638 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
13639Try \`$0 --help' for more information.";;
13640 --help | --hel | -h )
13641 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
13642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13644 ac_cs_silent=: ;;
c906108c 13645
b7026657 13646 # This is an error.
d0ac1c44 13647 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 13648Try \`$0 --help' for more information." ;;
c906108c 13649
81ecdfbb
RW
13650 *) as_fn_append ac_config_targets " $1"
13651 ac_need_defaults=false ;;
b7026657
AC
13652
13653 esac
13654 shift
13655done
13656
13657ac_configure_extra_args=
13658
13659if $ac_cs_silent; then
13660 exec 6>/dev/null
13661 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
13662fi
13663
b7026657 13664_ACEOF
81ecdfbb 13665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 13666if \$ac_cs_recheck; then
d0ac1c44 13667 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
13668 shift
13669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13670 CONFIG_SHELL='$SHELL'
13671 export CONFIG_SHELL
13672 exec "\$@"
b7026657 13673fi
c906108c 13674
b7026657 13675_ACEOF
81ecdfbb
RW
13676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13677exec 5>>config.log
13678{
13679 echo
13680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13681## Running $as_me. ##
13682_ASBOX
13683 $as_echo "$ac_log"
13684} >&5
c906108c 13685
81ecdfbb
RW
13686_ACEOF
13687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
13688#
13689# INIT-COMMANDS
13690#
13691ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
13692
6bb11ab3
L
13693
13694# The HP-UX ksh and POSIX shell print the target directory to stdout
13695# if CDPATH is set.
13696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13697
13698sed_quote_subst='$sed_quote_subst'
13699double_quote_subst='$double_quote_subst'
13700delay_variable_subst='$delay_variable_subst'
13701macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13702macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13703enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13704enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13705pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13706enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13707SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13708ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13709host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13710host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13711host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13712build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13713build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13714build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13715SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13716Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13717GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13718EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13719FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13720LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13721NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13722LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13723max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13724ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13725exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13726lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13727lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13728lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13729reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13730reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13731OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13732deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13733file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13734AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13735AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13736STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13737RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13738old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13739old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13740old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13741lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13742CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13743CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13744compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13745GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13746lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13747lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13748lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13749lt_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"`'
13750objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13751MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13752lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13753lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13754lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13755lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13756lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13757need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13758DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13759NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13760LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13761OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13762OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13763libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13764shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13765extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13766archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13767enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13768export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13769whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13770compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13771old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13772old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13773archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13774archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13775module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13776module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13777with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13778allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13779no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13780hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13781hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13782hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13783hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13784hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13785hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13786hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13787hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13788inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13789link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13790fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13791always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13792export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13793exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13794include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13795prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13796file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13797variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13798need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13799need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13800version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13801runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13802shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13803shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13804libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13805library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13806soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13807install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13808postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13809postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13810finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13811finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13812hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13813sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13814sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13815hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13816enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13817enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13818enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13819old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13820striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13821
13822LTCC='$LTCC'
13823LTCFLAGS='$LTCFLAGS'
13824compiler='$compiler_DEFAULT'
13825
13826# A function that is used when there is no print builtin or printf.
13827func_fallback_echo ()
13828{
13829 eval 'cat <<_LTECHO_EOF
13830\$1
13831_LTECHO_EOF'
13832}
13833
13834# Quote evaled strings.
13835for var in SHELL \
13836ECHO \
13837SED \
13838GREP \
13839EGREP \
13840FGREP \
13841LD \
13842NM \
13843LN_S \
13844lt_SP2NL \
13845lt_NL2SP \
13846reload_flag \
13847OBJDUMP \
13848deplibs_check_method \
13849file_magic_cmd \
13850AR \
13851AR_FLAGS \
13852STRIP \
13853RANLIB \
13854CC \
13855CFLAGS \
13856compiler \
13857lt_cv_sys_global_symbol_pipe \
13858lt_cv_sys_global_symbol_to_cdecl \
13859lt_cv_sys_global_symbol_to_c_name_address \
13860lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13861lt_prog_compiler_no_builtin_flag \
13862lt_prog_compiler_wl \
13863lt_prog_compiler_pic \
13864lt_prog_compiler_static \
13865lt_cv_prog_compiler_c_o \
13866need_locks \
13867DSYMUTIL \
13868NMEDIT \
13869LIPO \
13870OTOOL \
13871OTOOL64 \
13872shrext_cmds \
13873export_dynamic_flag_spec \
13874whole_archive_flag_spec \
13875compiler_needs_object \
13876with_gnu_ld \
13877allow_undefined_flag \
13878no_undefined_flag \
13879hardcode_libdir_flag_spec \
13880hardcode_libdir_flag_spec_ld \
13881hardcode_libdir_separator \
13882fix_srcfile_path \
13883exclude_expsyms \
13884include_expsyms \
13885file_list_spec \
13886variables_saved_for_relink \
13887libname_spec \
13888library_names_spec \
13889soname_spec \
13890install_override_mode \
13891finish_eval \
13892old_striplib \
13893striplib; do
13894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13895 *[\\\\\\\`\\"\\\$]*)
13896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13897 ;;
13898 *)
13899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13900 ;;
13901 esac
13902done
13903
13904# Double-quote double-evaled strings.
13905for var in reload_cmds \
13906old_postinstall_cmds \
13907old_postuninstall_cmds \
13908old_archive_cmds \
13909extract_expsyms_cmds \
13910old_archive_from_new_cmds \
13911old_archive_from_expsyms_cmds \
13912archive_cmds \
13913archive_expsym_cmds \
13914module_cmds \
13915module_expsym_cmds \
13916export_symbols_cmds \
13917prelink_cmds \
13918postinstall_cmds \
13919postuninstall_cmds \
13920finish_cmds \
13921sys_lib_search_path_spec \
13922sys_lib_dlsearch_path_spec; do
13923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13924 *[\\\\\\\`\\"\\\$]*)
13925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13926 ;;
13927 *)
13928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13929 ;;
13930 esac
13931done
13932
13933ac_aux_dir='$ac_aux_dir'
13934xsi_shell='$xsi_shell'
13935lt_shell_append='$lt_shell_append'
13936
13937# See if we are running on zsh, and set the options which allow our
13938# commands through without removal of \ escapes INIT.
13939if test -n "\${ZSH_VERSION+set}" ; then
13940 setopt NO_GLOB_SUBST
13941fi
13942
13943
13944 PACKAGE='$PACKAGE'
13945 VERSION='$VERSION'
13946 TIMESTAMP='$TIMESTAMP'
13947 RM='$RM'
13948 ofile='$ofile'
13949
13950
13951
13952
81ecdfbb 13953_ACEOF
c906108c 13954
81ecdfbb 13955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 13956
81ecdfbb 13957# Handling of arguments.
b7026657 13958for ac_config_target in $ac_config_targets
c906108c 13959do
81ecdfbb
RW
13960 case $ac_config_target in
13961 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 13962 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 13963 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
13964 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13965 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13966 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13967 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13968 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13969
d0ac1c44 13970 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
13971 esac
13972done
13973
81ecdfbb 13974
b7026657
AC
13975# If the user did not use the arguments to specify the items to instantiate,
13976# then the envvar interface is used. Set only those that are not.
13977# We use the long form for the default assignment because of an extremely
13978# bizarre bug on SunOS 4.1.3.
13979if $ac_need_defaults; then
13980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
13982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13983fi
13984
13985# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13986# simply because there is no reason against having it here, and in addition,
b7026657 13987# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13988# Hook for its removal unless debugging.
13989# Note that there is a small window in which the directory will not be cleaned:
13990# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
13991$debug ||
13992{
d0ac1c44 13993 tmp= ac_tmp=
81ecdfbb 13994 trap 'exit_status=$?
d0ac1c44
SM
13995 : "${ac_tmp:=$tmp}"
13996 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13997' 0
13998 trap 'as_fn_exit 1' 1 2 13 15
b7026657 13999}
b7026657 14000# Create a (secure) tmp directory for tmp files.
c906108c 14001
b7026657 14002{
81ecdfbb 14003 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 14004 test -d "$tmp"
b7026657
AC
14005} ||
14006{
81ecdfbb
RW
14007 tmp=./conf$$-$RANDOM
14008 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
14009} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14010ac_tmp=$tmp
b7026657 14011
81ecdfbb
RW
14012# Set up the scripts for CONFIG_FILES section.
14013# No need to generate them if there are no CONFIG_FILES.
14014# This happens for instance with `./config.status config.h'.
14015if test -n "$CONFIG_FILES"; then
b7026657 14016
c906108c 14017
81ecdfbb
RW
14018ac_cr=`echo X | tr X '\015'`
14019# On cygwin, bash can eat \r inside `` if the user requested igncr.
14020# But we know of no other shell where ac_cr would be empty at this
14021# point, so we can use a bashism as a fallback.
14022if test "x$ac_cr" = x; then
14023 eval ac_cr=\$\'\\r\'
14024fi
14025ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14026if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 14027 ac_cs_awk_cr='\\r'
81ecdfbb
RW
14028else
14029 ac_cs_awk_cr=$ac_cr
14030fi
b7026657 14031
d0ac1c44 14032echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
14033_ACEOF
14034
c906108c 14035
81ecdfbb
RW
14036{
14037 echo "cat >conf$$subs.awk <<_ACEOF" &&
14038 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14039 echo "_ACEOF"
14040} >conf$$subs.sh ||
d0ac1c44
SM
14041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14042ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
14043ac_delim='%!_!# '
14044for ac_last_try in false false false false false :; do
14045 . ./conf$$subs.sh ||
d0ac1c44 14046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
14047
14048 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14049 if test $ac_delim_n = $ac_delim_num; then
14050 break
14051 elif $ac_last_try; then
d0ac1c44 14052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 14053 else
81ecdfbb
RW
14054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14055 fi
14056done
14057rm -f conf$$subs.sh
14058
14059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14060cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
14061_ACEOF
14062sed -n '
14063h
14064s/^/S["/; s/!.*/"]=/
14065p
14066g
14067s/^[^!]*!//
14068:repl
14069t repl
14070s/'"$ac_delim"'$//
14071t delim
14072:nl
14073h
d0ac1c44 14074s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
14075t more1
14076s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14077p
14078n
14079b repl
14080:more1
14081s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14082p
14083g
14084s/.\{148\}//
14085t nl
14086:delim
14087h
d0ac1c44 14088s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
14089t more2
14090s/["\\]/\\&/g; s/^/"/; s/$/"/
14091p
14092b
14093:more2
14094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14095p
14096g
14097s/.\{148\}//
14098t delim
14099' <conf$$subs.awk | sed '
14100/^[^""]/{
14101 N
14102 s/\n//
14103}
14104' >>$CONFIG_STATUS || ac_write_fail=1
14105rm -f conf$$subs.awk
14106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14107_ACAWK
d0ac1c44 14108cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
14109 for (key in S) S_is_set[key] = 1
14110 FS = "\a"
b7026657 14111
81ecdfbb
RW
14112}
14113{
14114 line = $ 0
14115 nfields = split(line, field, "@")
14116 substed = 0
14117 len = length(field[1])
14118 for (i = 2; i < nfields; i++) {
14119 key = field[i]
14120 keylen = length(key)
14121 if (S_is_set[key]) {
14122 value = S[key]
14123 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14124 len += length(value) + length(field[++i])
14125 substed = 1
14126 } else
14127 len += 1 + keylen
14128 }
14129
14130 print line
14131}
c906108c 14132
81ecdfbb
RW
14133_ACAWK
14134_ACEOF
14135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 14138else
81ecdfbb 14139 cat
d0ac1c44
SM
14140fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14141 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 14142_ACEOF
b7026657 14143
d0ac1c44
SM
14144# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14145# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
14146# trailing colons and then remove the whole line if VPATH becomes empty
14147# (actually we leave an empty line to preserve line numbers).
14148if test "x$srcdir" = x.; then
d0ac1c44
SM
14149 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14150h
14151s///
14152s/^/:/
14153s/[ ]*$/:/
14154s/:\$(srcdir):/:/g
14155s/:\${srcdir}:/:/g
14156s/:@srcdir@:/:/g
14157s/^:*//
81ecdfbb 14158s/:*$//
d0ac1c44
SM
14159x
14160s/\(=[ ]*\).*/\1/
14161G
14162s/\n//
81ecdfbb
RW
14163s/^[^=]*=[ ]*$//
14164}'
14165fi
c906108c 14166
81ecdfbb
RW
14167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14168fi # test -n "$CONFIG_FILES"
c906108c 14169
81ecdfbb
RW
14170# Set up the scripts for CONFIG_HEADERS section.
14171# No need to generate them if there are no CONFIG_HEADERS.
14172# This happens for instance with `./config.status Makefile'.
14173if test -n "$CONFIG_HEADERS"; then
d0ac1c44 14174cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
14175BEGIN {
14176_ACEOF
b7026657 14177
81ecdfbb
RW
14178# Transform confdefs.h into an awk script `defines.awk', embedded as
14179# here-document in config.status, that substitutes the proper values into
14180# config.h.in to produce config.h.
c906108c 14181
81ecdfbb
RW
14182# Create a delimiter string that does not exist in confdefs.h, to ease
14183# handling of long lines.
14184ac_delim='%!_!# '
14185for ac_last_try in false false :; do
d0ac1c44
SM
14186 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14187 if test -z "$ac_tt"; then
81ecdfbb
RW
14188 break
14189 elif $ac_last_try; then
d0ac1c44 14190 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 14191 else
81ecdfbb 14192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 14193 fi
b7026657 14194done
81ecdfbb
RW
14195
14196# For the awk script, D is an array of macro values keyed by name,
14197# likewise P contains macro parameters if any. Preserve backslash
14198# newline sequences.
14199
14200ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14201sed -n '
14202s/.\{148\}/&'"$ac_delim"'/g
14203t rset
14204:rset
14205s/^[ ]*#[ ]*define[ ][ ]*/ /
14206t def
14207d
14208:def
14209s/\\$//
14210t bsnl
14211s/["\\]/\\&/g
14212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14213D["\1"]=" \3"/p
14214s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14215d
14216:bsnl
14217s/["\\]/\\&/g
14218s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14219D["\1"]=" \3\\\\\\n"\\/p
14220t cont
14221s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14222t cont
14223d
14224:cont
14225n
14226s/.\{148\}/&'"$ac_delim"'/g
14227t clear
14228:clear
14229s/\\$//
14230t bsnlc
14231s/["\\]/\\&/g; s/^/"/; s/$/"/p
14232d
14233:bsnlc
14234s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14235b cont
14236' <confdefs.h | sed '
14237s/'"$ac_delim"'/"\\\
14238"/g' >>$CONFIG_STATUS || ac_write_fail=1
14239
14240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241 for (key in D) D_is_set[key] = 1
14242 FS = "\a"
14243}
14244/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14245 line = \$ 0
14246 split(line, arg, " ")
14247 if (arg[1] == "#") {
14248 defundef = arg[2]
14249 mac1 = arg[3]
14250 } else {
14251 defundef = substr(arg[1], 2)
14252 mac1 = arg[2]
14253 }
14254 split(mac1, mac2, "(") #)
14255 macro = mac2[1]
14256 prefix = substr(line, 1, index(line, defundef) - 1)
14257 if (D_is_set[macro]) {
14258 # Preserve the white space surrounding the "#".
14259 print prefix "define", macro P[macro] D[macro]
14260 next
14261 } else {
14262 # Replace #undef with comments. This is necessary, for example,
14263 # in the case of _POSIX_SOURCE, which is predefined and required
14264 # on some systems where configure will not decide to define it.
14265 if (defundef == "undef") {
14266 print "/*", prefix defundef, macro, "*/"
14267 next
14268 }
14269 }
14270}
14271{ print }
14272_ACAWK
b7026657 14273_ACEOF
81ecdfbb 14274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 14275 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 14276fi # test -n "$CONFIG_HEADERS"
b7026657 14277
c906108c 14278
99d8e879 14279eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
14280shift
14281for ac_tag
14282do
14283 case $ac_tag in
14284 :[FHLC]) ac_mode=$ac_tag; continue;;
14285 esac
14286 case $ac_mode$ac_tag in
14287 :[FHL]*:*);;
d0ac1c44 14288 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
14289 :[FH]-) ac_tag=-:-;;
14290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 14291 esac
81ecdfbb
RW
14292 ac_save_IFS=$IFS
14293 IFS=:
14294 set x $ac_tag
14295 IFS=$ac_save_IFS
14296 shift
14297 ac_file=$1
14298 shift
c906108c 14299
81ecdfbb
RW
14300 case $ac_mode in
14301 :L) ac_source=$1;;
14302 :[FH])
14303 ac_file_inputs=
14304 for ac_f
14305 do
14306 case $ac_f in
d0ac1c44 14307 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
14308 *) # Look for the file first in the build tree, then in the source tree
14309 # (if the path is not absolute). The absolute path cannot be DOS-style,
14310 # because $ac_f cannot contain `:'.
14311 test -f "$ac_f" ||
14312 case $ac_f in
14313 [\\/$]*) false;;
14314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14315 esac ||
d0ac1c44 14316 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 14317 esac
81ecdfbb
RW
14318 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14319 as_fn_append ac_file_inputs " '$ac_f'"
14320 done
b7026657 14321
81ecdfbb
RW
14322 # Let's still pretend it is `configure' which instantiates (i.e., don't
14323 # use $as_me), people would be surprised to read:
14324 # /* config.h. Generated by config.status. */
14325 configure_input='Generated from '`
14326 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14327 `' by configure.'
14328 if test x"$ac_file" != x-; then
14329 configure_input="$ac_file. $configure_input"
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14331$as_echo "$as_me: creating $ac_file" >&6;}
14332 fi
14333 # Neutralize special characters interpreted by sed in replacement strings.
14334 case $configure_input in #(
14335 *\&* | *\|* | *\\* )
14336 ac_sed_conf_input=`$as_echo "$configure_input" |
14337 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14338 *) ac_sed_conf_input=$configure_input;;
14339 esac
b7026657 14340
81ecdfbb 14341 case $ac_tag in
d0ac1c44
SM
14342 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
14344 esac
14345 ;;
14346 esac
b7026657 14347
81ecdfbb 14348 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
14349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14350 X"$ac_file" : 'X\(//\)[^/]' \| \
14351 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14353$as_echo X"$ac_file" |
14354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14355 s//\1/
14356 q
14357 }
14358 /^X\(\/\/\)[^/].*/{
14359 s//\1/
14360 q
14361 }
14362 /^X\(\/\/\)$/{
14363 s//\1/
14364 q
14365 }
14366 /^X\(\/\).*/{
14367 s//\1/
14368 q
14369 }
14370 s/.*/./; q'`
14371 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
14372 ac_builddir=.
14373
81ecdfbb
RW
14374case "$ac_dir" in
14375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14376*)
14377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14378 # A ".." for each directory in $ac_dir_suffix.
14379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14380 case $ac_top_builddir_sub in
14381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14383 esac ;;
14384esac
14385ac_abs_top_builddir=$ac_pwd
14386ac_abs_builddir=$ac_pwd$ac_dir_suffix
14387# for backward compatibility:
14388ac_top_builddir=$ac_top_build_prefix
b7026657
AC
14389
14390case $srcdir in
81ecdfbb 14391 .) # We are building in place.
b7026657 14392 ac_srcdir=.
81ecdfbb
RW
14393 ac_top_srcdir=$ac_top_builddir_sub
14394 ac_abs_top_srcdir=$ac_pwd ;;
14395 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 14396 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14397 ac_top_srcdir=$srcdir
14398 ac_abs_top_srcdir=$srcdir ;;
14399 *) # Relative name.
14400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14401 ac_top_srcdir=$ac_top_build_prefix$srcdir
14402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 14403esac
81ecdfbb 14404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 14405
c906108c 14406
81ecdfbb
RW
14407 case $ac_mode in
14408 :F)
14409 #
14410 # CONFIG_FILE
14411 #
b7026657 14412
81ecdfbb
RW
14413 case $INSTALL in
14414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14415 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 14416 esac
81ecdfbb 14417_ACEOF
c906108c 14418
81ecdfbb
RW
14419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14420# If the template does not know about datarootdir, expand it.
14421# FIXME: This hack should be removed a few years after 2.60.
14422ac_datarootdir_hack=; ac_datarootdir_seen=
14423ac_sed_dataroot='
14424/datarootdir/ {
14425 p
14426 q
14427}
14428/@datadir@/p
14429/@docdir@/p
14430/@infodir@/p
14431/@localedir@/p
14432/@mandir@/p'
14433case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14434*datarootdir*) ac_datarootdir_seen=yes;;
14435*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14437$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14438_ACEOF
14439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14440 ac_datarootdir_hack='
14441 s&@datadir@&$datadir&g
14442 s&@docdir@&$docdir&g
14443 s&@infodir@&$infodir&g
14444 s&@localedir@&$localedir&g
14445 s&@mandir@&$mandir&g
14446 s&\\\${datarootdir}&$datarootdir&g' ;;
14447esac
b7026657 14448_ACEOF
b7026657 14449
81ecdfbb
RW
14450# Neutralize VPATH when `$srcdir' = `.'.
14451# Shell code in configure.ac might set extrasub.
14452# FIXME: do we really want to maintain this feature?
14453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14454ac_sed_extra="$ac_vpsub
14455$extrasub
14456_ACEOF
14457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14458:t
14459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14460s|@configure_input@|$ac_sed_conf_input|;t t
14461s&@top_builddir@&$ac_top_builddir_sub&;t t
14462s&@top_build_prefix@&$ac_top_build_prefix&;t t
14463s&@srcdir@&$ac_srcdir&;t t
14464s&@abs_srcdir@&$ac_abs_srcdir&;t t
14465s&@top_srcdir@&$ac_top_srcdir&;t t
14466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14467s&@builddir@&$ac_builddir&;t t
14468s&@abs_builddir@&$ac_abs_builddir&;t t
14469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14470s&@INSTALL@&$ac_INSTALL&;t t
14471$ac_datarootdir_hack
14472"
d0ac1c44
SM
14473eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14474 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
14475
14476test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
14477 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14479 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 14481which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 14482$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 14483which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 14484
d0ac1c44 14485 rm -f "$ac_tmp/stdin"
81ecdfbb 14486 case $ac_file in
d0ac1c44
SM
14487 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14488 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 14489 esac \
d0ac1c44 14490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
14491 ;;
14492 :H)
14493 #
14494 # CONFIG_HEADER
14495 #
14496 if test x"$ac_file" != x-; then
14497 {
14498 $as_echo "/* $configure_input */" \
d0ac1c44
SM
14499 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14500 } >"$ac_tmp/config.h" \
14501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14502 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14504$as_echo "$as_me: $ac_file is unchanged" >&6;}
14505 else
14506 rm -f "$ac_file"
d0ac1c44
SM
14507 mv "$ac_tmp/config.h" "$ac_file" \
14508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 14509 fi
b7026657 14510 else
81ecdfbb 14511 $as_echo "/* $configure_input */" \
d0ac1c44
SM
14512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14513 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
14514 fi
14515 ;;
b7026657 14516
81ecdfbb
RW
14517 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14518$as_echo "$as_me: executing $ac_file commands" >&6;}
14519 ;;
14520 esac
b7026657
AC
14521
14522
81ecdfbb 14523 case $ac_file$ac_mode in
db2e4d67 14524 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
14525 "libtool":C)
14526
14527 # See if we are running on zsh, and set the options which allow our
14528 # commands through without removal of \ escapes.
14529 if test -n "${ZSH_VERSION+set}" ; then
14530 setopt NO_GLOB_SUBST
14531 fi
14532
14533 cfgfile="${ofile}T"
14534 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14535 $RM "$cfgfile"
14536
14537 cat <<_LT_EOF >> "$cfgfile"
14538#! $SHELL
14539
14540# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14541# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14542# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14543# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14544#
14545# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14546# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14547# Written by Gordon Matzigkeit, 1996
14548#
14549# This file is part of GNU Libtool.
14550#
14551# GNU Libtool is free software; you can redistribute it and/or
14552# modify it under the terms of the GNU General Public License as
14553# published by the Free Software Foundation; either version 2 of
14554# the License, or (at your option) any later version.
14555#
14556# As a special exception to the GNU General Public License,
14557# if you distribute this file as part of a program or library that
14558# is built using GNU Libtool, you may include this file under the
14559# same distribution terms that you use for the rest of that program.
14560#
14561# GNU Libtool is distributed in the hope that it will be useful,
14562# but WITHOUT ANY WARRANTY; without even the implied warranty of
14563# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14564# GNU General Public License for more details.
14565#
14566# You should have received a copy of the GNU General Public License
14567# along with GNU Libtool; see the file COPYING. If not, a copy
14568# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14569# obtained by writing to the Free Software Foundation, Inc.,
14570# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14571
14572
14573# The names of the tagged configurations supported by this script.
14574available_tags=""
14575
14576# ### BEGIN LIBTOOL CONFIG
14577
14578# Which release of libtool.m4 was used?
14579macro_version=$macro_version
14580macro_revision=$macro_revision
14581
14582# Whether or not to build shared libraries.
14583build_libtool_libs=$enable_shared
14584
14585# Whether or not to build static libraries.
14586build_old_libs=$enable_static
14587
14588# What type of objects to build.
14589pic_mode=$pic_mode
14590
14591# Whether or not to optimize for fast installation.
14592fast_install=$enable_fast_install
14593
14594# Shell to use when invoking shell scripts.
14595SHELL=$lt_SHELL
14596
14597# An echo program that protects backslashes.
14598ECHO=$lt_ECHO
14599
14600# The host system.
14601host_alias=$host_alias
14602host=$host
14603host_os=$host_os
14604
14605# The build system.
14606build_alias=$build_alias
14607build=$build
14608build_os=$build_os
14609
14610# A sed program that does not truncate output.
14611SED=$lt_SED
14612
14613# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14614Xsed="\$SED -e 1s/^X//"
14615
14616# A grep program that handles long lines.
14617GREP=$lt_GREP
14618
14619# An ERE matcher.
14620EGREP=$lt_EGREP
14621
14622# A literal string matcher.
14623FGREP=$lt_FGREP
14624
14625# A BSD- or MS-compatible name lister.
14626NM=$lt_NM
14627
14628# Whether we need soft or hard links.
14629LN_S=$lt_LN_S
14630
14631# What is the maximum length of a command?
14632max_cmd_len=$max_cmd_len
14633
14634# Object file suffix (normally "o").
14635objext=$ac_objext
14636
14637# Executable file suffix (normally "").
14638exeext=$exeext
14639
14640# whether the shell understands "unset".
14641lt_unset=$lt_unset
14642
14643# turn spaces into newlines.
14644SP2NL=$lt_lt_SP2NL
14645
14646# turn newlines into spaces.
14647NL2SP=$lt_lt_NL2SP
14648
14649# An object symbol dumper.
14650OBJDUMP=$lt_OBJDUMP
14651
14652# Method to check whether dependent libraries are shared objects.
14653deplibs_check_method=$lt_deplibs_check_method
14654
14655# Command to use when deplibs_check_method == "file_magic".
14656file_magic_cmd=$lt_file_magic_cmd
14657
14658# The archiver.
14659AR=$lt_AR
14660AR_FLAGS=$lt_AR_FLAGS
14661
14662# A symbol stripping program.
14663STRIP=$lt_STRIP
14664
14665# Commands used to install an old-style archive.
14666RANLIB=$lt_RANLIB
14667old_postinstall_cmds=$lt_old_postinstall_cmds
14668old_postuninstall_cmds=$lt_old_postuninstall_cmds
14669
14670# Whether to use a lock for old archive extraction.
14671lock_old_archive_extraction=$lock_old_archive_extraction
14672
14673# A C compiler.
14674LTCC=$lt_CC
14675
14676# LTCC compiler flags.
14677LTCFLAGS=$lt_CFLAGS
14678
14679# Take the output of nm and produce a listing of raw symbols and C names.
14680global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14681
14682# Transform the output of nm in a proper C declaration.
14683global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14684
14685# Transform the output of nm in a C name address pair.
14686global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14687
14688# Transform the output of nm in a C name address pair when lib prefix is needed.
14689global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14690
14691# The name of the directory that contains temporary libtool files.
14692objdir=$objdir
14693
14694# Used to examine libraries when file_magic_cmd begins with "file".
14695MAGIC_CMD=$MAGIC_CMD
14696
14697# Must we lock files when doing compilation?
14698need_locks=$lt_need_locks
14699
14700# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14701DSYMUTIL=$lt_DSYMUTIL
14702
14703# Tool to change global to local symbols on Mac OS X.
14704NMEDIT=$lt_NMEDIT
14705
14706# Tool to manipulate fat objects and archives on Mac OS X.
14707LIPO=$lt_LIPO
14708
14709# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14710OTOOL=$lt_OTOOL
14711
14712# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14713OTOOL64=$lt_OTOOL64
14714
14715# Old archive suffix (normally "a").
14716libext=$libext
14717
14718# Shared library suffix (normally ".so").
14719shrext_cmds=$lt_shrext_cmds
14720
14721# The commands to extract the exported symbol list from a shared archive.
14722extract_expsyms_cmds=$lt_extract_expsyms_cmds
14723
14724# Variables whose values should be saved in libtool wrapper scripts and
14725# restored at link time.
14726variables_saved_for_relink=$lt_variables_saved_for_relink
14727
14728# Do we need the "lib" prefix for modules?
14729need_lib_prefix=$need_lib_prefix
14730
14731# Do we need a version for libraries?
14732need_version=$need_version
14733
14734# Library versioning type.
14735version_type=$version_type
14736
14737# Shared library runtime path variable.
14738runpath_var=$runpath_var
14739
14740# Shared library path variable.
14741shlibpath_var=$shlibpath_var
14742
14743# Is shlibpath searched before the hard-coded library search path?
14744shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14745
14746# Format of library name prefix.
14747libname_spec=$lt_libname_spec
14748
14749# List of archive names. First name is the real one, the rest are links.
14750# The last name is the one that the linker finds with -lNAME
14751library_names_spec=$lt_library_names_spec
14752
14753# The coded name of the library, if different from the real name.
14754soname_spec=$lt_soname_spec
14755
14756# Permission mode override for installation of shared libraries.
14757install_override_mode=$lt_install_override_mode
14758
14759# Command to use after installation of a shared archive.
14760postinstall_cmds=$lt_postinstall_cmds
14761
14762# Command to use after uninstallation of a shared archive.
14763postuninstall_cmds=$lt_postuninstall_cmds
14764
14765# Commands used to finish a libtool library installation in a directory.
14766finish_cmds=$lt_finish_cmds
14767
14768# As "finish_cmds", except a single script fragment to be evaled but
14769# not shown.
14770finish_eval=$lt_finish_eval
14771
14772# Whether we should hardcode library paths into libraries.
14773hardcode_into_libs=$hardcode_into_libs
14774
14775# Compile-time system search path for libraries.
14776sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14777
14778# Run-time system search path for libraries.
14779sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14780
14781# Whether dlopen is supported.
14782dlopen_support=$enable_dlopen
14783
14784# Whether dlopen of programs is supported.
14785dlopen_self=$enable_dlopen_self
14786
14787# Whether dlopen of statically linked programs is supported.
14788dlopen_self_static=$enable_dlopen_self_static
14789
14790# Commands to strip libraries.
14791old_striplib=$lt_old_striplib
14792striplib=$lt_striplib
14793
14794
14795# The linker used to build libraries.
14796LD=$lt_LD
14797
14798# How to create reloadable object files.
14799reload_flag=$lt_reload_flag
14800reload_cmds=$lt_reload_cmds
14801
14802# Commands used to build an old-style archive.
14803old_archive_cmds=$lt_old_archive_cmds
14804
14805# A language specific compiler.
14806CC=$lt_compiler
14807
14808# Is the compiler the GNU compiler?
14809with_gcc=$GCC
14810
14811# Compiler flag to turn off builtin functions.
14812no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14813
14814# How to pass a linker flag through the compiler.
14815wl=$lt_lt_prog_compiler_wl
14816
14817# Additional compiler flags for building library objects.
14818pic_flag=$lt_lt_prog_compiler_pic
14819
14820# Compiler flag to prevent dynamic linking.
14821link_static_flag=$lt_lt_prog_compiler_static
14822
14823# Does compiler simultaneously support -c and -o options?
14824compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14825
14826# Whether or not to add -lc for building shared libraries.
14827build_libtool_need_lc=$archive_cmds_need_lc
14828
14829# Whether or not to disallow shared libs when runtime libs are static.
14830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14831
14832# Compiler flag to allow reflexive dlopens.
14833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14834
14835# Compiler flag to generate shared objects directly from archives.
14836whole_archive_flag_spec=$lt_whole_archive_flag_spec
14837
14838# Whether the compiler copes with passing no objects directly.
14839compiler_needs_object=$lt_compiler_needs_object
14840
14841# Create an old-style archive from a shared archive.
14842old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14843
14844# Create a temporary old-style archive to link instead of a shared archive.
14845old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14846
14847# Commands used to build a shared archive.
14848archive_cmds=$lt_archive_cmds
14849archive_expsym_cmds=$lt_archive_expsym_cmds
14850
14851# Commands used to build a loadable module if different from building
14852# a shared archive.
14853module_cmds=$lt_module_cmds
14854module_expsym_cmds=$lt_module_expsym_cmds
14855
14856# Whether we are building with GNU ld or not.
14857with_gnu_ld=$lt_with_gnu_ld
14858
14859# Flag that allows shared libraries with undefined symbols to be built.
14860allow_undefined_flag=$lt_allow_undefined_flag
14861
14862# Flag that enforces no undefined symbols.
14863no_undefined_flag=$lt_no_undefined_flag
14864
14865# Flag to hardcode \$libdir into a binary during linking.
14866# This must work even if \$libdir does not exist
14867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14868
14869# If ld is used when linking, flag to hardcode \$libdir into a binary
14870# during linking. This must work even if \$libdir does not exist.
14871hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14872
14873# Whether we need a single "-rpath" flag with a separated argument.
14874hardcode_libdir_separator=$lt_hardcode_libdir_separator
14875
14876# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14877# DIR into the resulting binary.
14878hardcode_direct=$hardcode_direct
14879
14880# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14881# DIR into the resulting binary and the resulting library dependency is
14882# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14883# library is relocated.
14884hardcode_direct_absolute=$hardcode_direct_absolute
14885
14886# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14887# into the resulting binary.
14888hardcode_minus_L=$hardcode_minus_L
14889
14890# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14891# into the resulting binary.
14892hardcode_shlibpath_var=$hardcode_shlibpath_var
14893
14894# Set to "yes" if building a shared library automatically hardcodes DIR
14895# into the library and all subsequent libraries and executables linked
14896# against it.
14897hardcode_automatic=$hardcode_automatic
14898
14899# Set to yes if linker adds runtime paths of dependent libraries
14900# to runtime path list.
14901inherit_rpath=$inherit_rpath
14902
14903# Whether libtool must link a program against all its dependency libraries.
14904link_all_deplibs=$link_all_deplibs
14905
14906# Fix the shell variable \$srcfile for the compiler.
14907fix_srcfile_path=$lt_fix_srcfile_path
14908
14909# Set to "yes" if exported symbols are required.
14910always_export_symbols=$always_export_symbols
14911
14912# The commands to list exported symbols.
14913export_symbols_cmds=$lt_export_symbols_cmds
14914
14915# Symbols that should not be listed in the preloaded symbols.
14916exclude_expsyms=$lt_exclude_expsyms
14917
14918# Symbols that must always be exported.
14919include_expsyms=$lt_include_expsyms
14920
14921# Commands necessary for linking programs (against libraries) with templates.
14922prelink_cmds=$lt_prelink_cmds
14923
14924# Specify filename containing input files.
14925file_list_spec=$lt_file_list_spec
14926
14927# How to hardcode a shared library path into an executable.
14928hardcode_action=$hardcode_action
14929
14930# ### END LIBTOOL CONFIG
14931
14932_LT_EOF
14933
14934 case $host_os in
14935 aix3*)
14936 cat <<\_LT_EOF >> "$cfgfile"
14937# AIX sometimes has problems with the GCC collect2 program. For some
14938# reason, if we set the COLLECT_NAMES environment variable, the problems
14939# vanish in a puff of smoke.
14940if test "X${COLLECT_NAMES+set}" != Xset; then
14941 COLLECT_NAMES=
14942 export COLLECT_NAMES
14943fi
14944_LT_EOF
14945 ;;
14946 esac
14947
14948
14949ltmain="$ac_aux_dir/ltmain.sh"
14950
14951
14952 # We use sed instead of cat because bash on DJGPP gets confused if
14953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14954 # text mode, it properly converts lines to CR/LF. This bash problem
14955 # is reportedly fixed, but why not run on old versions too?
14956 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14957 || (rm -f "$cfgfile"; exit 1)
14958
14959 case $xsi_shell in
14960 yes)
14961 cat << \_LT_EOF >> "$cfgfile"
14962
14963# func_dirname file append nondir_replacement
14964# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14965# otherwise set result to NONDIR_REPLACEMENT.
14966func_dirname ()
14967{
14968 case ${1} in
14969 */*) func_dirname_result="${1%/*}${2}" ;;
14970 * ) func_dirname_result="${3}" ;;
14971 esac
14972}
14973
14974# func_basename file
14975func_basename ()
14976{
14977 func_basename_result="${1##*/}"
14978}
14979
14980# func_dirname_and_basename file append nondir_replacement
14981# perform func_basename and func_dirname in a single function
14982# call:
14983# dirname: Compute the dirname of FILE. If nonempty,
14984# add APPEND to the result, otherwise set result
14985# to NONDIR_REPLACEMENT.
14986# value returned in "$func_dirname_result"
14987# basename: Compute filename of FILE.
14988# value retuned in "$func_basename_result"
14989# Implementation must be kept synchronized with func_dirname
14990# and func_basename. For efficiency, we do not delegate to
14991# those functions but instead duplicate the functionality here.
14992func_dirname_and_basename ()
14993{
14994 case ${1} in
14995 */*) func_dirname_result="${1%/*}${2}" ;;
14996 * ) func_dirname_result="${3}" ;;
14997 esac
14998 func_basename_result="${1##*/}"
14999}
15000
15001# func_stripname prefix suffix name
15002# strip PREFIX and SUFFIX off of NAME.
15003# PREFIX and SUFFIX must not contain globbing or regex special
15004# characters, hashes, percent signs, but SUFFIX may contain a leading
15005# dot (in which case that matches only a dot).
15006func_stripname ()
15007{
15008 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15009 # positional parameters, so assign one to ordinary parameter first.
15010 func_stripname_result=${3}
15011 func_stripname_result=${func_stripname_result#"${1}"}
15012 func_stripname_result=${func_stripname_result%"${2}"}
15013}
15014
15015# func_opt_split
15016func_opt_split ()
15017{
15018 func_opt_split_opt=${1%%=*}
15019 func_opt_split_arg=${1#*=}
15020}
15021
15022# func_lo2o object
15023func_lo2o ()
15024{
15025 case ${1} in
15026 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15027 *) func_lo2o_result=${1} ;;
15028 esac
15029}
15030
15031# func_xform libobj-or-source
15032func_xform ()
15033{
15034 func_xform_result=${1%.*}.lo
15035}
15036
15037# func_arith arithmetic-term...
15038func_arith ()
15039{
15040 func_arith_result=$(( $* ))
15041}
15042
15043# func_len string
15044# STRING may not start with a hyphen.
15045func_len ()
15046{
15047 func_len_result=${#1}
15048}
15049
15050_LT_EOF
15051 ;;
15052 *) # Bourne compatible functions.
15053 cat << \_LT_EOF >> "$cfgfile"
15054
15055# func_dirname file append nondir_replacement
15056# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15057# otherwise set result to NONDIR_REPLACEMENT.
15058func_dirname ()
15059{
15060 # Extract subdirectory from the argument.
15061 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15062 if test "X$func_dirname_result" = "X${1}"; then
15063 func_dirname_result="${3}"
15064 else
15065 func_dirname_result="$func_dirname_result${2}"
15066 fi
15067}
15068
15069# func_basename file
15070func_basename ()
15071{
15072 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15073}
15074
15075
15076# func_stripname prefix suffix name
15077# strip PREFIX and SUFFIX off of NAME.
15078# PREFIX and SUFFIX must not contain globbing or regex special
15079# characters, hashes, percent signs, but SUFFIX may contain a leading
15080# dot (in which case that matches only a dot).
15081# func_strip_suffix prefix name
15082func_stripname ()
15083{
15084 case ${2} in
15085 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15086 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15087 esac
15088}
15089
15090# sed scripts:
15091my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15092my_sed_long_arg='1s/^-[^=]*=//'
15093
15094# func_opt_split
15095func_opt_split ()
15096{
15097 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15098 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15099}
15100
15101# func_lo2o object
15102func_lo2o ()
15103{
15104 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15105}
15106
15107# func_xform libobj-or-source
15108func_xform ()
15109{
15110 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15111}
15112
15113# func_arith arithmetic-term...
15114func_arith ()
15115{
15116 func_arith_result=`expr "$@"`
15117}
15118
15119# func_len string
15120# STRING may not start with a hyphen.
15121func_len ()
15122{
15123 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15124}
15125
15126_LT_EOF
15127esac
15128
15129case $lt_shell_append in
15130 yes)
15131 cat << \_LT_EOF >> "$cfgfile"
15132
15133# func_append var value
15134# Append VALUE to the end of shell variable VAR.
15135func_append ()
15136{
15137 eval "$1+=\$2"
15138}
15139_LT_EOF
15140 ;;
15141 *)
15142 cat << \_LT_EOF >> "$cfgfile"
15143
15144# func_append var value
15145# Append VALUE to the end of shell variable VAR.
15146func_append ()
15147{
15148 eval "$1=\$$1\$2"
15149}
15150
15151_LT_EOF
15152 ;;
15153 esac
15154
15155
15156 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15157 || (rm -f "$cfgfile"; exit 1)
15158
15159 mv -f "$cfgfile" "$ofile" ||
15160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15161 chmod +x "$ofile"
15162
15163 ;;
81ecdfbb 15164 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
15165 rm -f Makesim1.tmp Makesim2.tmp Makefile
15166 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
15167 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
15168 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
15169 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
15170 <Makefile.sim >Makefile
38f48d72 15171 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 15172 ;;
81ecdfbb
RW
15173 "stamp-h":C) echo > stamp-h ;;
15174
b7026657 15175 esac
81ecdfbb 15176done # for ac_tag
c906108c 15177
b7026657 15178
81ecdfbb 15179as_fn_exit 0
b7026657 15180_ACEOF
b7026657
AC
15181ac_clean_files=$ac_clean_files_save
15182
81ecdfbb 15183test $ac_write_fail = 0 ||
d0ac1c44 15184 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15185
b7026657
AC
15186
15187# configure is writing to config.log, and then calls config.status.
15188# config.status does its own redirection, appending to config.log.
15189# Unfortunately, on DOS this fails, as config.log is still kept open
15190# by configure, so config.status won't be able to write to it; its
15191# output is simply discarded. So we exec the FD to /dev/null,
15192# effectively closing config.log, so it can be properly (re)opened and
15193# appended to by config.status. When coming back to configure, we
15194# need to make the FD available again.
15195if test "$no_create" != yes; then
15196 ac_cs_success=:
15197 ac_config_status_args=
15198 test "$silent" = yes &&
15199 ac_config_status_args="$ac_config_status_args --quiet"
15200 exec 5>/dev/null
15201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15202 exec 5>>config.log
15203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15204 # would make configure fail if this is the last instruction.
d0ac1c44 15205 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15206fi
15207if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15209$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 15210fi
c906108c
SS
15211
15212